Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 879156

Summary: Few unit tests are failing with Java version 7
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Jiri Sedlacek <jsedlace>
Component: jUDDI - within SOAAssignee: tcunning
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.3.1CC: atangrin, oskutka, soa-p-jira, tcunning
Target Milestone: ER2   
Target Release: 5.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-11 15:28:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test log resulting from unit tests
none
org.apache.juddi.api.impl.API_090_SubscriptionListenerIntegrationTest file
none
org.apache.juddi.subscription.notify.NotifierTest log
none
server log none

Description Jiri Sedlacek 2012-11-22 08:39:36 UTC
Created attachment 649578 [details]
test log resulting from unit tests

Description of problem:

Problem is with unit tests below, it happens both with Sun JDK 7 and OpenJDK7

org.apache.juddi.api.impl.API_090_SubscriptionListenerIntegrationTest
org.apache.juddi.api.impl.API_090_SubscriptionListenerIntegrationTest
org.apache.juddi.subscription.notify.NotifierTest.testHTTPNotifier 

Attached are test logs and server log from soa-p 5.3.1 er1

Comment 1 Jiri Sedlacek 2012-11-22 08:41:09 UTC
Created attachment 649579 [details]
org.apache.juddi.api.impl.API_090_SubscriptionListenerIntegrationTest file

Comment 2 Jiri Sedlacek 2012-11-22 08:41:43 UTC
Created attachment 649581 [details]
org.apache.juddi.subscription.notify.NotifierTest log

Comment 3 Jiri Sedlacek 2012-11-22 08:42:27 UTC
Created attachment 649582 [details]
server log

Comment 4 tcunning 2012-12-04 18:47:58 UTC
Having trouble reproducing this when running the tests from the jUDDI project (all tests pass when I run on Mac OS X with 1.7.0_09-b05), talking to Jiri now about how this is configured.     Here's the error I see in his logs :

2012-11-21 07:13:00,891 DEBUG [org.apache.juddi.subscription.SubscriptionNotifier] (Timer-8) Notification background task took 2 milliseconds.
2012-11-21 07:13:01,481 ERROR [org.apache.juddi.api.impl.API_090_SubscriptionListenerIntegrationTest] (main) org.w3._2000._09.xmldsig_.SignatureType$JaxbAccessorF_signedInfo cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor
java.lang.ClassCastException: org.w3._2000._09.xmldsig_.SignatureType$JaxbAccessorF_signedInfo cannot be cast to com.sun.xml.internal.bind.v2.runtime.reflect.Accessor
        at com.sun.xml.internal.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.instanciate(OptimizedAccessorFactory.java:184)
        at com.sun.xml.internal.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:176)
        at com.sun.xml.internal.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:267)
        at com.sun.xml.internal.bind.v2.runtime.property.SingleElementNodeProperty.<init>(SingleElementNodeProperty.java:79)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

Comment 5 Jiri Sedlacek 2012-12-11 15:28:51 UTC
After discussion and few testing with Tom, I'm marking as NOT A BUG, it was configuration issue when we run unit tests against SOA-P libraries.