Topic: Problems with the myuploader-applet

Hi,

I am no longer able to add images to my galleries in svManager. I've seen the other discussions about it in the forum, but I still don't know, what is going wrong...

I got a ClassNotFoundException for the javaatwork.myuploader.UploadApplet.class

I tried it on my other domain (hosted from another server) and it works well, so I've written to the server-admin, but they don't know, what to change in their configuration. Can you help us?

This is the log, I got from the java console:

security: property package.access value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
security: property package.access new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.access value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.access new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.access value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.access new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,co

m.sun.jnlp
security: property package.definition value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
security: property package.definition new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.definition value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
security: property package.definition new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.definition value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
security: property package.definition new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,co

m.sun.jnlp
security: property package.access value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,co

m.sun.jnlp
security: property package.access new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,co

m.sun.jnlp,org.mozilla.jss
security: property package.definition value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,co

m.sun.jnlp
security: property package.definition new value 

sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,co

m.sun.jnlp,org.mozilla.jss
basic: Fortschritts-Listener hinzugefügt: sun.plugin.util.ProgressMonitorAdapter@111cab5
network: Cacheeintrag nicht gefunden [URL: http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar, Version: null]
network: Verbindung von http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar mit Proxy=DIRECT wird hergestellt
network: Verbindung von http://www.tpvisp.ch:80/ mit Proxy=DIRECT wird hergestellt
network: http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar wird mit Cookie "__utma=262159049.326232482.1340223926.1340474413.1340547317.4; 

__utmz=262159049.1340223926.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=262159049.5.10.1340547317; __utmc=262159049; PHPSESSID=41b2cd4548ff8ea0828fd82f5154a865" verbunden
network: Cacheeintrag nicht gefunden [URL: http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar, Version: null]
network: Cacheeintrag nicht gefunden [URL: http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar, Version: null]
network: Verbindung von http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar mit Proxy=DIRECT wird hergestellt
network: http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar wird mit Cookie "__utma=262159049.326232482.1340223926.1340474413.1340547317.4; 

__utmz=262159049.1340223926.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=262159049.5.10.1340547317; __utmc=262159049; PHPSESSID=41b2cd4548ff8ea0828fd82f5154a865" verbunden
network: Verbindung von http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar mit Proxy=DIRECT wird hergestellt
network: http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar wird mit Cookie "__utma=262159049.326232482.1340223926.1340474413.1340547317.4; 

__utmz=262159049.1340223926.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=262159049.5.10.1340547317; __utmc=262159049; PHPSESSID=41b2cd4548ff8ea0828fd82f5154a865" verbunden
java.io.IOException: Server returned HTTP response code: 406 for URL: http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getJarFileWithoutCache(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadJarFileWithoutCache(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
    at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
    at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
network: Cacheeintrag nicht gefunden [URL: http://www.tpvisp.ch/svmanager/uploader/labels.jar, Version: null]
network: Verbindung von http://www.tpvisp.ch/svmanager/uploader/labels.jar mit Proxy=DIRECT wird hergestellt
network: http://www.tpvisp.ch/svmanager/uploader/labels.jar wird mit Cookie "__utma=262159049.326232482.1340223926.1340474413.1340547317.4; __utmz=262159049.1340223926.1.1.utmcsr=(direct)|

utmccn=(direct)|utmcmd=(none); __utmb=262159049.5.10.1340547317; __utmc=262159049; PHPSESSID=41b2cd4548ff8ea0828fd82f5154a865" verbunden
network: Cacheeintrag nicht gefunden [URL: http://www.tpvisp.ch/svmanager/uploader/labels.jar, Version: null]
network: Cacheeintrag nicht gefunden [URL: http://www.tpvisp.ch/svmanager/uploader/labels.jar, Version: null]
network: Verbindung von http://www.tpvisp.ch/svmanager/uploader/labels.jar mit Proxy=DIRECT wird hergestellt
network: http://www.tpvisp.ch/svmanager/uploader/labels.jar wird mit Cookie "__utma=262159049.326232482.1340223926.1340474413.1340547317.4; __utmz=262159049.1340223926.1.1.utmcsr=(direct)|

utmccn=(direct)|utmcmd=(none); __utmb=262159049.5.10.1340547317; __utmc=262159049; PHPSESSID=41b2cd4548ff8ea0828fd82f5154a865" verbunden
network: Verbindung von http://www.tpvisp.ch/svmanager/uploader/labels.jar mit Proxy=DIRECT wird hergestellt
network: http://www.tpvisp.ch/svmanager/uploader/labels.jar wird mit Cookie "__utma=262159049.326232482.1340223926.1340474413.1340547317.4; __utmz=262159049.1340223926.1.1.utmcsr=(direct)|

utmccn=(direct)|utmcmd=(none); __utmb=262159049.5.10.1340547317; __utmc=262159049; PHPSESSID=41b2cd4548ff8ea0828fd82f5154a865" verbunden
java.io.IOException: Server returned HTTP response code: 406 for URL: http://www.tpvisp.ch/svmanager/uploader/labels.jar
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.getJarFileWithoutCache(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadJarFileWithoutCache(Unknown Source)
    at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
    at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
    at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$1000(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(Unknown Source)
    at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
java.lang.ClassNotFoundException: javaatwork.myuploader.UploadApplet.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
basic: Laden: Klasse javaatwork.myuploader.UploadApplet.class nicht gefunden.
java.lang.ClassNotFoundException: javaatwork.myuploader.UploadApplet.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
basic: Fortschritts-Listener entfernt: sun.plugin.util.ProgressMonitorAdapter@111cab5
security: Zugriff auf Schlüssel und Zertifikat im Mozilla-Benutzerprofil: null
security: Speicher für abgelehnte Sessionzertifikate zurücksetzen
basic: Dialog type is not candidate for embedding
Java-Plug-in 10.5.1.255
JRE-Version verwenden 1.7.0_05-b05 Java HotSpot(TM) Client VM

thank you very much for your help and best regards

Re: Problems with the myuploader-applet

I am no longer able to add images to my galleries in svManager.

Did it used to work? What changed?

Could you try this please?

Edit the file svmanager/classes/uploadpage.php and find the following lines:

codebase="uploader/" 
archive="myuploader-source-signed-1.15.jar, labels.jar"

Delete the first line and change the paths in the second line to the full urls of the .jar files on your server. That will be something like:

archive="http:/www.myserver.com/svmanager/uploader/myuploader-source-signed-1.15.jar,
http:/www.myserver.com/svmanager/uploader/labels.jar"

Note that I've added a return character after the comma to make it read easier in the forum. In your file it should be one long line.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Problems with the myuploader-applet

hi jack

thank you for your help... unfortunately it still doesn't work...

Yes it used to work. I didn't use it for several weeks and now, it doesn't work any more... but I think, it has nothing to do with my computer, because on other servers it still works. There must be a change on the server... but I'm not the admin and so I don't know what's the problem... I already asked him... but as I wrote in my first post, they don't know what is wrong...

so what can I do...? If you want, you can log in... perhaps you can find the error easier this way... how can I give you the login-data ?

sam

Re: Problems with the myuploader-applet

I took a quick look. Could you please try one more thing?

Replace the first line that you deleted so the applet tag looks like this:

<applet name="uploadApplet" 
    code="javaatwork.myuploader.UploadApplet.class" 
    codebase="uploader/" 
    archive="http://www.tpvisp.ch/svmanager/uploader/myuploader-source-signed-1.15.jar, http://www.tpvisp.ch/svmanager/uploader/labels.jar" 
    width="400" height="250">

If that doesn't work then I'll contact the java developer to see if he can help.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Problems with the myuploader-applet

it doesn't work...:( please contact the java developer. Thanks a lot!

sam

Re: Problems with the myuploader-applet

I have the same problems!
I also tried to change the code as shown but it still doesn't work.

Still the same Error:
classNotFoundException
javaaatwork.myuploader.UploadApplet.class

I tested my server with the svmanagertest app
I checked out the "myuploader" demo version from the Java Website (http://www.javaatwork.com/java-upload-a … age=german) and it worked!

Any news from the java developer?

Lars

Re: Problems with the myuploader-applet

Lars wrote:

I have the same problems!
I also tried to change the code as shown but it still doesn't work.

Still the same Error:
classNotFoundException
javaaatwork.myuploader.UploadApplet.class

I tested my server with the svmanagertest app
I checked out the "myuploader" demo version from the Java Website (http://www.javaatwork.com/java-upload-a … age=german) and it worked!

Any news from the java developer?
Cause i still get the Error:
classNotFoundException
javaaatwork.myuploader.UploadApplet.class
with svmanager when i try to get acces to the upload applet

Lars

Re: Problems with the myuploader-applet

He's usually pretty quick to reply but no reply yet – I'll chase him on Monday.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Problems with the myuploader-applet

The java developer has checked the source code of Sam's svManager upload screen after my suggested mod's and he says it is correct. I also sent him the java console output for Sam's installation. The developer thinks that java applets are disabled on the server.

Sam and Lars – do either of you have access to the server logs? I mean the detailed transaction logs that record every http request and response. The logs are time-stamped so you should be able to record the time when you go to the svManager upload screen and then look at the server logs for that time to see what's happening. If you can do that then please post the log entries around the time of the error occurrence.

In Sam's case I can reproduce the problem on my Mac so it seems that the problem is definitely server-side. I haven't checked Lars' installation so there is a (small) possibility that the problem could be local. To eliminate this Lars, could you please go to the applet demo page and check if the demo works ok on your local computer.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Problems with the myuploader-applet

Thanks for your help.
I testet all upload applets local and they all worked!
Now i'am waiting for an answer of my hosting company.
I also think, that java applets are disabled on the server.

stay tuned...

Re: Problems with the myuploader-applet

Here are the fakts:

The Problem is not Local.
I talked with my Hostingcompany. Java was disabled.
Now after eliminating this problem the testfile "svmtest" upload.php works perfect.
But the upload funktion in svmanager still doesn't work.
Still the same error.

Load: Class javaatwork.myuploader.UploadApplet.class not found
java.lang.ClassNotFoundException: javaatwork.myuploader.UploadApplet.class

The hostcompany says they're not able to fix this problem.

I was a little confused 'cause the svmtest upload.php works great but not the svmanager.

The solution was:
Upload of the latest update of svManager again!
Now it works and everithing's allright!

Greets, lars

Last edited by Lars (2012-07-02 19:00:07)

Re: Problems with the myuploader-applet

Hey jack

thanks a lot for your help! unfortunately I don't have access to the server logs. I asked the server-admin, but he isn't very cooperative. He has changed some security configuration, but I still get the

java.io.IOException: Server returned HTTP response code: 406 for URL: http://www.tpvisp.ch/svmanager/uploader … d-1.15.jar

Is there anything else I can try to make it work?

Best regards
Sam

Re: Problems with the myuploader-applet

Hey jack

I finally got a working solution from the server-admin! I had to add the following code to the .htaccess-File:

SecFilterEngine Off

Now it works fine!

Thank you very much for your help and best regards
sam

Re: Problems with the myuploader-applet

Hurrah!

jack

Jack Hardie
SimpleViewer Support Team.