I used jbossCache2.1.1 in my application.But it has an exception when I use cluster mode.the exception like this: [default] - Servlet.service() for servlet default threw exception | org.jboss.cache.CacheException: java.io.StreamCorruptedException | at org.jboss.cache.invocation.AbstractInvocationDelegate.invoke(Abstract | InvocationDelegate.java:135) | at org.jboss.cache.invocation.AbstractInvocationDelegate.invoke(Abstract | InvocationDelegate.java:64) | at org.jboss.cache.invocation.CacheInvocationDelegate.get(CacheInvocatio | nDelegate.java:387) | at org.jboss.cache.invocation.NodeInvocationDelegate.get(NodeInvocationD | elegate.java:409) | at com.topsoft.common.cache.TopCacheImpl.get(TopCacheImpl.java:76) | at com.topsoft.common.codetable.multicolumn.BaseMultiColumnCodeTable.ini | tData(BaseMultiColumnCodeTable.java:74) | at com.topsoft.common.codetable.multicolumn.BaseMultiColumnCodeTable.get | DataMapValues(BaseMultiColumnCodeTable.java:92) | at com.topnet.tais.domain.common.codetable.SampleItemCodeTableImpl.getSa | mpleItemCodeByCode(SampleItemCodeTableImpl.java:22) | at com.topnet.tais.web.reg.action.TaxKindRegisterAction.findSubjectRules | (TaxKindRegisterAction.java:491) |
so I update the jars to 2.2.0,but an new Exception occured. like this : | rg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheAdapter' defined in file [E:\projects\liuyuxiao_TopSOF_V1.1\SOF\bin\beans-common.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.topsoft.common.cacheadapt.CacheAdapterJbossImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException | Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.topsoft.common.cacheadapt.CacheAdapterJbossImpl]: Constructor threw exception; nested exception is java.lang.NullPointerException | Caused by: java.lang.NullPointerException | at org.jboss.cache.interceptors.MarshalledValueInterceptor.wrapMap(MarshalledValueInterceptor.java:169) | at org.jboss.cache.interceptors.MarshalledValueInterceptor.visitPutDataMapCommand(MarshalledValueInterceptor.java:48) | at org.jboss.cache.commands.write.PutDataMapCommand.acceptVisitor(PutDataMapCommand.java:89) | at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:142) | at org.jboss.cache.interceptors.TxInterceptor.attachGtxAndPassUpChain(TxInterceptor.java:266) | at org.jboss.cache.interceptors.TxInterceptor.handleDefault(TxInterceptor.java:253) | at org.jboss.cache.commands.AbstractVisitor.visitPutDataMapCommand(AbstractVisitor.java:39) | at org.jboss.cache.commands.write.PutDataMapCommand.acceptVisitor(PutDataMapCommand.java:89) | at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:142) | at org.jboss.cache.interceptors.CacheMgmtInterceptor.visitPutDataMapCommand(CacheMgmtInterceptor.java:95) | at org.jboss.cache.commands.write.PutDataMapCommand.acceptVisitor(PutDataMapCommand.java:89) | at org.jboss.cache.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:142) | at org.jboss.cache.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:155) | at org.jboss.cache.interceptors.InvocationContextInterceptor.visitPutDataMapCommand(InvocationContextInterceptor.java:48) | at org.jboss.cache.commands.write.PutDataMapCommand.acceptVisitor(PutDataMapCommand.java:89) | at org.jboss.cache.interceptors.InterceptorChain.invoke(InterceptorChain.java:215) | at org.jboss.cache.invocation.CacheInvocationDelegate.put(CacheInvocationDelegate.java:447) | at org.jboss.cache.invocation.NodeInvocationDelegate.addChild(NodeInvocationDelegate.java:306) | at com.topsoft.common.cache.TopCacheImpl.instance(TopCacheImpl.java:46) | at com.topsoft.common.cache.TopCacheImpl.<init>(TopCacheImpl.java:39) | at com.topsoft.common.cacheadapt.CacheAdapterJbossImpl.<init>(CacheAdapterJbossImpl.java:13) | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | at java.lang.reflect.Constructor.newInstance(Constructor.java:494) | at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) | at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:759) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:724) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:387) | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:881) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:829) | at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:424) | at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) | at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) | at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) | at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) | at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) | at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) | at com.topsoft.common.ContextHelper.getXmlContext(ContextHelper.java:22) | at com.topsoft.common.codetable.StoreCodeTableTemplateTest.setUp(StoreCodeTableTemplateTest.java:24) | at junit.framework.TestCase.runBare(TestCase.java:125) | at junit.framework.TestResult$1.protect(TestResult.java:106) | at junit.framework.TestResult.runProtected(TestResult.java:124) | at junit.framework.TestResult.run(TestResult.java:109) | at junit.framework.TestCase.run(TestCase.java:118) | at junit.framework.TestSuite.runTest(TestSuite.java:208) | at junit.framework.TestSuite.run(TestSuite.java:203) | at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) | at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) | what the matter? give me a suggest.... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181752#4181752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181752 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
