[JBoss Cache: Core Edition] - getting "[CacheMarshaller210] Unknown Magic Number 97" excep
by dorbd
I am getting the following exception:
08:18:25,820 ERROR [CacheMarshaller210] Unknown Magic Number 97
08:18:25,821 ERROR [RpcDispatcher] exception marshalling object
java.lang.Exception: Unknown magic number 97
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:619)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallMethodCall(CacheMarshaller200.java:656)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:555)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallMethodCall(CacheMarshaller200.java:656)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:555)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:520)
at org.jboss.cache.marshall.CacheMarshaller200.objectFromObjectStream(CacheMarshaller200.java:120)
at org.jboss.cache.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:188)
at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:279)
at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:624)
at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:533)
at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:365)
at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:746)
at org.jgroups.JChannel.up(JChannel.java:1154)
at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:402)
at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:144)
at org.jgroups.protocols.pbcast.GMS.up(GMS.java:780)
at org.jgroups.protocols.FRAG2.up(FRAG2.java:205)
at org.jgroups.protocols.FC.up(FC.java:408)
at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234)
at org.jgroups.protocols.UNICAST.up(UNICAST.java:282)
at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:858)
at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:687)
at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:167)
at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:300)
at org.jgroups.protocols.FD.up(FD.java:285)
at org.jgroups.protocols.MERGE2.up(MERGE2.java:145)
at org.jgroups.protocols.Discovery.up(Discovery.java:245)
at org.jgroups.protocols.TP.passMessageUp(TP.java:1126)
at org.jgroups.protocols.TP.access$100(TP.java:48)
at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1637)
at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1616)
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)
08:18:25,835 ERROR [CacheMarshaller210] Unknown Magic Number 122
08:18:25,836 ERROR [RpcDispatcher] exception marshalling object
java.lang.Exception: Unknown magic number 122
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:619)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallMethodCall(CacheMarshaller200.java:656)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:555)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallMethodCall(CacheMarshaller200.java:656)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:555)
at org.jboss.cache.marshall.CacheMarshaller200.unmarshallObject(CacheMarshaller200.java:520)
at org.jboss.cache.marshall.CacheMarshaller200.objectFromObjectStream(CacheMarshaller200.java:120)
at org.jboss.cache.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:188)
at org.jgroups.blocks.RpcDispatcher.handle(RpcDispatcher.java:279)
at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:624)
at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:533)
at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:365)
at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:746)
at org.jgroups.JChannel.up(JChannel.java:1154)
at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:402)
at org.jgroups.protocols.pbcast.STATE_TRANSFER.up(STATE_TRANSFER.java:144)
at org.jgroups.protocols.pbcast.GMS.up(GMS.java:780)
at org.jgroups.protocols.FRAG2.up(FRAG2.java:205)
at org.jgroups.protocols.FC.up(FC.java:408)
at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234)
at org.jgroups.protocols.UNICAST.up(UNICAST.java:282)
at org.jgroups.protocols.pbcast.NAKACK.handleMessage(NAKACK.java:858)
at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:687)
at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:167)
at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:300)
at org.jgroups.protocols.FD.up(FD.java:285)
at org.jgroups.protocols.MERGE2.up(MERGE2.java:145)
at org.jgroups.protocols.Discovery.up(Discovery.java:245)
at org.jgroups.protocols.TP.passMessageUp(TP.java:1126)
at org.jgroups.protocols.TP.access$100(TP.java:48)
at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1637)
at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1616)
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)
Do you have some clue what is the cause for all of this ?
Regards,
Dor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159160#4159160
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159160
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Re: Upgrade to JBoss 5.0.0Beta4
by arulasha
No Thanks
I have resolved issues by modifying the jms configurations.
Again I got couples of issues related to ClassNotFoundExeception.
Here are Exceptions
WSServerConfig -> java.lang.ClassNotFoundException: org.jboss.wsf.common.management.AbstractServerConfigMBean
vfsfile:/D:/Projects/JBoss5/SVN/jboss/server/lms1/deploy/jsr88-service.xml -> java.lang.ClassNotFoundException: org.jboss.ejb3.Ejb3Deployment
WSMemoryBufferRecorder -> java.lang.ClassNotFoundException: org.jboss.wsf.framework.management.recording.MemoryBufferRecorder
WSNativeDeploymentAspectInstallerEJB -> java.lang.ClassNotFoundException: org.jboss.wsf.framework.deployment.DeploymentAspectInstaller
WSNativeDeploymentAspectInstallerEndpointAPI -> java.lang.ClassNotFoundException: org.jboss.wsf.framework.deployment.DeploymentAspectInstaller
WSEndpointRegistry -> java.lang.ClassNotFoundException: org.jboss.wsf.framework.management.ManagedEndpointRegistry
It seems to me the jars inside deployer directories are not in classpath.
Should we need to explicitly set the class path to those jars ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159156#4159156
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159156
17 years, 10 months
[Installation, Configuration & DEPLOYMENT] - Multiple Strut-Config.xml
by premnathk.chn
Hi all,
I have just upgradee to Jboss 4.0.2 from 4.2.1 GA and when i use two struts-config.xml in my web application i get a problem that my second struts-config.xml is not at all recognised by my application server the same code isworking fine in 4.0.2. i am using struts1.2 with web2.3 and my web.xml looks lie this
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml,/WEB-INF/struts-config- menu.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
i also tried something like this stilll its not workig
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>config/menu</param-name>
<param-value/WEB-INF/struts-config- menu.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
any help would be appreciated.
thanks,
prem
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159154#4159154
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159154
17 years, 10 months
[JBoss jBPM] - Re: Could not send mail
by sanjayce107
I m getting this exception on portal.
10:11:44,772 ERROR [GraphElement] action threw exception: couldn't send email
org.jbpm.JbpmException: couldn't send email
at org.jbpm.mail.Mail.send(Mail.java:152)
at org.jbpm.mail.Mail.send(Mail.java:116)
at org.jbpm.mail.Mail.execute(Mail.java:63)
at org.jbpm.graph.def.Action.execute(Action.java:122)
at org.jbpm.graph.def.Action$$FastClassByCGLIB$$7876e90e.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
at org.jbpm.graph.def.Action$$EnhancerByCGLIB$$87e8dfa2.execute()
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
at org.jbpm.graph.node.MailNode.execute(MailNode.java:29)
at org.jbpm.graph.def.Node.enter(Node.java:319)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$8e7ee646.enter()
at org.jbpm.graph.def.Transition.take(Transition.java:151)
at org.jbpm.graph.def.Node.leave(Node.java:394)
at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)
at org.jbpm.graph.def.Node$$FastClassByCGLIB$$d187eeda.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
at org.jbpm.graph.def.Node$$EnhancerByCGLIB$$8e7ee646.leave()
at org.jbpm.graph.exe.Token.signal(Token.java:195)
at org.jbpm.graph.exe.Token.signal(Token.java:140)
at org.jbpm.graph.exe.Token$$FastClassByCGLIB$$74df1c6e.invoke()
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:163)
at org.jbpm.graph.exe.Token$$EnhancerByCGLIB$$bdd853c2.signal()
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:485)
at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:399)
at org.jbpm.jsf.core.action.CompleteTaskActionListener.handleAction(CompleteTaskActionListener.java:47)
at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:758)
at javax.faces.component.UICommand.broadcast(UICommand.java:368)
at org.jbpm.jsf.taskform.ui.UITaskFormButtonBase.broadcast(UITaskFormButtonBase.java:56)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
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)
Caused by: javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.MessagingException: Exception reading response;
nested exception is:
java.net.SocketException: Connection reset
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at org.jbpm.mail.Mail.send(Mail.java:150)
... 60 more
if any one has an idea about it.please post solution for this .
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159153#4159153
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159153
17 years, 10 months
[EJB/JBoss] - Re: JBOSS 5 (rev 74649) having EJB rmote injection issues
by rweed
As I said, this worked in Beta4 and the approach is right out of the Manning EJB3 book.
Interface:
package ic.poc.wc;
|
| import javax.ejb.Remote;
|
| @Remote
| public interface CoverageWC {
| public int retrieveSubmission(int covSubmissionId);
| }
Implementation:
package ic.poc.wc;
|
| import javax.ejb.Stateless;
|
| @Stateless
| public class CoverageWCBean implements CoverageWC {
| public int retrieveSubmission(int covSubmissionId) {
| return 1;
| }
| }
Usage:
import java.io.IOException;
| import javax.servlet.ServletException;
| import javax.servlet.http.HttpServletRequest;
| import javax.servlet.http.HttpServletResponse;
| import javax.ejb.EJB;
| import ic.poc.wc.*;
|
| public class EJB3TestServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
| static final long serialVersionUID = 1L;
| @EJB
| private CoverageWC wc;
|
| public EJB3TestServlet() {
| super();
| }
|
| protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
| response.setContentType("text/plain");
| System.out.println(new java.util.Date()+"XXXXXXXEEEEEEEEEEEE");
| response.getOutputStream().println("Go !");
| response.getOutputStream().println(new java.util.Date()+"");
| response.getOutputStream().println(wc.retrieveSubmission(1));
| }
|
| protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
| // TODO Auto-generated method stub
| }
| }
I did find a work-around...it required two things:
1. Added 'mappedName="EJB3Test1/CoverageWCBean/remote"' to the @EJB annotation in the servlet.
2. That then created another exception which required that I set CallByValue=true in the Naming service.
Why are these required now?
tia, Rick
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159138#4159138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159138
17 years, 10 months