[Design of JBossCache] - Re: Locking tree before setting initial state
by bstansberry@jboss.com
Thought a bit about the idea of locking / on the state recipient before it calls channel.getState(). The idea is to ensure that the received state can be integrated w/o concern about not being able to acquire the required read lock. Problems I see:
1) Race with the state provider, where the provider issues a prepare while the recipient issues getState(). Result is a deadlock until either the state transfer or the prepare() times out, or the tx that issued the prepare is rolled back on the state provider.
Actually, even worse. The prepare() call will be waiting to lock / and blocking the jg uphandler thread on the state recipient . That will prevent receipt of any rollback() message or any subsequently transferred state, so the state transfer will be unable to go through until the prepare() fails with a lock timeout.
2) Race with a 3rd node in the cluster where the prepare() gets to the state provider before the getState() call. Again deadlock until the prepare() times out.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970838#3970838
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970838
19 years, 6 months
[Design of JBoss Serialization] - InstantiationException: java.util.HashMap$Values
by bos
I'm returning a rather deep and complex object structure from an ejb3 stateless session bean to another, deployed in two different ears. The initiating bean is annotated with JSR-181 WS annotations. I'm running on 4.0.4.GA with jdk1.5.0_08 and have tried with both serialization 1.0.1 and 1.0.2. On returning from the session bean I get the following exception. Any ideas to what the cause may be or what I can do to further investigate?
java.lang.reflect.UndeclaredThrowableException
at $Proxy467.findBookings(Unknown Source)
at net.mysys.webservice.booking.RetrieveReservationBusiness.retrieveBookings(RetrieveReservationBusiness.java:61)
at net.mysys.webservice.booking.BookingFacadeBean.retrieveReservation(BookingFacadeBean.java:57)
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:585)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:147)
at org.jboss.ws.integration.jboss.ServiceEndpointInvokerEJB3.invokeServiceEndpoint(ServiceEndpointInvokerEJB3.java:126)
at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:219)
at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
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.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.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
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: java.io.IOException
at org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:107)
at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:269)
at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:836)
at org.jboss.serial.io.MarshalledObjectForLocalCalls.get(MarshalledObjectForLocalCalls.java:60)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
... 57 more
Caused by: java.lang.reflect.InvocationTargetException
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:585)
at org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:103)
... 66 more
Caused by: org.jboss.serial.exception.SerializationException: Could not create instance of java.util.HashMap$Values - java.util.HashMap$Values
at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:342)
at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:239)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:836)
at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:836)
at org.jboss.serial.persister.ObjectInputStreamProxy.readObjectOverride(ObjectInputStreamProxy.java:68)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:343)
at java.util.ArrayList.readObject(ArrayList.java:591)
... 71 more
Caused by: java.lang.InstantiationException: java.util.HashMap$Values
at java.lang.Class.newInstance0(Class.java:335)
at java.lang.Class.newInstance(Class.java:303)
at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:334)
... 84 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970837#3970837
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970837
19 years, 6 months
[Design of JBoss internal QA (Test Suite)] - Failures/Errors in running test suites in jboss-4.0.4.GA-src
by myxlinux
I executed test suites in jboss-4.0.4.GA-src using "./build.sh tests". Overall, I got the following failures. Does anyone known what is going on? I do run the suites for many times, but got different failures. Is it undeterministic? My machine is Linux with jvm 1.4.2_10.
The failed classes:
1) org.jboss.test.cmp2.optimisticlock.test.OptimisticLockUnitTestCase
2) org.jboss.test.jmx.test.RMIAdaptorAuthorizationUnitTestCase
3) org.jboss.test.pooled.test.SSLSocketsUnitTestCase
4) org.jboss.test.security.test.SRPLoginModuleUnitTestCase
5) org.jboss.test.webservice.samples.ServerSideJMSTestCase
Details:
1) org.jboss.test.cmp2.optimisticlock.test.OptimisticLockUnitTestCase
Testcase: testBug1006723 took 0.096 sec
Caused an ERROR
Error checking if entity exists:java.sql.SQLException: Column not found: OIDCMP in statement [SELECT COUNT(*) FROM ENTITYA WHERE OIDCMP=?]
javax.ejb.CreateException: Error checking if entity exists:java.sql.SQLException: Column not found: OIDCMP in statement [SELECT COUNT(*) FROM ENTITYA WHERE OIDCMP=?]
2) org.jboss.test.jmx.test.RMIAdaptorAuthorizationUnitTestCase
17:51:28,618 INFO [RMIAdaptorAuthorizationUnitTestCase] Access failed as expected
java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=subject-context
3) org.jboss.test.pooled.test.SSLSocketsUnitTestCase
Testcase: testClientCertSSLAccess took 1.427 sec
Caused an ERROR
SecurityException; nested exception is:
javax.security.auth.login.FailedLoginException: Supplied Credential did not match existing credential for null
java.rmi.AccessException: SecurityException; nested exception is:
javax.security.auth.login.FailedLoginException: Supplied Credential did not match existing credential for null
4) org.jboss.test.security.test.SRPLoginModuleUnitTestCase
Testcase: testSRPLoginWithAuxChallenge took 0.417 sec
FAILED
Unable to complete login: Failed to complete SRP login, msg=Failed to encrypt aux challenge
junit.framework.AssertionFailedError: Unable to complete login: Failed to complete SRP login, msg=Failed to encrypt aux challenge
at org.jboss.test.security.test.SRPLoginModuleUnitTestCase.testSRPLoginWithAuxChallenge(SRPLoginModuleUnitTestCase.java:142)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
5) org.jboss.test.webservice.samples.ServerSideJMSTestCase
Testcase: testSOAPMessageToEndpointQueue took 0.618 sec
FAILED
expected:<<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header/><env:Body><ns1:getContactInfoResponse xmlns:ns1='http://org.jboss.test.webservice/samples'>The 'mafia' boss is currently out of office, please call again.</ns1:getContactInfoResponse></env:Body></env:Envelope>> but was:
junit.framework.ComparisonFailure: expected:<<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header/><env:Body><ns1:getContactInfoResponse xmlns:ns1='http://org.jboss.test.webservice/samples'>The 'mafia' boss is currently out of office, please call again.</ns1:getContactInfoResponse></env:Body></env:Envelope>> but was:
at org.jboss.test.webservice.samples.ServerSideJMSTestCase.testSOAPMessageToEndpointQueue(ServerSideJMSTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970832#3970832
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970832
19 years, 6 months