Exception in IModulePublishHelper.getPublishDirectory() for Geronimo
--------------------------------------------------------------------

                 Key: GERONIMODEVTOOLS-110
                 URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-110
             Project: Geronimo-Devtools
          Issue Type: Bug
          Components: eclipse-plugin
    Affects Versions: 1.x
         Environment: Windows XP
            Reporter: Kathy Chan
            Priority: Critical


Driver:  Geronimo 1.1 unreleased driver g-eclipse-plugin-20060926-2.zip from:

http://people.apache.org/dist/geronimo/eclipse/unstable/

On WTP 1.5.1 09/22 0504 driver using Geronimo 1.1.1 Tomcat server.

When creating a Web service on g3EAR containing the g3 Web module, we need to 
call IModulePublishHelper.getPublishDirectory(), here's the resulting exception:

org.apache.geronimo.kernel.InternalKernelException: 
java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
        java.io.IOException: Unable to deserialize GBeanData 
default/g3EAR/1.0/car?configurationName=default/g3EAR/1.0/car
        at 
org.apache.geronimo.system.jmx.KernelDelegate.getGBeanData(KernelDelegate.java:762)
        at 
org.apache.geronimo.st.v11.core.GeronimoServerBehaviour.getPublishDirectory(GeronimoServerBehaviour.java:179)
        at 
org.eclipse.jst.ws.internal.axis.creation.ui.command.CopyDeploymentFileCommand.execute(CopyDeploymentFileCommand.java:99)
        at 
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:413)
        at 
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:353)
        at 
org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:251)
        at 
org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$5.run(SimpleCommandEngineManager.java:250)
        at 
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
        at 
org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:220)
        at 
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:94)
        at 
org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.performFinish(WizardPageManager.java:250)
        at 
org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.performFinish(DynamicWizard.java:332)
        at 
org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:680)
        at 
org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:355)
        at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
        at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
        at org.eclipse.jface.window.Window.open(Window.java:796)
        at 
org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(DynamicPopupWizard.java:130)
        at 
org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
        at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
        at 
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
        at 
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
        at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at 
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
        at 
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
        at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
        at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
        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 org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
        at org.eclipse.core.launcher.Main.run(Main.java:977)
        at org.eclipse.core.launcher.Main.main(Main.java:952)
Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested 
exception is: 
        java.io.IOException: Unable to deserialize GBeanData 
default/g3EAR/1.0/car?configurationName=default/g3EAR/1.0/car
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:164)
        at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown 
Source)
        at mx4j.remote.rmi.ClientInvoker.invoke(ClientInvoker.java:207)
        at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at mx4j.remote.ClientProxy.invoke(ClientProxy.java:32)
        at mx4j.remote.rmi.ClientUnmarshaller.chain(ClientUnmarshaller.java:65)
        at mx4j.remote.rmi.ClientUnmarshaller.invoke(ClientUnmarshaller.java:54)
        at $Proxy0.invoke(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at mx4j.remote.ClientProxy.invoke(ClientProxy.java:32)
        at 
mx4j.remote.rmi.ClientExceptionCatcher.invoke(ClientExceptionCatcher.java:40)
        at $Proxy0.invoke(Unknown Source)
        at 
org.apache.geronimo.system.jmx.KernelDelegate.invokeKernel(KernelDelegate.java:880)
        at 
org.apache.geronimo.system.jmx.KernelDelegate.getGBeanData(KernelDelegate.java:756)
        ... 50 more
Caused by: java.io.IOException: Unable to deserialize GBeanData 
default/g3EAR/1.0/car?configurationName=default/g3EAR/1.0/car
        at org.apache.geronimo.gbean.GBeanData.readExternal(GBeanData.java:266)
        at 
java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1686)
        at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1644)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
        at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:297)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:146)
        ... 67 more
Caused by: java.io.IOException: Unable to deserialize GBeanData 
default/g3EAR/1.0/car?configurationName=default/g3EAR/1.0/car, attribute: 
managedAttributeStore
        at org.apache.geronimo.gbean.GBeanData.readExternal(GBeanData.java:239)
        ... 73 more
Caused by: java.io.WriteAbortedException: writing aborted; java.io.IOException: 
Unable to write attribute: managedAttributeStore
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
        at org.apache.geronimo.gbean.GBeanData.readExternal(GBeanData.java:235)
        ... 73 more
Caused by: java.io.IOException: Unable to write attribute: managedAttributeStore
        at org.apache.geronimo.gbean.GBeanData.writeExternal(GBeanData.java:189)
        at 
java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1264)
        at 
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
        at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:265)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:271)
        at sun.rmi.transport.Transport$1.run(Transport.java:148)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
        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:534)
Caused by: java.io.NotSerializableException: 
org.apache.geronimo.kernel.config.PersistentConfigurationList$$EnhancerByCGLIB$$66e174d6
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
        at org.apache.geronimo.gbean.GBeanData.writeExternal(GBeanData.java:187)
        ... 12 more

This result in null being returned and we are not able to get the publish 
directory to copy server-config.wsdd.  So the user's deployed Web service get 
wiped out if a republish occurs.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to