geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathy Chan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMODEVTOOLS-45) NPE when publishing to Geronimo server
Date Thu, 12 Jan 2006 16:04:21 GMT
    [ http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-45?page=comments#action_12362543
] 

Kathy Chan commented on GERONIMODEVTOOLS-45:
--------------------------------------------

Actually, there's an even easier way to reproduce the problem:

- install Geronimo runtime
- Create Web project "g2" targeting Geronimo, select add to g2EAR
- Create a HTML file, select Run on Server on the file
- You'll first get the error:

java.lang.Exception: Module Application_ID already exists in the server.  Try to undeploy
it first or use the redeploy command.
org.apache.geronimo.common.DeploymentException: Module Application_ID already exists in the
server.  Try to undeploy it first or use the redeploy command.
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:235)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:102)
	at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:835)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:178)
	at org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:125)
	at org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:835)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:178)
	at org.apache.geronimo.kernel.jmx.MBeanServerDelegate.invoke(MBeanServerDelegate.java:117)
	at mx4j.remote.rmi.RMIConnectionInvoker.invoke(RMIConnectionInvoker.java:219)
	at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:34)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoker.java:99)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectInvoker.java:31)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoker.java:90)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
	at mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:163)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubjectInvoker.java:86)
	at mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvoker.java:80)
	at $Proxy0.invoke(Unknown Source)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:221)
	at sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
	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)

	at org.apache.geronimo.core.internal.GeronimoServerBehaviour.doFail(GeronimoServerBehaviour.java:279)
	at org.apache.geronimo.core.internal.GeronimoServerBehaviour.doDeploy(GeronimoServerBehaviour.java:224)
	at org.apache.geronimo.core.internal.GeronimoServerBehaviour.invokeCommand(GeronimoServerBehaviour.java:200)
	at org.apache.geronimo.core.internal.GeronimoServerBehaviour.publishModule(GeronimoServerBehaviour.java:188)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:658)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:738)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:596)
	at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:799)
	at org.eclipse.wst.server.core.internal.Server.publish(Server.java:788)
	at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:145)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

- Then g2EAR and use project properties to add Geronimo facet to the EAR.
- Remove g2EAR from server and you'll get:

java.lang.NullPointerException
	at org.apache.geronimo.core.commands.SynchronizedDeploymentOp.run(SynchronizedDeploymentOp.java:83)
	at org.apache.geronimo.core.commands.SynchronizedDeploymentOp.execute(SynchronizedDeploymentOp.java:69)
	at org.apache.geronimo.core.internal.GeronimoServerBehaviour.doUndeploy(GeronimoServerBehaviour.java:261)
	at org.apache.geronimo.core.internal.GeronimoServerBehaviour.invokeCommand(GeronimoServerBehaviour.java:208)
	at org.apache.geronimo.core.internal.GeronimoServerBehaviour.publishModule(GeronimoServerBehaviour.java:188)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:658)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:738)
	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:596)
	at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:799)
	at org.eclipse.wst.server.core.internal.Server.publish(Server.java:788)
	at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:145)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

> NPE when publishing to Geronimo server
> --------------------------------------
>
>          Key: GERONIMODEVTOOLS-45
>          URL: http://issues.apache.org/jira/browse/GERONIMODEVTOOLS-45
>      Project: Geronimo-Devtools
>         Type: Bug
>  Environment: Windows XP
>     Reporter: Kathy Chan
>     Priority: Critical

>
> Driver used:  WTP 1.0, Geronimo 1.0 server, Geronimo 01/09 plugins
> After installing Geronimo server runtime and creating a Geronimo server using WTP (there's
no other project or EAR on the server):
> - New ->Web Services -> Web Service client
> - Click Next
> - On the Web Service selection page, paste the following in the URI field at the top
of the page:
>    http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsdl
> - Click Next.
> - In the Client Environment Configuration page, enter a name for a new Web project and
EAR project.  The Web service runtime should be "Apache Axis" and server should be "Apache
Geronimo 1.0".
> - Click Finish would result in:
> Publishing failed
>   Could not publish to the server.
>       java.lang.NullPointerException
>       at org.apache.geronimo.core.commands.DeploymentCmdStatus.isOK(DeploymentCmdStatus.java:115)
>       at org.apache.geronimo.core.internal.GeronimoServerBehaviour.doRedeploy(GeronimoServerBehaviour.java:249)
>       at org.apache.geronimo.core.internal.GeronimoServerBehaviour.invokeCommand(GeronimoServerBehaviour.java:204)
>       at org.apache.geronimo.core.internal.GeronimoServerBehaviour.publishModule(GeronimoServerBehaviour.java:188)
>       at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModule(ServerBehaviourDelegate.java:658)
>       at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publishModules(ServerBehaviourDelegate.java:738)
>       at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:596)
>       at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:799)
>       at org.eclipse.wst.server.core.internal.Server.publish(Server.java:788)
>       at org.eclipse.jst.ws.internal.consumption.ui.command.StartServerCommand$1.run(StartServerCommand.java:185)
>       at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

-- 
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


Mime
View raw message