JMXConnectorServer.start() causes java.rmi.AccessException

Hi all,
I've already posted this message to the tomcat mailing list as well as to the jmx forum, but without any result.
I've a web service running inside tomcat which
creates the jmx stuff needed to manage resources:
LocateRegistry.createRegistry(port);
String localhost = InetAddress.getLocalHost().getCanonicalHostName();
MBeanServer mbs = MBeanServerFactory.createMBeanServer();
// it is the same with getPlatformMBean
JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://" + localhost + ":"
+ port + "/qosp");
JMXConnectorServer cs =
JMXConnectorServerFactory.newJMXConnectorServer(url, null, mbs);
cs.start();The problem is that I get a java.rmi.AcessException -- see below -- when the cs.start() call is executed (on linux machines only -- it works fine on Windows)
The problem seems to be the following:
Caused by: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host
However my machine does not have that address, and actually I have no idea what it is.
Any clue?
Michele
Nov 6, 2006 11:55:01 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: .:/Library/Java/Extensions:/System/Library/Java/
Extensions:/usr/lib/java
Nov 6, 2006 11:55:01 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 6, 2006 11:55:01 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 666 ms
Nov 6, 2006 11:55:02 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 6, 2006 11:55:02 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
Nov 6, 2006 11:55:02 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Nov 6, 2006 11:55:02 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive axis2.war
2006-11-06 11:55:03,668 INFO
org.apache.axis2.deployment.DeploymentEngine - Deploying module :
addressing-1.1
2006-11-06 11:55:03,682 INFO
org.apache.axis2.deployment.DeploymentEngine - Deploying module :
managerInterceptor
2006-11-06 11:55:03,690 INFO
org.apache.axis2.deployment.DeploymentEngine - Deploying module :
soapmonitor-1.1
2006-11-06 11:55:03,890 INFO ncl.qosp.controller.LifecycleSupport -
Qosp jmx is starting up...
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:124)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy
(DeploymentEngine.java:528)
at org.apache.axis2.deployment.repository.util.WSInfoList.update
(WSInfoList.java:196)
at org.apache.axis2.deployment.RepositoryListener.update
(RepositoryListener.java:227)
at org.apache.axis2.deployment.RepositoryListener.checkServices
(RepositoryListener.java:174)
at org.apache.axis2.deployment.DeploymentEngine.loadServices
(DeploymentEngine.java:88)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices
(WarBasedAxisConfigurator.java:252)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:72)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext
(AxisServlet.java:373)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:
317)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3915)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4176)
at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:
804)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:
693)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
442)
at org.apache.catalina.core.StandardService.start
(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:
700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.axis2.deployment.DeploymentException:
Processing Operations Modules Unable to start the connector; nested
exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at org.apache.axis2.deployment.ServiceBuilder.populateService
(ServiceBuilder.java:320)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGr
oup(ArchiveReader.java:76)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:118)
... 35 more
Caused by: org.apache.axis2.deployment.DeploymentException: Unable to
start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass
(ServiceBuilder.java:349)
at org.apache.axis2.deployment.ServiceBuilder.populateService
(ServiceBuilder.java:127)
... 37 more
Caused by: java.lang.RuntimeException: Unable to start the connector
at ncl.qosp.controller.LifecycleSupport.initRemoteJmx
(LifecycleSupport.java:192)
at ncl.qosp.controller.LifecycleSupport.startUp
(LifecycleSupport.java:132)
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass
(ServiceBuilder.java:345)
... 38 more
Caused by: java.io.IOException: Cannot bind to URL [rmi://
sealbook.ncl.ac.uk:10099/qosp]: javax.naming.NoPermissionException
[Root exception is java.rmi.ServerException: RemoteException occurred
in server thread; nested exception is:
       java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host]
at javax.management.remote.rmi.RMIConnectorServer.newIOException
(RMIConnectorServer.java:814)
at javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:431)
at ncl.qosp.controller.LifecycleSupport.initRemoteJmx
(LifecycleSupport.java:190)
... 40 more
Caused by: javax.naming.NoPermissionException [Root exception is
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
       java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host]
at com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:122)
at com.sun.jndi.toolkit.url.GenericURLContext.bind
(GenericURLContext.java:208)
at javax.naming.InitialContext.bind(InitialContext.java:359)
at javax.management.remote.rmi.RMIConnectorServer.bind
(RMIConnectorServer.java:635)
at javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:427)
... 41 more
Caused by: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:
385)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:613)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:116)
... 45 more
Caused by: java.rmi.AccessException: Registry.Registry.bind
disallowed; origin /128.240.229.70 is non-local host
at sun.rmi.registry.RegistryImpl.checkAccess(RegistryImpl.java:223)
at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:119)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:
375)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:613)
2006-11-06 11:55:04,041 ERROR
org.apache.axis2.deployment.DeploymentEngine - Invalid service
RoutingService.aar due to Processing Operations Modules Unable to
start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Processing
Operations Modules Unable to start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:124)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy
(DeploymentEngine.java:528)
at org.apache.axis2.deployment.repository.util.WSInfoList.update
(WSInfoList.java:196)
at org.apache.axis2.deployment.RepositoryListener.update
(RepositoryListener.java:227)
at org.apache.axis2.deployment.RepositoryListener.checkServices
(RepositoryListener.java:174)
at org.apache.axis2.deployment.DeploymentEngine.loadServices
(DeploymentEngine.java:88)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices
(WarBasedAxisConfigurator.java:252)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfiguration
Context(ConfigurationContextFactory.java:72)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext
(AxisServlet.java:373)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:
317)
at org.apache.catalina.core.StandardWrapper.loadServlet
(StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup
(StandardContext.java:3915)
at org.apache.catalina.core.StandardContext.start
(StandardContext.java:4176)
at org.apache.catalina.core.ContainerBase.addChildInternal
(ContainerBase.java:759)
at org.apache.catalina.core.ContainerBase.addChild
(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:
524)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:
804)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:
693)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
472)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at org.apache.catalina.startup.HostConfig.lifecycleEvent
(HostConfig.java:310)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1020)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1012)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
442)
at org.apache.catalina.core.StandardService.start
(StandardService.java:450)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:
700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:275)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.axis2.deployment.DeploymentException:
Processing Operations Modules Unable to start the connector; nested
exception is:
java.lang.RuntimeException: Unable to start the connector; nested
exception is:
org.apache.axis2.deployment.DeploymentException: Unable to start the
connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at org.apache.axis2.deployment.ServiceBuilder.populateService
(ServiceBuilder.java:320)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGr
oup(ArchiveReader.java:76)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:118)
... 35 more
Caused by: org.apache.axis2.deployment.DeploymentException: Unable to
start the connector; nested exception is:
java.lang.RuntimeException: Unable to start the connector
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass
(ServiceBuilder.java:349)
at org.apache.axis2.deployment.ServiceBuilder.populateService
(ServiceBuilder.java:127)
... 37 more
Caused by: java.lang.RuntimeException: Unable to start the connector
at ncl.qosp.controller.LifecycleSupport.initRemoteJmx
(LifecycleSupport.java:192)
at ncl.qosp.controller.LifecycleSupport.startUp
(LifecycleSupport.java:132)
at
org.apache.axis2.deployment.ServiceBuilder.loadServiceLifeCycleClass
(ServiceBuilder.java:345)
... 38 more
Caused by: java.io.IOException: Cannot bind to URL [rmi://
sealbook.ncl.ac.uk:10099/qosp]: javax.naming.NoPermissionException
[Root exception is java.rmi.ServerException: RemoteException occurred
in server thread; nested exception is:
       java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host]
at javax.management.remote.rmi.RMIConnectorServer.newIOException
(RMIConnectorServer.java:814)
at javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:431)
at ncl.qosp.controller.LifecycleSupport.initRemoteJmx
(LifecycleSupport.java:190)
... 40 more
Caused by: javax.naming.NoPermissionException [Root exception is
java.rmi.ServerException: RemoteException occurred in server thread;
nested exception is:
       java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host]
at com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:122)
at com.sun.jndi.toolkit.url.GenericURLContext.bind
(GenericURLContext.java:208)
at javax.naming.InitialContext.bind(InitialContext.java:359)
at javax.management.remote.rmi.RMIConnectorServer.bind
(RMIConnectorServer.java:635)
at javax.management.remote.rmi.RMIConnectorServer.start
(RMIConnectorServer.java:427)
... 41 more
Caused by: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.AccessException: Registry.Registry.bind disallowed; origin /
128.240.229.70 is non-local host
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:
385)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:613)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:343)
at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)
at com.sun.jndi.rmi.registry.RegistryContext.bind
(RegistryContext.java:116)
... 45 more
Caused by: java.rmi.AccessException: Registry.Registry.bind
disallowed; origin /128.240.229.70 is non-local host
at sun.rmi.registry.RegistryImpl.checkAccess(RegistryImpl.java:223)
at sun.rmi.registry.RegistryImpl.bind(RegistryImpl.java:119)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:
375)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:240)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:613)
2006-11-06 11:55:04,180 INFO
org.apache.axis2.deployment.DeploymentEngine - Deploying Web service
version.aar
Nov 6, 2006 11:55:04 AM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
Nov 6, 2006 11:55:04 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Nov 6, 2006 11:55:04 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/26 config=null
Nov 6, 2006 11:55:04 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Nov 6, 2006 11:55:04 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2979 ms

Is it possible that
InetAddress.getLocalHost().getCanonicalHostName() is
returning a bogus name? Could you replace it with
.getHostName()?Yes, I did it, but nothing changed, so I tried to hardcode the 'localhost' when I create the JMXServiceURL instead of using the value returned by InetAddress.getLocalHost().get* and it worked.
Could it be because of network settings (I'm running behind a proxy)?
Thanks,
Michele

Similar Messages

  • Must redeploy app or get java.rmi.AccessException: CORBA NO_PERMISSION 9998

    Hello. I'm hoping someone can give me a clue to the source of this problem.
    I have a very simple test application which consists of one EJB which is just a stateless session bean that has a method which return the String "Hello". This method can only be run by a user in the "test" role.
    I have a simple commandline client packaged in the application. I use deploytool to extract the Client.jar and I can run it with appclient - client myClient.jar. This little class connects to the bean in the server (via jndi lookup as per all tutorial example) and calls the sayHello() method. A login dialog appears in order to authenticate the user as it should and everything works perfectly ... BUT ...
    If I stop the server and start it again and try to run the client exactly the same way (appclient - client myClient.jar), I get the error message below. The application is running and I confirm that its there using deploytool and asadmin to list components, etc. The only way I can get it work again is by redeploying the application.
    I've looked around and found nothing about this regarding Sun Java System Application Server Platform Edition 8 2004Q4 Beta (which is what I'm using). I found some vague references to a similar sounding problem from people using Application Server 7, but the work around in those posts references switches and settings in deploytool that dont seem to be there in my version.
    Can anyone suggest a fix? I'd like the application to work upon starting up the server each morning for example without having to redeploy it. I'm glad to provide my test application archives and sources to anyone who would find them useful for solving this problem.
    Thanks!
    Error:
    java.rmi.AccessException: CORBA NO_PERMISSION 9998 Maybe; nested exception is:
    org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION: vmcid: 0x2000 minor code: 1806 completed: Maybe
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:179)
    at com.sun.ejb.containers.BaseContainer.authorizeRemoteMethod(BaseContainer.java:908)
    at com.sun.ejb.containers.StatelessSessionContainer.createEJBObjectImpl(StatelessSessionContainer.java:274)
    at com.sun.ejb.containers.EJBHomeImpl.createEJBObjectImpl(EJBHomeImpl.java:89)
    at com.sun.ejb.containers.EJBHomeInvocationHandler.invoke(EJBHomeInvocationHandler.java:140)
    at $Proxy15.create(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1683)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1543)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:925)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:697)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:454)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1188)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:398)
    Caused by: java.rmi.AccessException: Client is not authorized for this invocation.
    at com.sun.ejb.containers.BaseContainer.authorizeRemoteMethod(BaseContainer.java:906)
    ... 19 more
    ----------END server-side stack trace---------- vmcid: 0x2000 minor code: 1806 completed: Maybe
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:195)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:142)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at com.dcit.bmj.bmo.interfaces._HelloWorldHome_DynamicStub.create(_HelloWorldHome_DynamicStub.java)
    at com.dcit.bmj.client.WasUpClient.main(WasUpClient.java:35)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:237)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:423)
    at com.sun.enterprise.appclient.Main.main(Main.java:96)
    Caused by: org.omg.CORBA.NO_PERMISSION: ----------BEGIN server-side stack trace----------
    org.omg.CORBA.NO_PERMISSION: vmcid: 0x2000 minor code: 1806 completed: Maybe
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:179)
    at com.sun.ejb.containers.BaseContainer.authorizeRemoteMethod(BaseContainer.java:908)
    at com.sun.ejb.containers.StatelessSessionContainer.createEJBObjectImpl(StatelessSessionContainer.java:274)
    at com.sun.ejb.containers.EJBHomeImpl.createEJBObjectImpl(EJBHomeImpl.java:89)
    at com.sun.ejb.containers.EJBHomeInvocationHandler.invoke(EJBHomeInvocationHandler.java:140)
    at $Proxy15.create(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1683)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1543)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:925)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:697)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:454)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1188)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:398)
    Caused by: java.rmi.AccessException: Client is not authorized for this invocation.
    at com.sun.ejb.containers.BaseContainer.authorizeRemoteMethod(BaseContainer.java:906)
    ... 19 more
    ----------END server-side stack trace---------- vmcid: 0x2000 minor code: 1806 completed: Maybe
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:902)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:575)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
    at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
    at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:132)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129)
    ... 10 more

    Hi Raja.
    So Sorry for the delay. Anyway, I've come back to try to do this now and just cant make the problem happen! I'm tearing my hair out to figure out what has changed. In the meantime, I'm going to just move past this. If it shows up again, I'll be sure to post all related files back in this forum.
    Thanks!

  • Java.rmi.AccessException: Registry.Registry.rebind disallowed

    I am getting the following error while creating a client socket. I am not exactly sure what is causing the problem.
    This is happening on windows 2k3 sp2 French dual stack machine.
    java.rmi.AccessException: Registry.Registry.rebind disallowed; origin /fe80:0:0:0:219:b9ff:fe00:d81d is non-local host:java.rmi.AccessException: Registry.Registry.rebind disallowed; origin /fe80:0:0:0:219:b9ff:fe00:d81d is non-local host
    And also I observed the server socket is something different to the normal one ..
    ServerSocket[addr=::/0:0:0:0:0:0:0:0,port=0,localport=11501
    Normally it will be 0.0.0.0/0.0.0.0. I don't know why it is different....
    Any pointers why I am getting that exception and the server socket is =::/0:0:0:0:0:0:0:0?
    Edited by: shash10 on Jun 9, 2008 12:07 AM
    Edited by: shash10 on Jun 9, 2008 12:36 AM

    I am getting the following error while creating a client socket.No, you're getting it while calling Registry.rebind(), because you're doing that from a client that isn't on the same host as the Registry, and that's illegal, as the exception text says. Nothing to do with IPv6 actually.

  • Java.rmi.AccessException: CORBA NO_PERMISSION 9998

    Hi, Friends,
    I am using SUN RI and getting:
    java.rmi.AccessException: CORBA NO_PERMISSION 9998
    The bean was successfully deployed and the look up for the reference
    was successful too and returned an instance:
    Object objref = ctx.lookup("ejb/TestConnection");
    home =(TestConnectionHome)PortableRemoteObject.narrow(objref,
    TestConnectionHome.class);
    But when I try to create a bean:
    bean = home.create();
    I am getting an exception:
    Can't create new bean for TestConnection .
    java.rmi.AccessException: CORBA NO_PERMISSION 9998 Maybe; nested
    exception is:
    org.omg.CORBA.NO_PERMISSION: minor code: 9998 completed:
    Maybe
    java.rmi.AccessException: CORBA NO_PERMISSION 9998 Maybe; nested
    exception is:
    org.omg.CORBA.NO_PERMISSION: minor code: 9998 completed:
    Maybe
    org.omg.CORBA.NO_PERMISSION: minor code: 9998 completed: Maybe
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
    eption(ReplyMessage_1_2.java:93)
    at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
    ClientResponseImpl.java:108)
    at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
    entSC.java:136)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:297)
    at com.sap.mw.jco.jra.test._TestConnectionHome_Stub.create(Unknown
    Sourc
    e)
    Does somebody know what is the cause of it?
    (All the bean methods like create() are public, so it should not be
    the problem.)
    I very appreciate any tips,
    Regards,
    Eugen
    PS: I already set Security on "Support Client Choice".

    I got it finally.
    In the Security, I needed to add to the Role Name "Guest" the User Name "guest"

  • Java.rmi.AccessException: CORBA NO_PERMISSION 0 No

    i m new to j2ee...deployed "AdviceApp" application successfully given in Head First EJB book to sun RI server...when i run the client which is a simple java application on the same m/c as RI server, i get following error
    D:\technical\java\projects\advice>java -cp c:\j2sdkee1.3\lib\j2ee.jar;AdviceAppC
    lient.jar;d:\technical\java\projects\advice\ AdviceClient
    java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
            org.omg.CORBA.NO_PERMISSION:   minor code: 0  completed: No
    org.omg.CORBA.NO_PERMISSION:   minor code: 0  completed: No
            at java.lang.Class.newInstance0(Native Method)
            at java.lang.Class.newInstance(Unknown Source)
            at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
    eption(ReplyMessage_1_2.java:93)
            at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
    ClientResponseImpl.java:108)
            at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
    entSC.java:136)
            at org.omg.CORBA.portable.ObjectImpl._invoke(Unknown Source)
            at headfirst._AdviceHome_Stub.create(Unknown Source)
            at AdviceClient.go(AdviceClient.java:23)
            at AdviceClient.main(AdviceClient.java:11)ne leads will be appreciated.
    thnks in advance

    Never mind...found the solution
    http://java.sun.com/j2ee/sdk_1.3/faq.html#access
    had to redeploy the application after security changes.

  • Exception:java.rmi.AccessException: CORBA NO_PERMISSION 0 No

    I was trying to run the Cart example with the J2EE but got the above exception. I was successful with the Converter example but not work with this one.
    Please help
    Tom

    Here is the exact message:
    D:\OnlineBooks\j2eetutorial\examples\ears>runclient -client CartApp.ear -name Ca
    rtClient -textauth
    Initiating login ...
    Enter Username:guest
    Enter Password:guest123
    Binding name:`java:comp/env/ejb/SimpleCart`
    Caught an unexpected exception!
    java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
    org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
    org.omg.CORBA.NO_PERMISSION: minor code: 0 completed: No
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at com.sun.corba.ee.internal.iiop.messages.ReplyMessage_1_2.getSystemExc
    eption(ReplyMessage_1_2.java:93)
    at com.sun.corba.ee.internal.iiop.ClientResponseImpl.getSystemException(
    ClientResponseImpl.java:108)
    at com.sun.corba.ee.internal.POA.GenericPOAClientSC.invoke(GenericPOACli
    entSC.java:132)
    at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:459)
    at CartHomeStub.create(Unknown Source)
    at CartClient.main(CartClient.java:26)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:22
    9)
    at com.sun.enterprise.appclient.Main.main(Main.java:155)

  • How to Start Java RMI Server Application as Windows NT Service

    Hi!!,
    I have problem regarding the Installation of Java Application as NT Service this Java app in turn will start RMI Registry using LocateRegistry.createRegistry() at some specific port number. The Service is created successfully but i have problem regarding the Accessing of this Remote Object using Lookup() .(ie) I am able to get the RMI Registry Obj Refererce of the Java Rmi Application but couldn't able to Lookup for the Object registered to this Rmi Registry.I am not able to proceed after getting the Rmi Registry reference.
    So any help Regarding this is appreciated.
    Thanks in Advance.
    with regards,
    Ramakrishna M
    Mail: [email protected]

    Hello,
    I have started a Java RMI Server Application as NT Service using JNT (download it from www.eworksmart.com/JNT/ ).
    It is working fine.
    S. Navaneethakrishnan
    [email protected]

  • W2k8R2sp1::Eventlog service does not start::cause: JavaWS service does not start

    Windows Web Server W2k8R2sp1 Problem
    Eventlog service does not start
    - Cause: Java Web Start does not start
    -- Cause: Had a virus in "C:\Program Files (x86)\Java\jre1.6.0_03\bin\javaws.exe"
    (AVG removed file. Re-installed java in: S:\Java\re1.8.0_31
    In registry: file-paths seem to be okay (regedit find: javaws, Java Web Start)
    Can't find a solution on-line.
    What to do?
    It is a dedicated production server managed by remote desktop (Leaseweb.com, ip: [37.48.64.130])
    Any help will be highly appreciated.
    Thanx in advance, 
    Dick

    Hi Vivian,
    Rebooted several times
    The point is the event-viewer is not working. Because the eventlog-process is not running/starting. Because JavaWS-process isn't starting 
    Registry: http://niceware.com/zen/All_registry_20015-03-25_reg.txt
    Processes: http://niceware.com/zen/services-2015-03-25_csv.txt
    This is some info by SC.EXE:
    =========================
    CMD in elevated mode:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Windows\system32>sc queryex eventlog
    SERVICE_NAME: eventlog
            TYPE               : 20  WIN32_SHARE_PROCESS
            STATE              : 1  STOPPED
            WIN32_EXIT_CODE    : 1068  (0x42c)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
            PID                : 0
            FLAGS              :
    C:\Windows\system32>sc queryex javaws
    SERVICE_NAME: javaws
            TYPE               : 10  WIN32_OWN_PROCESS
            STATE              : 1  STOPPED
            WIN32_EXIT_CODE    : 0  (0x0)
            SERVICE_EXIT_CODE  : 0  (0x0)
            CHECKPOINT         : 0x0
            WAIT_HINT          : 0x0
            PID                : 0
            FLAGS              :
    C:\Windows\system32>sc start javaws
    [SC] StartService FAILED 1053:
    The service did not respond to the start or control request in a timely fashion.
    ========
    C:\Windows\system32>sc start eventlog
    [SC] StartService FAILED 1068:
    The dependency service or group failed to start.
    ========
    C:\Windows\system32>sc qc javaws
    [SC] QueryServiceConfig SUCCESS
    SERVICE_NAME: javaws
            TYPE               : 10  WIN32_OWN_PROCESS
            START_TYPE         : 2   AUTO_START
            ERROR_CONTROL      : 0   IGNORE
            BINARY_PATH_NAME   : S:\Java\re1.8.0_31\bin\javaws.exe
            LOAD_ORDER_GROUP   :
            TAG                : 0
            DISPLAY_NAME       : Java Web Start
            DEPENDENCIES       :
            SERVICE_START_NAME : LocalSystem
    C:\Windows\system32>sc qc eventlog
    [SC] QueryServiceConfig SUCCESS
    SERVICE_NAME: eventlog
            TYPE               : 20  WIN32_SHARE_PROCESS
            START_TYPE         : 2   AUTO_START
            ERROR_CONTROL      : 1   NORMAL
            BINARY_PATH_NAME   : C:\Windows\System32\svchost.exe -k LocalServiceNetworkRestricted
            LOAD_ORDER_GROUP   : Event Log
            TAG                : 0
            DISPLAY_NAME       : Windows Event Log
            DEPENDENCIES       : javaws
            SERVICE_START_NAME : NT AUTHORITY\LocalService
    C:\Windows\system32>

  • Rebind Method and java.rmi.server.hostname

    Hello,
    We are trying to execute a server on the internet which is installed in a machine whose private IP address is 10.X.X.XX.
    To access the server by internet, the IP address is 196.XXX.XXX.XX and is converted by NAT to the IP address 10.X.X.XX.
    I start the server with the command:
    java -Djava.rmi.server.hostname=196.XXX.XXX.XXX myServer
    Also, and according some recommendation in this forum, we don't use the "rmiregistry" and instead we use the method:
    Registry r = LocateRegistry.getRegistry(MYPORT);
    r.rebind("MyServer", obj);
    However,
    And it takes about over 4 minutes for this app to execute the rebind method. Does anyone know why ?
    If I start without java.rmi.server.hostname propert. it executes immediatelly, but then I can't access the server from outside firewall.
    Am I missing something?
    Any advice or idea?
    Thanks
    Gerardo
    PS. I am using Java 1.4.1 under Linux Red Hat 9.0.

    I start the server with the command:
    java -Djava.rmi.server.hostname=196.XXX.XXX.XXX myServerThe wait is probably due to your DNS setup. Is a client inside the firewall able to reverse-resolve a 196.xxx.xxx.xxx address?
    EJP

  • RMI AccessException

    I am using RMI, and every time that I run my server application, I have this Exception
    java.rmi.ServerException: Server RemoteException; nested exception is:
    java.rmi.AccessException: Registry.rebind 673.89.65.000/673.89.65.000 !=localhost/127.0.0.1
    I am using Solaris, can anybody tell me what to do with this exception

    Your security manager (probably an RMISecurityManager) is not letting your rebind. What does your policy file say?

  • Java.rmi.AccessExeption: CORBA NO_PERMISSION

    When I try to connect to my ejb using iiop I have an exception: java.rmi.AccessException: CORBA NO_PERMISSION 0 No; nested exception is:
    org.omg.CORBA.NO_PERMISSION: vmcid: 0x0 minor code: 0 completed: No at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(ShutdownUtilDelegate.java:93)........
    Please help!

    is you client application a swing app

  • REGARDING :::Caused by: java.rmi.RemoteException: Transaction Rolledback.;

    Hi ,
    I use weblogic 9.2 server . I got this error and am getting this again and again ...
    actually this is a test bed environment , newly setup one based on production environment.
    can any one help me out ??
    Caused by: java.rmi.RemoteException: Transaction Rolledback.; nested exception is:
    weblogic.transaction.internal.TimedOutException: Transaction timed out after 122 seconds
    BEA1-0012E646C6D14C8E60D6
    at weblogic.ejb.container.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:95)
    at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObject.java:514)
    at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(StatelessEJBObject.java:72)
    at weblogic.ejb.container.internal.BaseEJBObject.postInvokeTxRetry(BaseEJBObject.java:374)
    at com.mountain.molehill.ejb.controller.HandleSystemAdminEJB_rbrj0q_EOImpl.handleEvent(HandleSystemAdminEJB_rbrj0q_EOImpl.java:365)
    ... 29 more
    Caused by: weblogic.transaction.internal.TimedOutException: Transaction timed out after 122 seconds
    BEA1-0012E646C6D14C8E60D6
    at weblogic.transaction.internal.ServerTransactionImpl.wakeUp(ServerTransactionImpl.java:1721)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.processTimedOutTransactions(ServerTransactionManagerImpl.java:1560)
    at weblogic.transaction.internal.TransactionManagerImpl.wakeUp(TransactionManagerImpl.java:1919)
    at weblogic.transaction.internal.ServerTransactionManagerImpl.wakeUp(ServerTransactionManagerImpl.java:1468)
    at weblogic.transaction.internal.WLSTimer.timerExpired(WLSTimer.java:35)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:265)
    at weblogic.work.ServerWorkManagerImpl$WorkAdapterImpl.run(ServerWorkManagerImpl.java:518)
    ... 2 more
    DO I NEED TO CHANGE ANYTHING IN THE CONFIGURATION
    Thanks in advance

    Adding to the above post >>>
    I also get the following errors
    java.sql.SQLException: The transaction is no longer active - status: 'Marked rollback. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 121 seconds
    BEA1-0011E646C6D14C8E60D6]'. No further JDBC access is allowed within this transaction.
         at weblogic.jdbc.wrapper.JTSConnection.checkIfRolledBack(JTSConnection.java:192)
         at weblogic.jdbc.wrapper.JTSConnection.checkConnection(JTSConnection.java:202)
         at weblogic.jdbc.wrapper.ResultSet.preInvocationHandler(ResultSet.java:59)
         at weblogic.jdbc.wrapper.ResultSet_oracle_jdbc_driver_OracleResultSetImpl.getString(Unknown Source)
         at org.hibernate.type.StringType.get(StringType.java:16)
         at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:77)
         at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:68)
         at org.hibernate.type.AbstractType.hydrate(AbstractType.java:80)
         at org.hibernate.type.ComponentType.hydrate(ComponentType.java:422)
         at org.hibernate.type.ComponentType.nullSafeGet(ComponentType.java:182)
         at org.hibernate.loader.Loader.getKeyFromResultSet(Loader.java:726)
         at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:284)
         at org.hibernate.loader.Loader.doQuery(Loader.java:395)
         at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:210)
         at org.hibernate.loader.Loader.doList(Loader.java:1562)
         at org.hibernate.loader.Loader.list(Loader.java:1545)
         at org.hibernate.hql.classic.QueryTranslatorImpl.list(QueryTranslatorImpl.java:886)
         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:840)
         at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
    2007-11-19 03:19:53,358|WARN|org.hibernate.util.JDBCExceptionReporter|logExceptions|SQL Error: 0, SQLState: null
    2007-11-19 03:19:53,358|ERROR|org.hibernate.util.JDBCExceptionReporter|logExceptions|The transaction is no longer active - status: 'Marked rollback. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 121 seconds
    BEA1-0011E646C6D14C8E60D6]'. No further JDBC access is allowed within this transaction.

  • Java.rmi.ServerException: RemoteException occurred in server thread

    I have written a simple CMP Entity Bean,While Running the Client I am getting the Exception,I have included all jars needed.
    EXCEPTION IS
    err in HomeCreatejava.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:287)
    at sun.rmi.transport.Transport$1.run(Transport.java:151)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
    at java.lang.Thread.run(Thread.java:539)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:250)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:226)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:136)
    at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
    at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:128)
    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73)
    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
    at $Proxy0.create(Unknown Source)
    at StudentClient.main(StudentClient.java:39)
    Caused by: java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException; nested exception is:
    java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:140)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
    at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:104)
    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
    at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:487)
    at org.jboss.ejb.Container.invoke(Container.java:726)
    at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:42)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:28)
    at java.lang.reflect.Method.invoke(Method.java:313)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:256)
    at sun.rmi.transport.Transport$1.run(Transport.java:151)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:147)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:463)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
    at java.lang.Thread.run(Thread.java:539)
    Caused by: java.rmi.ServerException: Could not instantiate bean; nested exception is:
    java.lang.InstantiationException
    at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:211)
    at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:122)
    at org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
    at org.jboss.ejb.plugins.EntityCreationInterceptor.invokeHome(EntityCreationInterceptor.java:44)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98)
    ... 20 more
    Caused by: java.lang.InstantiationException
    at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:33)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:263)
    at java.lang.Class.newInstance0(Class.java:301)
    at java.lang.Class.newInstance(Class.java:254)
    at org.jboss.ejb.plugins.BMPPersistenceManager.createBeanClassInstance(BMPPersistenceManager.java:145)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:251)
    at org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:294)
    at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208)
    ... 24 more
    Pls explain what can i do now.
    regards,
    NaveenBabu.A
    my client code is
    import javax.ejb.*;
    import javax.naming.*;
    import java.rmi.*;
    import javax.rmi.*;
    import java.util.*;
    import student.student1.*;
    public class StudentClient
    public static void main(String args[])
    System.out.println("i am in start");
    StudentHome home= null;
    try{
    System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
    System.setProperty("java.naming.provider.url", "localhost:1099");
    Context context = new InitialContext();
    try{
    home = (StudentHome)PortableRemoteObject.narrow(context.lookup("Student"), StudentHome.class);
    }catch(Exception e){System.out.println("err in StudentHome"+e);}
    /* try{
    home.create("Ammamn","A01");
    }catch(Exception e){System.out.println("err in HomeCreate"+e);}*/
    }catch(Exception e){System.out.println("error in client"+e);}
    System.out.println("i am in end");
    }

    Try this,
    Context context = new InitialContext(System.getProperties());

  • New to Java RMI

    I am having problems with the following code that I am currently trying to understand RMI from Java head First, the following are meant to be part of an universal browser that the browser downloads and displays interactive Java GUIs. Can someone explain what I am doing wrong as I am still new to Java please?
    import java.awt.*;
    import javax.swing.*;
    import java.rmi.*;
    import java.awt.event.*;
    public class ServiceBrowser {
       JPanel mainPanel;
       JComboBox serviceList;
       ServiceServer server;
       public void buildGUI() {
          JFrame frame = new JFrame("RMI Browser");
          mainPanel = new JPanel();
          frame.getContentPane().add(BorderLayout.CENTER, mainPanel);
          Object[] services = getServicesList();
          serviceList = new JComboBox(services);
          frame.getContentPane().add(BorderLayout.NORTH, serviceList);
          serviceList.addActionListener(new MyListListener());    
          frame.setSize(500,500);
          frame.setVisible(true);
       void loadService(Object serviceSelection) {
           try {
              Service svc = server.getService(serviceSelection);
              mainPanel.removeAll();
              mainPanel.add(svc.getGuiPanel());
              mainPanel.validate();
              mainPanel.repaint();
            } catch(Exception ex) {
               ex.printStackTrace();
       Object[] getServicesList() {
          Object obj = null;
          Object[] services = null;
          try {
              obj = Naming.lookup("rmi://127.0.0.1/ServiceServer");   
         catch(Exception ex) {
           ex.printStackTrace();
         server = (ServiceServer) obj;
          try {
            services = server.getServiceList();
          } catch(Exception ex) {
             ex.printStackTrace();
         return services;
       class MyListListener implements ActionListener {
          public void actionPerformed(ActionEvent ev) {
              // do things to get the selected service
              Object selection =  serviceList.getSelectedItem();
              loadService(selection);
      public static void main(String[] args) {
         new ServiceBrowser().buildGUI();
    }I am able to compile the code but come up with the following error messages at runtime
    java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is:
         java.net.ConnectException: Connection refused
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at java.rmi.Naming.lookup(Naming.java:84)
         at ServiceBrowser.getServicesList(ServiceBrowser.java:53)
         at ServiceBrowser.buildGUI(ServiceBrowser.java:19)
         at ServiceBrowser.main(ServiceBrowser.java:82)
    Caused by: java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
         at java.net.Socket.connect(Socket.java:529)
         at java.net.Socket.connect(Socket.java:478)
         at java.net.Socket.<init>(Socket.java:375)
         at java.net.Socket.<init>(Socket.java:189)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
         ... 8 more
    java.lang.NullPointerException
         at ServiceBrowser.getServicesList(ServiceBrowser.java:64)
         at ServiceBrowser.buildGUI(ServiceBrowser.java:19)
         at ServiceBrowser.main(ServiceBrowser.java:82)
    Exception in thread "main" java.lang.NullPointerException
         at javax.swing.DefaultComboBoxModel.<init>(DefaultComboBoxModel.java:53)
         at javax.swing.JComboBox.<init>(JComboBox.java:175)
         at ServiceBrowser.buildGUI(ServiceBrowser.java:21)
         at ServiceBrowser.main(ServiceBrowser.java:82)
    The code for the remote implementation compile and runs, but the other code for services compiles but come back with the following error message at runtime:
    Exception in thread "main" java.lang.NoSuchMethodError: main
    I have included one of the services code below this happens with:
    import javax.swing.*;
    import java.awt.event.*;
    import java.io.*;
    public class DiceService implements Service {
        JLabel label;
        JComboBox numOfDice;
        public JPanel getGuiPanel() {
           JPanel panel = new JPanel();
           JButton button = new JButton("Roll 'em!");
           String[] choices = {"1", "2", "3", "4", "5"};
           numOfDice = new JComboBox(choices);
           label = new JLabel("dice values here");
           button.addActionListener(new RollEmListener());
           panel.add(numOfDice);
           panel.add(button);
           panel.add(label);
           return panel;
       public class RollEmListener implements ActionListener {
          public void actionPerformed(ActionEvent ev) {
             // roll the dice
             String diceOutput = "";
             String selection = (String)  numOfDice.getSelectedItem();
             int numOfDiceToRoll = Integer.parseInt(selection);
             for (int i = 0; i < numOfDiceToRoll; i++) {
                int r = (int) ((Math.random() * 6) + 1);
                diceOutput += (" " + r);
            label.setText(diceOutput);
    }

    how I do get suitable server running, can I not test the code on a local ip address first, i have included the remote implementation code below, can you advise how I can resolve this please or point me in the right direction?
    import java.rmi.*;
    import java.util.*;
    import java.rmi.server.*;
    public class ServiceServerImpl extends UnicastRemoteObject implements ServiceServer  {
        HashMap<String, Service> serviceList;
        public ServiceServerImpl() throws RemoteException {
           // start and set up services
           setUpServices();
       private void setUpServices() {
           serviceList = new HashMap<String, Service>();
           serviceList.put("Dice Rolling Service", new DiceService()); 
           serviceList.put("Day of the Week Service", new DayOfTheWeekService()); 
           serviceList.put("Visual Music Service", new MiniMusicService());  
        public Object[] getServiceList() {
           System.out.println("in remote");
           return serviceList.keySet().toArray();
        public Service getService(Object serviceKey) throws RemoteException {       
           Service theService = (Service) serviceList.get(serviceKey);      
           return theService;
        public static void main (String[] args) {
           try {
             Naming.rebind("ServiceServer", new ServiceServerImpl());
            } catch(Exception ex) { }
            System.out.println("Remote service is running");
    }

  • Java.rmi.ConnectException on calling callback method

    I have an interface exposed as a remote service with a simple method to register the callback object on wich the server calls a method to notify an event.
    public void registerForNotification (ExitCodeCallback callback) throws RemoteException;
    public interface ExitCodeCallback extends Remote
       * @param event
       * @throws RemoteException
      public void notifyExitCode (ExitCodeEvent event) throws RemoteException;
    public class ExitCodeEvent implements Serializable
       * Comment for <code>serialVersionUID</code>
      private static final long serialVersionUID = -8542839971016423057L;
      private Integer code;
      private String sourceName;
       * @param source
       * @param exitCode
      public ExitCodeEvent (String source, Integer exitCode)
        exitCode = code;
        sourceName = source;
       * @return Object
      public Object asString ()
        return sourceName + " exited with code " + code;
    }When the server try to call this method causes an exception to be thrown
    java.rmi.ConnectException: Connection refused to host: 26.2.242.76; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
         at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
         at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
         at $Proxy2.notifyExitCode(Unknown Source)
         at it.sogei.jscheduler.rmi.server.SchedulerServicesServerSide$InnerServerExitCodeCallback.notifyExitCode(SchedulerServicesServerSide.java:156)
         at it.sogei.jscheduler.rmi.server.ApplicationTask.notifyExitCode(ApplicationTask.java:129)
         at it.sogei.jscheduler.rmi.server.WaiterThread.run(WaiterThread.java:47)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:516)
         at java.net.Socket.connect(Socket.java:466)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:179)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
         ... 10 morebut, surprisingly, the client receives the event even if the ExitCodeEvent.asString() called on that object print the following line
    null exited with code null.
    I wonder how this could be happened?

    - It happens every single time the callback method is invoked, I see the event been deserialized client-side with the fields initialized with null values and server-side there is the java.rmi.ConnectException.
    - The client can't unexport the callback object, that's because I didn't think to do it.
    this is the method where I start to notify to all the registered client the event
    for (ExitCodeCallback callbackElement : callback)
            try
              callbackElement.notifyExitCode(event);
            catch (RemoteException ex)
              logger.debug("Unable to notify.", ex);
          }where
    List<ExitCodeCallback> callback;and implementation of the callback interface is
    public class ClientExitCodeCallback implements ExitCodeCallback
      transient Logger logger = Logger.getLogger(ClientExitCodeCallback.class);
       * @see it.sogei.jscheduler.ExitCodeCallback#notifyExitCode()
      public void notifyExitCode (ExitCodeEvent event) throws RemoteException
        logger.warn(event.asString());
    }

Maybe you are looking for

  • Photoshop Elements 5.0

    A PC colleague wants to know how to create and SAVE a contact sheet. She has no problem printing them... that seems to be easy. But she is unable to actually SAVE one. Anyone know how to do this please? Thanks.

  • What is raise form_trigger_failure

    db and dev 10g rel2 hi all , could you please tell me about the functionality of this statement ? what can i do with it ? i searched the online help , and i found just one page ,and got nothing from it , and there is nothing in the documentation . th

  • How can I make my movies play on the web!?!!!

    I followed the tutorials by Tom Green on using Edge Animate to package your videos in order to place within Muse. It's actually a simple process, (maybe too simple), because the content plays perfectly locally but once posted the movies are dead. I d

  • Deactivate Profit Center Accounting

    Hello, My client wants to Deactivate Profit Center Accounting in all the Company Codes except in one. So, I think that I should deactivate at Controlling Area Level, but in one Controlling Area I've 6 companies code. 5 I've to deactivate and the anot

  • 'Static' class reloading

    OK - there are no static classses but. . . For a class which provides no way to create an instance of itself, does the class loader ever remove the class from memory? For instance, assume class Foo has a hugh static initializer. No other classes ever