• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

UnsupportedNodeException: Java run-time error

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've been stuck on the same problem for some time and I don't know why I get the following Run-time error when I run my project.

My Java code for this is

The X3D files that I need to pass through it so it displays contain a viewpoint and imageTexture url tags which are tested to cause the problem. When I delete those tags from within the X3D files, it does work but doesn't have the desired output as it seemed to be zoomed in and have no texture the the X3D file. I'm making the project in Netbeans 8.1 and using X3D-Edit 3.3
 
Ranch Hand
Posts: 233
1
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Matthew, I have not gone through your code, but would suggest you to see in here from the trace:

This will give you the root cause, please use stack trace of exception as you already have it, thats how I have resolved numerous issues.
 
Matthew Yeend
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How would I use stack trace of exception? As I've googled it and struggling to find a clear cut way to do it
 
Rajdeep Biswas
Ranch Hand
Posts: 233
1
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are asking how to use stack trace to see issues, here is an example:


Running this in eclipse gives following output on console:
In your exception trace however, you do not need to check the whole trace, its verbose for most. You need to understand what causes that exception, try to fix the reason then.
The best way is to put a debug point in your code that runs well before exception occurs, and from thereon, you carefully look at whole thing at your fingertip when the debug control moves.
I have also discovered a source code link here: http://svn.xj3d.org/xj3d_code/tags/VDST_1_1_0/src/java/org/web3d/vrml/renderer/.

Just look at DefaultNodeFactory.java in line 730 and it will be more clear to you.
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rajdeep Biswas wrote:. . . I have also discovered a source code link . . .

Well done: have a cow
 
Matthew Yeend
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, seeing that has cleared it up for me on how to use a stack trace. I've had a look at that link that you've provided at line 730 and the line is but the whole method that contains that line is
 
Campbell Ritchie
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That catch obviously represent a logger. I presume there is some List or other in line 730 which contains the nodes. How you add a node, I don't know, but there may be something in the rest of the code.
 
Matthew Yeend
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The rest of the code that's shown in the http://svn.xj3d.org/xj3d_code/tags/VDST_1_1_0/src/java/org/web3d/vrml/renderer/DefaultNodeFactory.java class is
 
reply
    Bookmark Topic Watch Topic
  • New Topic