OutOfMemoryError when using soap4r on jruby 1.1.6
-------------------------------------------------

                 Key: JRUBY-3363
                 URL: http://jira.codehaus.org/browse/JRUBY-3363
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.6
            Reporter: Piotr Szrajber
            Assignee: Thomas E Enebo


For brevity I simplified the problem to oneliner that creates a google search 
rpc driver.

"SOAP::WSDLDriverFactory.new('http://api.google.com/GoogleSearch.wsdl').create_rpc_driver"

When executing the following line in jruby 1.1.6:

>d:\jruby-1.1.6\bin\jruby.bat -w -r "soap/wsdlDriver" -e 
>"SOAP::WSDLDriverFactory.new('http://api.google.com/GoogleSearch.wsdl').create_rpc_driver"

I get the following error trace:

[PKCS7Exception part is intentionally cut out as it seems to be fixed with 
jruby-openssl 0.4 according to 
http://jira.codehaus.org/browse/JRUBY/fixforversion/14808]

Error: Your application used more memory than the safety cap.
Specify -J-Xmx####m to increase it (#### = cap size in MB).
Exception trace follows:
java.lang.OutOfMemoryError: Java heap space
        at org.jruby.util.ByteList.ensure(ByteList.java:193)
        at org.jruby.RubyString.modify(RubyString.java:615)
        at org.jruby.RubyString.cat(RubyString.java:916)
        at org.jruby.RubyString.append(RubyString.java:1401)
        at org.jruby.RubyString.concat(RubyString.java:1413)
        at 
org.jruby.RubyString$i_method_1_0$RUBYINVOKER$concat.call(org/jruby/RubyString$i_method_1_0$RUBYINVOKER$concat.gen)
        at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:114)
        at org.jruby.ast.CallOneArgNode.interpret(CallOneArgNode.java:57)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        at org.jruby.ast.IfNode.interpret(IfNode.java:111)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        at 
org.jruby.runtime.InterpretedBlock.evalBlockBody(InterpretedBlock.java:202)
        at org.jruby.runtime.InterpretedBlock.yield(InterpretedBlock.java:190)
        at org.jruby.runtime.Block.yield(Block.java:133)
        at org.jruby.ast.YieldNode.interpret(YieldNode.java:95)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
        at org.jruby.ast.IfNode.interpret(IfNode.java:109)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
        at org.jruby.ast.WhileNode.interpret(WhileNode.java:128)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        at org.jruby.ast.BlockNode.interpret(BlockNode.java:68)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.interpretedCall(DefaultMethod.java:156)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:133)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:225)
        at 
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:270)
        at 
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:85)
        at 
org.jruby.ast.FCallNoArgBlockPassNode.interpret(FCallNoArgBlockPassNode.java:26)
        at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:101)
        at org.jruby.ast.IfNode.interpret(IfNode.java:109)
        at org.jruby.ast.IfNode.interpret(IfNode.java:111)

When using jruby 1.1.5 I get only the PKCS7 part and no OutOfMemoryError.

On MRI it all just works.

Btw. when jruby-openssl is going to be released?

-- 
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