You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Mark Wassermann <mw...@mw-net.com> on 2007/05/03 06:28:41 UTC

Upload Problem

Hi List

I am in the process of implementing a fileupload, but I have run into
some problems.
I am using T2.3.2.
I have implemented the upöoad action like the exsample in the services
section on the turbine homepage, but when I try to use the FileItem
Object I get an NullPointerExeption. I have allready increased the
maxfilesize in the config file and played along with some other values
without any efect to the problem I have.

Is there a more detailed Howto for the upload service?

-- TurbineResources.properties --
...
services.UploadService.classname=org.apache.turbine.services.upload.TurbineUploadService
...
# -------------------------------------------------------------------
#
#  U P L O A D  S E R V I C E
#
# -------------------------------------------------------------------

# Must be run early to allow the parser to know about the upload
# service facility
services.UploadService.earlyinit=true

# Whether the files should be automatically picked up by
# ParameterParser.
services.UploadService.automatic=true

#
# The directory where files will be temporarily stored.
#
services.UploadService.repository=./temp

#
# The maximum size of a request that will be processed.
#
services.UploadService.size.max=33554432

#
# The maximum size of a request that will have it's elements cached in
# memory by TurbineUploadService class.
#
services.UploadService.size.threshold=10240
-- TurbineResources.properties --


thx
Mark

-- 
 Mark Wassermann            @: mwassermann@mw-net.com


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Upload Problem

Posted by Mark Wassermann <mw...@mw-net.com>.
Hi
There is also no coresponding file in the configured temp path nor in
any other temp folder of th system.
what did I do wrong

thx
Mark


Scott Eade schrieb:
> The stack trace will most likely point to the cause of the problem.
> 
> Scott
> 
> Mark Wassermann wrote:
>> Hi List
>>
>> I am in the process of implementing a fileupload, but I have run into
>> some problems.
>> I am using T2.3.2.
>> I have implemented the upöoad action like the exsample in the services
>> section on the turbine homepage, but when I try to use the FileItem
>> Object I get an NullPointerExeption. I have allready increased the
>> maxfilesize in the config file and played along with some other values
>> without any efect to the problem I have.
>>
>> Is there a more detailed Howto for the upload service?
>>
>> -- TurbineResources.properties --
>> ...
>> services.UploadService.classname=org.apache.turbine.services.upload.TurbineUploadService
>>
>> ...
>> # -------------------------------------------------------------------
>> #
>> #  U P L O A D  S E R V I C E
>> #
>> # -------------------------------------------------------------------
>>
>> # Must be run early to allow the parser to know about the upload
>> # service facility
>> services.UploadService.earlyinit=true
>>
>> # Whether the files should be automatically picked up by
>> # ParameterParser.
>> services.UploadService.automatic=true
>>
>> #
>> # The directory where files will be temporarily stored.
>> #
>> services.UploadService.repository=./temp
>>
>> #
>> # The maximum size of a request that will be processed.
>> #
>> services.UploadService.size.max=33554432
>>
>> #
>> # The maximum size of a request that will have it's elements cached in
>> # memory by TurbineUploadService class.
>> #
>> services.UploadService.size.threshold=10240
>> -- TurbineResources.properties --
>>
>>
>> thx
>> Mark
>>
>>   
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 



-- 
 Mark Wassermann            @: mwassermann@mw-net.com

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Upload Problem

Posted by Mark Wassermann <mw...@mw-net.com>.
hi all

thx for your help, it was the enctype.
I use a lot of macros and so I overlooked this.
shame on me

thx again
mark

Vick V Lagad schrieb:
> As Thomas suggested, does your form tag look something like this?
> 
> <form method ="post" enctype="multipart/form-data"
> action="$link.setAction("YourAction")">
> </form>   
> 
> Vick
> 
> On 5/3/07, Thomas Vandahl <tv...@apache.org> wrote:
>>
>> Mark Wassermann wrote:
>> > 2007-05-03 09:33:41,703 [http-8080-1] DEBUG
>> > org.apache.turbine.util.parser.DefaultParameterParser - Parameters
>> found
>> > in the Request:
>> [...]
>> > 2007-05-03 09:33:41,703 [http-8080-1] DEBUG
>> > org.apache.turbine.util.parser.DefaultParameterParser - Key: fd_file ->
>> > IMG_1905.JPG
>>
>> This one looks suspicious. It should not be here if the UploadService
>> had parsed it. Do you have your form content-type set to
>> "multipart/form-data"?
>>
>> Bye, Thomas.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>>
>>
> 



-- 
 Mark Wassermann            @: mwassermann@mw-net.com
 Stolzstraße 57             @: mwasserm@edu.uni-klu.ac.at
 9020 Klagenfurt            w: www.mw-net.com
 Austria                    p: +43.650.6133090

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Tho' much is taken, much abides; and tho'
 We are not now that strength which in the old days
 Moved earth and heaven; that which we are, we are;
 One equal-temper of heroic hearts,
 Made weak by time and fate, but strong in will
 To strive, to seek, to find, and not to yield."

 Ulysses by Alfred Tennyson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Upload Problem

Posted by Vick V Lagad <vi...@gmail.com>.
As Thomas suggested, does your form tag look something like this?

<form method ="post" enctype="multipart/form-data"
action="$link.setAction("YourAction")">
</form>	

Vick

On 5/3/07, Thomas Vandahl <tv...@apache.org> wrote:
>
> Mark Wassermann wrote:
> > 2007-05-03 09:33:41,703 [http-8080-1] DEBUG
> > org.apache.turbine.util.parser.DefaultParameterParser - Parameters found
> > in the Request:
> [...]
> > 2007-05-03 09:33:41,703 [http-8080-1] DEBUG
> > org.apache.turbine.util.parser.DefaultParameterParser - Key: fd_file ->
> > IMG_1905.JPG
>
> This one looks suspicious. It should not be here if the UploadService
> had parsed it. Do you have your form content-type set to
> "multipart/form-data"?
>
> Bye, Thomas.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>

Re: Upload Problem

Posted by Thomas Vandahl <tv...@apache.org>.
Mark Wassermann wrote:
> 2007-05-03 09:33:41,703 [http-8080-1] DEBUG
> org.apache.turbine.util.parser.DefaultParameterParser - Parameters found
> in the Request:
[...]
> 2007-05-03 09:33:41,703 [http-8080-1] DEBUG
> org.apache.turbine.util.parser.DefaultParameterParser - Key: fd_file ->
> IMG_1905.JPG

This one looks suspicious. It should not be here if the UploadService
had parsed it. Do you have your form content-type set to
"multipart/form-data"?

Bye, Thomas.


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Upload Problem

Posted by Mark Wassermann <mw...@mw-net.com>.
Hi Scott
Here is the log in debug mode
the temp folder exists and tomcat has con write to it
thx4help
Mark

-- debug log --
2007-05-03 09:33:41,703 [http-8080-1] DEBUG org.apache.turbine.Turbine -
Changing Input Encoding to ISO-8859-1
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerName(localhost)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerPort(8080)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerScheme(http)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setScriptName(/app)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setContextPath(/urkdb)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.parser.DefaultParameterParser - Parameters found
in the Request:
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.parser.DefaultParameterParser - Key:
eventsubmit_doadd -> Hinzufügen
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.parser.DefaultParameterParser - Key: action ->
system.document.ImageRelationAction
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.parser.DefaultParameterParser - Key: fd_name ->
dfgdsgdsf
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.parser.DefaultParameterParser - Key: fd_file ->
IMG_1905.JPG
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.parser.DefaultParameterParser - Key: template ->
system,document,Image.vm
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.parser.DefaultParameterParser - Key:
fd_description -> dfgdsgds
2007-05-03 09:33:41,703 [http-8080-1] DEBUG org.apache.turbine.Turbine -
action = system.document.ImageRelationAction
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.modules.ActionLoader - Loading Action
sessionvalidator.TemplateSessionValidator from the Assembler Broker
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Class Fragment is sessionvalidator.TemplateSessionValidator
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Trying
org.apache.turbine.modules.actions.sessionvalidator.TemplateSessionValidator
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Returning:
org.apache.turbine.modules.actions.sessionvalidator.TemplateSessionValidator@4b12d9
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.modules.ActionLoader - Loading Action
AccessController from the Assembler Broker
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Class Fragment is AccessController
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Trying org.apache.turbine.modules.actions.AccessController
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Returning: org.apache.turbine.modules.actions.AccessController@a45435
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.modules.actions.AccessController - Fetching ACL for admin
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.modules.PageLoader - Loading Page VelocityPage from
the Assembler Broker
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaPageFactory -
Class Fragment is VelocityPage
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaPageFactory -
Trying org.apache.turbine.modules.pages.VelocityPage
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaPageFactory -
Returning: org.apache.turbine.modules.pages.VelocityPage@8905bd
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - Constructor(null, 80, http, null, null)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerName(null)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerPort(80)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerScheme(http)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setScriptName(null)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setContextPath(null)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - init(http://localhost:8080/urkdb/app)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - clone()
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - Copy
Constructor(http://localhost:8080/urkdb/app)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerName(localhost)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerPort(8080)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerScheme(http)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setScriptName(/app)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setContextPath(/urkdb)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - Constructor(null, 80, http, null, null)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerName(null)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerPort(80)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerScheme(http)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setScriptName(null)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setContextPath(null)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - init(http://localhost:8080/urkdb/app)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - clone()
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - Copy
Constructor(http://localhost:8080/urkdb/app)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerName(localhost)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerPort(8080)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setServerScheme(http)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setScriptName(/app)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setContextPath(/urkdb)
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.pull.TurbinePullService - Adding
org.apache.turbine.services.pull.util.SessionData@cc7439 to ctx as
sessionData
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.modules.ActionLoader - Loading Action
system.document.ImageRelationAction from the Assembler Broker
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Class Fragment is system.document.ImageRelationAction
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Trying
org.apache.turbine.modules.actions.system.document.ImageRelationAction
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
-
org.apache.turbine.modules.actions.system.document.ImageRelationAction:
Not found
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Trying mwapp.modules.actions.system.document.ImageRelationAction
2007-05-03 09:33:41,703 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaActionFactory
- Returning:
mwapp.modules.actions.system.document.ImageRelationAction@169dd64
2007-05-03 09:33:42,828 [http-8080-1] ERROR org.apache.turbine.Turbine -
Turbine.handleException:
java.lang.NullPointerException
	at
mwapp.modules.actions.system.document.ImageRelationAction.doAdd(ImageRelationAction.java:43)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at
org.apache.turbine.util.velocity.VelocityActionEvent.executeEvents(VelocityActionEvent.java:135)
	at
org.apache.turbine.util.velocity.VelocityActionEvent.perform(VelocityActionEvent.java:78)
	at
org.apache.turbine.modules.actions.VelocityAction.perform(VelocityAction.java:72)
	at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:99)
	at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:113)
	at org.apache.turbine.modules.Page.build(Page.java:53)
	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:101)
	at org.apache.turbine.Turbine.doGet(Turbine.java:789)
	at org.apache.turbine.Turbine.doPost(Turbine.java:884)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
	at java.lang.Thread.run(Unknown Source)
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
doMapping(Error.vm)
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
templateName is Error.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
templatePackage is now:
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
Looking for layouts/Error.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
templatePackage is now:
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
Looking for layouts/Default.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper - Found
it, returning Default.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.modules.PageLoader - Loading Page DefaultPage from
the Assembler Broker
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaPageFactory -
Class Fragment is DefaultPage
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaPageFactory -
Trying org.apache.turbine.modules.pages.DefaultPage
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaPageFactory -
Returning: org.apache.turbine.modules.pages.DefaultPage@24e801
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.modules.pages.DefaultPage - Building VelocityErrorScreen
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.modules.ScreenLoader - Loading Screen
VelocityErrorScreen from the Assembler Broker
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaScreenFactory
- Class Fragment is VelocityErrorScreen
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaScreenFactory
- Trying org.apache.turbine.modules.screens.VelocityErrorScreen
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaScreenFactory
- Returning: org.apache.turbine.modules.screens.VelocityErrorScreen@9bc984
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.modules.LayoutLoader - Loading Layout
VelocityOnlyLayout from the Assembler Broker
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaLayoutFactory
- Class Fragment is VelocityOnlyLayout
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaLayoutFactory
- Trying org.apache.turbine.modules.layouts.VelocityOnlyLayout
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaLayoutFactory
- Returning: org.apache.turbine.modules.layouts.VelocityOnlyLayout@93bca2
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.modules.layouts.VelocityOnlyLayout - Loading Screen
VelocityErrorScreen
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.modules.ScreenLoader - Loading Screen
VelocityErrorScreen from the Assembler Broker
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaScreenFactory
- Class Fragment is VelocityErrorScreen
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaScreenFactory
- Trying org.apache.turbine.modules.screens.VelocityErrorScreen
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaScreenFactory
- Returning: org.apache.turbine.modules.screens.VelocityErrorScreen@e3ffdf
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
doMapping(Error.vm)
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
templateName is Error.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
templatePackage is now:
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
Looking for layouts/Error.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
templatePackage is now:
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
Looking for layouts/Default.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper - Found
it, returning Default.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
doMapping(Error.vm)
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
templateName is Error.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
templatePackage is now:
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
Looking for layouts/Error.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
templatePackage is now:
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper -
Looking for layouts/Default.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.LayoutTemplateMapper - Found
it, returning Default.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - getCharSet()
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Charset was
null!
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData -
getDefaultCharSet()
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Returning
default Charset of ISO-8859-1
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData -
getDefaultCharSet()
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Returning
default Charset of ISO-8859-1
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.modules.layouts.VelocityOnlyLayout - Now trying to
render layout Default.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - getCharSet()
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Charset was
null!
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData -
getDefaultCharSet()
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Returning
default Charset of ISO-8859-1
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setScriptName(style/main.css)
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - No Response Object!
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/style/main.css
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setScriptName(/images/logo.gif)
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - No Response Object!
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/images/logo.gif
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.util.template.TemplateNavigation - setTemplate(Menu.vm)
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - doMapping(Menu.vm)
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - className is
Menu.vm
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - classPackage
is now:
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - Looking for Menu
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.modules.NavigationLoader - Loading Navigation Menu
from the Assembler Broker
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Class Fragment is Menu
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Trying org.apache.turbine.modules.navigations.Menu
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- org.apache.turbine.modules.navigations.Menu: Not found
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Trying mwapp.modules.navigations.Menu
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Returning: mwapp.modules.navigations.Menu@109dc35
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - Found it,
returning Menu
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.modules.NavigationLoader - Loading Navigation Menu
from the Assembler Broker
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Class Fragment is Menu
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Trying org.apache.turbine.modules.navigations.Menu
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- org.apache.turbine.modules.navigations.Menu: Not found
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Trying mwapp.modules.navigations.Menu
2007-05-03 09:33:42,843 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Returning: mwapp.modules.navigations.Menu@1723c7f
2007-05-03 09:33:43,093 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - getCharSet()
2007-05-03 09:33:43,093 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Charset was
null!
2007-05-03 09:33:43,093 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData -
getDefaultCharSet()
2007-05-03 09:33:43,093 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Returning
default Charset of ISO-8859-1
2007-05-03 09:33:43,109 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setAction(system.SetProject)
2007-05-03 09:33:43,109 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setPage(system,Index.vm)
2007-05-03 09:33:43,109 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/action/system.SetProject/template/system%2CIndex.vm
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setAction(system.document.ListAction)
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setPage(system,document,Index.vm)
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/action/system.document.ListAction/template/system%2Cdocument%2CIndex.vm
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setAction(system.location.ListAction)
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setPage(system,location,Index.vm)
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/action/system.location.ListAction/template/system%2Clocation%2CIndex.vm
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setAction(system.person.ListAction)
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setPage(system,person,Index.vm)
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/action/system.person.ListAction/template/system%2Cperson%2CIndex.vm
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setAction(system.archive.ListAction)
2007-05-03 09:33:43,375 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setPage(system,archive,Index.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/action/system.archive.ListAction/template/system%2Carchive%2CIndex.vm
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink - setAction()
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink - setPage()
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():  /urkdb/app
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink - setAction()
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink - setPage()
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():  /urkdb/app
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setAction(system.search.SimpleSearchAction)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setPage(system,search,Index.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/action/system.search.SimpleSearchAction/template/system%2Csearch%2CIndex.vm
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.ServerData - setScriptName(/images/search.gif)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - No Response Object!
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/images/search.gif
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink - setPage(user,Index.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/template/user%2CIndex.vm
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setPage(user,data,Index.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/template/user%2Cdata%2CIndex.vm
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink - setAction(LogoutUser)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/action/LogoutUser
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink - setPage(Help.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/template/Help.vm
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink - setPage(Editorial.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/template/Editorial.vm
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink - setPage(Contact.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/template/Contact.vm
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.pull.tools.TemplateLink -
setPage(SystemInformation.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.uri.BaseURI - encodeResponse():
/urkdb/app/template/SystemInformation.vm
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.util.template.TemplateNavigation - setTemplate(Tabs.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - doMapping(Tabs.vm)
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - className is
Tabs.vm
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - classPackage
is now:
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - Looking for Tabs
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.modules.NavigationLoader - Loading Navigation Tabs
from the Assembler Broker
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Class Fragment is Tabs
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Trying org.apache.turbine.modules.navigations.Tabs
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- org.apache.turbine.modules.navigations.Tabs: Not found
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Trying mwapp.modules.navigations.Tabs
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Returning: mwapp.modules.navigations.Tabs@ad5fab
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.template.mapper.ClassMapper - Found it,
returning Tabs
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.modules.NavigationLoader - Loading Navigation Tabs
from the Assembler Broker
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Class Fragment is Tabs
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Trying org.apache.turbine.modules.navigations.Tabs
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- org.apache.turbine.modules.navigations.Tabs: Not found
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Trying mwapp.modules.navigations.Tabs
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.assemblerbroker.util.java.JavaNavigationFactory
- Returning: mwapp.modules.navigations.Tabs@15af049
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - getCharSet()
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Charset was
null!
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData -
getDefaultCharSet()
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Returning
default Charset of ISO-8859-1
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData -
getDefaultCharSet()
2007-05-03 09:33:43,390 [http-8080-1] DEBUG
org.apache.turbine.services.rundata.DefaultTurbineRunData - Returning
default Charset of ISO-8859-1

-- debuig log --

Scott Eade schrieb:
> Which is line 40?
> 
> Please confirm that the "temp" directory exists in your context
> directory and that the servlet container has write access to it.
> 
> Debugging info may help - should be something like:
> log4j.category.org.apache.turbine.services.upload.TurbineUploadService =
> DEBUG, default
> log4j.category.org.apache.commons.fileupload = DEBUG, default
> 
> The only documentation is
> http://jakarta.apache.org/turbine/turbine/turbine-2.3.2/services/upload-service.html
> at present.
> 
> Scott
> 
> Mark Wassermann wrote:
>> Hi Scott
>> Here is the stacktrace, but I dont know why this error is thrown.
>> It happens when I access the properties of the FileItem Object
>> thx
>> Mark
>>
>> -- code --
>> ParameterParser params = data.getParameters();
>> FileItem fi = params.getFileItem("FD_File");
>> data.setMessage(fi.getContentType());
>> -- code --
>>
>> -- turbine.log --
>> 2007-05-03 07:31:50,781 [http-8080-1] ERROR org.apache.turbine.Turbine -
>> Turbine.handleException:
>> java.lang.NullPointerException
>>     at
>> mwapp.modules.actions.system.document.ImageRelationAction.doAdd(ImageRelationAction.java:40)
>>
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>     at
>> org.apache.turbine.util.velocity.VelocityActionEvent.executeEvents(VelocityActionEvent.java:135)
>>
>>     at
>> org.apache.turbine.util.velocity.VelocityActionEvent.perform(VelocityActionEvent.java:78)
>>
>>     at
>> org.apache.turbine.modules.actions.VelocityAction.perform(VelocityAction.java:72)
>>
>>     at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:99)
>>     at
>> org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:113)
>>
>>     at org.apache.turbine.modules.Page.build(Page.java:53)
>>     at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:101)
>>     at org.apache.turbine.Turbine.doGet(Turbine.java:789)
>>     at org.apache.turbine.Turbine.doPost(Turbine.java:884)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>>
>>     at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>>
>>     at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>
>>     at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>>
>>     at
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
>>
>>     at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>>
>>     at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>>
>>     at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>>
>>     at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>>
>>     at
>> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
>>
>>     at
>> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
>>
>>     at
>> org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
>>     at java.lang.Thread.run(Unknown Source)
>> -- turbine.log --
>>
>>
>> Scott Eade schrieb:
>>  
>>> The stack trace will most likely point to the cause of the problem.
>>>
>>> Scott
>>>
>>> Mark Wassermann wrote:
>>>    
>>>> Hi List
>>>>
>>>> I am in the process of implementing a fileupload, but I have run into
>>>> some problems.
>>>> I am using T2.3.2.
>>>> I have implemented the upöoad action like the exsample in the services
>>>> section on the turbine homepage, but when I try to use the FileItem
>>>> Object I get an NullPointerExeption. I have allready increased the
>>>> maxfilesize in the config file and played along with some other values
>>>> without any efect to the problem I have.
>>>>
>>>> Is there a more detailed Howto for the upload service?
>>>>
>>>> -- TurbineResources.properties --
>>>> ...
>>>> services.UploadService.classname=org.apache.turbine.services.upload.TurbineUploadService
>>>>
>>>>
>>>> ...
>>>> # -------------------------------------------------------------------
>>>> #
>>>> #  U P L O A D  S E R V I C E
>>>> #
>>>> # -------------------------------------------------------------------
>>>>
>>>> # Must be run early to allow the parser to know about the upload
>>>> # service facility
>>>> services.UploadService.earlyinit=true
>>>>
>>>> # Whether the files should be automatically picked up by
>>>> # ParameterParser.
>>>> services.UploadService.automatic=true
>>>>
>>>> #
>>>> # The directory where files will be temporarily stored.
>>>> #
>>>> services.UploadService.repository=./temp
>>>>
>>>> #
>>>> # The maximum size of a request that will be processed.
>>>> #
>>>> services.UploadService.size.max=33554432
>>>>
>>>> #
>>>> # The maximum size of a request that will have it's elements cached in
>>>> # memory by TurbineUploadService class.
>>>> #
>>>> services.UploadService.size.threshold=10240
>>>> -- TurbineResources.properties --
>>>>
>>>>
>>>> thx
>>>> Mark
>>>>
>>>>         
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>>>
>>>     
>>
>>
>>
>>   
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 



-- 
 Mark Wassermann            @: mwassermann@mw-net.com
 Stolzstraße 57             @: mwasserm@edu.uni-klu.ac.at
 9020 Klagenfurt            w: www.mw-net.com
 Austria                    p: +43.650.6133090

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Tho' much is taken, much abides; and tho'
 We are not now that strength which in the old days
 Moved earth and heaven; that which we are, we are;
 One equal-temper of heroic hearts,
 Made weak by time and fate, but strong in will
 To strive, to seek, to find, and not to yield."

 Ulysses by Alfred Tennyson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Upload Problem

Posted by Scott Eade <se...@backstagetech.com.au>.
Which is line 40?

Please confirm that the "temp" directory exists in your context 
directory and that the servlet container has write access to it.

Debugging info may help - should be something like:
log4j.category.org.apache.turbine.services.upload.TurbineUploadService = 
DEBUG, default
log4j.category.org.apache.commons.fileupload = DEBUG, default

The only documentation is 
http://jakarta.apache.org/turbine/turbine/turbine-2.3.2/services/upload-service.html 
at present.

Scott

Mark Wassermann wrote:
> Hi Scott
> Here is the stacktrace, but I dont know why this error is thrown.
> It happens when I access the properties of the FileItem Object
> thx
> Mark
>
> -- code --
> ParameterParser params = data.getParameters();
> FileItem fi = params.getFileItem("FD_File");
> data.setMessage(fi.getContentType());
> -- code --
>
> -- turbine.log --
> 2007-05-03 07:31:50,781 [http-8080-1] ERROR org.apache.turbine.Turbine -
> Turbine.handleException:
> java.lang.NullPointerException
> 	at
> mwapp.modules.actions.system.document.ImageRelationAction.doAdd(ImageRelationAction.java:40)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at
> org.apache.turbine.util.velocity.VelocityActionEvent.executeEvents(VelocityActionEvent.java:135)
> 	at
> org.apache.turbine.util.velocity.VelocityActionEvent.perform(VelocityActionEvent.java:78)
> 	at
> org.apache.turbine.modules.actions.VelocityAction.perform(VelocityAction.java:72)
> 	at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:99)
> 	at
> org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:113)
> 	at org.apache.turbine.modules.Page.build(Page.java:53)
> 	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:101)
> 	at org.apache.turbine.Turbine.doGet(Turbine.java:789)
> 	at org.apache.turbine.Turbine.doPost(Turbine.java:884)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> 	at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> 	at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> 	at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> 	at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
> 	at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> 	at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 	at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	at
> org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
> 	at
> org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
> 	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
> 	at java.lang.Thread.run(Unknown Source)
> -- turbine.log --
>
>
> Scott Eade schrieb:
>   
>> The stack trace will most likely point to the cause of the problem.
>>
>> Scott
>>
>> Mark Wassermann wrote:
>>     
>>> Hi List
>>>
>>> I am in the process of implementing a fileupload, but I have run into
>>> some problems.
>>> I am using T2.3.2.
>>> I have implemented the upöoad action like the exsample in the services
>>> section on the turbine homepage, but when I try to use the FileItem
>>> Object I get an NullPointerExeption. I have allready increased the
>>> maxfilesize in the config file and played along with some other values
>>> without any efect to the problem I have.
>>>
>>> Is there a more detailed Howto for the upload service?
>>>
>>> -- TurbineResources.properties --
>>> ...
>>> services.UploadService.classname=org.apache.turbine.services.upload.TurbineUploadService
>>>
>>> ...
>>> # -------------------------------------------------------------------
>>> #
>>> #  U P L O A D  S E R V I C E
>>> #
>>> # -------------------------------------------------------------------
>>>
>>> # Must be run early to allow the parser to know about the upload
>>> # service facility
>>> services.UploadService.earlyinit=true
>>>
>>> # Whether the files should be automatically picked up by
>>> # ParameterParser.
>>> services.UploadService.automatic=true
>>>
>>> #
>>> # The directory where files will be temporarily stored.
>>> #
>>> services.UploadService.repository=./temp
>>>
>>> #
>>> # The maximum size of a request that will be processed.
>>> #
>>> services.UploadService.size.max=33554432
>>>
>>> #
>>> # The maximum size of a request that will have it's elements cached in
>>> # memory by TurbineUploadService class.
>>> #
>>> services.UploadService.size.threshold=10240
>>> -- TurbineResources.properties --
>>>
>>>
>>> thx
>>> Mark
>>>
>>>   
>>>       
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>>
>>     
>
>
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Upload Problem

Posted by Mark Wassermann <mw...@mw-net.com>.
Hi Scott
Here is the stacktrace, but I dont know why this error is thrown.
It happens when I access the properties of the FileItem Object
thx
Mark

-- code --
ParameterParser params = data.getParameters();
FileItem fi = params.getFileItem("FD_File");
data.setMessage(fi.getContentType());
-- code --

-- turbine.log --
2007-05-03 07:31:50,781 [http-8080-1] ERROR org.apache.turbine.Turbine -
Turbine.handleException:
java.lang.NullPointerException
	at
mwapp.modules.actions.system.document.ImageRelationAction.doAdd(ImageRelationAction.java:40)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at
org.apache.turbine.util.velocity.VelocityActionEvent.executeEvents(VelocityActionEvent.java:135)
	at
org.apache.turbine.util.velocity.VelocityActionEvent.perform(VelocityActionEvent.java:78)
	at
org.apache.turbine.modules.actions.VelocityAction.perform(VelocityAction.java:72)
	at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:99)
	at
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:113)
	at org.apache.turbine.modules.Page.build(Page.java:53)
	at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:101)
	at org.apache.turbine.Turbine.doGet(Turbine.java:789)
	at org.apache.turbine.Turbine.doPost(Turbine.java:884)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
	at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
	at java.lang.Thread.run(Unknown Source)
-- turbine.log --


Scott Eade schrieb:
> The stack trace will most likely point to the cause of the problem.
> 
> Scott
> 
> Mark Wassermann wrote:
>> Hi List
>>
>> I am in the process of implementing a fileupload, but I have run into
>> some problems.
>> I am using T2.3.2.
>> I have implemented the upöoad action like the exsample in the services
>> section on the turbine homepage, but when I try to use the FileItem
>> Object I get an NullPointerExeption. I have allready increased the
>> maxfilesize in the config file and played along with some other values
>> without any efect to the problem I have.
>>
>> Is there a more detailed Howto for the upload service?
>>
>> -- TurbineResources.properties --
>> ...
>> services.UploadService.classname=org.apache.turbine.services.upload.TurbineUploadService
>>
>> ...
>> # -------------------------------------------------------------------
>> #
>> #  U P L O A D  S E R V I C E
>> #
>> # -------------------------------------------------------------------
>>
>> # Must be run early to allow the parser to know about the upload
>> # service facility
>> services.UploadService.earlyinit=true
>>
>> # Whether the files should be automatically picked up by
>> # ParameterParser.
>> services.UploadService.automatic=true
>>
>> #
>> # The directory where files will be temporarily stored.
>> #
>> services.UploadService.repository=./temp
>>
>> #
>> # The maximum size of a request that will be processed.
>> #
>> services.UploadService.size.max=33554432
>>
>> #
>> # The maximum size of a request that will have it's elements cached in
>> # memory by TurbineUploadService class.
>> #
>> services.UploadService.size.threshold=10240
>> -- TurbineResources.properties --
>>
>>
>> thx
>> Mark
>>
>>   
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 



-- 
 Mark Wassermann            @: mwassermann@mw-net.com

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Upload Problem

Posted by Scott Eade <se...@backstagetech.com.au>.
The stack trace will most likely point to the cause of the problem.

Scott

Mark Wassermann wrote:
> Hi List
>
> I am in the process of implementing a fileupload, but I have run into
> some problems.
> I am using T2.3.2.
> I have implemented the upöoad action like the exsample in the services
> section on the turbine homepage, but when I try to use the FileItem
> Object I get an NullPointerExeption. I have allready increased the
> maxfilesize in the config file and played along with some other values
> without any efect to the problem I have.
>
> Is there a more detailed Howto for the upload service?
>
> -- TurbineResources.properties --
> ...
> services.UploadService.classname=org.apache.turbine.services.upload.TurbineUploadService
> ...
> # -------------------------------------------------------------------
> #
> #  U P L O A D  S E R V I C E
> #
> # -------------------------------------------------------------------
>
> # Must be run early to allow the parser to know about the upload
> # service facility
> services.UploadService.earlyinit=true
>
> # Whether the files should be automatically picked up by
> # ParameterParser.
> services.UploadService.automatic=true
>
> #
> # The directory where files will be temporarily stored.
> #
> services.UploadService.repository=./temp
>
> #
> # The maximum size of a request that will be processed.
> #
> services.UploadService.size.max=33554432
>
> #
> # The maximum size of a request that will have it's elements cached in
> # memory by TurbineUploadService class.
> #
> services.UploadService.size.threshold=10240
> -- TurbineResources.properties --
>
>
> thx
> Mark
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org