Host Name may not be null ERROR

Explorer-like frontend add-on to upload/download.
Post Reply
sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Host Name may not be null ERROR

Post 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?

sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Re: Host Name may not be null ERROR

Post 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!

sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Re: Host Name may not be null ERROR

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Host Name may not be null ERROR

Post 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?

sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Re: Host Name may not be null ERROR

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Host Name may not be null ERROR

Post 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?

sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Re: Host Name may not be null ERROR

Post 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?

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Host Name may not be null ERROR

Post by support »

Java archive (.jar) should be mapped to application/x-java-archive or application/java-archive or application/octet-stream

sliceofpie
Posts: 13
Joined: Thu Aug 19, 2010 5:27 am

Re: Host Name may not be null ERROR

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: Host Name may not be null ERROR

Post by support »

Ok, fine.

Post Reply