java.lang.IllegalArgumentException when running simple RDoc conversion ----------------------------------------------------------------------
Key: JRUBY-6240 URL: https://jira.codehaus.org/browse/JRUBY-6240 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.6.5 Environment: jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) Client VM 1.6.0_21) [Windows XP-x86-java] Reporter: Claus Folke Brobak Assignee: Thomas E Enebo h3. Program require 'rubygems' gem 'rdoc', '> 3.0' require 'rdoc' puts RDoc::Markup::ToHtml.new().convert('Hello, World!') h3. Result null:-1:in `replaceWith': java.lang.IllegalArgumentException: Replacement too long from RubyString.java:7321:in `getCharsetEncoder' from RubyString.java:7296:in `transcode' from RubyString.java:7251:in `encode' from RubyString$i$encode.gen:65535:in `call' from CachingCallSite.java:201:in `call' from CallTwoArgNode.java:59:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:276:in `call' from DefaultMethod.java:211:in `call' from CachingCallSite.java:352:in `cacheAndCall' from CachingCallSite.java:237:in `call' from FCallThreeArgNode.java:40:in `interpret' from HashNode.java:92:in `interpret' from AttrAssignTwoArgNode.java:36:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:112:in `INTERPRET_BLOCK' from Interpreted19Block.java:203:in `evalBlockBody' from Interpreted19Block.java:191:in `yield' from Interpreted19Block.java:122:in `call' from Block.java:89:in `call' from RubyProc.java:270:in `call' from RubyProc.java:258:in `call19' from RubyProc$i$0$0$call19.gen:65535:in `call' from DynamicMethod.java:219:in `call' from DynamicMethod.java:215:in `call' from RubyClass.java:718:in `finvoke' from RuntimeHelpers.java:551:in `invoke' from RubyHash.java:647:in `default_value_get' from RubyHash$i$default_value_get.gen:65535:in `call' from RubyClass.java:699:in `finvoke' from RuntimeHelpers.java:548:in `invoke' from RubyBasicObject.java:361:in `callMethod' from RubyHash.java:996:in `op_aref' from RubyHash$i$1$0$op_aref.gen:65535:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from CallOneArgNode.java:57:in `interpret' from LocalAsgnNode.java:123:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from IfNode.java:117:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:212:in `call' from DefaultMethod.java:187:in `call' from SuperCallSite.java:366:in `cacheAndCall' from SuperCallSite.java:192:in `callBlock' from SuperCallSite.java:197:in `call' from SuperCallSite.java:108:in `callVarargs' from SuperNode.java:114:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from FCallOneArgNode.java:36:in `interpret' from FCallOneArgNode.java:36:in `interpret' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:104:in `interpret' from CaseNode.java:138:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:112:in `INTERPRET_BLOCK' from Interpreted19Block.java:203:in `evalBlockBody' from Interpreted19Block.java:154:in `yield' from Block.java:130:in `yield' from RubyArray.java:1605:in `eachCommon' from RubyArray.java:1612:in `each' from RubyArray$i$0$0$each.gen:65535:in `call' from CachingCallSite.java:302:in `cacheAndCall' from CachingCallSite.java:144:in `callBlock' from CachingCallSite.java:153:in `callIter' from CallNoArgBlockNode.java:64:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from CallOneArgNode.java:57:in `interpret' from NewlineNode.java:104:in `interpret' from BlockNode.java:71:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:233:in `call' from DefaultMethod.java:195:in `call' from CachingCallSite.java:332:in `cacheAndCall' from CachingCallSite.java:203:in `call' from CallTwoArgNode.java:59:in `interpret' from NewlineNode.java:104:in `interpret' from ASTInterpreter.java:75:in `INTERPRET_METHOD' from InterpretedMethod.java:190:in `call' from DefaultMethod.java:179:in `call' from CachingCallSite.java:312:in `cacheAndCall' from CachingCallSite.java:169:in `call' from tst.rb:5:in `__file__' from tst.rb:-1:in `load' from Ruby.java:693:in `runScript' from Ruby.java:686:in `runScript' from Ruby.java:593:in `runNormally' from Ruby.java:442:in `runFromMain' from Main.java:321:in `doRunFromMain' from Main.java:241:in `internalRun' from Main.java:207:in `run' from Main.java:191:in `run' from Main.java:171:in `main' h3. Further information There is no exception when running JRuby in 1.8 mode. Unfortunately, this cannot be used as a workaround when the text includes Danish national characters, quotes or other special characters. -- 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