You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Arelowo Alao <ar...@gmail.com> on 2007/06/14 22:59:52 UTC

Problems with apache.torque.Torque

Ok I am working on this project with three other developers. I configured my
project and jar files to mimic theres EXACTLY. Yet i am getting this funky
error. I am using com.evermind.server.OC4JServer to run the application on
my local machine. When i run the application I get this error in my log
files:

2007-06-14 09:18:18,246 [Orion Launcher] CRIT  grnds.syslog -
SecureFileAccess Error: No Such Algorithm
2007-06-14 09:18:18,246 [Orion Launcher] ERROR grnds.syslog -
org.apache.torque.Torque could not be configured with file
'{org.govgrnds.security.DESFileAccess}{C:/ereassign/prod/config/keyfile}C:/ereassign/prod/config/Torque.properties'.
java.io.FileNotFoundException: Could not open Resource
{org.govgrnds.security.DESFileAccess}{C:/ereassign/prod/config/keyfile}C:/ereassign/prod/config/Torque.properties
	at org.govgrnds.facility.config.ClassPropertiesConfiguration.getPropertyStream(ClassPropertiesConfiguration.java:232)
	at org.govgrnds.facility.config.ClassPropertiesConfiguration.<init>(ClassPropertiesConfiguration.java:107)
	at org.govgrnds.facility.config.ClassPropertiesConfiguration.<init>(ClassPropertiesConfiguration.java:124)
	at org.govgrnds.facility.GovGRNDSComponentLoader.loadComponent(GovGRNDSComponentLoader.java:205)
	at org.govgrnds.facility.GovGRNDSComponentLoader.load(GovGRNDSComponentLoader.java:170)
	at org.govgrnds.facility.GovGRNDSComponentService.init(GovGRNDSComponentService.java:149)
	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:258)
	at org.apache.turbine.util.TurbineConfig.initialize(TurbineConfig.java:193)
	at org.govgrnds.facility.CommonFacilityBootstrap.execute(CommonFacilityBootstrap.java:359)
	at org.govgrnds.web.BootstrapServlet.doBootstrapFacilities(BootstrapServlet.java:199)
	at org.govgrnds.web.BootstrapServlet.init(BootstrapServlet.java:135)
	at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
	at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
	at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
	at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
	at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
	at com.evermind.server.Application.getHttpApplication(Application.java:886)
	at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
	at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:545)
	at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
	at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
	at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
	at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2325)
	at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1498)
	at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
	at java.lang.Thread.run(Thread.java:534)

2007-06-14 09:18:18,308 [Orion Launcher] CRIT  grnds.syslog - Error
getting Code from database!
java.lang.NullPointerException: There was no DataSourceFactory
configured *for* the connection *default*
	at org.apache.torque.Torque.getConnection(Torque.java:938)
	at org.apache.torque.util.BasePeer.doPSSelect(BasePeer.java:2177)
	at gov.usps.ereassign.objectmodel.BaseCodePeer.doPSSelectVillageRecords(BaseCodePeer.java:431)
	at gov.usps.ereassign.objectmodel.BaseCodePeer.doPSSelectVillageRecords(BaseCodePeer.java:404)
	at gov.usps.ereassign.objectmodel.BaseCodePeer.doPSSelect(BaseCodePeer.java:318)
	at gov.usps.cache.CodesCacheService.refresh(CodesCacheService.java:194)
	at org.govgrnds.cache.RefreshableGlobalCacheService.initCache(RefreshableGlobalCacheService.java:531)
	at org.govgrnds.cache.RefreshableGlobalCacheService.init(RefreshableGlobalCacheService.java:387)
	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:258)
	at org.apache.turbine.util.TurbineConfig.initialize(TurbineConfig.java:193)
	at org.govgrnds.facility.CommonFacilityBootstrap.execute(CommonFacilityBootstrap.java:359)
	at org.govgrnds.web.BootstrapServlet.doBootstrapFacilities(BootstrapServlet.java:199)
	at org.govgrnds.web.BootstrapServlet.init(BootstrapServlet.java:135)
	at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
	at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
	at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
	at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
	at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
	at com.evermind.server.Application.getHttpApplication(Application.java:886)
	at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
	at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:545)
	at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
	at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
	at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
	at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2325)
	at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1498)
	at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
	at java.lang.Thread.run(Thread.java:534)

2007-06-14 09:18:18,308 [Orion Launcher] CRIT  grnds.syslog - Cache
failed to initialize during refresh
java.lang.Exception: Error getting Code from database!
	at gov.usps.cache.CodesCacheService.refresh(CodesCacheService.java:200)
	at org.govgrnds.cache.RefreshableGlobalCacheService.initCache(RefreshableGlobalCacheService.java:531)
	at org.govgrnds.cache.RefreshableGlobalCacheService.init(RefreshableGlobalCacheService.java:387)
	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:258)
	at org.apache.turbine.util.TurbineConfig.initialize(TurbineConfig.java:193)
	at org.govgrnds.facility.CommonFacilityBootstrap.execute(CommonFacilityBootstrap.java:359)
	at org.govgrnds.web.BootstrapServlet.doBootstrapFacilities(BootstrapServlet.java:199)
	at org.govgrnds.web.BootstrapServlet.init(BootstrapServlet.java:135)
	at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
	at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
	at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
	at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
	at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
	at com.evermind.server.Application.getHttpApplication(Application.java:886)
	at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
	at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:545)
	at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
	at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
	at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
	at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2325)
	at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1498)
	at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
	at java.lang.Thread.run(Thread.java:534)

2007-06-14 09:18:18,324 [Orion Launcher] CRIT  grnds.syslog - Error
getting DisplayMessage from database!
java.lang.NullPointerException: There was no DataSourceFactory
configured *for* the connection *default*
	at org.apache.torque.Torque.getConnection(Torque.java:938)
	at org.apache.torque.util.BasePeer.doPSSelect(BasePeer.java:2177)
	at gov.usps.ereassign.objectmodel.BaseDisplayMessagePeer.doPSSelectVillageRecords(BaseDisplayMessagePeer.java:471)
	at gov.usps.ereassign.objectmodel.BaseDisplayMessagePeer.doPSSelectVillageRecords(BaseDisplayMessagePeer.java:443)
	at gov.usps.ereassign.objectmodel.BaseDisplayMessagePeer.doPSSelect(BaseDisplayMessagePeer.java:351)
	at gov.usps.cache.DisplayMessageCacheService.refresh(DisplayMessageCacheService.java:138)
	at org.govgrnds.cache.RefreshableGlobalCacheService.initCache(RefreshableGlobalCacheService.java:531)
	at org.govgrnds.cache.RefreshableGlobalCacheService.init(RefreshableGlobalCacheService.java:387)
	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:258)
	at org.apache.turbine.util.TurbineConfig.initialize(TurbineConfig.java:193)
	at org.govgrnds.facility.CommonFacilityBootstrap.execute(CommonFacilityBootstrap.java:359)
	at org.govgrnds.web.BootstrapServlet.doBootstrapFacilities(BootstrapServlet.java:199)
	at org.govgrnds.web.BootstrapServlet.init(BootstrapServlet.java:135)
	at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
	at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
	at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
	at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
	at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
	at com.evermind.server.Application.getHttpApplication(Application.java:886)
	at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
	at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:545)
	at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
	at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
	at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
	at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2325)
	at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1498)
	at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
	at java.lang.Thread.run(Thread.java:534)

2007-06-14 09:18:18,355 [Orion Launcher] CRIT  grnds.syslog - Error
getting DisplayMessage from database!
java.lang.NullPointerException: There was no DataSourceFactory
configured *for* the connection *default*
	at org.apache.torque.Torque.getConnection(Torque.java:938)
	at org.apache.torque.util.BasePeer.doPSSelect(BasePeer.java:2177)
	at gov.usps.ereassign.objectmodel.BaseSystemSettingPeer.doPSSelectVillageRecords(BaseSystemSettingPeer.java:430)
	at gov.usps.ereassign.objectmodel.BaseSystemSettingPeer.doPSSelectVillageRecords(BaseSystemSettingPeer.java:403)
	at gov.usps.ereassign.objectmodel.BaseSystemSettingPeer.doPSSelect(BaseSystemSettingPeer.java:317)
	at gov.usps.cache.SystemSettingCacheService.refresh(SystemSettingCacheService.java:132)
	at org.govgrnds.cache.RefreshableGlobalCacheService.initCache(RefreshableGlobalCacheService.java:531)
	at org.govgrnds.cache.RefreshableGlobalCacheService.init(RefreshableGlobalCacheService.java:387)
	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:258)
	at org.apache.turbine.util.TurbineConfig.initialize(TurbineConfig.java:193)
	at org.govgrnds.facility.CommonFacilityBootstrap.execute(CommonFacilityBootstrap.java:359)
	at org.govgrnds.web.BootstrapServlet.doBootstrapFacilities(BootstrapServlet.java:199)
	at org.govgrnds.web.BootstrapServlet.init(BootstrapServlet.java:135)
	at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
	at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
	at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
	at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
	at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
	at com.evermind.server.Application.getHttpApplication(Application.java:886)
	at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
	at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:545)
	at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:263)
	at com.evermind.server.http.HttpServer.setSites(HttpServer.java:259)
	at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:160)
	at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2325)
	at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1498)
	at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:93)
	at java.lang.Thread.run(Thread.java:534)

2007-06-14 09:18:33,886 [HttpRequestHandler-8814537] ERROR
grnds.syslog - javax.servlet.ServletException: error *while* including
template: Connection object was null. This could be due to a
misconfiguration of the DataSourceFactory. Check the logs and
Torque.properties to better determine the cause.
	at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595)
	at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537)
	at _login._welcomeAdminStart._jspService(_welcomeAdminStart.java:113)
	at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
	at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
	at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
	at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
	at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
	at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
	at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
	at org.grnds.structural.ic.struts.Struts10ErrorHandlingServlet.doGet(Struts10ErrorHandlingServlet.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
	at gov.usps.filter.EreassignServletFilter.doFilter(EreassignServletFilter.java:177)
	at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:604)
	at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
	at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
	at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
	at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
	at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
	at java.lang.Thread.run(Thread.java:534)



-- 
-Arelowo Alao

"All truth passes through three stages. First, it is ridiculed, second it is
violently opposed, and third, it is accepted as self-evident." - Arthur
Schopenhauer

Re: Problems with apache.torque.Torque

Posted by Thomas Vandahl <th...@tewisoft.de>.
Arelowo Alao wrote:
> Ok I am working on this project with three other developers. I 
> configured my
> project and jar files to mimic theres EXACTLY. Yet i am getting this funky
> error. I am using com.evermind.server.OC4JServer to run the application on
> my local machine. When i run the application I get this error in my log
> files:

This question should be directed to the Torque User List 
<to...@db.apache.org>.

> java.io.FileNotFoundException: Could not open Resource
> {org.govgrnds.security.DESFileAccess}{C:/ereassign/prod/config/keyfile}C:/ereassign/prod/config/Torque.properties 

Looks like the config file is not there. No config, no Torque.

Bye, Thomas.


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