Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting NullPointerException during the binding process in WAS 7.0 on WinXP

56 views
Skip to first unread message

Gota

unread,
Nov 10, 2009, 1:40:11 AM11/10/09
to
Hi,

I'm getting NullPointerException when I try to start my application on WebSphere Application Server 7.0.0.0, running on Windows XP SP3, installed with WAS 7.0 Win 32bit.zip.

The application is based on Seam 2.2.0.GA, which provides some example applications deployable to WAS 7.0 and this example application (jboss-seam-booking-jee5) is running fine on thie WAS7.0.

I've installed on my local windows box and then created a simple application with Maven2 by following the working example application and deployed to WAS, main components/configurations as follows, (also ear file is attached):

application.xml


seam-module-packaging


seam-module-web-1.0.2-SNAPSHOT.war
/seam-ejb-ex



seam-module-ejbs-1.0.1-SNAPSHOT.jar


jboss-seam-2.2.0.GA.jar

ejb-jar.xml







RegisterAction

seam-ejb-ex/AuthenticatorAction
Session
au.com.spatialvision.ice.prototype.Authenticator





org.jboss.seam.ejb.SeamInterceptor




*
org.jboss.seam.ejb.SeamInterceptor


persistence.xml



org.hibernate.ejb.HibernatePersistence

!--
jdbc/__default

java:/DefaultDS

DefaultDatasource









!--



Class loader
Class loader order: Classes loaded with local class loader first (parent last)


When I try to start the application, it fails and the log shows as follows:


[10/11/09 16:17:35:962 EST] 0000001d CompositionUn A WSVR0190I: Starting composition unit WebSphere:cuname=seam-module-packaging in BLA WebSphere:blaname=seam-module-packaging.
[10/11/09 16:17:37:149 EST] 0000001d ApplicationMg A WSVR0200I: Starting application: seam-module-packaging
[10/11/09 16:17:37:149 EST] 0000001d ApplicationMg A WSVR0204I: Application: seam-module-packaging Application build level: Unknown
[10/11/09 16:17:38:243 EST] 0000001d EJBContainerI I WSVR0037I: Starting EJB jar: seam-module-ejbs-1.0.1-SNAPSHOT.jar
[10/11/09 16:17:38:259 EST] 0000001d EJBContainerI I CNTR0167I: The server is binding the au.com.spatialvision.ice.prototype.Authenticator interface of the AuthenticatorAction enterprise bean in the seam-module-ejbs-1.0.1-SNAPSHOT.jar module of the seam-module-packaging application. The binding location is: ejblocal:seam-module-packaging/seam-module-ejbs-1.0.1-SNAPSHOT.jar/AuthenticatorAction#au.com.spatialvision.ice.prototype.Authenticator
[10/11/09 16:17:38:259 EST] 0000001d EJBContainerI I CNTR0167I: The server is binding the au.com.spatialvision.ice.prototype.Authenticator interface of the AuthenticatorAction enterprise bean in the seam-module-ejbs-1.0.1-SNAPSHOT.jar module of the seam-module-packaging application. The binding location is: ejblocal:au.com.spatialvision.ice.prototype.Authenticator
[10/11/09 16:17:38:259 EST] 0000001d EJBContainerI E WSVR0040E: addEjbModule failed for seam-module-ejbs-1.0.1-SNAPSHOT.jar [class com.ibm.ws.runtime.component.DeployedEJBModuleImpl]
java.lang.NullPointerException
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:169)
at com.ibm.ws.metadata.ComponentDataObject.getAnnotationsFromClass(ComponentDataObject.java:994)
at com.ibm.ws.metadata.ComponentDataObject.finishCDO(ComponentDataObject.java:308)
at com.ibm.ws.runtime.component.EJBContainerImpl.startModule(EJBContainerImpl.java:2607)
at com.ibm.ws.runtime.component.EJBContainerImpl.start(EJBContainerImpl.java:3825)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1162)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1313)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:611)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:938)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:740)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1312)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4279)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4367)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:255)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplicationDynamically(ApplicationMgrImpl.java:1317)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:2089)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:437)
at com.ibm.ws.runtime.component.CompositionUnitImpl.start(CompositionUnitImpl.java:122)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.start(CompositionUnitMgrImpl.java:380)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:644)
at com.ibm.ws.runtime.component.CompositionUnitMgrImpl.startCompositionUnit(CompositionUnitMgrImpl.java:613)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1085)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:966)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:848)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:773)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1313)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1206)
at com.ibm.ws.management.commands.AdminServiceCommands$InvokeCmd.execute(AdminServiceCommands.java:251)
at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:239)
at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:564)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1384)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:104)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:785)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)

at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:325)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1070)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:273)
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:319)
at com.ibm.isclite.container.controller.InformationController.processForwardConfig(InformationController.java:207)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1486)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:528)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1384)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
at com.ibm.ws.console.core.servlet.WSCUrlFilter.setUpCommandAssistence(WSCUrlFilter.java:927)
at com.ibm.ws.console.core.servlet.WSCUrlFilter.continueStoringTaskState(WSCUrlFilter.java:494)
at com.ibm.ws.console.core.servlet.WSCUrlFilter.doFilter(WSCUrlFilter.java:315)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:852)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:785)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:859)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1772)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)

[10/11/09 16:17:38:274 EST] 0000001d EJBContainerI I WSVR0041I: Stopping EJB jar: seam-module-ejbs-1.0.1-SNAPSHOT.jar
[10/11/09 16:17:38:290 EST] 0000001d EJBContainerI I WSVR0059I: EJB jar stopped: seam-module-ejbs-1.0.1-SNAPSHOT.jar
[10/11/09 16:17:38:306 EST] 0000001d DeployedAppli W WSVR0206E: Module, seam-module-ejbs-1.0.1-SNAPSHOT.jar, of application, seam-module-packaging.ear/deployments/seam-module-packaging, failed to start
[10/11/09 16:17:38:306 EST] 0000001d ApplicationMg W WSVR0101W: An error occurred starting, seam-module-packaging
[10/11/09 16:17:38:306 EST] 0000001d ApplicationMg A WSVR0217I: Stopping application: seam-module-packaging
[10/11/09 16:17:38:321 EST] 0000001d ApplicationMg A WSVR0220I: Application stopped: seam-module-packaging

Could you please help me identifying what could cause the exception in: at com.ibm.ws.metadata.ComponentDataObject.getAnnotationsFromClass(ComponentDataObject.java:994)

I am new to WAS and it has been a big challenge to get this point with help from many good references, forum posts etc. however this particular exception has not been mentioned anywhere yet.

Thank you for your help.

Gota

Gota

unread,
Nov 10, 2009, 11:17:22 PM11/10/09
to
self answered, thanks.
0 new messages