Hi,
I'm trying to deploy Orbeon Forms 3.9.0.post.201109081900 CE on Tomcat 5.5 and Java 1.5 but controls are not displayed correctly due to CSS problem. A NoSuchMethodError is thrown : 2011-09-12 15:44:12,593 ERROR ProcessorService - Exception with no location data java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z at org.orbeon.oxf.xforms.processor.XFormsResourceRewriter$$anonfun$rewriteCSS$1.apply(XFormsResourceRewriter.scala:106) at org.orbeon.oxf.xforms.processor.XFormsResourceRewriter$$anonfun$rewriteCSS$1.apply(XFormsResourceRewriter.scala:106) The java.lang.String method isEmpty() doesn't exist in java 1.5 so the css resource can't be located. It works fine with Tomcat 6 and Java 1.6. The same problem was corrected earlier in april (see this post) Could you correct it in the next build ? Thanks Olivier |
Hi,
Finally, I have corrected the problem by replacing the isEmpty method by a test on the length of the string in the rewriteCSS method. (see file XFormsResourceRewriter.scala attached). It works fine now with java 1.5 and java 1.6. I attached also a jar package containing new class files generated after the modification : XformsResourceRewriter.jar. To test it, you have to copy the file in the lib directory and to delete from the orbeon.jar file the class files now packaged in XformsResourceRewriter.jar file. Erik, Alex, do you think it will be soon in a next build ? is it possible to push this kind of modification directly in the orbeon github repository ? Olivier |
Administrator
|
Olivier,
Thanks for noticing this. Our build system had been configured to use 1.5 but when we upgraded it seems like it switched back to 1.6! So the compilation doesn't catch that kind of things anymore. I have committed this one now: https://github.com/orbeon/orbeon-forms/commit/1b7aad6270634fa8a02a40e128de9f6c10eeeced -Erik On Mon, Sep 19, 2011 at 6:00 AM, Olivier Thery <[hidden email]> wrote: > Hi, > > Finally, I have corrected the problem by replacing the isEmpty method by a > test on the length of the string in the rewriteCSS method. (see file > http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3823822/XFormsResourceRewriter.scala > XFormsResourceRewriter.scala attached). > It works fine now with java 1.5 and java 1.6. > I attached also a jar package containing new class files generated after the > modification > http://orbeon-forms-ops-users.24843.n4.nabble.com/file/n3823822/XformsResourceRewriter.jar > : XformsResourceRewriter.jar . > To test it, you have to copy the file in the lib directory and to delete > from the orbeon.jar file the class files now packaged in > XformsResourceRewriter.jar file. > > Erik, Alex, do you think it will be soon in a next build ? > is it possible to push this kind of modification directly in the orbeon > github repository ? > > Olivier > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Orbeon-3-9-NoSuchMethodError-with-Java-1-5-tp3807530p3823822.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |