• Post Reply Bookmark Topic Watch Topic
  • New Topic

UnsupportedNodeException: Request for a node that is not part of the specified profile and component  RSS feed

 
Matthew Yeend
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • 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

When I run the project with simple X3D files, it works great, the X3D files get displayed; however, when I load the X3D files that I need to use, ones with URLs in, I get the above error. I've set the Java code up in Netbeans 8.1 up so that it does display the X3D files. I'm totally unsure why I'm getting the above error and why it's prohibiting the Java code to display any X3D files that contain URLs.
 
Paul Clapham
Sheriff
Posts: 22835
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message says:

Request for a node that is not part of the specified profile and components for this stream: viewpoint


So your "viewpoint" node which you have in your document isn't part of... well you can read it for yourself. Presumably you know what a "profile" is and what "components" are? And you seem to be intent on making this to be about URLs, although the error message doesn't mention URLs in any way.
 
Matthew Yeend
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assumed that the error message mentioned URLs on the lines
I am aware of what a 'profile' is and what 'components' are
 
Paul Clapham
Sheriff
Posts: 22835
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew Yeend wrote:I am aware of what a 'profile' is and what 'components' are


That's a good start. So you specified some profile somehow, but then you're giving it a document which isn't suitable for that profile because it has a "viewpoint" node in it and that profile isn't expecting such a node.
 
Matthew Yeend
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The viewpoint within the X3D file that I'm trying to display with this Java class is
<viewpoint centerOfRotation="7 1 0" position='10 0 40' orientation='0 0 0 1'></viewpoint>
When I open the X3D file normally, using Instant Player, it works 100%.
 
Paul Clapham
Sheriff
Posts: 22835
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's useful information. What profile is Instant Player using, then? If you can determine that then probably you should use the same profile.
 
Matthew Yeend
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The profile that's detailed in the X3D file is:
profile="Immersive"
 
Matthew Yeend
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's the viewpoint within the X3D file that's causing the problem.
 
Matthew Yeend
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error still isn't fixed
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!