[Design the new POJO MicroContainer] - NumberFormatExceptions when mixing annotations and number fo
by kabir.khan@jboss.com
Some of the aop-mc-int tests are failing. Why are they not being run in cruisecontrol?
They all seem to be doing something like the following (taken from MetaDataTestCase):
| <bean name="Bean1" class="org.jboss.test.microcontainer.support.PropertyBean">
| <property name="intProperty">10
| <annotation>@org.jboss.test.microcontainer.support.Test</annotation>
| </property>
| <property name="stringProperty">Bean1</property>
| </bean>
|
This used to work, but now gives the following error:
| *** DEPLOYMENTS IN ERROR: Name -> Error
| Bean1 -> java.lang.NumberFormatException: For input string: "10
|
| "
|
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:260)
| at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
| at org.jboss.test.kernel.junit.MicrocontainerTestDelegate.validate(MicrocontainerTestDelegate.java:223)
| at org.jboss.test.kernel.junit.MicrocontainerTest.setUp(MicrocontainerTest.java:68)
| 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 junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
| at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
| at junit.framework.TestResult.runProtected(TestResult.java:124)
| at junit.extensions.TestSetup.run(TestSetup.java:23)
| 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.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
| at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
| at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:163)
| at org.apache.maven.surefire.Surefire.run(Surefire.java:84)
| 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:244)
| at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:814)
|
| testPropertyMetaData(org.jboss.test.microcontainer.test.MetaDataTestCase) Time elapsed: 0 sec <<< ERROR!
| java.lang.IllegalStateException: Incompletely deployed:
|
If I get rid of all line breaks in the property it works, i.e.
| <bean name="Bean1" class="org.jboss.test.microcontainer.support.PropertyBean">
| <property name="intProperty">10<annotation>@org.jboss.test.microcontainer.support.Test</annotation></property>
| <property name="stringProperty">Bean1</property>
| </bean>
|
But this would make it less readable in case of multiple annotations.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087370#4087370
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087370
18 years, 6 months
[Design of POJO Server] - Beta3 blocking issues
by scott.stark@jboss.org
The blocking/critical issue status is:
http://jira.jboss.com/jira/browse/JBAS-4562 - Need an MC 2.0.0.Beta5 release, Ales has changes, we need to synch on any other changes. I created a JBossMC-2.0.0.Beta5 release due on 24/Sep/07 for these. Assigned to Scott.
http://jira.jboss.com/jira/browse/JBAS-4562,JBAS-4506 - Need a jboss-metadata release and unifying metadata. I'm working on the legacy org.jboss.metadata usage in the server module. We need to agree on a model that allows the ejb3 deployers to work with annotations, metadata complete/incomplete descriptors, profileservice overrides. Assigned to Scott.
http://jira.jboss.com/jira/browse/JBAS-4744 - Update to JBossXB 2.0.0.CR5, this is blocking the jboss-metadata release. We need to get sufficient implementation for the legacy metadata dom element wildcards to handle current uses. Assigned to Alexey.
http://jira.jboss.com/jira/browse/JBAS-3410,JBAS-3412 - VDF Deployer migration tasks (JBAS-3410), Port ClientDeployer and complete JavaEE5 support. The client deployer needs the unified metadata. Assigned to Scott.
http://jira.jboss.com/jira/browse/JBAS-4620 - NPE in EJB3 Authentication Interceptor. Needs to be validated by Anil.
http://jira.jboss.com/jira/browse/JBAS-4675,JBAS-4690 - transaction local issues Johnathon is working on.
http://jira.jboss.com/jira/browse/JBAS-3350 - NPE on service-ref in web.xml, old issue that needs to be verified.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087349#4087349
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087349
18 years, 6 months