postURL

Talk about anything that doesn't fit in the other catagories :) (and of course is about Group-Office)

Moderator: Developers

EVRS
Posts: 7
Joined: Thu Jan 08, 2009 9:26 am

postURL

Postby EVRS » Thu Jan 08, 2009 9:34 am

I get

Code: Select all

unable to access the postURL: http://........
after the popup JUPLOAD.

Had a look in other forums but no succes. What I found was about HTTP/1.1 and placing the JAR into the same folder.

Any idea?
EVRS
Posts: 7
Joined: Thu Jan 08, 2009 9:26 am

Re: postURL

Postby EVRS » Thu Jan 08, 2009 9:57 am

Funny when I change the postURL into a html document, I dont get the not access message.

modules/files/JUpload/upload.php

perhaps has the PHP engine something to do with this problem?
mschering
Site Admin
Site Admin
Posts: 8339
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: postURL

Postby mschering » Thu Jan 08, 2009 10:11 am

Do you get an error in the apache log too?
Best regards,

Merijn Schering
Intermesh
EVRS
Posts: 7
Joined: Thu Jan 08, 2009 9:26 am

Re: postURL

Postby EVRS » Fri Jan 16, 2009 6:20 am

Error log:
File does not exist: /srv/www/htdocs/go/modules/files/jupload/wjhk

Apache2 log:
"GET /themes/Default/images/extjs/sizer/s-handle.gif HTTP/1.1" 200 523 "http:
"GET /ext/resources/images/default/sizer/e-handle.gif HTTP/1.1" 200 1586 "http:
"GET /ext/resources/images/default/sizer/ne-handle.gif HTTP/1.1" 200 854 "http:
"GET /ext/resources/images/default/sizer/nw-handle.gif HTTP/1.1" 200 853 "http:
"GET /ext/resources/images/default/sizer/se-handle.gif HTTP/1.1" 200 853 "http:
"GET /ext/resources/images/default/sizer/sw-handle.gif HTTP/1.1" 200 855 "http:
"GET /modules/files/jupload/index.php?path=users%2Fadmin HTTP/1.1" 200 1186 "-"
"GET /controls/wjhk.jupload.jar HTTP/1.1" 304 - "-"
"GET /modules/files/jupload/wjhk/jupload2/lang/lang_nl_NL.properties HTTP/1.1" 404 1066 "-"
"GET /modules/files/jupload/wjhk/jupload2/lang/lang_nl_NL.properties HTTP/1.1" 404 1066 "-"
"HEAD /modules/files/jupload/upload.php?path=users%2Fadmin HTTP/1.1" 200 - "-"
"POST /modules/files/jupload/upload.php?path=users%2Fadmin HTTP/1.1" 200 12 "-"
"POST /modules/files/json.php HTTP/1.1" 200 356 "http:
"GET /themes/Default/images/16x16/filetypes/folder.png HTTP/1.1" 304 - "http:
"GET /themes/Default/images/extjs/toolbar/tb-btn-sprite.gif HTTP/1.1" 304 - "http:
mschering
Site Admin
Site Admin
Posts: 8339
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: postURL

Postby mschering » Fri Jan 16, 2009 7:47 am

Do you log PHP errors?
Best regards,

Merijn Schering
Intermesh
EVRS
Posts: 7
Joined: Thu Jan 08, 2009 9:26 am

Re: postURL

Postby EVRS » Mon Jan 19, 2009 8:36 pm

No I don't see any PHP errors.
I think it has something to do with the jupload applet and PHP

I get these messages before uploading
Image


And these after uploading.
Image

Here the Java debug log:
21:28:11.667 [INFO] Debug level set to 0
21:28:11.676 [INFO] Current debug output file: e:\temp\jupload_2468147426023154615_log.txt
21:28:11.677 [INFO] lang = null, taking default language
21:28:11.836 [INFO] Debug level set to 1
21:28:11.837 [INFO] Current debug output file: e:\temp\jupload_2468147426023154615_log.txt
21:28:11.838 [INFO] JUpload applet, version 3.5.1 [SVN-Rev: 537] (compiled: 10/17/2008 10:26 PM), available at http://jupload.sourceforge.net/
21:28:11.840 [DEBUG] debugLevel: 1 (debugfile: e:\temp\jupload_2468147426023154615_log.txt)
21:28:11.841 [INFO] maxFileSize: 200000000
21:28:11.844 [ERROR] [wjhk.jupload2.exception.JUploadException:java.lang.NullPointerException] null (Unable to access to the postURL: '/modules/files/jupload/upload.php?path=users%2Fadmin%2FGeneral')
21:28:11.846 wjhk.jupload2.exception.JUploadException: java.lang.NullPointerException
21:28:11.846 at wjhk.jupload2.upload.helper.HTTPInputStreamReader.readHttpResponse(HTTPInputStreamReader.java:351)
21:28:11.846 at wjhk.jupload2.upload.helper.HTTPConnectionHelper.readHttpResponse(HTTPConnectionHelper.java:701)
21:28:11.846 at wjhk.jupload2.upload.helper.HttpConnect.getProtocol(HttpConnect.java:294)
21:28:11.846 at wjhk.jupload2.policies.DefaultUploadPolicy.setServerProtocol(DefaultUploadPolicy.java:1773)
21:28:11.846 at wjhk.jupload2.policies.DefaultUploadPolicy.<init>(DefaultUploadPolicy.java:532)
21:28:11.846 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
21:28:11.846 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
21:28:11.846 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
21:28:11.846 at java.lang.reflect.Constructor.newInstance(Unknown Source)
21:28:11.846 at wjhk.jupload2.policies.UploadPolicyFactory.getUploadPolicy(UploadPolicyFactory.java:106)
21:28:11.846 at wjhk.jupload2.JUploadApplet.init(JUploadApplet.java:153)
21:28:11.846 at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
21:28:11.846 at java.lang.Thread.run(Unknown Source)
21:28:11.846 Caused by: java.lang.NullPointerException
21:28:11.846 at wjhk.jupload2.upload.helper.CookieJar.parseCookieHeader(CookieJar.java:208)
21:28:11.846 at wjhk.jupload2.upload.helper.HTTPInputStreamReader.readHttpResponse(HTTPInputStreamReader.java:329)
21:28:11.846 ... 12 more
21:28:11.850 Caused by:
21:28:11.851 java.lang.NullPointerException
21:28:11.851 at wjhk.jupload2.upload.helper.CookieJar.parseCookieHeader(CookieJar.java:208)
21:28:11.851 at wjhk.jupload2.upload.helper.HTTPInputStreamReader.readHttpResponse(HTTPInputStreamReader.java:329)
21:28:11.851 at wjhk.jupload2.upload.helper.HTTPConnectionHelper.readHttpResponse(HTTPConnectionHelper.java:701)
21:28:11.851 at wjhk.jupload2.upload.helper.HttpConnect.getProtocol(HttpConnect.java:294)
21:28:11.851 at wjhk.jupload2.policies.DefaultUploadPolicy.setServerProtocol(DefaultUploadPolicy.java:1773)
21:28:11.851 at wjhk.jupload2.policies.DefaultUploadPolicy.<init>(DefaultUploadPolicy.java:532)
21:28:11.851 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
21:28:11.851 at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
21:28:11.851 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
21:28:11.851 at java.lang.reflect.Constructor.newInstance(Unknown Source)
21:28:11.851 at wjhk.jupload2.policies.UploadPolicyFactory.getUploadPolicy(UploadPolicyFactory.java:106)
21:28:11.851 at wjhk.jupload2.JUploadApplet.init(JUploadApplet.java:153)
21:28:11.851 at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
21:28:11.851 at java.lang.Thread.run(Unknown Source)
21:30:35.998 [DEBUG] uploadPolicy parameter = DefaultUploadPolicy
21:30:36.002 [INFO] JUpload applet, version 3.5.1 [SVN-Rev: 537] (compiled: 10/17/2008 10:26 PM), available at http://jupload.sourceforge.net/
21:30:36.005 [DEBUG] debugLevel: 1 (debugfile: e:\temp\jupload_2468147426023154615_log.txt)
21:30:36.007 [INFO] maxFileSize: 200000000
21:30:40.386 [DEBUG] Action : Bladeren ...
21:30:49.910 [DEBUG] Action : Upload
21:30:50.064 [ERROR] [wjhk.jupload2.exception.JUploadException:java.lang.NullPointerException] null (java.lang.NullPointerException)
21:30:50.065 wjhk.jupload2.exception.JUploadException: java.lang.NullPointerException
21:30:50.065 at wjhk.jupload2.upload.helper.HTTPInputStreamReader.readHttpResponse(HTTPInputStreamReader.java:351)
21:30:50.065 at wjhk.jupload2.upload.helper.HTTPConnectionHelper.readHttpResponse(HTTPConnectionHelper.java:701)
21:30:50.065 at wjhk.jupload2.upload.FileUploadThreadHTTP.finishRequest(FileUploadThreadHTTP.java:161)
21:30:50.065 at wjhk.jupload2.upload.DefaultFileUploadThread.doUpload(DefaultFileUploadThread.java:757)
21:30:50.065 at wjhk.jupload2.upload.DefaultFileUploadThread.run(DefaultFileUploadThread.java:528)
21:30:50.065 Caused by: java.lang.NullPointerException
21:30:50.065 at wjhk.jupload2.upload.helper.CookieJar.parseCookieHeader(CookieJar.java:208)
21:30:50.065 at wjhk.jupload2.upload.helper.HTTPInputStreamReader.readHttpResponse(HTTPInputStreamReader.java:329)
21:30:50.065 ... 4 more
21:30:50.066 Caused by:
21:30:50.071 java.lang.NullPointerException
21:30:50.071 at wjhk.jupload2.upload.helper.CookieJar.parseCookieHeader(CookieJar.java:208)
21:30:50.071 at wjhk.jupload2.upload.helper.HTTPInputStreamReader.readHttpResponse(HTTPInputStreamReader.java:329)
21:30:50.071 at wjhk.jupload2.upload.helper.HTTPConnectionHelper.readHttpResponse(HTTPConnectionHelper.java:701)
21:30:50.071 at wjhk.jupload2.upload.FileUploadThreadHTTP.finishRequest(FileUploadThreadHTTP.java:161)
21:30:50.071 at wjhk.jupload2.upload.DefaultFileUploadThread.doUpload(DefaultFileUploadThread.java:757)
21:30:50.071 at wjhk.jupload2.upload.DefaultFileUploadThread.run(DefaultFileUploadThread.java:528)
EVRS
Posts: 7
Joined: Thu Jan 08, 2009 9:26 am

Re: postURL

Postby EVRS » Mon Jan 19, 2009 8:41 pm

What I also noticed is when I edit /modules/files/jupload/index.php and replace the destination file upload.php into upload.html, I don't get error messages.

Are there any PHP settings needed for JUPload?
mschering
Site Admin
Site Admin
Posts: 8339
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: postURL

Postby mschering » Tue Jan 20, 2009 3:08 pm

I tested it on Windows with WAMP server installed and it worked fine. Do you see any php errors in your log?
Best regards,

Merijn Schering
Intermesh
EVRS
Posts: 7
Joined: Thu Jan 08, 2009 9:26 am

Re: postURL

Postby EVRS » Wed Jan 21, 2009 3:09 pm

Intermesh wrote:I tested it on Windows with WAMP server installed and it worked fine. Do you see any php errors in your log?
There are no php errors in log file.
Can you I compare your php.ini?

If have used a clean install of openSuse 11.1.
mschering
Site Admin
Site Admin
Posts: 8339
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: postURL

Postby mschering » Thu Jan 22, 2009 5:03 pm

I don't have my php.ini at hand right now. But it works on a default Ubuntu / Debian configuration.
Best regards,

Merijn Schering
Intermesh
EVRS
Posts: 7
Joined: Thu Jan 08, 2009 9:26 am

Re: postURL

Postby EVRS » Fri Jan 23, 2009 4:27 pm

Intermesh wrote:I don't have my php.ini at hand right now. But it works on a default Ubuntu / Debian configuration.
Got php.ini from debian, placed into suse and the problem is solved. After debug found the difference.

Suse has a default php variable:
session.cookie_httponly = 1

This should be:
session.cookie_httponly = 0


.
mschering
Site Admin
Site Admin
Posts: 8339
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: postURL

Postby mschering » Mon Jan 26, 2009 7:50 am

Ok thanks for the info. I'll check if there's a workaround.
Best regards,

Merijn Schering
Intermesh
mschering
Site Admin
Site Admin
Posts: 8339
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: postURL

Postby mschering » Mon Jan 26, 2009 2:19 pm

I fixed this in GO to always set it correctly even with this setting.
Best regards,

Merijn Schering
Intermesh
parimal
Posts: 2
Joined: Wed Sep 09, 2009 9:40 am

Re: postURL

Postby parimal » Wed Sep 09, 2009 9:48 am

I got the same error in jupload applet.
Please share me your findings to fix the error.
mschering
Site Admin
Site Admin
Posts: 8339
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: postURL

Postby mschering » Wed Sep 09, 2009 10:55 am

Please post the detailed error.
Best regards,

Merijn Schering
Intermesh

Who is online

Users browsing this forum: No registered users and 3 guests

cron