0 Replies Latest reply on Nov 28, 2007 10:57 AM by 474022

    loader constraints violated when linking..

    474022
      Hi,

      I have problem to start my EJB 2.1 application. I have successfully deployed EJB module, but every time I try to connect by client I get error. The log is follow:

      ov 28, 2007 11:40:56 AM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
      WARNING: Exception returned by remote server: {0}
      oracle.oc4j.rmi.OracleRemoteException: java.lang.LinkageError: loader constraints violated when linking oracle/svcmsg/ServiceMessage class
           at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
           at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:69)
           at com.evermind.server.ejb.interceptor.system.TxSupportsInterceptor.invoke(TxSupportsInterceptor.java:39)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
           at com.evermind.server.ejb.AbstractEJBHome.OC4J_invokeMethod(AbstractEJBHome.java:723)
           at AmBFormStartBean_RemoteHomeProxy_4oo8in0.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:585)
           at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
           at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
           at java.lang.Thread.run(Thread.java:595)
      at connection to /192.168.1.74
           at oracle.oc4j.rmi.OracleRemoteException.receive(OracleRemoteException.java:112)
           at oracle.oc4j.rmi.RmiTransport.annotateException(RmiTransport.java:149)
           at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:859)
           at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)
           at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
           at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
           at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
           at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
           at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
           at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
           at java.lang.Thread.run(Thread.java:595)

           Nested exception is:
      java.lang.LinkageError: loader constraints violated when linking oracle/svcmsg/ServiceMessage class
           at AmBFormStartBean_RemoteHomeProxy_4oo8in0.newCreate(Unknown Source)
           at com.evermind.server.ejb.interceptor.system.StatefulCreateInterceptor.invoke(StatefulCreateInterceptor.java:93)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.interceptor.system.TxSupportsInterceptor.invoke(TxSupportsInterceptor.java:37)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
           at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
           at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
           at com.evermind.server.ejb.AbstractEJBHome.OC4J_invokeMethod(AbstractEJBHome.java:723)
           at AmBFormStartBean_RemoteHomeProxy_4oo8in0.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:585)
           at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
           at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
           at java.lang.Thread.run(Thread.java:595)
      at connection to /192.168.1.74
           at oracle.oc4j.rmi.OracleRemoteException.receive(OracleRemoteException.java:123)
           at oracle.oc4j.rmi.RmiTransport.annotateException(RmiTransport.java:149)
           at com.evermind.server.rmi.RMIClientConnection.handleMethodInvocationResponse(RMIClientConnection.java:859)
           at com.evermind.server.rmi.RMIClientConnection.handleOrmiCommandResponse(RMIClientConnection.java:287)
           at com.evermind.server.rmi.RMIClientConnection.dispatchResponse(RMIClientConnection.java:242)
           at com.evermind.server.rmi.RMIClientConnection.processReceivedCommand(RMIClientConnection.java:224)
           at com.evermind.server.rmi.RMIConnection.handleCommand(RMIConnection.java:152)
           at com.evermind.server.rmi.RMIConnection.listenForOrmiCommands(RMIConnection.java:127)
           at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:107)
           at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
           at java.lang.Thread.run(Thread.java:595)
      JBO-30003: The application pool (bse.client.bc4j.document.AmBFormStart9iAS) failed to checkout an application module due to the following exception:
      oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.ApplicationModuleCreateException, msg=JBO-25222: Unable to create application module.
           at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)
           at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
           at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
           at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
           at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
           at oracle.adf.model.bc4j.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:271)
           at bse.client.swing.Bse10MetaObjectManager.createDataControl(Bse10MetaObjectManager.java:853)
           at bse.client.swing.Bse10MetaObjectManager.createApplicationObject(Bse10MetaObjectManager.java:711)
           at bse.client.swing.BFormStartAm.boundForm(BFormStartAm.java:1282)
           at bse.client.swing.BFormStartAm.getAM(BFormStartAm.java:525)
           at bse.client.swing.BFormStartAm.logonOn(BFormStartAm.java:543)
           at bse.client.swing.BFormStartAm.mav$logonOn(BFormStartAm.java:39)
           at bse.client.swing.BFormStartAm$2.keyReleased(BFormStartAm.java:421)
           at java.awt.Component.processKeyEvent(Component.java:5449)
           at javax.swing.JComponent.processKeyEvent(JComponent.java:2713)
           at java.awt.Component.processEvent(Component.java:5265)
           at java.awt.Container.processEvent(Container.java:1966)
           at java.awt.Component.dispatchEventImpl(Component.java:3955)
           at java.awt.Container.dispatchEventImpl(Container.java:2024)
           at java.awt.Component.dispatchEvent(Component.java:3803)
           at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
           at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:672)
           at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:920)
           at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:798)
           at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:636)
           at java.awt.Component.dispatchEventImpl(Component.java:3841)
           at java.awt.Container.dispatchEventImpl(Container.java:2024)
           at java.awt.Window.dispatchEventImpl(Window.java:1774)
           at java.awt.Component.dispatchEvent(Component.java:3803)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
           at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


      I have copied one custom JAR file in /applib folder and this file requires some of the ADF libraries provided in BC4j/lib. As I can see the class "ServiceMessage.class" is avalible from "bc4jct.jat" and "bc4jmt.jar". I guess the problem exists because some class loader conflict.

      Thanks for any halp,

      Igor.