No Authentication Service Defined

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

No Authentication Service Defined

Saroj C
Hi,
 Any idea, what could be the reason of the following exception ? Note, the Applicaiton was working fine, suddenly started giving the following exception and after restart everything went to normal again.

Error in request handler:
Exception: org.ofbiz.widget.screen.ScreenRenderException
Message: Error rendering screen [component://widget/CommonScreens.xml#main-decorator]: java.lang.IllegalArgumentException: Error calling service with name getVisualThemeResources: org.ofbiz.service.GenericServiceException: No Authentication Service Defined (Error calling service with name getVisualThemeResources: org.ofbiz.service.GenericServiceException: No Authentication Service Defined)
---- cause ---------------------------------------------------------------------
Exception: java.lang.IllegalArgumentException
Message: Error calling service with name getVisualThemeResources: org.ofbiz.service.GenericServiceException: No Authentication Service Defined
---- stack trace ---------------------------------------------------------------
java.lang.IllegalArgumentException: Error calling service with name getVisualThemeResources: org.ofbiz.service.GenericServiceException: No Authentication Service Defined


Thanks and Regards,
Saroj
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


Reply | Threaded
Open this post in threaded view
|

Re: No Authentication Service Defined

deb.panda
This post was updated on .
Hi,
Adding to the background of the issue.

1. The main problem is No Authentication Service Defined . Abruptly the
authentication was revoked.
2. Async service sendEmail service was triggered but  failed more that
1000 times.
3, Then all of a sudden while triggering getUserPreference, it threw
Authentication exception,

Please suggest why the Authentication / userPreferences was lost on the
fly??

Below is the log.

java.lang.Exception: MessagingException when creating message to
[abc@def.com] from [From *] cc [null] bcc [no-reply@def.in] subject
[iIUZRTOuEWy]
org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:75)
org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:241)
java.lang.Thread.run(Thread.java:662)
--------------------------------------------------------------------------------

2012-08-01 08:26:22,800 (default-invoker-Thread-127946) [
UtilXml.java:701:ERROR] XmlFileLoader: File
/ofbiz/applications/marketing/servicedef/services.xml
process error. Line: 48. Error message: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'log'. One of '{namespace,
permission-service, required-permissions, implements, auto-attributes,
attribute, group, override}' is expected.
2012-08-01 08:26:22,801 (default-invoker-Thread-127946) [
UtilXml.java:701:ERROR] XmlFileLoader: File
/ofbiz/applications/marketing/servicedef/services.xml
process error. Line: 56. Error message: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'log'. One of '{namespace,
permission-service, required-permissions, implements, auto-attributes,
attribute, group, override}' is expected.
2012-08-01 08:26:22,801 (default-invoker-Thread-127946) [
UtilXml.java:701:ERROR] XmlFileLoader: File
/ofbiz/applications/marketing/servicedef/services.xml
process error. Line: 63. Error message: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'log'. One of '{namespace,
permission-service, required-permissions, implements, auto-attributes,
attribute, group, override}' is expected.
2012-08-01 08:26:22,898 (TP-Processor20) [ UtilXml.java:701:ERROR]
XmlFileLoader: File
/ofbiz/applications/marketing/servicedef/services.xml
process error. Line: 48. Error message: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'log'. One of '{namespace,
permission-service, required-permissions, implements, auto-attributes,
attribute, group, override}' is expected.
2012-08-01 08:26:22,899 (TP-Processor20) [ UtilXml.java:701:ERROR]
XmlFileLoader: File
/ofbiz/applications/marketing/servicedef/services.xml
process error. Line: 56. Error message: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'log'. One of '{namespace,
permission-service, required-permissions, implements, auto-attributes,
attribute, group, override}' is expected.
2012-08-01 08:26:22,899 (TP-Processor20) [ UtilXml.java:701:ERROR]
XmlFileLoader: File
/ofbiz/applications/marketing/servicedef/services.xml
process error. Line: 63. Error message: cvc-complex-type.2.4.a: Invalid
content was found starting with element 'log'. One of '{namespace,
permission-service, required-permissions, implements, auto-attributes,
attribute, group, override}' is expected.
2012-08-01 08:26:23,044 (TP-Processor20) [
ServiceDispatcher.java:506:ERROR]
---- exception report
----------------------------------------------------------
Service [getUserPreferenceGroup] threw an unexpected exception/error
Exception: org.ofbiz.service.GenericServiceException
Message: No Authentication Service Defined

Thanks
Dev




From:
Saroj C <saroj.c@tcs.com>
To:
user@ofbiz.apache.org
Date:
08/01/2012 07:24 PM
Subject:
No Authentication Service Defined



Hi,
 Any idea, what could be the reason of the following exception ? Note, the
Applicaiton was working fine, suddenly started giving the following
exception and after restart everything went to normal again.

Error in request handler:
Exception: org.ofbiz.widget.screen.ScreenRenderException
Message: Error rendering screen
[component://widget/CommonScreens.xml#main-decorator]:
java.lang.IllegalArgumentException: Error calling service with name
getVisualThemeResources: org.ofbiz.service.GenericServiceException: No
Authentication Service Defined (Error calling service with name
getVisualThemeResources: org.ofbiz.service.GenericServiceException: No
Authentication Service Defined)
---- cause
---------------------------------------------------------------------
Exception: java.lang.IllegalArgumentException
Message: Error calling service with name getVisualThemeResources:
org.ofbiz.service.GenericServiceException: No Authentication Service
Defined
---- stack trace
---------------------------------------------------------------
java.lang.IllegalArgumentException: Error calling service with name
getVisualThemeResources: org.ofbiz.service.GenericServiceException: No
Authentication Service Defined


Thanks and Regards,
Saroj
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you




Thanks,
Dev Panda
Reply | Threaded
Open this post in threaded view
|

Re: No Authentication Service Defined

Ravindra Mandre-2
Hi ,

On Thu, Aug 2, 2012 at 4:47 PM, <[hidden email]> wrote:

> Hi,
> Adding to the background of the issue.
>
> 1. The main problem is No Authentication Service Defined . Abruptly the
> authentication was revoked.
> 2. Async service sendEmail service was triggered but  failed more that
> 1000 times.
> 3, Then all of a sudden while triggering getUserPreference, it threw
> Authentication exception,
>
> Please suggest why the Authentication / userPreferences was lost on the
> fly??
>
> Below is the log.
>
> java.lang.Exception: MessagingException when creating message to
> [[hidden email]] from [From *] cc [null] bcc [[hidden email]] subject
> [iIUZRTOuEWy]
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:75)
> org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:241)
> java.lang.Thread.run(Thread.java:662)
>
> --------------------------------------------------------------------------------
>
> 2012-08-01 08:26:22,800 (default-invoker-Thread-127946) [
> UtilXml.java:701:ERROR] XmlFileLoader:



File
>
> /carnation/opt/prod_latest/ofbiz/applications/marketing/servicedef/services.xml
> process error. Line: 48. Error message: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'log'.


Check your code , you log also says where the problem is . Your post says
your problem is in log statement.


Ravindra Mandre


> One of '{namespace,
> permission-service, required-permissions, implements, auto-attributes,
> attribute, group, override}' is expected.
> 2012-08-01 08:26:22,801







> (default-invoker-Thread-127946) [
> UtilXml.java:701:ERROR] XmlFileLoader: File
>
> /carnation/opt/prod_latest/ofbiz/applications/marketing/servicedef/services.xml
> process error. Line: 56. Error message: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'log'. One of '{namespace,
> permission-service, required-permissions, implements, auto-attributes,
> attribute, group, override}' is expected.
> 2012-08-01 08:26:22,801 (default-invoker-Thread-127946) [
> UtilXml.java:701:ERROR] XmlFileLoader: File
>
> /carnation/opt/prod_latest/ofbiz/applications/marketing/servicedef/services.xml
> process error. Line: 63. Error message: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'log'. One of '{namespace,
> permission-service, required-permissions, implements, auto-attributes,
> attribute, group, override}' is expected.
> 2012-08-01 08:26:22,898 (TP-Processor20) [ UtilXml.java:701:ERROR]
> XmlFileLoader: File
>
> /carnation/opt/prod_latest/ofbiz/applications/marketing/servicedef/services.xml
> process error. Line: 48. Error message: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'log'. One of '{namespace,
> permission-service, required-permissions, implements, auto-attributes,
> attribute, group, override}' is expected.
> 2012-08-01 08:26:22,899 (TP-Processor20) [ UtilXml.java:701:ERROR]
> XmlFileLoader: File
>
> /carnation/opt/prod_latest/ofbiz/applications/marketing/servicedef/services.xml
> process error. Line: 56. Error message: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'log'. One of '{namespace,
> permission-service, required-permissions, implements, auto-attributes,
> attribute, group, override}' is expected.
> 2012-08-01 08:26:22,899 (TP-Processor20) [ UtilXml.java:701:ERROR]
> XmlFileLoader: File
>
> /carnation/opt/prod_latest/ofbiz/applications/marketing/servicedef/services.xml
> process error. Line: 63. Error message: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'log'. One of '{namespace,
> permission-service, required-permissions, implements, auto-attributes,
> attribute, group, override}' is expected.
> 2012-08-01 08:26:23,044 (TP-Processor20) [
> ServiceDispatcher.java:506:ERROR]
> ---- exception report
> ----------------------------------------------------------
> Service [getUserPreferenceGroup] threw an unexpected exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: No Authentication Service Defined
>
> Thanks
> Dev
>
>
>
>
> From:
> Saroj C <[hidden email]>
> To:
> [hidden email]
> Date:
> 08/01/2012 07:24 PM
> Subject:
> No Authentication Service Defined
>
>
>
> Hi,
>  Any idea, what could be the reason of the following exception ? Note, the
> Applicaiton was working fine, suddenly started giving the following
> exception and after restart everything went to normal again.
>
> Error in request handler:
> Exception: org.ofbiz.widget.screen.ScreenRenderException
> Message: Error rendering screen
> [component://widget/CommonScreens.xml#main-decorator]:
> java.lang.IllegalArgumentException: Error calling service with name
> getVisualThemeResources: org.ofbiz.service.GenericServiceException: No
> Authentication Service Defined (Error calling service with name
> getVisualThemeResources: org.ofbiz.service.GenericServiceException: No
> Authentication Service Defined)
> ---- cause
> ---------------------------------------------------------------------
> Exception: java.lang.IllegalArgumentException
> Message: Error calling service with name getVisualThemeResources:
> org.ofbiz.service.GenericServiceException: No Authentication Service
> Defined
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.IllegalArgumentException: Error calling service with name
> getVisualThemeResources: org.ofbiz.service.GenericServiceException: No
> Authentication Service Defined
>
>
> Thanks and Regards,
> Saroj
> =====-----=====-----=====
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
>
>


--
Regards
Ravindra Mandre
Bangalore