[JBoss JIRA] (ISPN-8018) ClassNotFoundException (jboss marshalling) during application deployment in embedded mode
by Dan Berindei (JIRA)
[ https://issues.jboss.org/browse/ISPN-8018?page=com.atlassian.jira.plugin.... ]
Dan Berindei updated ISPN-8018:
-------------------------------
Status: Open (was: New)
> ClassNotFoundException (jboss marshalling) during application deployment in embedded mode
> -----------------------------------------------------------------------------------------
>
> Key: ISPN-8018
> URL: https://issues.jboss.org/browse/ISPN-8018
> Project: Infinispan
> Issue Type: Bug
> Reporter: Wolf-Dieter Fink
> Assignee: Dan Berindei
>
> If an application war or ear is re-deployed the logfile is exhausted with ClassNotFoundExceptions
> SEVERE [org.jgroups.blocks.RequestCorrelator] (OOB-4,jboss9049-57857) failed unmarshalling buffer into return value: java.lang.ClassNotFoundException: org.jboss
> .marshalling.TraceInformation from [Module "deployment.udm-core-42.0.0.37.ear.jaxws-udm-2.0.war:main" from Service Module Loader]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.7.Final-redhat-1]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.7.Final-redhat-1]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.7.Final-redhat-1]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.7.Final-redhat-1]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.7.Final-redhat-1]
> at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_131]
> at java.lang.Class.forName(Class.java:278) [rt.jar:1.7.0_131]
> at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:131)
> at org.jboss.marshalling.AbstractClassResolver.resolveClass(AbstractClassResolver.java:112)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:948)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1255)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:224)
> at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1745)
> at org.jboss.marshalling.river.RiverObjectInputStream.defaultReadObject(RiverObjectInputStream.java:81)
> at java.lang.Throwable.readObject(Throwable.java:914) [rt.jar:1.7.0_131]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_131]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_131]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_131]
> at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_131]
> at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:307)
> at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1637)
> at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
> at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
> at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1285)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:224)
> at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1745)
> at org.jboss.marshalling.river.RiverObjectInputStream.defaultReadObject(RiverObjectInputStream.java:81)
> at java.lang.Throwable.readObject(Throwable.java:914) [rt.jar:1.7.0_131]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_131]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_131]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_131]
> at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_131]
> at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:307)
> at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1637)
> at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
> at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
> at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1606)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1285)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
> at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
> at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:44) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:36) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.marshall.core.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:442) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.marshall.core.ExternalizerTable.readObject(ExternalizerTable.java:230) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.marshall.core.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:149) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:354)
> at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
> at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
> at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:135) [infinispan-commons-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.marshall.core.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:106) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.commons.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:80) [infinispan-commons-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectFromBuffer(MarshallerAdapter.java:28) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:390)
> at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:250)
> at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:675)
> at org.jgroups.JChannel.up(JChannel.java:739)
> at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1029)
> at org.jgroups.protocols.FRAG2.up(FRAG2.java:165)
> at org.jgroups.protocols.FlowControl.up(FlowControl.java:394)
> at org.jgroups.protocols.pbcast.GMS.up(GMS.java:1045)
> at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234)
> at org.jgroups.protocols.UNICAST3.deliverMessage(UNICAST3.java:1064)
> at org.jgroups.protocols.UNICAST3.handleDataReceived(UNICAST3.java:779)
> at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:426)
> at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:652)
> at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:155)
> at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:200)
> at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:299)
> at org.jgroups.protocols.MERGE3.up(MERGE3.java:286)
> at org.jgroups.protocols.Discovery.up(Discovery.java:291)
> at org.jgroups.protocols.TP.passMessageUp(TP.java:1577)
> at org.jgroups.protocols.TP$MyHandler.run(TP.java:1796)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_131]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_131]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_131]
> ERROR [org.infinispan.persistence.file.SingleFileStore] (transport-thread-314) ISPN000252: Error executing parallel store task: org.infinispan.persistence.spi.P
> ersistenceException: java.nio.channels.ClosedChannelException
> at org.infinispan.persistence.file.SingleFileStore._load(SingleFileStore.java:470) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.persistence.file.SingleFileStore.access$600(SingleFileStore.java:70) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.persistence.file.SingleFileStore$2.call(SingleFileStore.java:523) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.persistence.file.SingleFileStore$2.call(SingleFileStore.java:519) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_131]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473) [rt.jar:1.7.0_131]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_131]
> at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:22) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at java.util.concurrent.ExecutorCompletionService.submit(ExecutorCompletionService.java:181) [rt.jar:1.7.0_131]
> at org.infinispan.executors.ExecutorAllCompletionService.submit(ExecutorAllCompletionService.java:31) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.persistence.file.SingleFileStore.process(SingleFileStore.java:519) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.persistence.async.AdvancedAsyncCacheLoader.loadAllKeys(AdvancedAsyncCacheLoader.java:44) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.persistence.async.AdvancedAsyncCacheLoader.process(AdvancedAsyncCacheLoader.java:79) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at org.infinispan.statetransfer.OutboundTransferTask.run(OutboundTransferTask.java:171) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473) [rt.jar:1.7.0_131]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_131]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:473) [rt.jar:1.7.0_131]
> at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_131]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_131]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_131]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_131]
> Caused by: java.nio.channels.ClosedChannelException
> at sun.nio.ch.FileChannelImpl.ensureOpen(FileChannelImpl.java:99) [rt.jar:1.7.0_131]
> at sun.nio.ch.FileChannelImpl.read(FileChannelImpl.java:711) [rt.jar:1.7.0_131]
> at org.infinispan.persistence.file.SingleFileStore._load(SingleFileStore.java:468) [infinispan-core-6.4.1.Final-redhat-1.jar:6.4.1.Final-redhat-1]
> ... 20 more
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 9 months
[JBoss JIRA] (ISPN-7991) Improve Compatibility between Rest and HotRod for text content
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-7991?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes commented on ISPN-7991:
-----------------------------------------
The custom marshaller deployment works for 8.2.x and 9.0.x, but not for master. I'll open another JIRA to fix it.
> Improve Compatibility between Rest and HotRod for text content
> --------------------------------------------------------------
>
> Key: ISPN-7991
> URL: https://issues.jboss.org/browse/ISPN-7991
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 8.2.7.Final, 9.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> When dealing with text based content, writing via Hot Rod and reading via Rest works fine out of the box, but not the other way around: it requires deploying a modified StringMarshaller in the server
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 9 months
[JBoss JIRA] (ISPN-7991) Improve Compatibility between Rest and HotRod for text content
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-7991?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-7991:
------------------------------------
Description: When dealing with text based content, writing via Hot Rod and reading via Rest works fine out of the box, but not the other way around: it requires deploying a modified StringMarshaller in the server (was: Writing via Hot Rod and reading via Rest works fine, but not the other way around)
> Improve Compatibility between Rest and HotRod for text content
> --------------------------------------------------------------
>
> Key: ISPN-7991
> URL: https://issues.jboss.org/browse/ISPN-7991
> Project: Infinispan
> Issue Type: Enhancement
> Components: Server
> Affects Versions: 8.2.7.Final, 9.1.0.Beta1, 9.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> When dealing with text based content, writing via Hot Rod and reading via Rest works fine out of the box, but not the other way around: it requires deploying a modified StringMarshaller in the server
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 9 months
[JBoss JIRA] (ISPN-7991) Compatibility between Rest and HotRod not working on both ways
by Martin Gencur (JIRA)
[ https://issues.jboss.org/browse/ISPN-7991?page=com.atlassian.jira.plugin.... ]
Martin Gencur edited comment on ISPN-7991 at 7/10/17 4:14 AM:
--------------------------------------------------------------
Option 1 is what I had in mind. I've tried it and it worked for me.
Steps to reproduce my behavior:
1) add no-arg constructor to StringMarshaller (https://github.com/infinispan/infinispan/blob/master/commons/src/main/jav...):
{code}
public StringMarshaller() {
this.charset = Charset.forName("UTF-8");
}
{code}
2) deploy the compiled marshaller to the server and register it via
{code}
<compatibility enabled="true" marshaller="org.infinispan.commons.marshall.StringMarshaller"/>
{code}
3) register the marshaller in HotRod client:
{code}
builder.marshaller(org.infinispan.commons.marshall.StringMarshaller.class)
{code}
4) put the data via REST:
{code}
curl -v -u test:test -X POST -H 'Content-type: application/xml' -d @file.xml http://localhost:8080/rest/compat/1
{code}
5) read the data via HotRod:
{code}
cache.get("1")
{code}
I really get what I stored there, i.e. the XML.
was (Author: mgencur):
I've tried option 1) and it worked for me.
Steps to reproduce my behavior:
1) add no-arg constructor to org.infinispan.commons.marshall.StringMarshaller:
{code}
public StringMarshaller() {
this.charset = Charset.forName("UTF-8");
}
{code}
2) deploy the compiled marshaller to the server and register it via
{code}
<compatibility enabled="true" marshaller="org.infinispan.commons.marshall.StringMarshaller"/>
{code}
3) register the marshaller in HotRod client:
{code}
builder.marshaller(org.infinispan.commons.marshall.StringMarshaller.class)
{code}
4) put the data via
{code}
curl -v -u test:test -X POST -H 'Content-type: application/xml' -d @file.xml http://localhost:8080/rest/compat/1
{code}
5) read the data a via HotRod:
{code}
cache.get("1")
{code}
I really get what I stored there, i.e. the XML.
> Compatibility between Rest and HotRod not working on both ways
> --------------------------------------------------------------
>
> Key: ISPN-7991
> URL: https://issues.jboss.org/browse/ISPN-7991
> Project: Infinispan
> Issue Type: Bug
> Components: Server
> Affects Versions: 8.2.7.Final, 9.1.0.Beta1, 9.0.3.Final
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
>
> Writing via Hot Rod and reading via Rest works fine, but not the other way around
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 9 months