You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Fabio Daprile <fa...@wuerth.it> on 2002/04/09 09:43:24 UTC

Strange Exception!

Hello gentlemen,

i've put my new application in production. The servlet runs under TOMCAT 
4.0 and LINUX.
Can somebody explain to me why turbine gives me the following exception 
check:

Best Regards,

Fabio Daprile

[Mon Apr 08 14:03:13 CEST 2002] -- ERROR -- Turbine.handleException: 
getOutputStream() has already been called for this response
[Mon Apr 08 14:03:13 CEST 2002] -- ERROR --
    Exception:  java.lang.IllegalStateException: getOutputStream() has 
already been called for this response
    Stack Trace follows:
    java.lang.IllegalStateException: getOutputStream() has already been 
called for this response
    at 
org.apache.catalina.connector.ResponseBase.getWriter(ResponseBase.java:755)
    at 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:165)
    at 
org.apache.turbine.services.rundata.DefaultTurbineRunData.getOut(DefaultTurbineRunData.java:1019)
    at 
org.apache.turbine.modules.layouts.VelocityOnlyLayout.doBuild(VelocityOnlyLayout.java:120)
    at org.apache.turbine.modules.Layout.build(Layout.java:91)
    at org.apache.turbine.modules.LayoutLoader.exec(LayoutLoader.java:123)
    at 
org.apache.turbine.modules.pages.DefaultPage.doBuild(DefaultPage.java:166)
    at org.apache.turbine.modules.Page.build(Page.java:90)
    at org.apache.turbine.modules.PageLoader.exec(PageLoader.java:123)
    at org.apache.turbine.Turbine.doGet(Turbine.java:447)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
    at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
    at java.lang.Thread.run(Thread.java:536)

-- 

-- 
Fabio Daprile

Würth-Phoenix Srl
Via Kravogl 4, I-39100 Bolzano
Tel: +39 0471/564111 - (direct 564070)
Fax: +39 0471/564122

mailto:fabio.daprile@wuerth-phoenix.com
http://www.wuerth-phoenix.com
http://www.wuerth.com




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


foreign keys to turbine-schema

Posted by Jesse Chen <je...@jalvamedia.com>.
Hi,

Just to verify, whenver we need to create a foreign key from our
project-schema to a default schema table in turbine schema, we need to
create an alias of that table in our project-schema and then create adapter
classes for that table (analogous to the Extending Turbine Users How-To). Is
this correct?

I have a table in my project that needs to reference the TURBINE_ROLE and
TURBINE_USER.
I created an alias for TURBINE-USER and follow the directions in the
Extending Users how-to but when I run ant init, it complains during the
insert-sql-file phase that "table or view does not exist".
During the project-om phase, it complains "ERROR!! Attempt to set foreign
key to nonexistent table, TURBINE_ROLE!
java.lang.NullPointerException".

thanks in advance,

J



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: 3 torque questions

Posted by Pete Kazmier <pe...@kazmier.com>.
On Tue, Apr 09, 2002 at 12:48:05PM +0200, Felix Sima wrote:
> 2. When I run ant to generate OM and SQL from my XML schema, I get a
> id-table-schema.sql file wich contains sql commands for creating the
> "id-table" table and inserting in this table ONLY one record, ignoring
> the rest of the tables in project. I solved this problem by deleting
> this file before running ant project-insert-sql.  Is this an error of
> mine, or of torque ?

Not sure what version you are using, but if you are using the latest
beta version of torque, I believe you need to invoke:

ant id-table-init-sql

before you invoke:

ant project-insert-sql

Give that a shot.  I've updated the tutorial to reflect this just today
as another user recently pointed out.

Thanks,
Pete


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: 3 torque questions

Posted by John McNally <jm...@collab.net>.
Felix Sima wrote:
> 
> Hello.
> 
> 1. Can I set up the IDBroker service to generate unique Ids over an entire
> database ? If yes, please give me some hints.

With the cvs version of torque you can use <id-method-parameter
value="foo"/> to specify that the IDBroker use the ID_TABLE row with
tablename=foo to get ids.  You can get this behavior by updating the
template src/templates/om/MapBuilder.vm, if you want to minimize the
needed changes.  

Otherwise, you can go through your MapBuilder classes and make the
substitution.  look for setPrimaryKeyMethodInfo.  I recommend the first
approach.

john mcnally

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


3 torque questions

Posted by Felix Sima <fe...@medialab.sissa.it>.
Hello.

1. Can I set up the IDBroker service to generate unique Ids over an entire
database ? If yes, please give me some hints.

2. When I run ant to generate OM and SQL from my XML schema, I get a
id-table-schema.sql file wich contains sql commands for creating
the "id-table" table and inserting in this table ONLY one record,
ignoring the rest of the tables in project. I solved this problem
by deleting this file before running ant project-insert-sql.
Is this an error of mine, or of torque ?

3. If a go to

http://www.mail-archive.com/

and make a search after "turbine-torque-user" I get
the following message :
"No lists by the name of turbine-torque-user"
How can I see this new list ?

Thank you in advance.
Felix.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>