Details

    • Type: Sub-task Sub-task
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.5.7
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 2000, JVM JVM: 1.5.0_16
    • Number of attachments :
      3

      Description

      I get the a package prohibited error when executing the following script:

      import groovyx.net.ws.WSClient
      
      println 'Creating proxy for service' 
      def testProxy = new WSClient("http://localhost:9080/ws/services/WSDHZSProductService?wsdl", this.class.classLoader)
      
      def aesClient = testProxy.create()
      
      //aesClient.retrieveCP()
      
      //aesClient.metaClass.methods.each {
       //println it
      //}
      
      println 'done'
      

      ( I don't know how to access the local file (shame shame), so I'll hope this will be sufficient to reproduce)

      1. aesbatch.groovy
        0.4 kB
        Alex Wouda
      2. error.log
        6 kB
        Alex Wouda
      3. WSDHZSProductService.xml
        119 kB
        Alex Wouda

        Activity

        Hide
        blackdrag blackdrag added a comment -

        if you get a messages complaining that something with java.lang got loaded by the wrong loader, then you should ensure your groovy classpath does not contain any such jars. If it is not java.lang, then it would help to actually see the exception. Also if it is java.lang, I need to know which classloader is causing this and for this I would require a full stack trace

        Show
        blackdrag blackdrag added a comment - if you get a messages complaining that something with java.lang got loaded by the wrong loader, then you should ensure your groovy classpath does not contain any such jars. If it is not java.lang, then it would help to actually see the exception. Also if it is java.lang, I need to know which classloader is causing this and for this I would require a full stack trace
        Hide
        Alex Wouda added a comment -

        added the stacktrace when calling the aesBatch script.

        Show
        Alex Wouda added a comment - added the stacktrace when calling the aesBatch script.
        Hide
        Alex Wouda added a comment -

        How can I promote this issue to have it being assigned?

        Show
        Alex Wouda added a comment - How can I promote this issue to have it being assigned?
        Hide
        Bernhard added a comment -

        Hi,

        for me the hint: classpath gives the correct direction and solved the problem.

        I mixed severals Java-versions. When moving to 1.7.0, I left 1.6.23 in the classpath.

        Show
        Bernhard added a comment - Hi, for me the hint: classpath gives the correct direction and solved the problem. I mixed severals Java-versions. When moving to 1.7.0, I left 1.6.23 in the classpath.
        Hide
        Paul King added a comment -

        add code tags

        Show
        Paul King added a comment - add code tags

          People

          • Assignee:
            Unassigned
            Reporter:
            Alex Wouda
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: