Cannot locate service by name (example) -- Example Component Error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Cannot locate service by name (example) -- Example Component Error

Ashish Vijaywargiya-3
Hi Andy,

I have taken latest update.
When I have created new Example I am getting error :
-- Cannot locate service by name (example)

Here is the log message :

2007-01-12 13:33:06,262 (http-0.0.0.0-8443-Processor4) [
ServiceDispatcher.java:389:ERROR]
---- exception report
----------------------------------------------------------
Service [createExample] threw an unexpected exception/error
Exception: org.ofbiz.service.ServiceAuthException
Message: Cannot locate service by name (example)
---- stack trace
---------------------------------------------------------------
org.ofbiz.service.ServiceAuthException: Cannot locate service by name
(example)
org.ofbiz.service.ServiceDispatcher.checkAuth(ServiceDispatcher.java:771)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:304)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java
:287)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:406)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:237)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:178)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:74)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:245)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------

2007-01-12 13:33:06,266 (http-0.0.0.0-8443-Processor4) [
TransactionUtil.java:249:ERROR]
---- exception report
----------------------------------------------------------
[TransactionUtil.rollback]
Exception: java.lang.Exception
Message: Stack Trace
---- stack trace
---------------------------------------------------------------
java.lang.Exception: Stack Trace
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java
:248)
org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java
:230)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:392)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java
:287)
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:406)
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:237)
org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:178)
org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:74)
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:245)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:202)
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
--------------------------------------------------------------------------------

2007-01-12 13:33:06,270 (http-0.0.0.0-8443-Processor4) [
TransactionUtil.java:259:INFO ] [TransactionUtil.rollback] transaction
rolled back
2007-01-12 13:33:06,272 (http-0.0.0.0-8443-Processor4) [
TransactionUtil.java:186:INFO ] [TransactionUtil.commit] Not committing
transaction, status is STATUS_NO_TRANSACTION

As we have posted to submit the two components patch i.e workeffort and
accounting but I am getting the same error in both the component.
Please Let us know if still some work is going on new implementation.

Thanks.
--
Regards
Ashish Vijaywargiya
Aditisoft Technology Laboratory
Reply | Threaded
Open this post in threaded view
|

Re: Cannot locate service by name (example) -- Example Component Error

Scott Gray
While I don't know how best to fix it, the problem is here:
ModelService.java Line 766:                 thisService =
dctx.getModelService(dctx.getName());

dctx.getName() returns "example" not the name of the service.

Regards
Scott

Ashish Vijaywargiya wrote:

> Hi Andy,
>
> I have taken latest update.
> When I have created new Example I am getting error :
> -- Cannot locate service by name (example)
>
> Here is the log message :
>
> 2007-01-12 13:33:06,262 (http-0.0.0.0-8443-Processor4) [
> ServiceDispatcher.java:389:ERROR]
> ---- exception report
> ----------------------------------------------------------
> Service [createExample] threw an unexpected exception/error
> Exception: org.ofbiz.service.ServiceAuthException
> Message: Cannot locate service by name (example)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.ServiceAuthException: Cannot locate service by name
> (example)
> org.ofbiz.service.ServiceDispatcher.checkAuth(ServiceDispatcher.java:771)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:304)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java
>
> :287)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:406)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:237)
>
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:178)
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:74)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:245)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>
> :107)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
>
> (Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
>
> 2007-01-12 13:33:06,266 (http-0.0.0.0-8443-Processor4) [
> TransactionUtil.java:249:ERROR]
> ---- exception report
> ----------------------------------------------------------
> [TransactionUtil.rollback]
> Exception: java.lang.Exception
> Message: Stack Trace
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.Exception: Stack Trace
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java
>
> :248)
> org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java
>
> :230)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:392)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:208)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:110)
> org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java
>
> :287)
> org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:406)
> org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:237)
>
> org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:178)
> org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:74)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:245)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:202)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
>
> :107)
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
>
> (Http11BaseProtocol.java:664)
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> java.lang.Thread.run(Thread.java:595)
> --------------------------------------------------------------------------------
>
>
> 2007-01-12 13:33:06,270 (http-0.0.0.0-8443-Processor4) [
> TransactionUtil.java:259:INFO ] [TransactionUtil.rollback] transaction
> rolled back
> 2007-01-12 13:33:06,272 (http-0.0.0.0-8443-Processor4) [
> TransactionUtil.java:186:INFO ] [TransactionUtil.commit] Not committing
> transaction, status is STATUS_NO_TRANSACTION
>
> As we have posted to submit the two components patch i.e workeffort and
> accounting but I am getting the same error in both the component.
> Please Let us know if still some work is going on new implementation.
>
> Thanks.