[JBoss Seam] - NPE in Parameters.java when using ICEfaces
by sjmenden
I only get this exception when using ICEfaces inputText, however the exception ends in a SEAM class, so I think it is most pertinent in the SEAM forum first.
I converted only one of my h:inputText to ice:inputText, when I try to load the page I get the exception:
| java.lang.NullPointerException
| at org.jboss.seam.util.Parameters.convertMultiValueRequestParameter(Parameters.java:47)
| at org.jboss.seam.Component.injectParameters(Component.java:1126)
| at org.jboss.seam.Component.inject(Component.java:1089)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:48)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:51)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at com.fi.apps.annotations.LoggedInInterceptor.checkLoggedIn(LoggedInInterceptor.java:35)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:79)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:33)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:25)
| at org.jboss.seam.util.Work.workInTransaction(Work.java:31)
| at org.jboss.seam.interceptors.TransactionInterceptor.doInTransactionIfNecessary(TransactionInterceptor.java:19)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:28)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
| at org.jboss.seam.intercept.RootInterceptor.createSeamInvocationContext(RootInterceptor.java:144)
| at org.jboss.seam.intercept.RootInterceptor.invokeInContexts(RootInterceptor.java:129)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:102)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:140)
| at org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:75)
| at com.fi.apps.entity.ticketing.TicketHome$$EnhancerByCGLIB$$95d9578c.create(<generated>)
| 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:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:102)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1759)
| at org.jboss.seam.Component.callCreateMethod(Component.java:1707)
| at org.jboss.seam.Component.newInstance(Component.java:1696)
| at org.jboss.seam.Component.getInstance(Component.java:1600)
| at org.jboss.seam.Component.getInstance(Component.java:1567)
| at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:45)
| at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
| at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:85)
| at com.sun.el.parser.AstNot.getValue(AstNot.java:25)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
| at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:508)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:528)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:535)
| at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:273)
| at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:149)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet.service(PersistentFacesServlet.java:394)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:619)
|
ticket.xhtml
| ....
| <tr>
| <td class="name">Name</td>
| <td align="right">
| <s:decorate>
| <ice:inputText id="name" value="#{ticketHome.instance.name}" required="true" partialSubmit="true"/>
| </s:decorate>
| </td>
| </tr>
| ....
|
The TicketHome extends EntityHome and follows the conventions from the SEAM documentation.
The NPE in org.jboss.seam.util.Parameters comes from the line:
String[] array = requestParameters.get(name);
so apparently requestParameters is null, is this a bug introduced by ICEfaces even though it is in the SEAM code?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991677#3991677
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991677
18 years, 1 month
[JBoss Seam] - Seam Log4J wrapper
by monkeyden
I'm trying to log some more verbose information about, like line number and calling method, but I think the Seam logger is stepping on these features of Log4J. For instance, I have this ConversionPattern in my log4j.xml file:
<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{1}.%M (%L)] %m%n"/>
"M" is the method name and "L" is the line number. This ALWAYS result in "debug" and "84", respectively.
My Seam source doesn't match up exactly but it looks like line 84 is, as you might expect, somewhere in here:
public void debug(Object object, Throwable t, Object... params)
| {
| if ( isDebugEnabled() )
| {
| log.debug( interpolate(object, params), t );
| }
| }
|
Has anyone else run into this? Found a solution/workaround?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991672#3991672
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991672
18 years, 1 month
[JBoss jBPM] - Re: Java 5 dependency a problem for Web Console ?
by pfricke
"tom.baeyens(a)jboss.com" wrote : Hi,
|
| We are considering moving to SEAM as the web technology for our jBPM web console. The main concern is that this introduces a dependency on a Java 5 JVM. Note that this dependency will only be there for the web console. NOT FOR THE RUNTIME ENGINE. In case your deployment platform is a Java 1.4.2 JVM, you can still run jBPM there and deploy the webconsole on another JVM.
|
|
The main concern is the dependency this create on AS which is a bigger issue than JVM. We will need to support jBPM on on the microcontainer-based ESB v5 without dragging the entire AS. I believe Seam is set up to do this now or will be. THIS IS CRITIICAL. JBoss ESB with jBPM BPEL and jPDL MUST not prereq the AS so needed AS tech with the ucontainer must be planned for JBoss ESB v5.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991670#3991670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991670
18 years, 1 month