Re: javaspace error - transaction
SUBSCRIBE JAVASPACES-USERS Anonymous <[email protected]> Thu, 26 Mar 2009 08:30:26 -0600
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Thank u for reply again..
I did'nt use command line to start jini service. I run jini service by
double clicking the launch-all.exe. That's why I said I am not aware of
'where the mahalo ,outrigger and the other services are running?' Should =
I
start jini services from command prompt... ? I serached for commands to r=
un
jini from command prompt..But what I got was everything for jini1.1. Is
that enough for my jini2_1 service startup...?
Any how I made it sure that mahalo is running at
"http://192.168.38.202:8081/mahalo-dl.jar " only because when I clicked o=
n
this URL while jini service was running save/open file -mahalo.jar option=
was displayed...And when I closed jin i service, it was not comming..
As u said I removed outrigger,mahalo... from clients classpath and tried=
the following command for running client.
java -cp
"c:\ProgramFiles\jini2_1\lib\jsk-lib.jar";"c:\ProgramFiles\jini2_1\lib\ji=
ni-core.jar";"c:\ProgramFiles\jini2_1\lib\jini-ext.jar";"c:\ProgramFiles\=
jini2_1\lib\jsk-resources.jar";"c:\ProgramFiles\jini2_1\lib\jsk-platform.=
jar";
myxml
But output was again another error as follows:
net.jini.discovery.LookupDiscovery$UnicastDiscoveryTask
run
INFO:exception occured during unicast discovery to 192.168.38.202:3447 wi=
th
Invocation constraints[reqs:{},prefs:{}]
java.lang.ClassNotFoundException:com.sun.jini.reggie.ConstrainableRegistr=
arProxy(no
security manager:codebase loader disabled)
at
net.jini.loader.pref.PreferrredClassProvider.loadClass(PreferredClassProv=
ider.java:636)
..........
........
.......
...
This error occued after the wait(); in the getservice() method...
and before the discovered() method is invoked.. (may be the time when reg=
gie
is required for lookup)
Since I felt it was due to absence of security manager may be reason of
error. So I added the code=20
if(System.getSecurityManager()=3D=3Dnull){
=09=09=09 System.setSecurityManager(new RMISecurityManager());
=09=09 }
and compiled and run the client myxml by using the same above command lin=
e
but still the same error was comming...
After adding the security manager I tried to run the same program using
eclipse too.. But in eclipse the error was different and is as follows:
Exception in thread "main" java.lang.ExceptionInInitializerError
=09at net.jini.discovery.LookupDiscovery.<init>(LookupDiscovery.java:781)=
=09at ServiceLocator.getServiceImple(ServiceLocator.java:42)
=09at ServiceLocator.getService(ServiceLocator.java:26)
=09at ServiceLocator.getService(ServiceLocator.java:21)
=09at SpaceLocator.getSpace(SpaceLocator.java:8)
=09at myxml.main(myxml.java:52)
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission createSecurityManager)
=09at java.security.AccessControlContext.checkPermission(Unknown Source)
=09at java.security.AccessController.checkPermission(Unknown Source)
=09at java.lang.SecurityManager.checkPermission(Unknown Source)
=09at java.lang.SecurityManager.<init>(Unknown Source)
=09at net.jini.security.Security$ClassContextAccess.<init>(Security.java:=
965)
=09at net.jini.security.Security$ClassContextAccess.<init>(Security.java:=
965)
=09at net.jini.security.Security$1.run(Security.java:167)
=09at java.security.AccessController.doPrivileged(Native Method)
=09at net.jini.security.Security.<clinit>(Security.java:165)
=09... 6 more
=09=09=20=20
Hope u help again..
xxx
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff JAVASPACES-USERS". For general help, send email to
[email protected] and include in the body of the message "help".
To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html