2 Replies Latest reply on Jul 2, 2012 9:33 AM by Elvis D,

    Eclipse RAP single-source application error

    Elvis D, Novice

      Hi all.

       

      I don't know how to solve this situation.

      I have an application based on eclipse rap (rcp single-sourced).

      My application is packaged in an ear jar file structured as following:

       

      OASI.ear

          | lib/

         | core-ejb.jar

         | module-ejb.jar

         | rap.war

         | rcp.war

       

      When I call a remote mothod from RAP the following error is thrown:

      JBAS014154: Failed to marshal EJB parameters

       

      The error is raised by a method that tries to access an EJB Remote interface in the web application.

      I suppose that is something related to Classloading but this bug [1] states that the problem as been solved.

       

      I'm testing it with JBoss AS 7.2.0.Alpha1-SNAPSHOT

      Same kind of error using both 7.1.1 and EAP 6.0.0

       

      Thank you for any tip!

       

      [1] https://issues.jboss.org/browse/AS7-4984

        • 1. Re: Eclipse RAP single-source application error
          Elvis D, Novice

          Juggling a bit I have found this message in the stacktrace that can help (I hope) to understand better the issue.

           

          Caused by: java.lang.ClassNotFoundException: ch.oasi.xlcore.eb.Environment_$$_javassist_2 from [Module "deployment.OASI.ear.core-ejb.jar:main" from Service Module Loader]

           

          I think is related to lazy loading in my application.

           

          What I have tried to do is exclude war's dependency to ejb jar (everything is in any case packaged in war to) doing as following in my jboss-deployment-structure.xml

           

          <jboss-deployment-structure>

            <deployment>

              <dependencies>

                <module name="com.mssql" export="true" />

                <module name="org.jt400" export="true" />

              </dependencies>

            </deployment>

           

            <sub-deployment name="oasi-xlnet3-rap.war">

              <exclusions>

                <module name="deployment.OASI.ear.core-ejb.jar" />

              </exclusions>

            </sub-deployment>

          </jboss-deployment-structure>

           

          Running the application from within eclipse, in the included Jetty webserver runs flawlessy, thus I don't think is related to my Application.

          The same application runs in JBoss 5.

          • 2. Re: Eclipse RAP single-source application error
            Elvis D, Novice

            Full stacktrace

            15:29:36,211 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx]) 02.07.2012 15:29:36.211 [ERROR] Saving record sdh10002

            15:29:36,211 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx]) java.lang.RuntimeException: JBAS014154: Failed to marshal EJB parameters

            15:29:36,211 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:266)

            15:29:36,211 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:255)

            15:29:36,212 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:166)

            15:29:36,212 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:179)

            15:29:36,212 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:43)

            15:29:36,212 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

            15:29:36,212 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125)

            15:29:36,212 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181)

            15:29:36,213 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136)

            15:29:36,213 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)

            15:29:36,213 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)

            15:29:36,213 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at $Proxy63.save(Unknown Source)

            15:29:36,213 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at ch.oasi.client.xlcore.editors.XLuserEditor.save(XLuserEditor.java:297)

            15:29:36,213 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at ch.oasi.client.xlcore.editors.XLuserEditor.save(XLuserEditor.java:1)

            15:29:36,213 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at ch.oasi.client.xlcore.widgets.RowEditor.doSave(RowEditor.java:580)

            15:29:36,214 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.SaveableHelper$2.run(SaveableHelper.java:147)

            15:29:36,214 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:273)

            15:29:36,214 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:481)

            15:29:36,214 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:386)

            15:29:36,214 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)

            15:29:36,214 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66)

            15:29:36,215 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)

            15:29:36,215 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2691)

            15:29:36,215 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:281)

            15:29:36,215 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:260)

            15:29:36,215 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:152)

            15:29:36,215 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.EditorManager.savePart(EditorManager.java:1367)

            15:29:36,216 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.WorkbenchPage.savePart(WorkbenchPage.java:3328)

            15:29:36,216 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3341)

            15:29:36,216 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:76)

            15:29:36,216 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.jface.action.Action.runWithEvent(Action.java:493)

            15:29:36,216 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)

            15:29:36,216 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)

            15:29:36,217 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)

            15:29:36,217 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:167)

            15:29:36,217 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)

            15:29:36,217 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:788)

            15:29:36,217 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:887)

            15:29:36,217 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)

            15:29:36,217 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)

            15:29:36,218 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)

            15:29:36,218 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.swt.events.TypedEvent.processFilters(TypedEvent.java:230)

            15:29:36,218 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:185)

            15:29:36,218 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:208)

            15:29:36,218 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1145)

            15:29:36,218 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1135)

            15:29:36,219 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2733)

            15:29:36,219 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2694)

            15:29:36,219 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2530)

            15:29:36,219 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:702)

            15:29:36,219 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

            15:29:36,219 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:685)

            15:29:36,219 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)

            15:29:36,220 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at ch.oasi.client.workbench.rap.EntryPoint.start(EntryPoint.java:31)

            15:29:36,220 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.rap.ui.internal.application.EntryPointApplicationWrapper.createUI(EntryPointApplicationWrapper.java:38)

            15:29:36,220 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:177)

            15:29:36,220 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:289)

            15:29:36,220 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at java.lang.Thread.run(Thread.java:662)

            15:29:36,220 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)

            15:29:36,221 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx]) Caused by: java.lang.ClassNotFoundException: ch.oasi.xlcore.eb.Environment_$$_javassist_2 from [Module "deployment.OASI.ear.oasi-xlcore-ejb.jar:main" from Service Module Loader]

            15:29:36,221 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

            15:29:36,222 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

            15:29:36,222 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

            15:29:36,222 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

            15:29:36,222 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

            15:29:36,222 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

            15:29:36,222 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at java.lang.Class.forName0(Native Method)

            15:29:36,223 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at java.lang.Class.forName(Class.java:247)

            15:29:36,223 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.ClassLoaderClassCloner.clone(ClassLoaderClassCloner.java:49)

            15:29:36,223 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:157)

            15:29:36,223 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:134)

            15:29:36,223 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:186)

            15:29:36,223 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:134)

            15:29:36,223 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.SerializingCloner.cloneFields(SerializingCloner.java:348)

            15:29:36,224 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:309)

            15:29:36,224 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.SerializingCloner.initSerializableClone(SerializingCloner.java:285)

            15:29:36,224 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:253)

            15:29:36,224 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.marshalling.cloner.SerializingCloner.clone(SerializingCloner.java:134)

            15:29:36,224 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           at org.jboss.as.ejb3.remote.LocalEjbReceiver.clone(LocalEjbReceiver.java:264)

            15:29:36,224 ERROR [stderr] (UIThread [LKUiJv8XIwOtDfeIz1tIRIbx])           ... 58 more