Question for Jetty classloader for RMI call

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Question for Jetty classloader for RMI call

Lin Ren

Hi Team,

 

I meet a problem for MBean settings using RMI. My project registered some mbeans, it can be called successfully using mbean call on the deployed jetty applications, while when I tried to call it via JConsole, below exceptions are thrown:

 

{timestamp:2018.08.14 at 02:45:21 PDT,debuge_level:ERROR,class_name:oracle.ocsg.gateway.storage.db.WlngCacheStoreJdbcBase,line_number:390,message:Failed to load object from table. wlng_mgmt_users}

java.lang.NullPointerException: null

         at oracle.ocsg.gateway.storage.db.WlngCacheStoreJdbc.operationFailed(WlngCacheStoreJdbc.java:56) ~[storage.jar:?]

         at oracle.ocsg.gateway.storage.db.WlngCacheStoreJdbcBase.postProcess(WlngCacheStoreJdbcBase.java:492) ~[storage.jar:?]

         at oracle.ocsg.gateway.storage.db.WlngCacheStoreJdbcBase.load(WlngCacheStoreJdbcBase.java:387) ~[storage.jar:?]

         at oracle.ocsg.gateway.storage.tc.StoreImpl.containsKey(StoreImpl.java:101) ~[storage.jar:?]

         at oracle.ocsg.gateway.user.management.store.ManagementUserMBeanImpl.addUser(ManagementUserMBeanImpl.java:242) ~[ocsg_core.jar:?]

         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]

         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_171]

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]

         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]

         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) ~[?:1.8.0_171]

         at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source) ~[?:?]

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]

         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]

         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) ~[?:1.8.0_171]

         at javax.management.StandardMBean.invoke(StandardMBean.java:405) ~[?:1.8.0_171]

         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) ~[?:1.8.0_171]

         at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source) ~[?:?]

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]

         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]

         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) ~[?:1.8.0_171]

         at sun.rmi.transport.Transport$1.run(Transport.java:200) ~[?:1.8.0_171]

         at sun.rmi.transport.Transport$1.run(Transport.java:197) ~[?:1.8.0_171]

         at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_171]

         at sun.rmi.transport.Transport.serviceCall(Transport.java:196) ~[?:1.8.0_171]

         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) ~[?:1.8.0_171]

         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:835) ~[?:1.8.0_171]

         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688) ~[?:1.8.0_171]

         at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_171]

         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687) [?:1.8.0_171]

         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]

         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]

         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]

{timestamp:2018.08.14 at 02:45:21 PDT,debuge_level:ERROR,class_name:oracle.ocsg.gateway.user.management.store.ManagementUserMBeanImpl,line_number:251,message:Fail to add user opp reason is java.lang.NullPointerException}

{timestamp:2018.08.14 at 02:50:00 PDT,debuge_level:INFO,class_name:oracle.ocsg.gateway.statistics.StatisticsServiceImpl,line_number:881,message:New next license validation time: 1534323600000 last exec time: 1534239900039}

{timestamp:2018.08.14 at 02:58:22 PDT,debuge_level:ERROR,class_name:oracle.ocsg.gateway.storage.db.WlngCacheStoreJdbcBase,line_number:390,message:Failed to load object from table. wlng_mgmt_users}

java.lang.NullPointerException: null

         at oracle.ocsg.gateway.storage.db.WlngCacheStoreJdbc.operationFailed(WlngCacheStoreJdbc.java:56) ~[storage.jar:?]

         at oracle.ocsg.gateway.storage.db.WlngCacheStoreJdbcBase.postProcess(WlngCacheStoreJdbcBase.java:492) ~[storage.jar:?]

         at oracle.ocsg.gateway.storage.db.WlngCacheStoreJdbcBase.load(WlngCacheStoreJdbcBase.java:387) ~[storage.jar:?]

         at oracle.ocsg.gateway.storage.tc.StoreImpl.containsKey(StoreImpl.java:101) ~[storage.jar:?]

         at oracle.ocsg.gateway.user.management.store.ManagementUserMBeanImpl.addUser(ManagementUserMBeanImpl.java:242) ~[ocsg_core.jar:?]

         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_171]

         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_171]

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]

         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]

         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) ~[?:1.8.0_171]

         at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source) ~[?:?]

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]

         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]

         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) ~[?:1.8.0_171]

         at javax.management.StandardMBean.invoke(StandardMBean.java:405) ~[?:1.8.0_171]

         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) ~[?:1.8.0_171]

         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401) ~[?:1.8.0_171]

         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829) ~[?:1.8.0_171]

         at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source) ~[?:?]

         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_171]

         at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_171]

         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357) ~[?:1.8.0_171]

         at sun.rmi.transport.Transport$1.run(Transport.java:200) ~[?:1.8.0_171]

         at sun.rmi.transport.Transport$1.run(Transport.java:197) ~[?:1.8.0_171]

         at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_171]

         at sun.rmi.transport.Transport.serviceCall(Transport.java:196) ~[?:1.8.0_171]

         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) ~[?:1.8.0_171]

         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:835) ~[?:1.8.0_171]

         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688) ~[?:1.8.0_171]

         at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_171]

         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687) [?:1.8.0_171]

         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_171]

         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_171]

         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]

{timestamp:2018.08.14 at 02:58:22 PDT,debuge_level:ERROR,class_name:oracle.ocsg.gateway.user.management.store.ManagementUserMBeanImpl,line_number:251,message:Fail to add user opp reason is java.lang.NullPointerException}

 

I’m hesitating it should be the classloader issue when doing the RMI call. Can any guys suggest something to resolve this issue?

 

Thanks!

 

Lin

 


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users