[x3d-public] Validating X3D JSON (old zip?) with X3DJSAIL (possibly old versIon)
John Carlson
yottzumm at gmail.com
Sat Apr 9 16:26:20 PDT 2022
The good news is that the Ajv build appears to be working. I switched to
my working repository, which has newer JSON files, and here's what I get:
$ grep Ajv results.txt |grep -v LatticeXvl|grep -v Gltf|grep -v
development|grep -v Alternative
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/Basic/Geospatial/newGeospatialScene.json
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter30Scripts/Figure30_1ScriptSlidingBall.json
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Animation/PongGame.json
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTest.json
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedOriginalEncoding.json
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/MultiTextureDesignPattern.json
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/TextureMapping/MultiTextureTeapot.json
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter05AppearanceMaterialTextures/FillPropertiesExample.json
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter05AppearanceMaterialTextures/LinePropertiesExample.json
0 Ajv 4.0 Validation failed on C:/x3d-code/
www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter15Metadata/MetadataNodeExamplesX3D4.json
These are quite different than what I got historically. I will run these
through the JSON creation process again!
There is still an issue with the ant build in x3dschema. I hope to cover
this in our Monday meeting?
John
On Sat, Apr 9, 2022 at 6:06 PM John Carlson <yottzumm at gmail.com> wrote:
> Apparently this schema was not up to date. It will be up to date soon. I
> am still having issues with x3dschema build.
>
> On Sat, Apr 9, 2022 at 4:10 PM John Carlson <yottzumm at gmail.com> wrote:
>
>> I ran the ant tasks in coderextreme/x3dschema: X3D Schema work (JSON)
>> (github.com) <https://github.com/coderextreme/x3dschema>
>>
>> I got many errors like the below. I'm sure any of the files from:
>>
>>
>> https://www.web3d.org/x3d/content/examples/X3dExampleArchivesJsonScenes.zip
>>
>> pass muster. I will try regenning the JSON files. If I still get errors
>> after regenning, we can try to figure out what's happening.
>>
>> Wish me luck!
>>
>> You can pick up new schem with changes @
>>
>> x3dschema/x3d-4.0-JSONSchema.json at master · coderextreme/x3dschema
>> (github.com)
>> <https://github.com/coderextreme/x3dschema/blob/master/x3d-4.0-JSONSchema.json>
>>
>> [echo] Validate C:\x3d-code\www.web3d.org\x3d\content\examples\Basic\ChemicalMarkupLanguage\AceticAcid.json
>> with classpath .:/x3d-code/
>> www.web3d.org/x3d/stylesheets/java/jars/X3DJSAIL.4.0.full.jar
>> [java] Validating C:\x3d-code\www.web3d.org
>> \x3d\content\examples\Basic\ChemicalMarkupLanguage\AceticAcid.json
>> [java] X3DJSONLD comment replacing "Copyright by the U.S. Sec.
>> Commerce on behalf of U.S.A. All rights reserved."
>> [java] with "Copyright by the U.S. Sec.
>> Commerce on behalf of U.S.A. All rights reserved."
>> [java] X3DJSONLD comment replacing "type=\"3D\" <date day=\"5\"
>> month=\"2\" year=\"2010\"/>"
>> [java] with "type="3D" <date day="5"
>> month="2" year="2010"/>"
>> [java] Info: meta name newValue='CML version' includes an
>> unrecognized value not matching any of the optional string tokens.
>> [java] java.lang.NullPointerException: Cannot invoke
>> "String.contains(java.lang.CharSequence)" because the return value of
>> "java.lang.reflect.InvocationTargetException.getMessage()" is null
>> [java] at
>> org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:1590)
>> [java] at
>> org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
>> [java] at
>> org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:619)
>> [java] at
>> org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:490)
>> [java] at
>> org.web3d.x3d.jsail.X3DLoaderDOM.toX3dModelInstance(X3DLoaderDOM.java:453)
>> [java] at Validate.main(Validate.java:18)
>> [java] at
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> [java] at
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>> [java] at
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> [java] at
>> java.base/java.lang.reflect.Method.invoke(Method.java:568)
>> [java] at
>> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:218)
>> [java] at
>> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:155)
>> [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:891)
>> [java] at
>> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:231)
>> [java] at
>> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
>> [java] at
>> org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
>> [java] at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
>> [java] at
>> jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>> [java] at
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> [java] at
>> java.base/java.lang.reflect.Method.invoke(Method.java:568)
>> [java] at
>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
>> [java] at org.apache.tools.ant.Task.perform(Task.java:350)
>> [java] at org.apache.tools.ant.Target.execute(Target.java:449)
>> [java] at
>> org.apache.tools.ant.Target.performTasks(Target.java:470)
>> [java] at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
>> [java] at
>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36)
>> [java] at
>> org.apache.tools.ant.Project.executeTargets(Project.java:1264)
>> [java] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437)
>> [java] at
>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106)
>> [java] at
>> jdk.internal.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
>> [java] at
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> [java] at
>> java.base/java.lang.reflect.Method.invoke(Method.java:568)
>> [java] at
>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
>> [java] at org.apache.tools.ant.Task.perform(Task.java:350)
>> [java] at java.base/java.util.Vector.forEach(Vector.java:1359)
>> [java] at
>> org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:67)
>> [java] at
>> net.sf.antcontrib.logic.ForEach.executeSequential(ForEach.java:178)
>> [java] at
>> net.sf.antcontrib.logic.ForEach.execute(ForEach.java:254)
>> [java] at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
>> [java] at
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
>> [java] at
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>> [java] at
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> [java] at
>> java.base/java.lang.reflect.Method.invoke(Method.java:568)
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220409/c26bd52f/attachment-0001.html>
More information about the x3d-public
mailing list