Hi, I am playing with example http://formspideronline.com/formspider/main.html?name=DemoMain#DemoFileUpload about fileupload. I literally copied the code from the sample. The browse file works. When I hit the upload button I get this error message.

myapp is the name of the application and from the datasource schema. It has limited privs, only create procedure, table, view and quota on the default tablespace.

How can I debug this error, the debug messages only list the start of the application.

Added loglines from server.log; complete run from start server until error:

Feb 17, 2013 10:53:16 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info
    INFO: JVM invocation command line:
    -XX:+UnlockDiagnosticVMOptions
    -XX:PermSize=64m
    -XX:MaxPermSize=192m
    -XX:NewRatio=2
    -Xmx512m
    -javaagent:/Users/glassfish/glassfish3/glassfish/lib/monitor/flashlight-agent.jar
    -d32
    -client
    -Dosgi.shell.telnet.maxconn=1
    -Dfelix.fileinstall.disableConfigSave=false
    -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
    -Dfelix.fileinstall.dir=/Users/glassfish/glassfish3/glassfish/modules/autostart/
    -Djavax.net.ssl.keyStore=/Users/glassfish/glassfish3/glassfish/domains/domain1/config/keystore.jks
    -Dosgi.shell.telnet.port=6666
    -Djava.security.policy=/Users/glassfish/glassfish3/glassfish/domains/domain1/config/server.policy
    -Djava.awt.headless=true
    -Dfelix.fileinstall.log.level=2
    -Dfelix.fileinstall.poll=5000
    -Dcom.sun.aas.instanceRoot=/Users/glassfish/glassfish3/glassfish/domains/domain1
    -Dosgi.shell.telnet.ip=127.0.0.1
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Djava.endorsed.dirs=/Users/glassfish/glassfish3/glassfish/modules/endorsed:/Users/glassfish/glassfish3/glassfish/lib/endorsed
    -Dcom.sun.aas.installRoot=/Users/glassfish/glassfish3/glassfish
    -Dfelix.fileinstall.bundles.startTransient=true
    -Djava.ext.dirs=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/jre/lib/ext:/Users/glassfis
    h/glassfish3/glassfish/domains/domain1/lib/ext
    -Dfelix.fileinstall.bundles.new.start=true
    -Djavax.net.ssl.trustStore=/Users/glassfish/glassfish3/glassfish/domains/domain1/config/cacerts.jks
    -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as
    -Djava.security.auth.login.config=/Users/glassfish/glassfish3/glassfish/domains/domain1/config/login.conf
    -DANTLR_USE_DIRECT_CLASS_LOADING=true
    -Dgosh.args=--nointeractive
    Feb 17, 2013 10:53:17 AM com.sun.enterprise.admin.launcher.GFLauncherLogger info
    INFO: Successfully launched in 14 msec.
    [#|2013-02-17T10:53:20.000+0100|INFO|glassfish3.1.2|com.sun.enterprise.server.logging.GFFileHandler|_ThreadID=1;_ThreadName=Thread-3;|Running GlassFish Version: GlassFish Server Ope
    n Source Edition 3.1.2 (build 23)|#]

    [#|2013-02-17T10:53:20.277+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=11;_ThreadName=Thread-3;|Grizzly Framework 1.9.46 star
    ted in: 3ms - bound to [0.0.0.0:4848]|#]

    [#|2013-02-17T10:53:20.277+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=12;_ThreadName=Thread-3;|Grizzly Framework 1.9.46 star
    ted in: 63ms - bound to [0.0.0.0:8080]|#]

    [#|2013-02-17T10:53:20.277+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=13;_ThreadName=Thread-3;|Grizzly Framework 1.9.46 star
    ted in: 43ms - bound to [0.0.0.0:8181]|#]

    [#|2013-02-17T10:53:20.287+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=14;_ThreadName=Thread-3;|Grizzly Framework 1.9.46 star
    ted in: 3ms - bound to [0.0.0.0:3700]|#]

    [#|2013-02-17T10:53:20.292+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.services.impl|_ThreadID=15;_ThreadName=Thread-3;|Grizzly Framework 1.9.46 star
    ted in: 1ms - bound to [0.0.0.0:7676]|#]

    [#|2013-02-17T10:53:20.421+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.admin.adapter|_ThreadID=10;_ThreadName=Thread-3;|The Admin Console is already 
    installed, but not yet loaded.|#]

    [#|2013-02-17T10:53:20.435+0100|INFO|glassfish3.1.2|org.glassfish.ha.store.spi.BackingStoreFactoryRegistry|_ThreadID=10;_ThreadName=Thread-3;|Registered org.glassfish.ha.store.adapt
    er.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry|#]

    [#|2013-02-17T10:53:22.574+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-3;|SEC1002: Security Manager is
     OFF.|#]
    [#|2013-02-17T10:53:22.650+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-3;|SEC1010: Entering Security Startup Service|#]

    [#|2013-02-17T10:53:22.652+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-3;|SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.|#]

    [#|2013-02-17T10:53:22.684+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=10;_ThreadName=Thread-3;|SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

    [#|2013-02-17T10:53:22.685+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=10;_ThreadName=Thread-3;|SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.|#]

    [#|2013-02-17T10:53:22.692+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security.auth.realm|_ThreadID=10;_ThreadName=Thread-3;|SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.|#]

    [#|2013-02-17T10:53:22.701+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.security.com.sun.enterprise.security|_ThreadID=10;_ThreadName=Thread-3;|SEC1011: Security Service(s) Started Successfully|#]

    [#|2013-02-17T10:53:22.984+0100|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-3;|WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]|#]

    [#|2013-02-17T10:53:22.999+0100|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-3;|WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]|#]

    [#|2013-02-17T10:53:23.003+0100|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-3;|WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]|#]

    [#|2013-02-17T10:53:23.035+0100|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-3;|WEB0171: Created virtual server [server]|#]

    [#|2013-02-17T10:53:23.037+0100|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-3;|WEB0171: Created virtual server [__asadmin]|#]

    [#|2013-02-17T10:53:29.833+0100|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-3;|WEB0172: Virtual server [server] loaded default web module []|#]

    [#|2013-02-17T10:53:32.034+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Thread-3;|CORE10010: Loading application fs-1.0 done in 11,547 ms|#]

    [#|2013-02-17T10:53:38.287+0100|INFO|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=10;_ThreadName=Thread-3;|WEB0671: Loading application [fs-1.1.1] at [/fs-1.1.1]|#]

    [#|2013-02-17T10:53:38.288+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Thread-3;|CORE10010: Loading application fs-1.1.1 done in 6,251 ms|#]

    [#|2013-02-17T10:53:38.288+0100|INFO|glassfish3.1.2|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=10;_ThreadName=Thread-3;|GlassFish Server Open Source Edition 3.1.2 (23) startup time : Felix (2,307ms), startup services(18,501ms), total(20,808ms)|#]

    [#|2013-02-17T10:53:38.942+0100|INFO|glassfish3.1.2|javax.enterprise.system.jmx.org.glassfish.admin.mbeanserver|_ThreadID=16;_ThreadName=Thread-3;|JMX005: JMXStartupService had Started JMXConnector on JMXService URL service:jmx:rmi://minimac6.lan:8686/jndi/rmi://minimac6.lan:8686/jmxrmi|#]

    [#|2013-02-17T10:54:07.413+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=17;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

    [#|2013-02-17T10:54:08.095+0100|INFO|glassfish3.1.2|org.hibernate.validator.util.Version|_ThreadID=17;_ThreadName=Thread-3;|Hibernate Validator 4.2.0.Final|#]

    [#|2013-02-17T10:54:08.824+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=17;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@bec2|#]

    [#|2013-02-17T10:54:09.727+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=18;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]
    [#|2013-02-17T10:54:09.729+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@5de5e6|#]

    [#|2013-02-17T10:54:25.275+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=19;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

    [#|2013-02-17T10:54:25.276+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=19;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@872ba6|#]

    [#|2013-02-17T10:55:53.797+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=20;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

    [#|2013-02-17T10:55:53.799+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=20;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@1e1081f|#]

    [#|2013-02-17T10:55:58.639+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=21;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

    [#|2013-02-17T10:55:58.641+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=21;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@d4fb47|#]

    [#|2013-02-17T10:56:01.322+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=20;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

    [#|2013-02-17T10:56:01.323+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=20;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@e6a4b|#]

    [#|2013-02-17T10:56:11.704+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=19;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

    [#|2013-02-17T10:56:11.706+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=19;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@1a89f49|#]

    [#|2013-02-17T10:56:17.079+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=18;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

    [#|2013-02-17T10:56:17.081+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@102cbd3|#]

    [#|2013-02-17T10:56:17.762+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=19;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

    [#|2013-02-17T10:56:17.763+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=19;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@1a3a9db|#]

    [#|2013-02-17T10:56:30.599+0100|WARNING|glassfish3.1.2|org.apache.catalina.connector.Request|_ThreadID=18;_ThreadName=Thread-3;|PWC4011: Unable to set request character encoding to UTF-8 from context /fs-1.1.1, because request parameters have already been read, or ServletRequest.getReader() has already been called|#]

    [#|2013-02-17T10:56:30.600+0100|INFO|glassfish3.1.2|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=18;_ThreadName=Thread-3;|com.sun.gjc.spi.jdbc40.ConnectionWrapper40@86b277|#]

The last 2 lines came when hitting the upload button. Mat=ybe you can make more cheese from this? In the meantime I downloaded 2.1.1. Could applying that update be a help? BTW: I access this glassfish instance via a proxyforward from Apache front end.

thanks, Ronald.

asked 15 Feb '13, 10:09

ik_zelf's gravatar image

ik_zelf
58312
accept rate: 16%

edited 17 Feb '13, 07:38


Hi Ronald,

You can check your middle-tier logs to debug this problem. This problem generally occurs when your OS user doesn't have necessary permissions to create file/write data to the "temp" folder existing in the middle-tier (a temporary file needs to be created under this folder during the file upload process).

Best Regards,
Ibrahim

link

answered 16 Feb '13, 05:22

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
1.5k5
accept rate: 25%

edited 16 Feb '13, 05:24

had not enough room to comment with logs etc.

(17 Feb '13, 05:07) ik_zelf

tested without proxyforward by using the direct url in glassfish with the same result.

(17 Feb '13, 07:43) ik_zelf

Was I supposed to enter any directory configuration to glassfish? I did not do anything with the glassfish settings other than specify the jdbc pool.

(17 Feb '13, 11:04) ik_zelf

I upgraded to glassfish 3.1.2.2 and the upload is working now, with the same error messages in the server.log as before. So I am pretty sure that it was not the upgrade itself that fixed the problem. I might have damaged my glassfish installation. Still unsure what was the proper way to find the cause ... (just followed Oracle practices, when problem: upgrade)

(17 Feb '13, 15:07) ik_zelf

Not exactly what I prefer to see as a solution for the problem but after a re-install of glassfish the problem was gone.

link

answered 18 Feb '13, 14:45

ik_zelf's gravatar image

ik_zelf
58312
accept rate: 16%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×27
×1

Asked: 15 Feb '13, 10:09

Seen: 3,259 times

Last updated: 18 Feb '13, 14:45


© Copyright Gerger 2017