[JBoss JIRA] (JBCACHE-1617) ClassNotFoundException during replication with lazy deserialization
by Dennis Reed (JIRA)
Dennis Reed created JBCACHE-1617:
------------------------------------
Summary: ClassNotFoundException during replication with lazy deserialization
Key: JBCACHE-1617
URL: https://issues.jboss.org/browse/JBCACHE-1617
Project: JBoss Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Replication
Affects Versions: 3.2.8.GA
Reporter: Dennis Reed
Assignee: Dennis Reed
Replicating a cache put tries to deserialize the original value on the remote nodes.
If the classloader of the JGroups call is not the correct classloader for the value, a ClassCastException occurs and aborts the put.
Since the value is never returned, it should not be deserialized.
ERROR [org.jboss.cache.interceptors.TxInterceptor] prepare failed!
org.jboss.cache.CacheException: Unable to unmarshall value
at org.jboss.cache.marshall.MarshalledValue.deserialize(MarshalledValue.java:117)
at org.jboss.cache.marshall.MarshalledValue.get(MarshalledValue.java:177)
at org.jboss.cache.interceptors.MarshalledValueInterceptor.processRetVal(MarshalledValueInterceptor.java:181)
at org.jboss.cache.interceptors.MarshalledValueInterceptor.compactAndProcessRetVal(MarshalledValueInterceptor.java:172)
at org.jboss.cache.interceptors.MarshalledValueInterceptor.visitPutKeyValueCommand(MarshalledValueInterceptor.java:109)
at org.jboss.cache.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:100)
at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
at org.jboss.cache.interceptors.TxInterceptor.replayModifications(TxInterceptor.java:501)
at org.jboss.cache.interceptors.TxInterceptor.handleRemotePrepare(TxInterceptor.java:388)
at org.jboss.cache.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:134)
...
[JGroups RPC call]
Caused by: java.lang.ClassNotFoundException: com.example.MyClass
...
at java.lang.Class.forName(Class.java:247)
at org.jboss.util.stream.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:81)
...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (PCACHE-86) IllegalStateException if AS5 tries to deploy pojocache-aop.xml
by Dennis Reed (JIRA)
Dennis Reed created PCACHE-86:
---------------------------------
Summary: IllegalStateException if AS5 tries to deploy pojocache-aop.xml
Key: PCACHE-86
URL: https://issues.jboss.org/browse/PCACHE-86
Project: JBoss POJO Cache
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: AOP
Affects Versions: 3.0.0.GA
Reporter: Dennis Reed
Assignee: Dennis Reed
ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfsfile:/home/dereed/opt/jboss/instance1/jboss-as/server/default/deploy/pojocache-aop.xml state=ClassLoader mode=Manual requiredState=PostClassLoader
org.jboss.deployers.spi.DeploymentException: org.jboss.deployers.spi.DeploymentException: Error
deploying: pojocache-array
...
Caused by: java.lang.IllegalStateException: pojocache-array is already installed.
Root cause is that pojocache-aop.xml contains two elements with the name pojocache-array.
This appears to be valid for AOP, but not for the AS5 AOP deployer.
<interceptor name="pojocache-array" ...
<arraybind name="pojocache-array" ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 5 months