allocator undefined for NativeException
---------------------------------------

                 Key: JRUBY-6103
                 URL: https://jira.codehaus.org/browse/JRUBY-6103
             Project: JRuby
          Issue Type: Bug
            Reporter: Arild Shirazi
            Assignee: Thomas E Enebo
            Priority: Minor


Was attempting to perform the Ruby equivalent of wrapping a message. In this 
case just adding a bit more info before re-raising the exception. The code 
snippet below creates raises an unpected "allocator undefined for 
NativeException" in the rescue block.

rescue Exception => e
  tx.rollback if tx
  raise e.exception("#{e.message}: while parsing chunk '#{chunked_stream}'")
ensure
  session.close
end

The work-around was to log and raise the Java exception unmodified. Nothing 
painful, but I would like the #exception method to work the same on Ruby and 
Java exceptions. In my case I am working with highly threaded code and having 
interleaved error messages a bit difficult to tease apart.

--
This message is automatically generated by JIRA.
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