[x3d-public] This may be a duplicate bug report for X3DJSAIL, but this time, I am sending an X3D file.

John Carlson yottzumm at gmail.com
Wed Jan 31 07:32:00 PST 2018


If there’s a bug in my example, please provide better reporting than Null pointer exception, if possible.  There may be a configuration property I need to set as well.

Thanks,

net/coderextreme/data/CameraExamples
Exception in thread "main" java.lang.NullPointerException
        at org.web3d.x3d.jsail.Core.ProtoInstanceObject.getNodeType(ProtoInstanceObject.java:790)
        at org.web3d.x3d.jsail.Core.ProtoInstanceObject.validate(ProtoInstanceObject.java:1160)
        at org.web3d.x3d.jsail.Core.fieldValueObject.validate(fieldValueObject.java:979)
        at org.web3d.x3d.jsail.Core.ProtoInstanceObject.addFieldValue(ProtoInstanceObject.java:1242)
        at net.coderextreme.data.CameraExamples.initialize(CameraExamples.java:405)
        at net.coderextreme.data.CameraExamples.main(CameraExamples.java:80)

I will look into this soon, to see if I can derive a solution. SYS. I am too tired to see a solution right now. My brain isn’t working, but it looks like a configuration property vital to debugging may not be set. It would be good to know which one in an error message. It’s kinda your call Don, unless I need to improve my Java code (which is perfect, obviously 😊.

I think we’ve covered this before, actually.   Sigh

Note that code generated from X3dToJava.xslt produces the same error. I am including both.

$ java -cp "C:/Users/coderextreme/pythonSAI/X3DJSAIL.3.3.full.jar;." net/x3djsonld/data/CameraExamples
Exception in thread "main" java.lang.NullPointerException
        at org.web3d.x3d.jsail.Core.ProtoInstanceObject.getNodeType(ProtoInstanceObject.java:790)
        at org.web3d.x3d.jsail.Core.ProtoInstanceObject.validate(ProtoInstanceObject.java:1160)
        at org.web3d.x3d.jsail.Core.fieldValueObject.validate(fieldValueObject.java:979)
        at org.web3d.x3d.jsail.Core.ProtoInstanceObject.addFieldValue(ProtoInstanceObject.java:1242)
        at net.x3djsonld.data.CameraExamples.initialize(CameraExamples.java:243)
        at net.x3djsonld.data.CameraExamples.<init>(CameraExamples.java:128)
        at net.x3djsonld.data.CameraExamples.main(CameraExamples.java:645)

John
Sent from Mail for Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180131/ddf1d8bb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CameraExamples.java
Type: application/octet-stream
Size: 76241 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180131/ddf1d8bb/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CameraExamples.x3d
Type: application/octet-stream
Size: 43902 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180131/ddf1d8bb/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CameraExamples.java
Type: application/octet-stream
Size: 66827 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180131/ddf1d8bb/attachment-0005.obj>


More information about the x3d-public mailing list