[JBoss JIRA] Created: (ISPN-1230) Group API not configurable via XML
by Erik Salter (JIRA)
Group API not configurable via XML
----------------------------------
Key: ISPN-1230
URL: https://issues.jboss.org/browse/ISPN-1230
Project: Infinispan
Issue Type: Bug
Affects Versions: 5.0.0.CR7
Reporter: Erik Salter
Assignee: Manik Surtani
Per the Wiki, the group API should be configurable via XML. https://docs.jboss.org/author/display/ISPN/The+Grouping+API. However, adding this element (as opposed to attribute -- I guess in anticipation of XML configuration of group generators?) results in:
java.io.IOException: unexpected element (uri:"urn:infinispan:config:5.0", local:"groupsEnabled"). Expected elements are (none)
at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:262)
at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:280)
at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:132)
at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:108)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:253)
at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:239)
at net.beaumaris.erm.cache.stress.BaseCacheTest.addNode(BaseCacheTest.java:61)
at net.beaumaris.erm.cache.stress.BaseCacheTest.createNodes(BaseCacheTest.java:44)
at net.beaumaris.erm.cache.stress.RehashJoinTest.setup(RehashJoinTest.java:28)
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:597)
at org.junit.internal.runners.MethodRoadie.runBefores(MethodRoadie.java:122)
at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:86)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"urn:infinispan:config:5.0", local:"groupsEnabled"). Expected elements are (none)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:642)
at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:254)
at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:249)
at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116)
at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement(Loader.java:101)
at com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(StructureLoader.java:245)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:478)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:459)
at com.sun.xml.bind.v2.runtime.unmarshaller.ValidatingUnmarshaller.startElement(ValidatingUnmarshaller.java:90)
at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:148)
at org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
at org.infinispan.config.parsing.NamespaceFilter.startElement(NamespaceFilter.java:51)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2755)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:211)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:184)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:120)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:103)
at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:254)
... 28 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] Created: (ISPN-1256) NPE at transaction rollback (again)
by Sanne Grinovero (JIRA)
NPE at transaction rollback (again)
-----------------------------------
Key: ISPN-1256
URL: https://issues.jboss.org/browse/ISPN-1256
Project: Infinispan
Issue Type: Bug
Reporter: Sanne Grinovero
Assignee: Mircea Markus
Priority: Critical
Fix For: 5.0.0.CR8
These stacktraces can be found very often in the continuous integration logs:
{code}2011-07-20 05:54:39,659 WARN [arjuna] (Transaction Reaper Worker 0) ARJUNA12091: Top-level abort of action 0:ffff0aca9676:8727:4e26a548:2ce received TwoPhaseOutcome.FINISH_ERROR from com.arjuna.ats.arjuna.coordinator.AbstractRecord
2011-07-20 05:54:39,659 WARN [arjuna] (Transaction Reaper Worker 0) ARJUNA12121: TransactionReaper::doCancellations worker Thread[Transaction Reaper Worker 0,5,main] successfully canceled TX 0:ffff0aca9676:8727:4e26a548:2ce
2011-07-20 05:54:39,659 WARN [jta] (Transaction Reaper Worker 0) ARJUNA16045: attempted rollback of < formatId=131076, gtrid_length=29, bqual_length=28, tx_uid=0:ffff0aca9676:8727:4e26a548:2d2, node_name=1, branch_uid=0:ffff0aca9676:8727:4e26a548:2d3, eis_name=unknown eis name > (TransactionXaAdapter{localTransaction=LocalXaTransaction{xid=< formatId=131076, gtrid_length=29, bqual_length=28, tx_uid=0:ffff0aca9676:8727:4e26a548:2d2, node_name=1, branch_uid=0:ffff0aca9676:8727:4e26a548:2d3, eis_name=unknown eis name >} LocalTransaction{remoteLockedNodes=[MainOwnerChangedTest-NodeA-55288], isMarkedForRollback=false, transaction=TransactionImple < ac, BasicAction: 0:ffff0aca9676:8727:4e26a548:2d2 status: ActionStatus.ABORTING >} org.infinispan.transaction.xa.LocalXaTransaction@8b0c6a04}) failed with exception code -
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
at org.infinispan.transaction.TransactionTable.failureCompletingTransaction(TransactionTable.java:195)
at org.infinispan.transaction.TransactionCoordinator.rollback(TransactionCoordinator.java:159)
at org.infinispan.transaction.xa.TransactionXaAdapter.rollback(TransactionXaAdapter.java:135)
at com.arjuna.ats.internal.jta.resources.arjunacore.XAResourceRecord.topLevelAbort(XAResourceRecord.java:337)
at com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:2869)
at com.arjuna.ats.arjuna.coordinator.BasicAction.doAbort(BasicAction.java:2848)
at com.arjuna.ats.arjuna.coordinator.BasicAction.Abort(BasicAction.java:1613)
at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.cancel(TwoPhaseCoordinator.java:119)
at com.arjuna.ats.arjuna.AtomicAction.cancel(AtomicAction.java:212)
at com.arjuna.ats.arjuna.coordinator.TransactionReaper.doCancellations(TransactionReaper.java:367)
at com.arjuna.ats.internal.arjuna.coordinator.ReaperWorkerThread.run(ReaperWorkerThread.java:79)
{code}
See https://infinispan.ci.cloudbees.com/job/Infinispan-master-JDK6-tcp/145/co...
and search for "ConcurrentHashMap.java:768"
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] Created: (ISPN-1108) Test(s) ignored by maven
by Mircea Markus (JIRA)
Test(s) ignored by maven
------------------------
Key: ISPN-1108
URL: https://issues.jboss.org/browse/ISPN-1108
Project: Infinispan
Issue Type: Bug
Components: Test Suite
Affects Versions: 5.0.0.CR2
Reporter: Mircea Markus
Assignee: Manik Surtani
"mvn test" doesn't run the test TransactionsSpanningReplicatedCaches.
It does run though other tests from that package, ex: TransactionsSpanningDistributedCachesTest.
TransactionsSpanningReplicatedCaches is marked as sequential = true (which is redundant). I've tried removing the sequential attribute, but the same thing happened: the test was not run.
The test runs successfully when specified through: mvn test -Dtest=TransactionsSpanningReplicatedCaches
While here, also consider removing the mandatory "testName" attribute from @Tests. TestNG now has an @Test (singleThreaded) attribute that: "If set to true, all the methods on this test class are guaranteed to run sequentially, even if the tests are currently being run with parallel="true". This attribute can only be used at the class level and will be ignored if used at the method level."
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] Updated: (ISPN-61) Transaction 2-phase protocol optimizations
by Manik Surtani (JIRA)
[ https://issues.jboss.org/browse/ISPN-61?page=com.atlassian.jira.plugin.sy... ]
Manik Surtani updated ISPN-61:
------------------------------
Fix Version/s: 5.1.0.ALPHA1
(was: 5.1.0.BETA1)
> Transaction 2-phase protocol optimizations
> ------------------------------------------
>
> Key: ISPN-61
> URL: https://issues.jboss.org/browse/ISPN-61
> Project: Infinispan
> Issue Type: Feature Request
> Affects Versions: 4.0.0.ALPHA4
> Reporter: Mircea Markus
> Assignee: Mircea Markus
> Priority: Blocker
> Fix For: 5.1.0.ALPHA1, 5.1.0.FINAL
>
>
> Following 2 optimizations might be implemented with respect to transactions.
> 1) From an email on infinispan-dev (horizon-dev actually):
> if there are only two members int the cluster always use an 1PC. If the 1st phase fails remotely, then also rollback locally. This would reduce one network roundtrip.
> While this is an interesting thought, it does raise the potential for race conditions - since this decision will have to be taken in the TxInterceptor in the beforeCompletion phase of a transaction, and by the time the call gets to the interceptor for replication, the topology may have changed such that you need to replicate to 2 instead of 1 other peer. Which would mean a 2PC again. So it does need some thought.
> 2) when asked to prepare, a participant might return a value indicating that no changes were made (read-only participant), so this one won't need an commit message, so less roundtrip.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] Created: (ISPN-1246) Batching fails when run in JBossAS7
by Sanne Grinovero (JIRA)
Batching fails when run in JBossAS7
-----------------------------------
Key: ISPN-1246
URL: https://issues.jboss.org/browse/ISPN-1246
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 5.0.0.CR7
Reporter: Sanne Grinovero
Assignee: Mircea Markus
Priority: Blocker
Fix For: 5.0.0.FINAL
This badly affects TorqueBox and Lucene integrations, making them unusable.
I hope we can use a different namespace or binding method?
{code}12:46:35,651 INFO [org.infinispan.factories.TransactionManagerFactory] (http-localhost-127.0.0.1-8080-1) failed looking up TransactionManager, will not use transactions: java.lang.UnsupportedOperationException: Naming context is read-only
at org.jboss.as.naming.NamingContext.bind(NamingContext.java:217)
at javax.naming.InitialContext.bind(InitialContext.java:400) [:1.6.0_26]
at org.infinispan.transaction.tm.DummyTransactionManager.getInstance(DummyTransactionManager.java:62) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.transaction.lookup.GenericTransactionManagerLookup.getTransactionManager(GenericTransactionManagerLookup.java:112) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.TransactionManagerFactory.construct(TransactionManagerFactory.java:59) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:332) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:266) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:869) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:240) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:153) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:199) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:194) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.query.impl.LifecycleManager.createQueryInterceptorIfNeeded(LifecycleManager.java:75) [infinispan-query-5.0.0.CR4_AS7.jar:5.0.0.CR4_AS7]
at org.infinispan.query.impl.LifecycleManager.cacheStarting(LifecycleManager.java:67) [infinispan-query-5.0.0.CR4_AS7.jar:5.0.0.CR4_AS7]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]
at org.infinispan.util.Proxies$CatchThrowableProxy.invoke(Proxies.java:88) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at $Proxy19.cacheStarting(Unknown Source) at org.infinispan.factories.ComponentRegistry.notifyCacheStarting(ComponentRegistry.java:192) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:95) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:79) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:63) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:552) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:455) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:424) [infinispan-core-5.0.0.CR7.jar:5.0.0.CR7]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]
at org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(JavaMethod.java:508) [jruby.jar:]
at org.jruby.javasupport.JavaMethod.invokeDirect(JavaMethod.java:368) [jruby.jar:]
at org.jruby.java.invokers.InstanceMethodInvoker.call(InstanceMethodInvoker.java:49) [jruby.jar:]
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:56) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135) [jruby.jar:]
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby.jar:]
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216) [jruby.jar:]
at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120) [jruby.jar:]
at org.jruby.ast.RescueNode.interpret(RescueNode.java:110) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) [jruby.jar:]
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147) [jruby.jar:]
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135) [jruby.jar:]
at org.jruby.ast.VCallNode.interpret(VCallNode.java:86) [jruby.jar:]
at org.jruby.ast.OrNode.interpret(OrNode.java:98) [jruby.jar:]
at org.jruby.ast.OrNode.interpret(OrNode.java:95) [jruby.jar:]
at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95) [jruby.jar:]
at org.jruby.ast.OpAsgnOrNode.interpret(OpAsgnOrNode.java:100) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) [jruby.jar:]
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:147) [jruby.jar:]
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:163) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135) [jruby.jar:]
at org.jruby.ast.VCallNode.interpret(VCallNode.java:86) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) [jruby.jar:]
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:212) [jruby.jar:]
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:187) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:322) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:178) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:182) [jruby.jar:]
at org.jruby.RubyClass.newInstance(RubyClass.java:799) [jruby.jar:]
at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535) [jruby.jar:]
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrNBlock.call(JavaMethod.java:266) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169) [jruby.jar:]
at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57) [jruby.jar:]
at org.jruby.ast.InstAsgnNode.interpret(InstAsgnNode.java:95) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) [jruby.jar:]
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:255) [jruby.jar:]
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:203) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:342) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:212) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:216) [jruby.jar:]
at org.jruby.RubyClass.newInstance(RubyClass.java:806) [jruby.jar:]
at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535) [jruby.jar:]
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodZeroOrOneOrTwoOrNBlock.call(JavaMethod.java:283) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203) [jruby.jar:]
at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) [jruby.jar:]
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:233) [jruby.jar:]
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:195) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203) [jruby.jar:]
at org.jruby.ast.CallSpecialArgNode.interpret(CallSpecialArgNode.java:69) [jruby.jar:]
at org.jruby.ast.LocalAsgnNode.interpret(LocalAsgnNode.java:123) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.IfNode.interpret(IfNode.java:119) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) [jruby.jar:]
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:233) [jruby.jar:]
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:195) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203) [jruby.jar:]
at org.jruby.ast.CallTwoArgNode.interpret(CallTwoArgNode.java:59) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby.jar:]
at org.jruby.ast.RootNode.interpret(RootNode.java:129) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:120) [jruby.jar:]
at org.jruby.Ruby.runInterpreter(Ruby.java:698) [jruby.jar:]
at org.jruby.Ruby.loadFile(Ruby.java:2434) [jruby.jar:]
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66) [jruby.jar:]
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:755) [jruby.jar:]
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:334) [jruby.jar:]
at org.jruby.runtime.load.LoadService.require(LoadService.java:381) [jruby.jar:]
at org.jruby.runtime.load.LoadService.lockAndRequire(LoadService.java:306) [jruby.jar:]
at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1055) [jruby.jar:]
at org.jruby.RubyKernel.require(RubyKernel.java:1038) [jruby.jar:]
at org.jruby.RubyKernel$s$1$0$require.call(RubyKernel$s$1$0$require.gen:65535) [jruby.jar:]
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:319) [jruby.jar:]
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61) [jruby.jar:]
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169) [jruby.jar:]
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_BLOCK(ASTInterpreter.java:112) [jruby.jar:]
at org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:374) [jruby.jar:]
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:328) [jruby.jar:]
at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:367) [jruby.jar:]
at org.jruby.runtime.Block.yieldNonArray(Block.java:141) [jruby.jar:]
at org.jruby.RubyBasicObject.yieldUnder(RubyBasicObject.java:1804) [jruby.jar:]
at org.jruby.RubyBasicObject.specificEval(RubyBasicObject.java:1828) [jruby.jar:]
at org.jruby.RubyBasicObject.instance_eval(RubyBasicObject.java:2649) [jruby.jar:]
at org.jruby.RubyKernel.instance_eval(RubyKernel.java:2061) [jruby.jar:]
at org.jruby.RubyKernel$s$instance_eval.call(RubyKernel$s$instance_eval.gen:65535) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148) [jruby.jar:]
at org.jruby.ast.FCallNoArgBlockPassNode.interpret(FCallNoArgBlockPassNode.java:27) [jruby.jar:]
at org.jruby.ast.IfNode.interpret(IfNode.java:117) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:75) [jruby.jar:]
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:169) [jruby.jar:]
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:171) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:148) [jruby.jar:]
at org.jruby.RubyClass.newInstance(RubyClass.java:792) [jruby.jar:]
at org.jruby.RubyClass$i$newInstance.call(RubyClass$i$newInstance.gen:65535) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:302) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.callBlock(CachingCallSite.java:144) [jruby.jar:]
at org.jruby.runtime.callsite.CachingCallSite.callIter(CachingCallSite.java:153) [jruby.jar:]
at org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:64) [jruby.jar:]
at org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63) [jruby.jar:]
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) [jruby.jar:]
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71) [jruby.jar:]
at org.jruby.ast.RootNode.interpret(RootNode.java:129) [jruby.jar:]
at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:120) [jruby.jar:]
at org.jruby.Ruby.runInterpreter(Ruby.java:698) [jruby.jar:]
at org.jruby.Ruby.runInterpreter(Ruby.java:706) [jruby.jar:]
at org.jruby.Ruby.executeScript(Ruby.java:355) [jruby.jar:]
at org.torquebox.core.component.ComponentEval.newInstance(ComponentEval.java:54) [torquebox-core-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
at org.torquebox.core.component.ComponentResolver.createComponent(ComponentResolver.java:65) [torquebox-core-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
at org.torquebox.core.component.ComponentResolver.resolve(ComponentResolver.java:52) [torquebox-core-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
at org.torquebox.web.servlet.RackFilter.doRack(RackFilter.java:117) [torquebox-web-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
at org.torquebox.web.servlet.RackFilter.doFilter(RackFilter.java:107) [torquebox-web-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
at org.torquebox.web.servlet.RackFilter.doFilter(RackFilter.java:79) [torquebox-web-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] Created: (ISPN-1248) Generic JBoss Marshaller
by Mathieu Lachance (JIRA)
Generic JBoss Marshaller
------------------------
Key: ISPN-1248
URL: https://issues.jboss.org/browse/ISPN-1248
Project: Infinispan
Issue Type: Bug
Components: Marshalling
Affects Versions: 5.0.0.CR7
Reporter: Mathieu Lachance
Assignee: Manik Surtani
Fix For: 5.0.0.FINAL
It seem with the jboss-marshalling-1.3.0.CR9 upgrade the marshalling api seem broken making at the same time the storeAsBinary configuration unusable.
Consider the following code :
import java.io.Serializable;
public class SerializableObject implements Serializable{
private static final long serialVersionUID = 1L;
private int a;
public SerializableObject(){
super();
}
public void setA(int a) {
this.a = a;
}
public int getA() {
return a;
}
public static void main(String[] args){
byte[] byteBuffer = new GenericJBossMarshaller().objectToByteBuffer(new SerializableObject());
}
}
When run, it will result in :
Caused by: org.infinispan.CacheException: java.io.IOException: Unsupported protocol version 3
at org.infinispan.marshall.jboss.GenericJBossMarshaller$1.initialValue(GenericJBossMarshaller.java:97)
at org.infinispan.marshall.jboss.GenericJBossMarshaller$1.initialValue(GenericJBossMarshaller.java:91)
at java.lang.ThreadLocal.setInitialValue(Unknown Source)
at java.lang.ThreadLocal.get(Unknown Source)
at org.infinispan.marshall.jboss.GenericJBossMarshaller.startObjectOutput(GenericJBossMarshaller.java:139)
at org.infinispan.marshall.jboss.GenericJBossMarshaller.objectToBuffer(GenericJBossMarshaller.java:125)
at org.infinispan.marshall.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:86)
at org.infinispan.marshall.AbstractMarshaller.objectToByteBuffer(AbstractMarshaller.java:79)
Same code was working under Infinispan CR2 revision.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months