Return-Path: X-Original-To: apmail-river-dev-archive@www.apache.org Delivered-To: apmail-river-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 850D810473 for ; Mon, 9 Feb 2015 14:01:22 +0000 (UTC) Received: (qmail 53822 invoked by uid 500); 9 Feb 2015 14:01:22 -0000 Delivered-To: apmail-river-dev-archive@river.apache.org Received: (qmail 53793 invoked by uid 500); 9 Feb 2015 14:01:22 -0000 Mailing-List: contact dev-help@river.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@river.apache.org Delivered-To: mailing list dev@river.apache.org Received: (qmail 53767 invoked by uid 99); 9 Feb 2015 14:01:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2015 14:01:22 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=RCVD_IN_DNSWL_NONE,URG_BIZ X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [216.221.81.28] (HELO fipsb01.cogeco.net) (216.221.81.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Feb 2015 14:00:57 +0000 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=pq7mBhbVh9me3CtEWRsLY2qDWTFFXtdSa2p6qUr84UU= c=1 sm=2 a=wPDyFdB5xvgA:10 a=N659UExz7-8A:10 a=mV9VRH-2AAAA:8 a=pGLkceISAAAA:8 a=SEKskJOTRPH_UEHcK4QA:9 a=pILNOxqGKmIA:10 a=EE7aF-XwzIwA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhEFALS82FTY3VTJ/2dsb2JhbABcg1hauTyJM4V5AoFZAQEBAQEBfIQNAQQBfgsLRiE2BxKIGQMJCAXBPw2FZQEBAQcBAQEBAQEBG41OHYFaOoMWgRQFhVKEVYhEhBaCXjaCTYIlIYNpgiaCQoM8AiKEDFGCQgEBAQ X-IPAS-Result: AhEFALS82FTY3VTJ/2dsb2JhbABcg1hauTyJM4V5AoFZAQEBAQEBfIQNAQQBfgsLRiE2BxKIGQMJCAXBPw2FZQEBAQcBAQEBAQEBG41OHYFaOoMWgRQFhVKEVYhEhBaCXjaCTYIlIYNpgiaCQoM8AiKEDFGCQgEBAQ X-IronPort-AV: E=Sophos;i="5.09,544,1418101200"; d="scan'208";a="496595042" Received: from d221-84-201.commercial.cgocable.net (HELO 24b2b4d4-6f72-4c42-a12f-fac553ea6761.localdomain) ([216.221.84.201]) by fipsb01.cogeco.net with ESMTP; 09 Feb 2015 09:00:34 -0500 Received: from localhost (localhost [127.0.0.1]) by 24b2b4d4-6f72-4c42-a12f-fac553ea6761.localdomain (Postfix) with ESMTP id 2CD2A6488F; Mon, 9 Feb 2015 06:00:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at mail.stratuscom.com Received: from 24b2b4d4-6f72-4c42-a12f-fac553ea6761.localdomain ([127.0.0.1]) by localhost (remote.stratuscom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R2nScFQyyFWm; Mon, 9 Feb 2015 06:00:33 -0800 (PST) Received: from [192.168.1.109] (d221-84-201.commercial.cgocable.net [216.221.84.201]) by 24b2b4d4-6f72-4c42-a12f-fac553ea6761.localdomain (Postfix) with ESMTPSA id 5F1DA6465F; Mon, 9 Feb 2015 06:00:33 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: Urgent Request for help From: Greg Trasuk In-Reply-To: Date: Mon, 9 Feb 2015 09:00:32 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: dev@river.apache.org, user@river.apache.org X-Mailer: Apple Mail (2.1878.6) X-Virus-Checked: Checked by ClamAV on apache.org Should be on user@river.apache.org. Also, = river-dev@incubator.apache.org is not an active address. Amit: Reasoning for why the exception is happening: - Reading through the exception trace, the root exception is a = AccessControlException, in that the code does not have RuntimePermission = for =91createSecurityManager=92. - The script, when you read it, is trying to start up with a security = manager, and is specifying =91config/start.policy as the security policy = file. That policy file grants AllPermission, which ought to prevent the = exception you=92re seeing. - However, your running code doesn=92t have permissions, so that doesn=92t= make sense. What could cause that? =97 The security system does not work? Oracle changed it? Seems = unlikely. =97 The policy file is not being read? - I note that you=92re running the script from within the =91scripts=92 = folder. =46rom that location, there is no =91config=92 folder. Try running the script from the examples/hello folder. Cheers, Greg Trasuk On Feb 9, 2015, at 2:00 AM, amit batajoo = wrote: > hi peter >=20 > I am trying apache-river-2.2.2 in linux debian. I have successfully = run the > httpd.sh script but while i am trying to jrmp-reggie.sh I am getting = give > error, please help to solve this problem. >=20 > Command and error messgae is given below, please suggest me step by = step > and provide me files is i am missing any, or if you have some runnable = open > source code than please provide for sample example. >=20 > = root@raspberrypi:/opt/jyaguchi/apache-river-2.2.2/examples/hello/scripts# > ./jrmp-reggie.sh > + java -Djava.security.policy=3Dconfig/start.policy > -Djava.ext.dirs=3D/opt/jyaguchi/apache-river-2.2.2/lib-ext/ -jar > /opt/jyaguchi/apache-river-2.2.2/lib/start.jar = config/start-reggie.config > Exception in thread "main" java.lang.ExceptionInInitializerError > at > = net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvider.ja= va:192) > at > = net.jini.config.ConfigurationProvider.getInstance(ConfigurationProvider.ja= va:137) > at = com.sun.jini.start.ServiceStarter.main(ServiceStarter.java:475) > Caused by: java.security.AccessControlException: access denied > ("java.lang.RuntimePermission" "createSecurityManager") > at > = java.security.AccessControlContext.checkPermission(AccessControlContext.ja= va:457) > at > = java.security.AccessController.checkPermission(AccessController.java:884) > at > java.lang.SecurityManager.checkPermission(SecurityManager.java:549) > at java.lang.SecurityManager.(SecurityManager.java:299) > at > = net.jini.security.Security$ClassContextAccess.(Security.java:965) > at > = net.jini.security.Security$ClassContextAccess.(Security.java:965) > at net.jini.security.Security$1.run(Security.java:167) > at java.security.AccessController.doPrivileged(Native Method) > at net.jini.security.Security.(Security.java:165) > ... 3 more >=20 >=20 > Thank you in advance >=20 > --=20 > Er. BATAJOO, Amit > Researcher > Wakkanai Hokusei Gakuen University > Wakkanai, Hokkaido, Japan > = ----------------------------------------------------------------------- > Skype : abatajoo7 > E-Mail :batajooseamusu7@gmail.com,batajooamit@gmail.com, > bataj007amit@gmail.com