db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ely Rances" <eran...@exist.com>
Subject Re: InstantiationException in Torque with Derby
Date Tue, 25 Jan 2005 01:24:35 GMT
Hi,

Going through the error logs caused by the exception. We have noticed
that are seems to be conflicts with the jars used by Torque_3_1_Branch 
(common-configuration-1.0.jar) and Turbine 2.2( 
common-configuration-1.0-dev.jar). I heard someone who was able to run 
torque with derby database  using turbine. Would anyone know the particular 
version of turbine that was used? It seems that the error we encountered is 
caused by conflicts in jars. By the way, what type of derby 
database(driver -- embedded, network) was used to run the torque -derby 
application?

TIA

----- Original Message ----- 
From: "Thomas Fischer" <Fischer@seitenbau.net>
To: "Apache Torque Developers List" <torque-dev@db.apache.org>
Sent: Sunday, January 23, 2005 10:39 AM
Subject: Re: InstantiationException in Torque with Derby


>
>
>
>
> Hi,
>
> I do not have any experience with jetspeed and turbine, but this might be 
> a
> configuration issue. However, I have no idea how to find the error, so I
> would need some more information. Do you have the possibility to debug the
> code while tomcat is running ? If yes, it would be interesting to know
> where exactly the nullPointerException is thrown. If you cannot debug the
> application, can you add a e.printStackTrace() into BasePeer line 140 an
> then look in your logs for the message (suppuse this should appear in the
> Tomcat error log) ?
>
>   Thomas
>
>
> "Ely Rances" <erances@exist.com> schrieb am 22.01.2005 01:28:44:
>
>> Exist SoftwarelabsHi,
>>
>> We have an application that makes use of jetspeed (with turbine and
>> torque) and we would want to integrate it with Derby(embedded)
>> Database.  We've downloaded and build the branch in
>> torque(TORQUE_3_1_BRANCH) that supports derby. Generated  and
>> deployed the 3 jars in maven : torque-3.1.2-dev.jar, torque-gen-3.1.
>> 2-dev.jar and maven-torque-plugin-3.1.2-dev.jar. After generating
>> the OM files, We've deployed the application in Tomcat. But when we
>> access the application, we get an  java.lang.InstantiationException
>> exception in the log file and Null pointer exception in the console.
>> We checked the derby.log file and there is no error thrown. Below
>> are the stack trace we get :
>>
>> in the log file :
>>
>> 2005-01-21 13:49:25,063 [main] INFO  ComponentLoader - loading
>> component: name=torque class=org.apache.torque.Torque config=C:
>> \workspace\..\target\jakarta-tomcat-4.1.30\bin\..\webapps\webapp-
>> name\WEB-INF\conf\Torque.properties
>> 2005-01-21 13:49:25,073 [main] ERROR ComponentLoader - org.apache.
>> torque.Torque could not be initialized!
>> java.lang.InstantiationException
>>  at sun.reflect.InstantiationExceptionConstructorAccessorImpl.
>> newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
>>  at java.lang.Class.newInstance0(Class.java:308)
>>  at java.lang.Class.newInstance(Class.java:261)
>>  at org.apache.stratum.component.ComponentLoader.
>> loadComponent(ComponentLoader.java:212)
>>  at org.apache.stratum.component.ComponentLoader.
>> load(ComponentLoader.java:179)
>>  at org.apache.turbine.services.component.TurbineComponentService.
>> init(TurbineComponentService.java:163)
>>  at org.apache.turbine.services.TurbineBaseService.
>> init(TurbineBaseService.java:108)
>>  at org.apache.turbine.services.BaseInitableBroker.
>> initClass(BaseInitableBroker.java:149)
>>  at org.apache.turbine.services.BaseServiceBroker.
>> doInitService(BaseServiceBroker.java:224)
>>  at org.apache.turbine.services.BaseServiceBroker.
>> initServices(BaseServiceBroker.java:193)
>>  at org.apache.turbine.Turbine.init(Turbine.java:257)
>>  at javax.servlet.GenericServlet.init(GenericServlet.java:256)
>>  at org.apache.catalina.core.StandardWrapper.
>> loadServlet(StandardWrapper.java:935)
>>
>>
>> in tomcat console :
>>
>> [ERROR] BasePeer - -org.apache.torque.TorqueException: java.lang.
>> NullPointerExce
>> ption
>> [ERROR] BasePeer - -A FATAL ERROR has occurred which should not have
>> happened un
>> der any circumstance.  Please notify the Torque developers <turbine-
>> torque-dev@j
>> akarta.apache.org> and give as many details as possible (including
>> the error sta
>> ck trace). <java.lang.Error: Error in BasePeer.
>> initTableSchema(TURBINE_USER): ja
>> va.lang.NullPointerException>java.lang.Error: Error in BasePeer.
>> initTableSchema(
>> TURBINE_USER): java.lang.NullPointerException
>>         at
> org.apache.torque.util.BasePeer.initTableSchema(BasePeer.java:141)
>>         at
> org.apache.torque.util.BasePeer.initTableSchema(BasePeer.java:116)
>>         at org.apache.jetspeed.om.security.turbine.TurbineUserPeer.
>> <clinit>(Turb
>> ineUserPeer.java:51)
>>         at org.apache.jetspeed.om.security.turbine.BaseTurbineUser.
>> <clinit>(Base
>> TurbineUser.java:36)
>>         at java.lang.Class.forName0(Native Method)
>>         at java.lang.Class.forName(Class.java:141)
>>         at org.apache.jetspeed.om.security.turbine.
>> BaseTurbineUserPeer.initClass
>> (BaseTurbineUserPeer.java:141)
>>         at org.apache.jetspeed.om.security.turbine.
>> BaseTurbineUserPeer.<clinit>(
>> BaseTurbineUserPeer.java:128)
>>         at org.apache.jetspeed.services.security.turbine.
>> TurbineUserManagement.g
>> etUser(TurbineUserManagement.java:136)
>>         at org.apache.jetspeed.services.JetspeedUserManagement.
>> getUser(JetspeedU
>> serManagement.java:59)
>>         at org.apache.jetspeed.services.security.turbine.
>> TurbineAuthentication.g
>> etAnonymousUser(TurbineAuthentication.java:188)
>>         at org.apache.jetspeed.services.JetspeedAuthentication.
>> getAnonymousUser(
>> JetspeedAuthentication.java:64)
>>         at org.apache.jetspeed.services.JetspeedSecurity.
>> getAnonymousUser(Jetspe
>> edSecurity.java:134)
>>         at org.apache.jetspeed.modules.actions.
>> TemplateSessionValidator.doPerfor
>> m(TemplateSessionValidator.java:59)
>>
>>
>> We thought that we might be missing out on something. We would
>> appreciate your ideas on these.
>>
>> TIA
>>
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-dev-help@db.apache.org 


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message