Error calling soap service, using soap4r v1.5.6 + 1.5.8
-------------------------------------------------------

                 Key: JRUBY-1687
                 URL: http://jira.codehaus.org/browse/JRUBY-1687
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.0.2
         Environment: RHEL 5, java 1.5.0_13-b05(64 Bit).  The gems I've got 
installed are ActiveRecord-JDBC v0.5, actionmailer  v1.3.5 and v1.3.6, 
actionpack v1.13.6 and v1.13.5, actionwebservice v1.2.6 and v1.2.5, 
activerecordc v1.15.6 and v1.15.5, activesupport v1.4.4, cgi_multipart_eof_fix 
v2.5.0, gem_plugin v0.2.3, httpclient v2.1.2, jruby-openssl v0.0.4, rails 
v1.2.6 and v1.2.5, rake v0.7.3, rspec v 1.0.8, soap5r v1.5.8/1.5.6 and sources 
v0.0.1
            Reporter: Michael Kohout
            Assignee: Thomas E Enebo
         Attachments: wsdl

When calling a web service from C Ruby, I don't get any errors:
irb(main):001:0> require 'soap/wsdlDriver'
=> true
irb(main):002:0> 
driver=SOAP::WSDLDriverFactory.new("https://XXX/wsdl";).create_rpc_driver
warning: peer certificate won't be verified in this SSL session
=> #<SOAP::RPC::Driver:#<SOAP::RPC::Proxy:https://XXX/ictr/ictr_ws/api>>

But when I call it from jRuby, I get lots. 

When using soap4r v1.5.6:
irb(main):001:0> require 'soap/wsdlDriver'
=> true
irb(main):002:0>  
driver=SOAP::WSDLDriverFactory.new("https://XXX/ictr_ws/wsdl";).create_rpc_driver
NativeException: java.lang.ClassCastException: org.jruby.RubyObject
        from null:-1:in 
`org.jruby.ext.openssl.X509CertInvoker_initializexx1.call'
        from InvocationCallback.java:49:in 
`org.jruby.runtime.callback.InvocationCallback.execute'
        from FullFunctionCallbackMethod.java:78:in 
`org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.internalCall'
        from DynamicMethod.java:79:in 
`org.jruby.internal.runtime.methods.DynamicMethod.call'
        from RubyObject.java:574:in `org.jruby.RubyObject.callMethod'
        from RubyObject.java:448:in `org.jruby.RubyObject.callMethod'
        from RubyClass.java:291:in `org.jruby.RubyClass.newInstance'
        from null:-1:in `org.jruby.RubyClassInvokernewInstancexx1.call'
        from InvocationCallback.java:49:in 
`org.jruby.runtime.callback.InvocationCallback.execute'
        from FullFunctionCallbackMethod.java:78:in 
`org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.internalCall'
        from DynamicMethod.java:79:in 
`org.jruby.internal.runtime.methods.DynamicMethod.call'
        from EvaluationState.java:571:in 
`org.jruby.evaluator.EvaluationState.callNode'
        from EvaluationState.java:207:in 
`org.jruby.evaluator.EvaluationState.evalInternal'
        from EvaluationState.java:1240:in 
`org.jruby.evaluator.EvaluationState.localAsgnNode'
        from EvaluationState.java:286:in 
`org.jruby.evaluator.EvaluationState.evalInternal'
        from EvaluationState.java:533:in 
`org.jruby.evaluator.EvaluationState.blockNode'
... 222 levels...
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/wsdl/importer.rb:18:in
 `import'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/soap/wsdlDriver.rb:124:in
 `import'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/soap/wsdlDriver.rb:28:in
 `initialize'
        from (irb):2:in `new'
        from (irb):2:in `binding'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/irb.rb:150:in 
`eval_input'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/irb.rb:70:in 
`signal_status'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/irb.rb:147:in 
`eval_input'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/irb.rb:70:in 
`each_top_level_statement'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/irb.rb:146:in `loop'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/irb.rb:146:in `catch'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/irb.rb:146:in 
`eval_input'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/irb.rb:70:in `start'
        from <script>:1:in `catch'
        from 
/home/mwkohout/netbeans-6.0/ruby1/jruby-1.0.2/lib/ruby/1.8/irb.rb:69:in `start'
        from <script>:1irb(main):003:0> 


When using soap4r v1.5.8:
irb(main):001:0> require 'soap/wsdlDriver'
=> true
irb(main):002:0> driver=SOAP::WSDLDriverFactory.new(" 
https://XXX/ictr_ws/wsdl";).create_rpc_driver
NativeException: java.lang.ClassCastException: org.jruby.RubyObject
    from null:-1:in `org.jruby.ext.openssl.X509CertInvoker_initializexx1.call'
    from InvocationCallback.java:49:in 
`org.jruby.runtime.callback.InvocationCallback.execute'
    from FullFunctionCallbackMethod.java:78:in 
`org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.internalCall'
    from DynamicMethod.java:79:in 
`org.jruby.internal.runtime.methods.DynamicMethod.call'
    from RubyObject.java:574:in `org.jruby.RubyObject.callMethod'
    from RubyObject.java:448:in `org.jruby.RubyObject.callMethod'
    from RubyClass.java:291:in `org.jruby.RubyClass.newInstance'
    from null:-1:in `org.jruby.RubyClassInvokernewInstancexx1.call'
    from InvocationCallback.java:49:in 
`org.jruby.runtime.callback.InvocationCallback.execute'
    from FullFunctionCallbackMethod.java:78:in 
`org.jruby.internal.runtime.methods.FullFunctionCallbackMethod.internalCall'
    from DynamicMethod.java:79:in 
`org.jruby.internal.runtime.methods.DynamicMethod.call'
    from EvaluationState.java:571:in 
`org.jruby.evaluator.EvaluationState.callNode'
    from EvaluationState.java:207:in 
`org.jruby.evaluator.EvaluationState.evalInternal'
    from EvaluationState.java:1240:in 
`org.jruby.evaluator.EvaluationState.localAsgnNode'
    from EvaluationState.java:286:in 
`org.jruby.evaluator.EvaluationState.evalInternal'
    from EvaluationState.java:533:in 
`org.jruby.evaluator.EvaluationState.blockNode'
... 222 levels...

I've attached a version of the WSDL.

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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to