[JBoss Seam] - Re: Seam app on slashdot
by modoc
Michael,
sorry for the long delay, I've been very busy at the day job lately.
The server is a 2.8 GHz Intel single proc box, with only 512 MB of Ram (if I start doing larger Seam apps, I think upgrading the ram will be a big win). It runs about 30 domains of varying traffic, and handles a few thousand e-mail a day (before 10minutemail.com anyhow). It's running debian stable, using Java 1.5.0_05, postfix, IMAPS and apache 2. I have jboss running behind apache (to avoid using an off-port and to avoid using an extra IP.
I have done zero performance tuning of apache, jboss, etc...
During the peak load (about 40,000 unique visitors, and 400,000 pages views in one day) the site was slow but responding. I'm not 100% certain why it was slow. The load average ranged from 0.5 to 2, although was mostly in the 1.0-1.2 range. There was more CPU idle than I expected. The network wasn't even close to maxxed out. I think I pushed about 1 Mbit/sec peak, and I've pushed out a full 10 Mbit from that server before on another website.
It may simply have been the high number of connections waiting to be handled that made the site seem slow, as I didn't seem to be killing the CPU.
Also keep in mind that during the same period tens of thousands of incoming e-mail were pouring in, being handled, and then served out to my application over IMAPS.
I'd like to see what I can do with a tuned set of apps, and greater understanding of what was slowing me down.
Regards,
Modoc/Devon
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992661#3992661
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992661
19 years, 7 months
[JBoss Eclipse IDE (users)] - XDoclet properties not displaying correctly
by GusFish
Hi,
I'm working through the IDE tutorial and tripping when I go to the XDoclet properties page. When I select Properties from the speed menu for the project and then select XDoclet, Eclipse gives me a popup saying "The currently displayed page contains invalid values" and does not display any XDoclet properties.
When I then select a different properties category and then XDoclet again, it then displays a limited subset of the XDoclets properties page:
- the Enable XDoclet checkbox & label
- the label "Define the XDoclet configurations available for generation."
- a blank, white text box.
No other controls etc..
I'm using JBoss IDE 1.6.0.GA installed via the Eclipse installer, on a fresh installation of Eclipse 3.2.1 under WinXP. This is being attempted via the Package Explorer under the Java view.
Can anyone help? Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992659#3992659
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992659
19 years, 7 months
[JBoss Seam] - si:selectItem error parsing
by lowecg2004
(Not sure I should be posting here for si:selectItem)
I just tried to download selectitems-1.1.1beta2.jar but I get the following exception when my page renders:
java.lang.IllegalArgumentException: value must be iteratable
| at org.jboss.seam.selectitems.ui.UISeamSelectItems.createSelectItems(UISeamSelectItems.java:223)
| at org.jboss.seam.selectitems.ui.UISeamSelectItems.getValue(UISeamSelectItems.java:204)
| at org.apache.myfaces.trinidadinternal.renderkit.uix.SelectItemSupport.addSelectItems(SelectItemSupport.java:270)
| at org.apache.myfaces.trinidadinternal.renderkit.uix.SelectItemSupport.getSelectItems(SelectItemSupport.java:90)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.SimpleSelectOneRenderer.encodeAllAsElement(SimpleSelectOneRenderer.java:255)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.FormElementRenderer.encodeAll(FormElementRenderer.java:66)
| at org.apache.myfaces.trinidad.render.CoreRenderer.delegateRenderer(CoreRenderer.java:294)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.renderFieldCellContents(InputLabelAndMessageRenderer.java:139)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer._renderFieldCell(LabelAndMessageRenderer.java:367)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.LabelAndMessageRenderer.encodeAll(LabelAndMessageRenderer.java:263)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.InputLabelAndMessageRenderer.encodeAll(InputLabelAndMessageRenderer.java:117)
| at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:181)
| at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:673)
| at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:67)
| at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:255)
| at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:277)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:70)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:134)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:150)
| at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:76)
| at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:181)
| at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:673)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
| at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:178)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:326)
| at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:290)
| at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:213)
| at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:90)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 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)
I got @SelectItems working okay with a regular <f:selectItems>. I'm using this with Seam 1.1 CR2, Facelets 1.1.11 and Trinidad components.
<tr:selectOneChoice value="#{orderStorageBean.mediaHardDisk}">
| <si:selectItems value="#{hardDisks}" var="hd" label="#{hd.name}" />
| <si:convertEntity entityClass="com.ripuk.model.MediaHardDisk" />
| </tr:selectOneChoice>
Have I done something wrong or is this an incompatibility with Trinidad components?
Cheers,
Chris.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992632#3992632
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992632
19 years, 7 months
[JBoss Seam] - question of possibility: user forwared/coming back
by Echnaton
well, i dont know if this is possible with seam or if there is any great other solution i should use to solve the problem (i'm a newbie related to seam, jsf and ejb...) and i dont expect a detailed answer but i would be thankful for some keywords (even you tell me: seam doesnt provide functionality to make it work easily, do it this or that way :D )
i want to forward a user visiting my site to another site where he logs in into a system with the sites userdata. then the user shall be redirected back to my site and automatically logged in with some information the site sends to me.
the other sites login page will be written in php and the admin doesnt want any java-stuff on his machine so i only see the possibility to communicate via http requests.
if there is only the possibility to work with http-requests then my question would be: what is the best way of getting the information out of a user related http request into the seam-application.
between my an the other side theres the internet. so security is an important issue.
i thought about some sort of security-string thats generated when visiting my site (dunno if thats really necessary since we use ssl. certificate given directly to the admin) and active for only a short time. i would have to pass the string to the site. then the user logs in, i would get the userid and the string back and send an answer with another very short time string (perhaps only this string is necessary) which the other server would use to redirect the user to my page.
well hope you know what i mean or at least what i wanna do, because i dont want to hear anybody say: what a crappy solution, this guy had no idea of what he was doing :P
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992628#3992628
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992628
19 years, 7 months
[JBoss Seam] - @RequestParameter exception on seam-icefaces
by gus888
Hi Gavin,
When I integrated Seam and Icefaces, I got the exception below. If I commented @RequestParameter annotation code in stateful Session scope bean, the exception disappeared. I also found the same topic on Icefaces forum: http://www.icefaces.org/JForum/posts/list/2953.page. Thank you.
14:56:30,921 ERROR [D2DFaceletViewHandler] Problem in renderResponse: java.lang.NullPointerException
| javax.ejb.EJBTransactionRolledbackException: java.lang.NullPointerException
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:131)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy194.select(Unknown Source)
| at com.cvn.controller.common.BaseExplorer$$FastClassByCGLIB$$65feb1d8.invoke(<generated>)
| at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:69)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
| at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
| 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:585)
| 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:38)
| 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:585)
| 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.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:30)
| 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:585)
| 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.ClientSideInterceptor.interceptInvocation(ClientSideInterceptor.java:78)
| at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:47)
| at com.cvn.controller.experiment.ExperimentExplorer$$EnhancerByCGLIB$$fc81b0fc.select(<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:585)
| 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:1793)
| at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1680)
| at org.jboss.seam.Component.getInstance(Component.java:1617)
| at org.jboss.seam.Component.getInstance(Component.java:1594)
| at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:46)
| 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:65)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| at javax.faces.component.UIData.getValue(UIData.java:1019)
| at javax.faces.component.UIData.createDataModel(UIData.java:785)
| at javax.faces.component.UIData.getDataModel(UIData.java:765)
| at javax.faces.component.UIData.setRowIndex(UIData.java:250)
| at com.icesoft.faces.renderkit.dom_html_basic.TableRenderer.encodeChildren(TableRenderer.java:277)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
| at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:341)
| at com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:197)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
| at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:341)
| at com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:197)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
| at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:341)
| at com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:197)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
| at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:341)
| at com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:197)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:524)
| at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:531)
| 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:595)
| Caused by: java.lang.NullPointerException
| at org.jboss.seam.util.Parameters.convertMultiValueRequestParameter(Parameters.java:47)
| at org.jboss.seam.Component.injectParameters(Component.java:1153)
| at org.jboss.seam.Component.inject(Component.java:1116)
| 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:585)
| 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:585)
| 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:585)
| 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:585)
| 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.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:49)
| 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:585)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| ... 118 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992627#3992627
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992627
19 years, 7 months
[JBossWS] - NullPointerException in WSDL11Reader
by NicoSchl
Hi,
I'm using Jboss 4.0.4 GA on Windows XP and Redhat Linux. I'm trying to deploy an EJB 2 SLSB as a web service. I get a NullPointerException
on deployment.
My SEI:
| package za.co.testws.interfaces;
| import java.rmi.*;
| import za.co.testws.services.*;
|
| public interface RequestService extends Remote {
| public Message processClaim(Message messsge) throws RemoteException;
| }
|
SEI Implementation:
| package za.co.testws.services;
| import java.rmi.*;
| import javax.ejb.*;
| import org.apache.log4j.*;
| import za.co.testws.interfaces.*;
|
| public class RequestServiceEJB implements SessionBean, RequestService {
| private Logger logger = Logger.getLogger(this.getClass());
|
| public Message processClaim(Message message) throws RemoteException {
| logger.info("Executing business logic:" + message);
| return message;
| }
| // including the normal ejbActivate, ejbCreate etc with empty implementations
| }
|
| package za.co.testws.services;
|
| public class Message {
| private String name;
| private Integer status;
|
| public Message() {}
| public Message(String name, Integer status) {
| setName(name);
| setStatus(status);
| }
| // the getters & setters
| }
|
The WSDL file: (generated by wscompile from jwsdp 2)
| <?xml version="1.0" encoding="UTF-8"?>
| <definitions name="processClaim"
| targetNamespace="http://za.co.testws.interfaces"
| xmlns:tns="http://za.co.testws.interfaces"
| xmlns="http://schemas.xmlsoap.org/wsdl/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:ns2="http://za.co.testws.interfaces/types">
| <types>
| <schema targetNamespace="http://za.co.testws.interfaces/types"
| xmlns:tns="http://za.co.testws.interfaces/types"
| xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
| xmlns="http://www.w3.org/2001/XMLSchema">
| <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
| <complexType name="Message">
| <sequence>
| <element name="name" type="string" />
| <element name="status" type="soap11-enc:int" />
| </sequence>
| </complexType>
| </schema>
| </types>
| <message name="RequestService_processClaim">
| <part name="Message_1" type="ns2:Message" />
| </message>
| <message name="RequestService_processClaimResponse">
| <part name="result" type="ns2:Message" />
| </message>
| <portType name="RequestServicePort">
| <operation name="processClaim" parameterOrder="Message_1">
| <input message="tns:RequestService_processClaim" />
| <output message="tns:RequestService_processClaimResponse" />
| </operation>
| </portType>
| <binding name="RequestServiceBinding" type="tns:RequestService">
| <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
| style="document" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
| <operation name="processClaim">
| <soap:operation soapAction="http://za.co.testws.interfaces/processClaim"
| xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
| <input>
| <soap:body use="literal" namespace="http://za.co.testws.interfaces" />
| </input>
| <output>
| <soap:body use="literal" namespace="http://za.co.testws.interfaces" />
| </output>
| </operation>
| </binding>
| <service name="ProcessClaim">
| <port name="RequestServicePort"
| binding="tns:RequestServiceBinding">
| <soap:address location="REPLACE_WITH_ACTUAL_URL" />
| </port>
| </service>
| </definitions>
|
The generated jaxrp-mapping file
| <?xml version="1.0" encoding="UTF-8"?>
| <java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.1"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
| <package-mapping>
| <package-type>za.co.testws.interfaces</package-type>
| <namespaceURI>http://za.co.testws.interfaces/types</namespaceURI>
| </package-mapping>
| <package-mapping>
| <package-type>za.co.testws.interfaces</package-type>
| <namespaceURI>http://za.co.testws.interfaces</namespaceURI>
| </package-mapping>
| <java-xml-type-mapping>
| <java-type>za.co.testws.services.Message</java-type>
| <root-type-qname
| xmlns:typeNS="http://za.co.testws.interfaces/types">
| typeNS:Message
| </root-type-qname>
| <qname-scope>complexType</qname-scope>
| <variable-mapping>
| <java-variable-name>name</java-variable-name>
| <xml-element-name>name</xml-element-name>
| </variable-mapping>
| <variable-mapping>
| <java-variable-name>status</java-variable-name>
| <xml-element-name>status</xml-element-name>
| </variable-mapping>
| </java-xml-type-mapping>
| <service-interface-mapping>
| <service-interface>
| za.co.testws.interfaces.ProcessClaim
| </service-interface>
| <wsdl-service-name
| xmlns:serviceNS="http://za.co.testws.interfaces">
| serviceNS:ProcessClaim
| </wsdl-service-name>
| <port-mapping>
| <port-name>RequestServicePort</port-name>
| <java-port-name>RequestServicePort</java-port-name>
| </port-mapping>
| </service-interface-mapping>
| <service-endpoint-interface-mapping>
| <service-endpoint-interface>
| za.co.testws.interfaces.RequestService
| </service-endpoint-interface>
| <wsdl-port-type xmlns:portTypeNS="http://za.co.testws.interfaces">
| portTypeNS:RequestService
| </wsdl-port-type>
| <wsdl-binding xmlns:bindingNS="http://za.co.testws.interfaces">
| bindingNS:RequestServiceBinding
| </wsdl-binding>
| <service-endpoint-method-mapping>
| <java-method-name>processClaim</java-method-name>
| <wsdl-operation>processClaim</wsdl-operation>
| <method-param-parts-mapping>
| <param-position>0</param-position>
| <param-type>za.co.testws.services.Message</param-type>
| <wsdl-message-mapping>
| <wsdl-message
| xmlns:wsdlMsgNS="http://za.co.testws.interfaces">
| wsdlMsgNS:RequestService_processClaim
| </wsdl-message>
| <wsdl-message-part-name>Message_1</wsdl-message-part-name>
| <parameter-mode>IN</parameter-mode>
| </wsdl-message-mapping>
| </method-param-parts-mapping>
| <wsdl-return-value-mapping>
| <method-return-value>
| za.co.testws.services.Message
| </method-return-value>
| <wsdl-message
| xmlns:wsdlMsgNS="http://za.co.testws.interfaces">
| wsdlMsgNS:RequestService_processClaimResponse
| </wsdl-message>
| <wsdl-message-part-name>result</wsdl-message-part-name>
| </wsdl-return-value-mapping>
| </service-endpoint-method-mapping>
| </service-endpoint-interface-mapping>
| </java-wsdl-mapping>
|
My webservices.xml:
| <webservices xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:impl="http://com.underworld.crimeportal/ws4ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
| version="1.1">
|
| <webservice-description>
| <webservice-description-name>RequestServiceEJB</webservice-description-name>
| <wsdl-file>META-INF/wsdl/processClaim.wsdl</wsdl-file>
| <jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
| <port-component>
| <port-component-name>RequestService</port-component-name>
| <wsdl-port>impl:RequestServicePort</wsdl-port>
| <service-endpoint-interface>za.co.testws.interfaces.RequestService</service-endpoint-interface>
| <service-impl-bean>
| <ejb-link>SubmitRequestEJB</ejb-link>
| </service-impl-bean>
| </port-component>
| </webservice-description>
| </webservices>
|
The ejb-jar.xml
| <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd"
| version="2.1">
| <enterprise-beans>
| <session>
| <ejb-name>SubmitRequestEJB</ejb-name>
| <service-endpoint>za.co.testws.interfaces.RequestService</service-endpoint>
| <ejb-class>za.co.testws.services.RequestServiceEJB</ejb-class>
| <session-type>Stateless</session-type>
| <transaction-type>Container</transaction-type>
| </session>
| </enterprise-beans>
| </ejb-jar>
|
The stacktrace:
| 2006-12-10 15:40:35,812 DEBUG [org.jboss.deployment.MainDeployer] (ScannerThread) Starting deployment of package: file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| 2006-12-10 15:40:35,812 DEBUG [org.jboss.deployment.MainDeployer] (ScannerThread) Starting deployment (init step) of package at: file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| 2006-12-10 15:40:35,812 DEBUG [org.jboss.deployment.MainDeployer] (ScannerThread) Copying file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar -> C:\jboss-4.0.4.GA\server\all\tmp\deploy\tmp58316testws.jar
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.deployment.MainDeployer] (ScannerThread) using deployer MBeanProxyExt[jboss.ejb:service=EJBDeployer]
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.ejb.EJBDeployer] (ScannerThread) init, testws.jar
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.ejb.EJBDeployer] (ScannerThread) looking for nested deployments in : file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.deployment.DeploymentInfo] (ScannerThread) createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] (ScannerThread) setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@1be2d65, cl=org.jboss.mx.loading.UnifiedClassLoader3@1babddb{ url=file:/C:/jboss-4.0.4.GA/server/all/tmp/deploy/tmp58316testws.jar ,addedOrder=0}
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] (ScannerThread) setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@1be2d65, cl=org.jboss.mx.loading.UnifiedClassLoader3@1babddb{ url=file:/C:/jboss-4.0.4.GA/server/all/tmp/deploy/tmp58316testws.jar ,addedOrder=0}
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] (ScannerThread) Adding org.jboss.mx.loading.UnifiedClassLoader3@1babddb{ url=file:/C:/jboss-4.0.4.GA/server/all/tmp/deploy/tmp58316testws.jar ,addedOrder=0}
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.deployment.MainDeployer] (ScannerThread) found 0 subpackages of file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.deployment.MainDeployer] (ScannerThread) Watching new file: file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.deployment.MainDeployer] (ScannerThread) create step for deployment file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.ws.server.WebServiceDeployerEJB21] (ScannerThread) create: file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| 2006-12-10 15:40:35,828 DEBUG [org.jboss.ejb.EJBDeployer] (ScannerThread) create, testws.jar
| 2006-12-10 15:40:35,890 DEBUG [org.jboss.ejb.EJBDeployer] (ScannerThread) Verifying file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| 2006-12-10 15:40:35,921 DEBUG [org.jboss.ejb.EJBDeployer.verifier] (ScannerThread) Bean checked: SubmitRequestEJB: Verified.
| 2006-12-10 15:40:35,953 DEBUG [org.jboss.ejb.EJBDeployer] (ScannerThread) Deploying: file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| 2006-12-10 15:40:35,953 DEBUG [org.jboss.system.ServiceController] (ScannerThread) Creating service jboss.j2ee:service=EjbModule,module=testws.jar
| 2006-12-10 15:40:35,953 DEBUG [org.jboss.ejb.EjbModule] (ScannerThread) Creating jboss.j2ee:service=EjbModule,module=testws.jar
| 2006-12-10 15:40:35,953 DEBUG [org.jboss.ejb.EjbModule] (ScannerThread) createService, begin
| 2006-12-10 15:40:35,953 INFO [org.jboss.ejb.EjbModule] (ScannerThread) Deploying SubmitRequestEJB
| 2006-12-10 15:40:35,984 DEBUG [org.jboss.ejb.EjbModule] (ScannerThread) Creating WebClassLoader of class org.jboss.web.WebClassLoader
| 2006-12-10 15:40:36,031 DEBUG [org.jboss.ejb.EjbModule] (ScannerThread) creating binding for SubmitRequestEJB:stateless-rmi-invoker
| 2006-12-10 15:40:36,046 DEBUG [org.jboss.system.ServiceController] (ScannerThread) Creating service jboss.j2ee:jndiName=local/SubmitRequestEJB@21116960,service=EJB
| 2006-12-10 15:40:36,046 DEBUG [org.jboss.system.ServiceController] (ScannerThread) adding depends in ServiceController.register: []
| 2006-12-10 15:40:36,046 DEBUG [org.jboss.ejb.StatelessSessionContainer] (ScannerThread) Creating jboss.j2ee:jndiName=local/SubmitRequestEJB@21116960,service=EJB
| 2006-12-10 15:40:36,046 DEBUG [org.jboss.ejb.StatelessSessionContainer] (ScannerThread) Mapped processClaim HASH -877640360to public za.co.testws.services.Message za.co.testws.services.RequestServiceEJB.processClaim(za.co.testws.services.Message) throws java.rmi.RemoteException
| 2006-12-10 15:40:36,062 DEBUG [org.jboss.system.ServiceController] (ScannerThread) Creating service jboss.j2ee:service=EJB,plugin=pool,jndiName=local/SubmitRequestEJB@21116960
| 2006-12-10 15:40:36,062 DEBUG [org.jboss.ejb.plugins.StatelessSessionInstancePool] (ScannerThread) Creating jboss.j2ee:service=EJB,plugin=pool,jndiName=local/SubmitRequestEJB@21116960
| 2006-12-10 15:40:36,062 DEBUG [org.jboss.ejb.plugins.StatelessSessionInstancePool] (ScannerThread) Created jboss.j2ee:service=EJB,plugin=pool,jndiName=local/SubmitRequestEJB@21116960
| 2006-12-10 15:40:36,062 DEBUG [org.jboss.system.ServiceController] (ScannerThread) Creating dependent components for: jboss.j2ee:service=EJB,plugin=pool,jndiName=local/SubmitRequestEJB@21116960 dependents are: []
| 2006-12-10 15:40:36,062 DEBUG [org.jboss.ejb.StatelessSessionContainer] (ScannerThread) Created jboss.j2ee:jndiName=local/SubmitRequestEJB@21116960,service=EJB
| 2006-12-10 15:40:36,062 DEBUG [org.jboss.system.ServiceController] (ScannerThread) Creating dependent components for: jboss.j2ee:jndiName=local/SubmitRequestEJB@21116960,service=EJB dependents are: []
| 2006-12-10 15:40:36,062 DEBUG [org.jboss.ejb.EjbModule] (ScannerThread) Bound jmxName=jboss.j2ee:jndiName=local/SubmitRequestEJB@21116960,service=EJB, hash=-1549964595into Registry
| 2006-12-10 15:40:36,062 DEBUG [org.jboss.ejb.EjbModule] (ScannerThread) Created jboss.j2ee:service=EjbModule,module=testws.jar
| 2006-12-10 15:40:36,062 DEBUG [org.jboss.system.ServiceController] (ScannerThread) Creating dependent components for: jboss.j2ee:service=EjbModule,module=testws.jar dependents are: []
| 2006-12-10 15:40:36,078 DEBUG [org.jboss.ws.metadata.JSR109ServerMetaDataBuilder] (ScannerThread) START buildMetaData: [url=jar:file:/C:/jboss-4.0.4.GA/server/all/tmp/deploy/tmp58316testws.jar!/META-INF/webservices.xml]
| 2006-12-10 15:40:36,203 DEBUG [org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory] (ScannerThread) parse: jar:file:/C:/jboss-4.0.4.GA/server/all/tmp/deploy/tmp58316testws.jar!/META-INF/wsdl/processClaim.wsdl
| 2006-12-10 15:40:36,984 DEBUG [org.jboss.ws.metadata.wsdl.WSDLInterface] (ScannerThread) new WSDLInterface
| 2006-12-10 15:40:36,984 DEBUG [org.jboss.ws.metadata.wsdl.WSDLInterface] (ScannerThread) setName: RequestService
| 2006-12-10 15:40:36,984 DEBUG [org.jboss.ws.metadata.wsdl.WSDLInterface] (ScannerThread) setQName: {http://za.co.testws.interfaces}RequestService
| 2006-12-10 15:40:36,984 ERROR [org.jboss.deployment.MainDeployer] (ScannerThread) Could not create deployment: file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar
| java.lang.NullPointerException
| at org.jboss.ws.metadata.wsdl.WSDL11Reader.processOperationInput(WSDL11Reader.java:474)
| at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortTypeOperations(WSDL11Reader.java:460)
| at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortType(WSDL11Reader.java:446)
| at org.jboss.ws.metadata.wsdl.WSDL11Reader.processBinding(WSDL11Reader.java:725)
| at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPort(WSDL11Reader.java:1068)
| at org.jboss.ws.metadata.wsdl.WSDL11Reader.processPorts(WSDL11Reader.java:1051)
| at org.jboss.ws.metadata.wsdl.WSDL11Reader.processServices(WSDL11Reader.java:1024)
| at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:119)
| at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:145)
| at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:273)
| at org.jboss.ws.metadata.JSR109ServerMetaDataBuilder.buildMetaData(JSR109ServerMetaDataBuilder.java:111)
| at org.jboss.ws.server.WebServiceDeployerEJB21.createWebServicesMetaData(WebServiceDeployerEJB21.java:113)
| at org.jboss.ws.server.WebServiceDeployer.create(WebServiceDeployer.java:103)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy44.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 2006-12-10 15:40:36,984 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] (ScannerThread) Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@1f511228{ url=file:/C:/jboss-4.0.4.GA/server/all/deploy/testws.jar, deployedLastModified=0 }
|
|
Any help will be appreaciated.
Thanks
Nico
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992621#3992621
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992621
19 years, 7 months
[JBoss Seam] - Re: How many EntityManagers and SFSBs in a web app?
by SmokingAPipe
Ok, more info:
From: http://docs.jboss.com/seam/latest/reference/en/html/configuration.html section 9.4:
anonymous wrote : Hibernate users developed the open session in view pattern to work around this problem (managing DB connections). This pattern is usually implemented as a transaction which spans the entire request.
That's exactly the PHP solution.
anonymous wrote : There are several problems with this idea, the most serious being that we can't be sure that a transaction has been successful until we commit it, but by the time we commit the transaction, we have already rendered the view.
Which is a serious problem and makes web apps look like crap because it will display "your credit card has been charged" on the top of the page and then a "database transaction failed" message below that, leaving the user thinking, "this site is a joke."
anonymous wrote : Furthermore, this is at best a partial solution to the problem, because we can still meet the dreaded LazyInitializationException if we try to re-use the entity object in the next request.
Which is the most serious problem. PHP solves it by not having any objects which survive beyond a single request, meaning that their apps will never scale without hacks to solve that problem. PHP hacks are either clusters with object caching hacks, or cumbersome database clusters to take out the problem of database scalability. Java wins by having real objects able to stay in memory on the server between requests, but that creates the problem of detached objects, which it sounds like Seam solves with its conversation context and SMPC, which is what I need to get working.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992577#3992577
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992577
19 years, 7 months
[EJB 3.0] - Timers in stateful session bean?
by kstrunk
Hi!
I'm writing a polling html chat for my web project. After login a contact list is display to the user which shows which users are also online. This list is refreshed using Ajax every x seconds. For that the users online state is stored in database using an entity bean.
But how to keep the users online state up-to-date? When a user logs out normally he will be set to offline. But what should I do if the user just closes his browser? Is there a way to get an event if a user has not refreshed his buddy list for a long time (> 2x seconds)? For me this looks like a timer which is reset every time the user refreshed his contact list? But as far as I know timers aren't allowed in stateful session bean, are they? Or does anyone has a better idea how to handle this approch?
I'm using EJB3 with JBoss 4.0.5
Best regards,
Strunker
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992565#3992565
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992565
19 years, 7 months
[JBossCache] - PojoCache 2.0: Bug in CacheApiUtil.exists?
by chasta
Hi,
Please note the following code snippet from CacheApiUtil.java:
| public static boolean exists(CacheSPI cache, Fqn fqn, Object key)
| {
| if(cache.getCacheLoader() != null)
| {
| // Has cache loader
| return (cache.get(fqn, key) != null) ? true : false;
| }
|
| Node node = cache.getRoot().getChild(fqn);
| if(node == null) return false;
| Map map = node.getData();
| return (map.values().contains(key)) ? true: false; // <-- HERE
| }
|
(From latest CVS version of JBossCache 2.0)
Why is the contains() called on the map values and not on the map keys? If I understand the intention correctly, isn't this a bug?
This affects the following snippet:
>From CacheFieldInterceptor.java:
| private boolean isPojoDetached(Invocation invocation)
| {
| boolean detached = false;
|
| // PojoInstance.KEY is "PojoInstance"
| // This will always be false, since we're giving it the key and it looks for
| // the value
| if(!CacheApiUtil.exists(cache_, fqn_, PojoInstance.KEY)) // <-- HERE
| {
| detached = true;
| Object obj = invocation.getTargetObject();
| ...
|
It affects our usage of the cache - the cache throws us spurious exceptions about objects being detached from it (PojoCacheAlreadyDetachedException. We're using local mode with optimistic locking).
Is this a bug? Or perhaps I'm missing something? And if so, any idea why are we getting these spurious exceptions?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992555#3992555
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992555
19 years, 7 months
[JBoss AOP] - NoClassDefFoundError HeirarchicalLoaderRepository3
by wallayta
I was using JBoss AOP load-time with JDK1.4. Now trying to use it with jrockit-R26.4.0-jdk1.5.0_06 I get the following error :
java.lang.NoClassDefFoundError: org/jboss/mx/loading/HeirarchicalLoaderRepository3 at org.jboss.aop.deployment.JBossScopedClassLoaderHelper.isScopedClassLoader(JBossScopedClassLoaderHelper.java:64) at org.jboss.aop.deployment.JBossScopedClassLoaderHelper.ifScopedDeploymentGetScopedParentUclForCL(JBossScopedClassLoaderHelper.java:44) at org.jboss.aop.AspectManager.instance(AspectManager.java:334) at org.jboss.aop.deployment.AspectManagerService$1.transform(AspectManagerService.java:216)
I have download jboss-aop_1.5.2GA and I'm using jbossas-4.0.5GA.
I've tried pluggable-implementor.jar and jrockit-pluggable-implementor.jar from lib-50 but none is working.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992548#3992548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992548
19 years, 7 months
[Security & JAAS/JBoss] - Getting Exception while trying to access a Stateless EJB in
by dvuday
Hi...
I am trying to access a Stateless EJB
I am getting an Exception when trying to access the EJB which is deployed in the jboss server.
==========================================
The client program from which I tried to access is :
==========================================
package client;
import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.rmi.PortableRemoteObject;
import examples.ejb21.Hello;
import examples.ejb21.HelloHome;
public class HelloClient
{
public static void main (String args[])throws Exception
{
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.naming.HttpNamingContextFactory");
props.put(Context.PROVIDER_URL,"jnp://localhost:8080");
Context ctx = new InitialContext(props);
Object obj = ctx.lookup("HelloHome");
HelloHome home = (HelloHome)PortableRemoteObject.narrow(obj, HelloHome.class);
Hello hello = home.create();
System.out.println(hello.hello());
hello.remove();
}
}
=============================================================================================
The Exception I got is
javax.naming.NamingException: Failed to retrieve Naming interface [Root exception is java.io.StreamCorruptedException: invalid stream header]
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:69)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at client.HelloClient.main(HelloClient.java:30)
Caused by: java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.(Unknown Source)
at org.jboss.naming.HttpNamingContextFactory.getNamingServer(HttpNamingContextFactory.java:119)
at org.jboss.naming.HttpNamingContextFactory.getInitialContext(HttpNamingContextFactory.java:65)
... 5 more
Exception in thread "main"
========================================================================
Can anybody help me to come out of this Exception??
Thanks in advance
Uday
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992542#3992542
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992542
19 years, 7 months