Solaris substitute error - NoSuchMethodError
[email protected] Wed, 22 Oct 2003 16:39:45 -0700
| Newsgroups | gmane.comp.jakarta.oro.devel |
|---|---|
| Message-ID | <[email protected]> |
Please disregard my previous message. We are using Jython (http://www.jython.org) and for some insane reason their jython.jar has ORO included in it. Sorry if anyone lost cycles on this. Thanks, Marcus ----- Forwarded by Marcus Malcom/IS/Expeditors on 10/22/2003 04:23 PM ----- |---------+----------------------------> | | Marcus Malcom | | | | | | 10/22/2003 11:49 | | | AM | | | | |---------+----------------------------> >-------------------------------------------------------------------------------------------------------------------------------------| | | | To: [email protected] | | cc: | | Subject: Solaris substitute error - NoSuchMethodError | >-------------------------------------------------------------------------------------------------------------------------------------| Ran into a problem with substitute: <begin code chunk> String replaceExpr = "s/foo/bar/g"; Perl5Util util = new Perl5Util(); StringBuffer sb = new StringBuffer(); util.substitute(sb, replaceExpr, "something---foo---else"); </begin code chunk> This works great in a Windows environment; however, on a Solaris box the same code produces this: 8 Testcase: testSubstitue(com.expd.app.common.regexp.Perl5RegexUtilTest): Caused an ERROR 9 org.apache.oro.text.regex.Util.substitute(Ljava/lang/StringBuffer;Lorg/apache/oro/text/regex/PatternMatcher;Lorg /apache/oro/text/regex/Pattern;Lorg/apache/oro/text/regex/Substitution;Ljava/lang/String;I)I 10 java.lang.NoSuchMethodError: org.apache.oro.text.regex.Util.substitute(Ljava/lang/StringBuffer;Lorg/apache/oro/t ext/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;Lorg/apache/oro/text/regex/Substitution;Ljava/lang/String;I) I 11 at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source) 12 at com.expd.app.common.regexp.Perl5RegexUtil.substitute(Perl5RegexUtil.java:99) 13 at com.expd.app.common.regexp.Perl5RegexUtilTest.testSubstitue(Unknown Source) 14 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 15 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 16 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) I've tried to make the environments as similar as possible: Windows: - Windows 2000 - ORO 2.0.7 java version "1.4.1_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_05-b01) Java HotSpot(TM) Client VM (build 1.4.1_05-b01, mixed mode) Solaris: - SunOS 5.9 Generic_112233-04 sun4u sparc SUNW,Sun-Fire-280R - ORO 2.0.7 java version "1.4.1_05" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_05-b01) Java HotSpot(TM) Client VM (build 1.4.1_05-b01, mixed mode) Not sure what else to try ... Actually, this brings up a more general topic. Is ORO "certified" to run on a SunOS? I've been noticing some strange problems when running ORO on Solaris. Any ideas? Thanks, Marcus