Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: Weird XJ3D exception on VRML file loaded by UR on: 2005-05-10 00:20:24
To Alan_W:
- Thank you for your help. Unfortunately I found that link on Google too :-/ , before deciding to post this topic, and it didn't help me at all - it's a very bogus phrase, that doesn't point to any solution in my case: I already have the XJ3D installed properly, in the /lib/ext directory. And also, this time around, Google is not a very good friend I'm afraid, as it finds only 2 similar posts on JavaInterest Archives. Thanx again, though, even just for the intention of helping me!

To Jeff:
- Thanx at least for trying to point me in the right direction about the kind of forums I should be posting my message in.
  As I stated in my original message, the loader is the one supplied by XJ3D.org. I didn't have any luck posting on a forum of theirs, as it seems to be kind of deserted  Huh . That's why I decided to post it on other forums as well, sorry if I have offended you in any way by doing that!
  I tried the Sun version of the loader tonight, but even though this one can connect to my Tomcat server, it has problems of compatibility with some nodes in my VRML files... I understand that Sun did not implement a full-spec VRML97 compatible loader... kind of unprofessional of them.
  By the way, I use a VRML loader only as a tool to to load my geometries (which I export in a VRML format from 3DMax)... why that would be insane and irrational I leave it to others to decide...
  Thank you anyway.
2  Game Development / Newbie & Debugging Questions / Weird XJ3D exception on VRML file loaded by URL on: 2005-05-09 18:46:15
I have the following problem:
- I have an applet that loads and shows (actually it used to show, back when it was written as an application, not an applet Sad ) a VRML scene, using a XJ3D VRML Loader.
- The VRML files are on the server, in a subdirectory of the directory where the applet is stored.
- I use the following code for obtaining the Scene from the VRML Loader:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
VRML97Loader loader = new VRML97Loader(VRML97Loader.LOAD_LIGHT_NODES | VRML97Loader.LOAD_VIEW_GROUPS);
URL url = null;
Scene scene = null;

try { url = new URL("http://[ Tomcat ServerIP ]:8080/project/obj/something.wrl"); }
catch (MalformedURLException badUrl) { System.out.println("Malformed URL for object loading"); }

try {
      if (url != null)
            scene = loader.load(url);
} catch(Exception e) {
      System.out.println(e);
      e.printStackTrace();
}


- When I load the applet, I receive the following Exception:

org.ietf.uri.UnsupportedServiceException: http is not supported
org.ietf.uri.UnsupportedServiceException: http is not supported
     at org.ietf.uri.URL.getResource(URL.java:475)
     at org.web3d.vrml.sav.InputSource.getCharacterStream(InputSource.java:169)
     at org.web3d.parser.GeneralisedReader.parse(GeneralisedReader.java:142)
     at org.web3d.j3d.loaders.SequentialContentLoader.loadContent(SequentialContentLoader.java:128 )
     at org.web3d.j3d.loaders.BaseLoader.load(BaseLoader.java:534)
     at org.web3d.j3d.loaders.BaseLoader.load(BaseLoader.java:274)
     at FileManager.LoadScene(Proiect_applet.java:312)

 Does anybody know why this happens? Does the XJ3D VRML97Loader not support loading a file through Internet connection? Why does its constructor take a URL parameter then?

 I took care of applet permissions on the Tomcat web server, it has AllPermission set, so this should not be a problem.

 If anybody can help me solve this problem, or knows of an alternative method to achieve the same goal, I would greatly appreciate the help!

(the reason I turned my application into an applet is to "simplify" the way I get hold of my VRML files over Internet, as this is my first project involving network programming, and I am completely "unaware" of how to get the files from server to client computer)
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (2 views)
2014-07-29 18:09:19

Riven (3 views)
2014-07-29 18:08:52

Dwinin (7 views)
2014-07-29 10:59:34

E.R. Fleming (23 views)
2014-07-29 03:07:13

E.R. Fleming (9 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!