[EJB/JBoss] - HttpInvoker for EJBs on 4.0.5GA doesn't work
by Cyberax
HttpInvoker on 4.0.5GA doesn't correctly marshal exceptions from EJB methods.
I'm getting this exception:
| org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:201)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
| at $Proxy1.getPossibleFAs(Unknown Source)
| at com.sd.sdmain.gui.login.LoginDialog$5.run(LoginDialog.java:163)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
| at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
| at java.util.concurrent.FutureTask.run(FutureTask.java:123)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.io.StreamCorruptedException: invalid stream header
| at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:753)
| at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
| at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:73)
| at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:52)
| at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:119)
| at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
| at org.jboss.remoting.marshal.http.HTTPUnMarshaller.read(HTTPUnMarshaller.java:131)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:175)
| ... 23 more
|
on the CLIENT when I'm throwing from server method (or receive EJBAccessException from JBoss). All necessary class definitions are available on the client.
I've tried to change serialization type from "java" to "jboss":
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
| <depends>jboss.aop:service=AspectDeployer</depends>
| <!--attribute name="InvokerLocator">socket://${jboss.bind.address}:3873</attribute-->
| <attribute name="InvokerLocator">${custom.server.connector}://${custom.server.host}:${custom.server.port}/servlet-invoker/ServerInvokerServlet?serializationtype=jboss</attribute>
|
| <attribute name="Configuration">
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </attribute>
| </mbean>
|
But now I get ANOTHER exception:
| org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:201)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
| at $Proxy1.getSelf(Unknown Source)
| at com.sd.sdmain.gui.login.LoginDialog$5.run(LoginDialog.java:161)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
| at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
| at java.util.concurrent.FutureTask.run(FutureTask.java:123)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.ClassCastException: org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput
| at org.jboss.aop.util.MarshalledValue.writeExternal(MarshalledValue.java:190)
| at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.aop.metadata.SimpleMetaData.writeExternal(SimpleMetaData.java:226)
| at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.aop.joinpoint.MethodInvocation.writeExternal(MethodInvocation.java:321)
| at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
| at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
| at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
| at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
| at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
| at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:287)
| at org.jboss.remoting.marshal.http.HTTPMarshaller.write(HTTPMarshaller.java:69)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:164)
| ... 23 more
|
I've tried to search the web for this exception and found only one thread on this forum with this problem: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=89387
Does anybody have any ideas how to solve it?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989701#3989701
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989701
19Â years, 5Â months
[Management, JMX/JBoss] - While undeploying web application using jmx-console stop met
by avinashwable
When I try to undeploy my web application using stop method of jmx-console it halts for some time after the message "[StandardService] Stopping service jboss.web" and then gives following error message ...-----------------------------------------------------------------------------------
WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
-----------------------------------------------------------------------------------
This message is repeated forever,
nothing is accesible after that, not even a jboss-console.
Detailed log after I click stop button on jmx-console is given below... Does anyone has any idea about it?
19:28:51,503 INFO [TomcatDeployer] undeploy, ctxPath=/earray, warUrl=.../deploy/earray.war/
19:28:51,534 INFO [Server] Runtime shutdown hook called, forceHalt: true
19:28:51,566 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
19:28:51,566 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
19:28:51,566 INFO [StandardWrapper] Waiting for 1 instance(s) to be deallocated
19:28:52,584 INFO [StandardWrapper] Waiting for 1 instance(s) to be deallocated
19:28:53,853 INFO [StandardWrapper] Waiting for 1 instance(s) to be deallocated
19:28:53,963 INFO [TomcatDeployer] undeploy, ctxPath=/eArrayMonitor, warUrl=.../deploy/eArrayMonitor.war/
19:28:53,978 INFO [TomcatDeployer] undeploy, ctxPath=/downloadservice, warUrl=.../tmp/deploy/tmp53638downloadservice-exp.war
/
19:28:54,151 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=earr
ay' from JNDI name 'java:earray'
19:28:54,229 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,na
me=JmsXA' from JNDI name 'java:JmsXA'
19:28:54,245 INFO [testTopic] Unbinding JNDI name: topic/testTopic
19:28:54,245 INFO [securedTopic] Unbinding JNDI name: topic/securedTopic
19:28:54,245 INFO [testDurableTopic] Unbinding JNDI name: topic/testDurableTopic
19:28:54,245 INFO [testQueue] Unbinding JNDI name: queue/testQueue
19:28:54,260 INFO [A] Unbinding JNDI name: queue/A
19:28:54,276 INFO [B] Unbinding JNDI name: queue/B
19:28:54,276 INFO [C] Unbinding JNDI name: queue/C
19:28:54,276 INFO [D] Unbinding JNDI name: queue/D
19:28:54,276 INFO [ex] Unbinding JNDI name: queue/ex
19:28:54,292 INFO [DLQ] Unbinding JNDI name: queue/DLQ
19:28:54,292 INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=Defa
ultDS' from JNDI name 'java:DefaultDS'
19:28:55,780 INFO [HypersonicDatabase] Database standalone closed clean
19:28:55,827 INFO [TreeCache] stopService(): closing the channel
19:28:56,156 INFO [TreeCache] stopService(): stopping the dispatcher
19:28:56,172 INFO [Http11Protocol] Pausing Coyote HTTP/1.1 on http-0.0.0.0-8080
19:28:57,174 INFO [StandardService] Stopping service jboss.web
19:30:31,441 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
19:30:31,441 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnect
ionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that h
as been shut down: ManagedConnectionFactory is null.)
19:32:31,841 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null
19:32:31,841 ERROR [JDBCExceptionReporter] You are trying to use a connection factory that has been shut down: ManagedConnect
ionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that h
as been shut down: ManagedConnectionFactory is null.)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989698#3989698
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989698
19Â years, 5Â months
[JBoss jBPM] - Re: assignment expression
by Ahmed Abd-ElHaffiez
i can't find any documentation concerning this issue. but i think it means some kind of hierarchy..for example u want this task to be assigned to the manager in the HR department and not every body.
so u would specify previous-->group(hr)-->member(manager). i am not sure abt my answer.
I tried to work on simple assignments, example:
<task name="mystask">
| <assignment expression="user(ernie)"></assignment>
| </task>
well, it works fine.
but it didn't work for groups assignment. i don't know y it doesn't work when i say
<task name="mystask">
| <assignment expression="group(hr)"></assignment>
| </task>
i find that anybody can access the task and not only HR department.
is there any document for the membership assignng in the DB? wt i get is that 3 tables are responsible for this (grupID, userId, membershipID) anythg else i miss?
any one can help me understand wt is the problem abt that?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989696#3989696
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989696
19Â years, 5Â months
[JBoss Seam] - Page action with non-null outcome with redirect possible?
by dilator
If I have a page action with a non-null redirect (a JSF outcome with redirect/ specified in the navigation rule) I get the following error:
| java.lang.IllegalStateException: No page context active
| at org.jboss.seam.core.FacesPage.instance(FacesPage.java:83)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:219)
| at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
| at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
| 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.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 myanonymousproject.tracking.TrackingFilter.doFilter(TrackingFilter.java:184)
| 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.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)
|
It works fine without the redirect/ element in faces-config.xml or by specifying an explicit view id as the return value for my action method.
Is this possible?
Thanks - Ben
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989692#3989692
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989692
19Â years, 5Â months