Jump to content
  • Exception when using webservice in data source factory


    loebe
    Assigned User Giulio Toffoli
    CategoryBug report
    PriorityUrgent
    ReproducibilityAlways
    ResolutionOpen
    SeverityCritical
    StatusAssigned

    Im developing a web-based application for inventory data. The system is designed as 3-tier application (Vaadin-based frontend server, backend server, database). The data is requested by the frontend server using JAX-WS.

     

    I added my frontend software to iReports classpath, wrote a small bean factory class to request the data from the backend and provide them to iReport via a bean object.

     

    Now the problem: First i got the exception java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.internal.ws.spi.ProviderImpl

     

    I could fix this by adding the rl.jar of the java runtime to the classpath in iReport. Now the problem is as follows:

     

    java.lang.ExceptionInInitializerError javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference. 

    Caused by: javax.xml.bind.JAXBException  - with linked exception: [com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions org.w3c.dom.Element is an interface, and JAXB can't handle interfaces.

    Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions org.w3c.dom.Element is an interface, and JAXB can't handle interfaces.

     

    (Full stack trace as attachment)

     

    I cant figure out the problem by myself. I tried to start iReports with the remote debuger and connected eclipse. The breakpoint in my factory class was hit, but the debugger suddenly exits on requesting the data fron the backend via JAX-WS from the backend without an error. The above stack trace was given by iReports itself in the reports output window.

     

    The problem is the same when i use the JRAbstractBeanDataSourceProvider interface.

     

    Version: iReports 3.7.6


    Attachments: -stacktrace.txt

    User Feedback

    Recommended Comments



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...