[JBoss JIRA] (JBTM-1076) Uid serialization violates java serialization spec
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1076?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson closed JBTM-1076.
-------------------------------
> Uid serialization violates java serialization spec
> --------------------------------------------------
>
> Key: JBTM-1076
> URL: https://issues.jboss.org/browse/JBTM-1076
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Transaction Core
> Affects Versions: 4.16.2
> Reporter: Ivo Studensky
> Assignee: Tom Jenkinson
> Fix For: 4.16.3
>
>
> According to the Java serialization spec each private writeObject method should call either defaultWriteObject or writeFields method. This is missing in com.arjuna.ats.arjuna.common.Uid#writeObject() method. Similar issue also affects the readObject method of the Uid class.
> See the spec:
> http://docs.oracle.com/javase/6/docs/platform/serialization/spec/output.h...
> I've identified this bug when I tried to use RecoveryStoreProxy from the client side against AS7 via JMX. The invocation of allTypes or remove_committed methods failed due to:
> {noformat}
> Caused by: java.io.NotActiveException: Fields were never written
> at org.jboss.marshalling.river.RiverObjectOutputStream.finish(RiverObjectOutputStream.java:175)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1009)
> at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:885)
> at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:62)
> at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:119)
> at org.jboss.remotingjmx.protocol.v1.ClientConnection$TheConnection$15.write(ClientConnection.java:1181)
> at org.jboss.remotingjmx.protocol.v1.Common.write(Common.java:179)
> at org.jboss.remotingjmx.protocol.v1.ClientConnection$TheConnection.invoke(ClientConnection.java:1163)
> at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:288)
> ... 92 more
> Caused by: an exception which occurred:
> in object com.arjuna.ats.arjuna.common.Uid@0
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (JBTM-1078) Failure to parse default-jbossts-properties.xml on JBossAS boot
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1078?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson closed JBTM-1078.
-------------------------------
> Failure to parse default-jbossts-properties.xml on JBossAS boot
> ---------------------------------------------------------------
>
> Key: JBTM-1078
> URL: https://issues.jboss.org/browse/JBTM-1078
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Paul Robinson
> Assignee: Tom Jenkinson
> Priority: Blocker
> Fix For: 4.16.3
>
>
> To reproduce:
> # cd to 4.16.3 tag of narayana
> # Set version to 4.16.3.Final in the build.xml
> # ant -Dpublican=false -DskipTests=true
> # ant mvn-local-repository
> # Download JBossAS 7.1.1 from https://github.com/jbossas/jboss-as/zipball/7.1.1.Final
> # unzip
> # edit pom.xml and set jbossts version to 4.16.3.Final
> # mvn install -DskipTests=true
> # cd ./build/target/jboss-as-7.1.1.Final
> # sh bin/standalone.sh
> Observe boot error:
> {code}
> 7:51:54,694 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 57) JBAS014612: Operation ("add") failed - address: ([("subsystem" => "transactions")
> ang.RuntimeException: java.lang.RuntimeException: unable to load properties from jar:file:/tmp/jboss-as-7.1.1.Final/build/target/jboss-as-7.1.1.Final/modules/org/jboss/jts/main/jbossjts-4.16.3.Final.jar!/default-jbossts-properties.xml
> at com.arjuna.common.internal.util.propertyservice.BeanPopulator.getNamedInstance(BeanPopulator.java:81)
> at com.arjuna.common.internal.util.propertyservice.BeanPopulator.getDefaultInstance(BeanPopulator.java:49)
> at com.arjuna.ats.arjuna.common.arjPropertyManager.getCoreEnvironmentBean(arjPropertyManager.java:45)
> at org.jboss.as.txn.service.CoreEnvironmentService.getValue(CoreEnvironmentService.java:53)
> at org.jboss.as.txn.service.CoreEnvironmentService.setProcessImplementation(CoreEnvironmentService.java:102)
> at org.jboss.as.txn.subsystem.TransactionSubsystemAdd.performCoreEnvironmentBootTime(TransactionSubsystemAdd.java:309)
> at org.jboss.as.txn.subsystem.TransactionSubsystemAdd.performBoottime(TransactionSubsystemAdd.java:172)
> at org.jboss.as.controller.AbstractBoottimeAddStepHandler.performRuntime(AbstractBoottimeAddStepHandler.java:57) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
> at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
> at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
> at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
> at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
> at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:311) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
> at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
> at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
> Caused by: java.lang.RuntimeException: unable to load properties from jar:file:/tmp/jboss-as-7.1.1.Final/build/target/jboss-as-7.1.1.Final/modules/org/jboss/jts/main/jbossjts-4.16.3.Final.jar
> !/default-jbossts-properties.xml
> at com.arjuna.common.util.propertyservice.PropertiesFactory.getPropertiesFromFile(PropertiesFactory.java:110)
> at com.arjuna.common.util.propertyservice.PropertiesFactory.initDefaultProperties(PropertiesFactory.java:236)
> at com.arjuna.common.util.propertyservice.PropertiesFactory.getDefaultProperties(PropertiesFactory.java:66)
> at com.arjuna.common.internal.util.propertyservice.BeanPopulator.getNamedInstance(BeanPopulator.java:77)
> at com.arjuna.common.internal.util.propertyservice.BeanPopulator.getNamedInstance(BeanPopulator.java:77)
> ... 16 more
> Caused by: java.lang.IllegalArgumentException: Invalid index 0; current element has only 0 attributes
> at com.ctc.wstx.sr.AttributeCollector.throwIndex(AttributeCollector.java:1018)
> at com.ctc.wstx.sr.AttributeCollector.getValue(AttributeCollector.java:355)
> at com.ctc.wstx.sr.BasicStreamReader.getAttributeValue(BasicStreamReader.java:607)
> at com.arjuna.common.util.propertyservice.PropertiesFactory.loadFromXML(PropertiesFactory.java:188)
> at com.arjuna.common.util.propertyservice.PropertiesFactory.loadFromFile(PropertiesFactory.java:145)
> at com.arjuna.common.util.propertyservice.PropertiesFactory.getPropertiesFromFile(PropertiesFactory.java:106)
> ... 19 more
> {code}
> This looks to me like it was caused by [JBTM-1054]. I suspect there is an unexpected XML block present in jar:file:/tmp/jboss-as-7.1.1.Final/build/target/jboss-as-7.1.1.Final/modules/org/jboss/jts/main/jbossjts-4.16.3.Final.jar!/default-jbossts-properties.xml. For example one with a missing value. I've tried commenting out keys with empty values, but that didn't help. It's not clear to me from debugging the code, which element it is complaining about.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months
[JBoss JIRA] (JBTM-1054) Load properties from xml adds 600-800ms in AS7
by Tom Jenkinson (JIRA)
[ https://issues.jboss.org/browse/JBTM-1054?page=com.atlassian.jira.plugin.... ]
Tom Jenkinson closed JBTM-1054.
-------------------------------
> Load properties from xml adds 600-800ms in AS7
> ----------------------------------------------
>
> Key: JBTM-1054
> URL: https://issues.jboss.org/browse/JBTM-1054
> Project: JBoss Transaction Manager
> Issue Type: Enhancement
> Security Level: Public(Everyone can see)
> Components: Common
> Affects Versions: 4.16.2
> Environment: Windows 7 64bit
> Reporter: Tomaz Cerar
> Assignee: Tom Jenkinson
> Fix For: 4.16.3
>
> Attachments: after.jpg, before.png, loadProps.diff
>
>
> While starting transaction manager it loads properties from XML and this adds lots of time in AS7
> Running TM outside of AS7 does not have this affect in that case load in general takes around 20ms. With patch applied it takes in general 1-3ms in both environments.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 2 months