[jboss-user] [JBoss Seam] - Component.getInstance and 64bit java

Stankar do-not-reply at jboss.com
Thu Aug 30 03:13:06 EDT 2007


Hello,

I have custom servlet,  when I call


  | 209: PictureShowAction psa = (PictureShowAction) Component.getInstance(PictureShowAction.class);
  | 210: Picture mi = psa.getImage(idLong);
  | 

in this servlet, I get sometimes null value into psa variable.

On my developer notebook (32bit java, tomcat 6.0.10) all works fine, on server (64bit java, tomcat 6.0.13) I get sometimes NullPointerException.

Exception:
java.lang.NullPointerException
  | 	at org.apache.catalina.connector.Request.parseParameters(Request.java:2426)
  | 	at org.apache.catalina.connector.Request.getParameterNames(Request.java:1082)
  | 	at org.apache.catalina.connector.Request.getParameterMap(Request.java:1062)
  | 	at org.apache.catalina.connector.RequestFacade.getParameterMap(RequestFacade.java:414)
  | 	at org.jboss.seam.mock.MockExternalContext.getRequestParameterValuesMap(MockExternalContext.java:282)
  | 	at org.jboss.seam.util.Parameters.getRequestParameters(Parameters.java:46)
  | 	at org.jboss.seam.Component.injectParameters(Component.java:1224)
  | 	at org.jboss.seam.Component.inject(Component.java:1197)
  | 	at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | 	at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
  | 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | 	at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
  | 	at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
  | 	at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
  | 	at cz.bpsolutions.cms.admin.gallery.PictureShowAction_$$_javassist_6.getImage(PictureShowAction_$$_javassist_6.java)
  | 	at cz.bpsolutions.cms.servlet.ContentServlet.doGet(ContentServlet.java:210)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | 	at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:56)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | 	at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53)
  | 	at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
  | 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  | 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
  | 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  | 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
  | 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  | 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
  | 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  | 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
  | 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | 	at java.lang.Thread.run(Thread.java:595)



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4079442#4079442

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4079442



More information about the jboss-user mailing list