IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

InvocationTargetException from external Jar

  • 1.  InvocationTargetException from external Jar

    Posted Fri September 29, 2017 11:25 AM

    Hi,

    I’ve created a Jar including a group of others librairies using Maven.
    I’ve asked Maven to create me a once Jar file which contains all the other jars.

    When I test my Jar in Eclipse, all works fine but when I integrate my Jar on the IS (\instances\default\packages\my_package\code\jars)
    and test the calling from a Java Service call within the Designer I have an error (some Reflection problem) :

    Could not initialize class Bdoc.DTO.RepositoryDTOProto$RepositoryDTO
    Caused by: java.lang.reflect.InvocationTargetException: null
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class Bdoc.DTO.RepositoryDTOProto$RepositoryDTO

    I’ve tried another way, asking Maven to create me a Jar + the conventional “dependency-jars” directory.
    all copied on the IS. but results is the same.

    Could you tell me if I’m missing something ?

    Regards


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: InvocationTargetException from external Jar

    Posted Wed August 07, 2019 12:10 PM

    I know it has been a long time but have you find what was the issue?
    Or anybody have faced the same issue?
    Thanks


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods