Page 1 of 1

Host Name may not be null ERROR

Posted: Wed Oct 20, 2010 4:09 am
by sliceofpie
Hi,
Im getting an error when running JDiskExplorer. "Host name may not be null".

What does this mean and how do I correct this?

Re: Host Name may not be null ERROR

Posted: Wed Oct 20, 2010 10:25 pm
by sliceofpie
I resolved this by adding a mime type in IIS for .properties as text/plain.

Now I have a new error:

when my browser page loads with JDiskExplorer I get a Java error "Caused by: java.io.IOException: open http connection failed: http://server/jfileupload/upload/client ... lass.class"

I need getting this error resolved as this does not allow JDiskExplorer to load.

Any help is greatly appreciated!

Re: Host Name may not be null ERROR

Posted: Thu Oct 21, 2010 4:08 pm
by sliceofpie
Here is a more detailed error message. PLEASE HELP!!!

Code: Select all

Java Plug-in 1.6.0_19
Using JRE version 1.6.0_19-b04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\User1
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


load: class jfileupload.upload.client.MApplet.class not found.
java.lang.ClassNotFoundException: jfileupload.upload.client.MApplet.class
	at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
	at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://server/jfileupload/upload/client/MApplet/class.class
	at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
	at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
	at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	... 7 more
Exception: java.lang.ClassNotFoundException: jfileupload.upload.client.MApplet.class

Re: Host Name may not be null ERROR

Posted: Thu Oct 21, 2010 4:43 pm
by support
Are you able to access JAR file directly from browser? Such as:
http://www.yourserver.com/something/jfileupload.jar

Do you have JFileUpload JAR files + JDiskExplorer JAR files installed?

Re: Host Name may not be null ERROR

Posted: Thu Oct 21, 2010 4:57 pm
by sliceofpie
I tried accessing http://server/lib/jfileupload.jar and get a HTTP 500 error. I know the file is there but cannot access it from the browser.

Re: Host Name may not be null ERROR

Posted: Fri Oct 22, 2010 6:30 am
by support
Your server might not serve .jar file. Are using IIS? Check your web server configuration.
Also, are the JAR files in a protected area/folder on your web server?

Re: Host Name may not be null ERROR

Posted: Mon Oct 25, 2010 4:44 pm
by sliceofpie
Thanks for your reply. Jar files are listed under the mime types on the IIS server. All I did is move the files from one server, over to another. Can you give me any information on how to correct this?

Re: Host Name may not be null ERROR

Posted: Mon Oct 25, 2010 6:50 pm
by support
Java archive (.jar) should be mapped to application/x-java-archive or application/java-archive or application/octet-stream

Re: Host Name may not be null ERROR

Posted: Mon Oct 25, 2010 7:12 pm
by sliceofpie
Java archive (.jar) should be mapped to application/x-java-archive or application/java-archive or application/octet-stream
The jar files were correctly listed.

I end up re-installing from scratch and it's working again :D

Re: Host Name may not be null ERROR

Posted: Mon Oct 25, 2010 7:18 pm
by support
Ok, fine.