db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tebano, Vincent A" <vincent.a.teb...@lmco.com>
Subject RE: DB Issues
Date Fri, 05 Mar 2004 14:02:20 GMT
I tried your (modifying it for mine) and this is the error I get when after
startup:

org.apache.jetspeed.om.profile.ProfileException:
java.lang.NullPointerException
	at
org.apache.jetspeed.services.profiler.JetspeedProfilerService.fallbackProfil
e(JetspeedProfilerService.java:544)
	at
org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfile(Jet
speedProfilerService.java:292)
	at
org.apache.jetspeed.services.profiler.JetspeedProfilerService.getProfile(Jet
speedProfilerService.java:570)
	at
org.apache.jetspeed.services.Profiler.getProfile(Profiler.java:125)
	at
org.apache.jetspeed.modules.actions.JetspeedAccessController.doPerform(Jetsp
eedAccessController.java:112)
	at org.apache.turbine.modules.Action.perform(Action.java:87)
	at
org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
	at org.apache.turbine.Turbine.doGet(Turbine.java:529)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
	at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:432)
	at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:356)
	at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:430)
	at org.apache.jsp.index_jsp._jspService(index_jsp.java:42)
	at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:549)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:666)
	at java.lang.Thread.run(Thread.java:479)

Vincent A. Tebano  (Vinnie)
Software Engineer
Lockheed Martin Aircraft & Logistics Centers
244 Terminal Road
Greenville, SC  29605
864-299-7267


-----Original Message-----
From: Gerhard Otte [mailto:Gerhard.Otte@emediapark.de] 
Sent: Friday, March 05, 2004 8:44 AM
To: Apache Torque Users List
Subject: AW: DB Issues

Ok, here is my working sqlserver 2000 setup, contents of
Torque.properties:

torque.applicationRoot = .
torque.defaults.pool.logInterval = 0
torque.defaults.pool.connectionWaitTimeout = 10
torque.defaults.pool.defaultMaxConnections = 80
torque.defaults.pool.maxExpiryTime = 3600
torque.defaults.connection.driver =
com.microsoft.jdbc.sqlserver.SQLServerDriver
torque.defaults.connection.url =
jdbc:microsoft:sqlserver://ep01.local:1433;DatabaseName=LVS;SelectMethod
=cursor
torque.defaults.connection.user = ...
torque.defaults.connection.password = ...

torque.database.default=LVS
torque.database.LVS.adapter=mssql
torque.dsfactory.LVS.factory=org.apache.torque.dsfactory.SharedPoolDataS
ourceFactory
torque.dsfactory.LVS.pool.defaultMaxActive=10
torque.dsfactory.LVS.pool.testOnBorrow=true
torque.dsfactory.LVS.pool.validationQuery=SELECT 1

HTH
Gerhard Otte
__
mailto:G.Otte@emediapark.de     emediapark GmbH http://www.emediapark.de
Tel:+49 (0)941 630804-2 Fax:-9  Hemauerstr.14,93047 Regensburg,Germany

-----Ursprüngliche Nachricht-----
Von: Tebano, Vincent A [mailto:vincent.a.tebano@lmco.com]
Gesendet: Freitag, 5. März 2004 14:33
An: 'Apache Torque Users List'
Betreff: RE: DB Issues


Nope, Tried that and it didn't work

Vincent A. Tebano  (Vinnie)
Software Engineer
Lockheed Martin Aircraft & Logistics Centers
244 Terminal Road
Greenville, SC  29605
864-299-7267


-----Original Message-----
From: Gerhard Otte [mailto:Gerhard.Otte@emediapark.de] 
Sent: Friday, March 05, 2004 8:25 AM
To: Apache Torque Users List
Subject: AW: DB Issues

may be you should try microsoft instead of Microsoft in the
connection url

Gerhard Otte
__
mailto:G.Otte@emediapark.de     emediapark GmbH http://www.emediapark.de
Tel:+49 (0)941 630804-2 Fax:-9  Hemauerstr.14,93047 Regensburg,Germany

-----Ursprüngliche Nachricht-----
Von: Tebano, Vincent A [mailto:vincent.a.tebano@lmco.com]
Gesendet: Freitag, 5. März 2004 14:01
An: torque-user@db.apache.org
Betreff: DB Issues


I can't seem to get the system to connect to my Microsoft SQL 2000 DB.

Are these statements needs in Torque.Properties when I am setting up my
own
DB.

torque.database.default=default

torque.dsfactory.default.factory=org.apache.torque.dsfactory.TorqueDataS
ourc
eFactory

		torque.dsfactory.default.pool.defaultMaxConnections=10
		torque.dsfactory.default.pool.maxExpiryTime=3600
		torque.dsfactory.default.pool.connectionWaitTimeout=10

		torque.database.logInterval=0

		torque.idbroker.cleverquantity=true

Here is what I have set in the Torque.Properties file.  I have omitted
my
ip, user and password for obvious reasons.

		torque.dsfactory.default.connection.driver =
com.microsoft.jdbc.sqlserver.SQLServerDriver
		torque.dsfactory.default.connection.url =
jdbc:Microsoft:sqlserver:<ip address>:1433
		torque.dsfactory.default.connection.user =  <user>
		torque.dsfactory.default.connection.password =
<password>

I am getting this error when I startup the application.

	org.apache.jetspeed.om.profile.ProfileException:
java.lang.NullPointerException

I have also had the error that states that the system could not connect
to
the DB.

Any Ideas what I am doing wrong?


Vincent A. Tebano  (Vinnie)
Software Engineer
Lockheed Martin Aircraft & Logistics Centers
244 Terminal Road
Greenville, SC  29605
864-299-7267



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


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

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


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

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


Mime
View raw message