[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2984) Benchmark tests are setting incorrect date

Richard Opalka (JIRA) jira-events at lists.jboss.org
Wed Mar 31 02:51:38 EDT 2010


    [ https://jira.jboss.org/jira/browse/JBWS-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12522992#action_12522992 ] 

Richard Opalka commented on JBWS-2984:
--------------------------------------

The following calls are violating the date restriction:

[/home/opalka][/home/opalka/svn/jbossws/framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/benchmark/test]>grep -r "getDay" * | grep -v "\.svn"
datatypes/EndpointEJB3WrappedDocImpl.java:      calendar.setDay(calendar.getDay() + 1);
datatypes/EndpointPOJOWrappedDocImpl.java:      calendar.setDay(calendar.getDay() + 1);
datatypes/unwrapped/pojo/CalendarDocTest.java:      exp.setDay(exp.getDay() + 1);
datatypes/unwrapped/pojo/CalendarRPCTest.java:      exp.setDay(exp.getDay() + 1);
datatypes/unwrapped/ejb3/CalendarDocTest.java:      exp.setDay(exp.getDay() + 1);
datatypes/unwrapped/ejb3/CalendarRPCTest.java:      exp.setDay(exp.getDay() + 1);
datatypes/EndpointPOJOWrappedRPCImpl.java:      calendar.setDay(calendar.getDay() + 1);
datatypes/EndpointEJB3WrappedRPCImpl.java:      calendar.setDay(calendar.getDay() + 1);
datatypes/EndpointEJB3DocImpl.java:      calendar.setDay(calendar.getDay() + 1);
datatypes/EndpointPOJODocImpl.java:      calendar.setDay(calendar.getDay() + 1);
datatypes/wrapped/pojo/CalendarDocTest.java:      exp.setDay(exp.getDay() + 1);
datatypes/wrapped/pojo/ValuesToComplexTypeRPCTest.java:      modifiedCalendarValue.setDay(modifiedCalendarValue.getDay() + 1);
datatypes/wrapped/pojo/ComplexTypeDocTest.java:      modifiedCalendarValue.setDay(modifiedCalendarValue.getDay() + 1);
datatypes/wrapped/pojo/CalendarRPCTest.java:      exp.setDay(exp.getDay() + 1);
datatypes/wrapped/pojo/ComplexTypeRPCTest.java:      modifiedCalendarValue.setDay(modifiedCalendarValue.getDay() + 1);
datatypes/wrapped/ejb3/CalendarDocTest.java:      exp.setDay(exp.getDay() + 1);
datatypes/wrapped/ejb3/ValuesToComplexTypeRPCTest.java:      modifiedCalendarValue.setDay(modifiedCalendarValue.getDay() + 1);
datatypes/wrapped/ejb3/ComplexTypeDocTest.java:      modifiedCalendarValue.setDay(modifiedCalendarValue.getDay() + 1);
datatypes/wrapped/ejb3/CalendarRPCTest.java:      exp.setDay(exp.getDay() + 1);
datatypes/wrapped/ejb3/ComplexTypeRPCTest.java:      modifiedCalendarValue.setDay(modifiedCalendarValue.getDay() + 1);
datatypes/EndpointEJB3RPCImpl.java:      calendar.setDay(calendar.getDay() + 1);
datatypes/EndpointPOJORPCImpl.java:      calendar.setDay(calendar.getDay() + 1);


> Benchmark tests are setting incorrect date
> ------------------------------------------
>
>                 Key: JBWS-2984
>                 URL: https://jira.jboss.org/jira/browse/JBWS-2984
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: productization
>            Reporter: Richard Opalka
>            Assignee: Martin Vecera
>             Fix For: jbossws-native-3.3.0, jbossws-metro-3.3.0, jbossws-cxf-3.3.0
>
>
> I'm assigning this issue to you Martin because I can't see pmacik in "Assign to" pop up list.
> I found that benchmark tests QA team provided us are failing every last day in every month.
> The tests are trying to set up e.g. 32-nd of March as valid date.
> I can see this failure locally when running our test suite today (31-st of March):
> ---
> [INFO] Surefire report directory: /home/opalka/svn/jbossws/stack/native/trunk/modules/testsuite/framework-tests/target/surefire-reports
> org.apache.maven.surefire.booter.SurefireExecutionException: null; nested exception is java.lang.ExceptionInInitializerError: null
> java.lang.ExceptionInInitializerError
> 	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:513)
> 	at java.lang.Class.newInstance0(Class.java:355)
> 	at java.lang.Class.newInstance(Class.java:308)
> 	at org.apache.maven.surefire.testset.PojoTestSet.<init>(PojoTestSet.java:55)
> 	at org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.createTestSet(JUnitDirectoryTestSuite.java:64)
> 	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
> 	at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
> 	at org.apache.maven.surefire.Surefire.run(Surefire.java:156)
> 	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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
> 	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> Caused by: java.lang.IllegalArgumentException: Invalid value 32 for Day field.
> 	at org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl.checkFieldValueConstraint(Unknown Source)
> 	at org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl.setDay(Unknown Source)
> 	at org.jboss.test.ws.jaxws.benchmark.test.datatypes.unwrapped.pojo.CalendarRPCTest.<clinit>(CalendarRPCTest.java:60)
> 	... 17 more
> [ERROR] There are test failures.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list