[x3d-public] SFImage regex; X3DUOM? X3DJSAIL? results from test.nashorn: Unclosed group in regex
John Carlson
yottzumm at gmail.com
Thu Jun 14 22:29:55 PDT 2018
Patch to X3dRegularExpressions.html attached. Please check this change into subversion.
Thanks,
John
> On Jun 14, 2018, at 8:48 PM, Andreas Plesch <andreasplesch at gmail.com> wrote:
>
> John,
>
> as previously mentioned, an extra '}' had remained. Replace [A-F} with [A-F].
>
> Andreas
>
>
>
>
> On Thu, Jun 14, 2018, 8:50 PM John Carlson <yottzumm at gmail.com <mailto:yottzumm at gmail.com>> wrote:
> ~johncarlson/Downloads/apache-ant-1.10.3/bin/ant test.nashorn
> Buildfile: /Users/johncarlson/Downloads/www.web3d.org/x3d/stylesheets/java/build <http://www.web3d.org/x3d/stylesheets/java/build>
> [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontri
>
> test.nashorn:
> [echo] ===========================================
> [echo] ant nashorn/build.xml test.nashorn
> [taskdef] Could not load definitions from resource net/sf/antcontrib/antcontri
>
> test.nashorn:
> [echo] Compile:
> [javac] Compiling 1 source file to /Users/johncarlson/Downloads/www.web3d.or <http://www.web3d.or/>
> [echo] Copy:
> [copy] Copying 1 file to /Users/johncarlson/Downloads/www.web3d.org/x3d/sty <http://www.web3d.org/x3d/sty>
> [copy] Copying /Users/johncarlson/Downloads/www.web3d.org/x3d/stylesheets/j <http://www.web3d.org/x3d/stylesheets/j>
> [copy] Copying 1 file to /Users/johncarlson/Downloads/www.web3d.org/x3d/sty <http://www.web3d.org/x3d/sty>
> [copy] Copying /Users/johncarlson/Downloads/www.web3d.org/x3d/stylesheets/j <http://www.web3d.org/x3d/stylesheets/j>
> [echo] Run:
> [java] parameter: source file HelloWorldProgramOutput.x3d filesize 21195 by
> [java] parameter: "-tojs" for conversion to X3DJSONLD JavaScript source
> [java] parameter: "-toFile" "nashorn/examples/HelloWorldProgramOutput.Nasho
> [java] convert to JS JavaScript:
> [java] Warning: toFileJavaScript() is overwriting prior file nashorn/exampl
> [java] Script DEF=colorTypeConversionScript contains CDATA source-code text
> [java] Script DEF=MaterialModulatorScript contains CDATA source-code text,
> [java] TypeError: input.readAllBytes is not a function
> [java] Error: Cannot read file [/Users/johncarlson/Downloads/www.web3d.org/ <http://www.web3d.org/>
> [java] org.web3d.x3d.sai.X3DException: ScriptException when processing file
> [java] at org.web3d.x3d.jsail.Core.X3DObject.toFileJavaScript(X3DObject
> [java] at org.web3d.x3d.jsail.CommandLine.run(CommandLine.java:628)
> [java] at org.web3d.x3d.jsail.CommandLine.main(CommandLine.java:163)
> [java] [Error] TODO problem handling local exception within CommandLine, ex
> [java] parameter: source file HelloWorldProgramOutput.x3d filesize 21195 by
> [java] parameter: "-toJSON" for conversion to JSON encoding
> [java] parameter: "-toFile" "nashorn/examples/HelloWorldProgramOutput.Java.
> [java] convert to JSON:
> [java] Warning: toFileStylesheetConversion(X3dToJson.xslt) is overwriting p
> [java] Script DEF=colorTypeConversionScript contains CDATA source-code text
> [java] Script DEF=MaterialModulatorScript contains CDATA source-code text,
> [java] file conversion successful: HelloWorldProgramOutput.Java.json (40043
> [java] parameter: source file HelloWorldProgramOutput.x3d filesize 21195 by
> [java] parameter: "-toX3D" for conversion to X3D encoding
> [java] parameter: "-toFile" "nashorn/examples/HelloWorldProgramOutput.Java.
> [java] convert to X3D:
> [java] Warning: toFileX3D() is overwriting prior file nashorn/examples/Hell
> [java] file conversion successful: HelloWorldProgramOutput.Java.x3d (21195
> [echo] ===========================================
> [echo] HelloWorldProgramOutput.Java.x3d
> [xmlvalidate] 1 file(s) have been successfully validated.
> [xmlvalidate] 1 file(s) have been successfully validated.
> [echo] matches HelloWorldProgramOutput.x3d: true
> [echo] ===========================================
> [echo] ===========================================
> [echo] HelloWorldProgramOutput.Java.json
> [echo] matches HelloWorldProgramOutput.json: false
> [echo] ===========================================
> [echo] script:
> [exec] Exception in thread "main" java.lang.ExceptionInInitializerError
> [exec] at java.lang.Class.forName0(Native Method)
> [exec] at java.lang.Class.forName(Class.java:348)
> [exec] at jdk.nashorn.internal.runtime.Context.findClass(Context.java:1
> [exec] at jdk.nashorn.internal.objects.NativeJava.simpleType(NativeJava
> [exec] at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:
> [exec] at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:
> [exec] at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:
> [exec] at jdk.nashorn.internal.scripts.Script$1$X3Dautoclass.:program(n
> [exec] at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Script
> [exec] at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunc
> [exec] at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntim
> [exec] at jdk.nashorn.internal.runtime.Context.evaluateSource(Context.j
> [exec] at jdk.nashorn.internal.runtime.Context.load(Context.java:839)
> [exec] at jdk.nashorn.internal.objects.Global.load(Global.java:1545)
> [exec] at jdk.nashorn.internal.scripts.Script$HelloWorldProgramOutput_N
> [exec] at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Script
> [exec] at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunc
> [exec] at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntim
> [exec] at jdk.nashorn.tools.Shell.apply(Shell.java:471)
> [exec] at jdk.nashorn.tools.Shell.runScripts(Shell.java:400)
> [exec] at jdk.nashorn.tools.Shell.run(Shell.java:179)
> [exec] at jdk.nashorn.tools.Shell.main(Shell.java:143)
> [exec] at jdk.nashorn.tools.Shell.main(Shell.java:119)
> [exec] Caused by: java.util.regex.PatternSyntaxException: Unclosed group ne
> [exec] (((\d|[1-9]\d+)(\s+(\d|[1-9]\d+)){2}(\s+((0x([a-f]|[A-F}|\d]){1,8})|
> [exec]
> [exec] at java.util.regex.Pattern.error(Pattern.java:1957)
> [exec] at java.util.regex.Pattern.accept(Pattern.java:1815)
> [exec] at java.util.regex.Pattern.group0(Pattern.java:2910)
> [exec] at java.util.regex.Pattern.sequence(Pattern.java:2053)
> [exec] at java.util.regex.Pattern.expr(Pattern.java:1998)
> [exec] at java.util.regex.Pattern.compile(Pattern.java:1698)
> [exec] at java.util.regex.Pattern.<init>(Pattern.java:1351)
> [exec] at java.util.regex.Pattern.compile(Pattern.java:1028)
> [exec] at org.web3d.x3d.jsail.fields.MFImageObject.<clinit>(MFImageObje
> [exec] ... 23 more
> [exec] Result: 1
> [echo] ===========================================
> [echo] HelloWorldProgramOutput.Java.x3d
> [echo] matches HelloWorldProgramOutput.Nashorn.js.new.x3d: false
> [echo] ===========================================
> [echo] ===========================================
> [echo] HelloWorldProgramOutput.Java.json
> [echo] matches HelloWorldProgramOutput.Nashorn.js.new.json: false
> [echo] ===========================================
> [exec] Exception in thread "main" java.lang.ExceptionInInitializerError
> [exec] at java.lang.Class.forName0(Native Method)
> [exec] at java.lang.Class.forName(Class.java:348)
> [exec] at jdk.nashorn.internal.runtime.Context.findClass(Context.java:1
> [exec] at jdk.nashorn.internal.objects.NativeJava.simpleType(NativeJava
> [exec] at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:
> [exec] at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:
> [exec] at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:
> [exec] at jdk.nashorn.internal.scripts.Script$1$X3Dautoclass.:program(n
> [exec] at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Script
> [exec] at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunc
> [exec] at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntim
> [exec] at jdk.nashorn.internal.runtime.Context.evaluateSource(Context.j
> [exec] at jdk.nashorn.internal.runtime.Context.load(Context.java:839)
> [exec] at jdk.nashorn.internal.objects.Global.load(Global.java:1545)
> [exec] at jdk.nashorn.internal.scripts.Script$Nashorn.:program(nashorn/
> [exec] at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Script
> [exec] at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunc
> [exec] at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntim
> [exec] at jdk.nashorn.tools.Shell.apply(Shell.java:471)
> [exec] at jdk.nashorn.tools.Shell.runScripts(Shell.java:400)
> [exec] at jdk.nashorn.tools.Shell.run(Shell.java:179)
> [exec] at jdk.nashorn.tools.Shell.main(Shell.java:143)
> [exec] at jdk.nashorn.tools.Shell.main(Shell.java:119)
> [exec] Caused by: java.util.regex.PatternSyntaxException: Unclosed group ne
> [exec] (((\d|[1-9]\d+)(\s+(\d|[1-9]\d+)){2}(\s+((0x([a-f]|[A-F}|\d]){1,8})|
> [exec]
> [exec] at java.util.regex.Pattern.error(Pattern.java:1957)
> [exec] at java.util.regex.Pattern.accept(Pattern.java:1815)
> [exec] at java.util.regex.Pattern.group0(Pattern.java:2910)
> [exec] at java.util.regex.Pattern.sequence(Pattern.java:2053)
> [exec] at java.util.regex.Pattern.expr(Pattern.java:1998)
> [exec] at java.util.regex.Pattern.compile(Pattern.java:1698)
> [exec] at java.util.regex.Pattern.<init>(Pattern.java:1351)
> [exec] at java.util.regex.Pattern.compile(Pattern.java:1028)
> [exec] at org.web3d.x3d.jsail.fields.MFImageObject.<clinit>(MFImageObje
> [exec] ... 23 more
> [exec] Result: 1
> [echo] ===========================================
> [echo] HelloWorldProgramOutput.x3d
> [echo] matches Nashorn.x3d: false
> [echo] ===========================================
> [echo] ===========================================
> [echo] HelloWorldProgramOutput.x3d
> [echo] matches Nashorn0.x3d: false
> [echo] ===========================================
> [exec] Exception in thread "main" java.lang.ExceptionInInitializerError
> [exec] at java.lang.Class.forName0(Native Method)
> [exec] at java.lang.Class.forName(Class.java:348)
> [exec] at jdk.nashorn.internal.runtime.Context.findClass(Context.java:1
> [exec] at jdk.nashorn.internal.objects.NativeJava.simpleType(NativeJava
> [exec] at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:
> [exec] at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:
> [exec] at jdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:
> [exec] at jdk.nashorn.internal.scripts.Script$1$X3Dautoclass.:program(n
> [exec] at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Script
> [exec] at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunc
> [exec] at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntim
> [exec] at jdk.nashorn.internal.runtime.Context.evaluateSource(Context.j
> [exec] at jdk.nashorn.internal.runtime.Context.load(Context.java:839)
> [exec] at jdk.nashorn.internal.objects.Global.load(Global.java:1545)
> [exec] at jdk.nashorn.internal.scripts.Script$Json.:program(nashorn/exa
> [exec] at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Script
> [exec] at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunc
> [exec] at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntim
> [exec] at jdk.nashorn.tools.Shell.apply(Shell.java:471)
> [exec] at jdk.nashorn.tools.Shell.runScripts(Shell.java:400)
> [exec] at jdk.nashorn.tools.Shell.run(Shell.java:179)
> [exec] at jdk.nashorn.tools.Shell.main(Shell.java:143)
> [exec] at jdk.nashorn.tools.Shell.main(Shell.java:119)
> [exec] Caused by: java.util.regex.PatternSyntaxException: Unclosed group ne
> [exec] (((\d|[1-9]\d+)(\s+(\d|[1-9]\d+)){2}(\s+((0x([a-f]|[A-F}|\d]){1,8})|
> [exec]
> [exec] at java.util.regex.Pattern.error(Pattern.java:1957)
> [exec] at java.util.regex.Pattern.accept(Pattern.java:1815)
> [exec] at java.util.regex.Pattern.group0(Pattern.java:2910)
> [exec] at java.util.regex.Pattern.sequence(Pattern.java:2053)
> [exec] at java.util.regex.Pattern.expr(Pattern.java:1998)
> [exec] at java.util.regex.Pattern.compile(Pattern.java:1698)
> [exec] at java.util.regex.Pattern.<init>(Pattern.java:1351)
> [exec] at java.util.regex.Pattern.compile(Pattern.java:1028)
> [exec] at org.web3d.x3d.jsail.fields.MFImageObject.<clinit>(MFImageObje
> [exec] ... 23 more
> [exec] Result: 1
> [echo] ===========================================
> [echo] HelloWorldProgramOutput.x3d
> [echo] matches Json.x3d: false
> [echo] ===========================================
> [echo] HelloWorldProgramOutput.json
> [echo] matches Json.json: false
> [echo] ===========================================
>
> BUILD SUCCESSFUL
> Total time: 21 seconds
> sh-3.2#
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180614/08f2aab3/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regex.patch
Type: application/octet-stream
Size: 526 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180614/08f2aab3/attachment-0001.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180614/08f2aab3/attachment-0003.html>
More information about the x3d-public
mailing list