You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Erwin Hogeweg <er...@seecago.com> on 2016/10/21 18:57:27 UTC

DOSGi-1.7.0 - SAXParseException during service creation. Service still registered

Hi,

I am struggling with this exception for a while now. It seems ‘harmless', but I am reluctant to just classify it as log-spam.

I have the following definition in my remote-services.xml file:

<endpoint-descriptions xmlns="http://www.osgi.org/xmlns/rsa/v1.0.0">
  <endpoint-description>
    <property name="objectClass">
      <array>
        <value>com.my.service.MyClientService</value>
      </array>
    </property>
    <property name="endpoint.id">http://some_host:18110/</property>
    <property name="service.imported.configs">org.apache.cxf.ws</property>
  </endpoint-description>
</endpoint-descriptions>

This creates the following INFO msg in the log:

[pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore - Matching Interfaces for import: [com.my.service.MyClientService]
[pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore - Proxifying interface: com.my.service.MyClientService
[pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler - Creating a com.my.service.MyClientService client, endpoint address is http://some_host:18110/
[Framework Event Dispatcher: Equinox Container: 7098d908-bd97-0016-11e2-dc65d8e13fe9] WARN org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl - Problem parsing: bundleentry://136.fwk1139700454/OSGI-INF/remote-service/remote-services.xml
javax.xml.bind.UnmarshalException
 - with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 69; cvc-elt.1: Cannot find the declaration of element 'endpoint-descriptions'.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:221)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:276)
at org.apache.cxf.dosgi.dsw.decorator.DecorationParser.getDecorations(DecorationParser.java:71)
at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl.getDecorationElements(ServiceDecoratorImpl.java:78)
at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl.addDecorations(ServiceDecoratorImpl.java:52)
at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorBundleListener.bundleChanged(ServiceDecoratorBundleListener.java:40)
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
Caused by: org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 69; cvc-elt.1: Cannot find the declaration of element 'endpoint-descriptions'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)


Nevertheless, the service is registered and functional:

g! services com.my.service.MyClientService
{com.my.service.MyClientService}={endpoint.id=http://some_host:18110/, service.imported=true, service.imported.configs=org.apache.cxf.ws, service.id=129, service.bundleid=89, service.scope=bundle}
  "Registered by bundle:" cxf-dosgi-ri-dsw-cxf_1.7.0 [89]

Does anyone have an idea what is going on here, and what I need to do to get rid of the Exception in the log (short from tuning the logger config file…)?

Any help is greatly appreciated.

BTW… running with Equinox-3.10.2 on Oracle J8.


Kind Regards,

Erwin

Erwin Hogeweg
CTO
3690 Airport Road
Boca Raton, FL 33431
P. +1 (954) 556-6565
M. +1 (561) 306-7395
F. +1 (561) 948-2730
[Seecago]<http://www.seecago.com>

Re: DOSGi-1.7.0 - SAXParseException during service creation. Service still registered

Posted by Christian Schneider <ch...@die-schneider.net>.
Your xml looks correct. Can you open an issue?
It would also be great if you could try the same with cxf-dosgi 1.8.0 and
cxf-dosgi 2.0.0.

Christian

2016-10-21 20:57 GMT+02:00 Erwin Hogeweg <er...@seecago.com>:

> Hi,
>
> I am struggling with this exception for a while now. It seems ‘harmless',
> but I am reluctant to just classify it as log-spam.
>
> I have the following definition in my remote-services.xml file:
>
> <endpoint-descriptions xmlns="http://www.osgi.org/xmlns/rsa/v1.0.0">
>   <endpoint-description>
>     <property name="objectClass">
>       <array>
>         <value>com.my.service.MyClientService</value>
>       </array>
>     </property>
>     <property name="endpoint.id">http://some_host:18110/</property>
>     <property name="service.imported.configs">org.apache.cxf.ws</property>
>   </endpoint-description>
> </endpoint-descriptions>
>
> This creates the following INFO msg in the log:
>
> [pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore
> - Matching Interfaces for import: [com.my.service.MyClientService]
> [pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore
> - Proxifying interface: com.my.service.MyClientService
> [pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler
> - Creating a com.my.service.MyClientService client, endpoint address is
> http://some_host:18110/
> [Framework Event Dispatcher: Equinox Container: 7098d908-bd97-0016-11e2-dc65d8e13fe9]
> WARN org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl - Problem
> parsing: bundleentry://136.fwk1139700454/OSGI-INF/remote-
> service/remote-services.xml
> javax.xml.bind.UnmarshalException
>  - with linked exception:
> [org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 69;
> cvc-elt.1: Cannot find the declaration of element 'endpoint-descriptions'.]
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.
> createUnmarshalException(AbstractUnmarshallerImpl.java:335)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.
> createUnmarshalException(UnmarshallerImpl.java:563)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:221)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:276)
> at org.apache.cxf.dosgi.dsw.decorator.DecorationParser.getDecorations(
> DecorationParser.java:71)
> at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl.
> getDecorationElements(ServiceDecoratorImpl.java:78)
> at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl.addDecorations(
> ServiceDecoratorImpl.java:52)
> at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorBundleListener
> .bundleChanged(ServiceDecoratorBundleListener.java:40)
> at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(
> BundleContextImpl.java:902)
> at org.eclipse.osgi.framework.eventmgr.EventManager.
> dispatchEvent(EventManager.java:230)
> at org.eclipse.osgi.framework.eventmgr.EventManager$
> EventThread.run(EventManager.java:340)
> Caused by: org.xml.sax.SAXParseException; lineNumber: 12; columnNumber:
> 69; cvc-elt.1: Cannot find the declaration of element
> 'endpoint-descriptions'.
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.
> createSAXParseException(ErrorHandlerWrapper.java:203)
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(
> ErrorHandlerWrapper.java:134)
>
>
> Nevertheless, the service is registered and functional:
>
> g! services com.my.service.MyClientService
> {com.my.service.MyClientService}={endpoint.id=http://some_host:18110/,
> service.imported=true, service.imported.configs=org.apache.cxf.ws,
> service.id=129, service.bundleid=89, service.scope=bundle}
>   "Registered by bundle:" cxf-dosgi-ri-dsw-cxf_1.7.0 [89]
>
> Does anyone have an idea what is going on here, and what I need to do to
> get rid of the Exception in the log (short from tuning the logger config
> file…)?
>
> Any help is greatly appreciated.
>
> BTW… running with Equinox-3.10.2 on Oracle J8.
>
>
> Kind Regards,
>
> Erwin
>
> Erwin Hogeweg
> CTO
> 3690 Airport Road
> Boca Raton, FL 33431
> P. +1 (954) 556-6565
> M. +1 (561) 306-7395
> F. +1 (561) 948-2730
> [Seecago]<http://www.seecago.com>
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de>

Open Source Architect
http://www.talend.com
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>

Re: DOSGi-1.7.0 - SAXParseException during service creation. Service still registered

Posted by Erwin Hogeweg <er...@seecago.com>.
Hi Nino,

On Oct 22, 2016, at 6:08 AM, nino martinez wael <ni...@gmail.com>> wrote:

Have you tried validating your xml configuration?
Yes, using http://www.xmlvalidation.com
“No Errors were found”.

Erwin


On 21 Oct 2016 20:57, "Erwin Hogeweg" <er...@seecago.com>> wrote:

Hi,

I am struggling with this exception for a while now. It seems ‘harmless',
but I am reluctant to just classify it as log-spam.

I have the following definition in my remote-services.xml file:

<endpoint-descriptions xmlns="http://www.osgi.org/xmlns/rsa/v1.0.0">
 <endpoint-description>
   <property name="objectClass">
     <array>
       <value>com.my.service.MyClientService</value>
     </array>
   </property>
   <property name="endpoint.id">http://some_host:18110/</property>
   <property name="service.imported.configs">org.apache.cxf.ws</property>
 </endpoint-description>
</endpoint-descriptions>

This creates the following INFO msg in the log:

[pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore
- Matching Interfaces for import: [com.my.service.MyClientService]
[pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore
- Proxifying interface: com.my.service.MyClientService
[pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler
- Creating a com.my.service.MyClientService client, endpoint address is
http://some_host:18110/
[Framework Event Dispatcher: Equinox Container: 7098d908-bd97-0016-11e2-dc65d8e13fe9]
WARN org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl - Problem
parsing: bundleentry://136.fwk1139700454/OSGI-INF/remote-
service/remote-services.xml
javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 69;
cvc-elt.1: Cannot find the declaration of element 'endpoint-descriptions'.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.
createUnmarshalException(AbstractUnmarshallerImpl.java:335)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.
createUnmarshalException(UnmarshallerImpl.java:563)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:221)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:276)
at org.apache.cxf.dosgi.dsw.decorator.DecorationParser.getDecorations(
DecorationParser.java:71)
at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl.
getDecorationElements(ServiceDecoratorImpl.java:78)
at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl.addDecorations(
ServiceDecoratorImpl.java:52)
at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorBundleListener
.bundleChanged(ServiceDecoratorBundleListener.java:40)
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(
BundleContextImpl.java:902)
at org.eclipse.osgi.framework.eventmgr.EventManager.
dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$
EventThread.run(EventManager.java:340)
Caused by: org.xml.sax.SAXParseException; lineNumber: 12; columnNumber:
69; cvc-elt.1: Cannot find the declaration of element
'endpoint-descriptions'.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.
createSAXParseException(ErrorHandlerWrapper.java:203)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(
ErrorHandlerWrapper.java:134)


Nevertheless, the service is registered and functional:

g! services com.my.service.MyClientService
{com.my.service.MyClientService}={endpoint.id=http://some_host:18110/,
service.imported=true, service.imported.configs=org.apache.cxf.ws,
service.id=129, service.bundleid=89, service.scope=bundle}
 "Registered by bundle:" cxf-dosgi-ri-dsw-cxf_1.7.0 [89]

Does anyone have an idea what is going on here, and what I need to do to
get rid of the Exception in the log (short from tuning the logger config
file…)?

Any help is greatly appreciated.

BTW… running with Equinox-3.10.2 on Oracle J8.


Kind Regards,

Erwin

Erwin Hogeweg
CTO
3690 Airport Road
Boca Raton, FL 33431
P. +1 (954) 556-6565
M. +1 (561) 306-7395
F. +1 (561) 948-2730
[Seecago]<http://www.seecago.com>


Erwin Hogeweg
CTO
3690 Airport Road
Boca Raton, FL 33431
P. +1 (954) 556-6565
M. +1 (561) 306-7395
F. +1 (561) 948-2730
[Seecago]<http://www.seecago.com>

Re: DOSGi-1.7.0 - SAXParseException during service creation. Service still registered

Posted by nino martinez wael <ni...@gmail.com>.
Have you tried validating your xml configuration?

On 21 Oct 2016 20:57, "Erwin Hogeweg" <er...@seecago.com> wrote:

> Hi,
>
> I am struggling with this exception for a while now. It seems ‘harmless',
> but I am reluctant to just classify it as log-spam.
>
> I have the following definition in my remote-services.xml file:
>
> <endpoint-descriptions xmlns="http://www.osgi.org/xmlns/rsa/v1.0.0">
>   <endpoint-description>
>     <property name="objectClass">
>       <array>
>         <value>com.my.service.MyClientService</value>
>       </array>
>     </property>
>     <property name="endpoint.id">http://some_host:18110/</property>
>     <property name="service.imported.configs">org.apache.cxf.ws</property>
>   </endpoint-description>
> </endpoint-descriptions>
>
> This creates the following INFO msg in the log:
>
> [pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore
> - Matching Interfaces for import: [com.my.service.MyClientService]
> [pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.service.RemoteServiceAdminCore
> - Proxifying interface: com.my.service.MyClientService
> [pool-4-thread-1] INFO org.apache.cxf.dosgi.dsw.handlers.PojoConfigurationTypeHandler
> - Creating a com.my.service.MyClientService client, endpoint address is
> http://some_host:18110/
> [Framework Event Dispatcher: Equinox Container: 7098d908-bd97-0016-11e2-dc65d8e13fe9]
> WARN org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl - Problem
> parsing: bundleentry://136.fwk1139700454/OSGI-INF/remote-
> service/remote-services.xml
> javax.xml.bind.UnmarshalException
>  - with linked exception:
> [org.xml.sax.SAXParseException; lineNumber: 12; columnNumber: 69;
> cvc-elt.1: Cannot find the declaration of element 'endpoint-descriptions'.]
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.
> createUnmarshalException(AbstractUnmarshallerImpl.java:335)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.
> createUnmarshalException(UnmarshallerImpl.java:563)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:221)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.
> UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:276)
> at org.apache.cxf.dosgi.dsw.decorator.DecorationParser.getDecorations(
> DecorationParser.java:71)
> at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl.
> getDecorationElements(ServiceDecoratorImpl.java:78)
> at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorImpl.addDecorations(
> ServiceDecoratorImpl.java:52)
> at org.apache.cxf.dosgi.dsw.decorator.ServiceDecoratorBundleListener
> .bundleChanged(ServiceDecoratorBundleListener.java:40)
> at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(
> BundleContextImpl.java:902)
> at org.eclipse.osgi.framework.eventmgr.EventManager.
> dispatchEvent(EventManager.java:230)
> at org.eclipse.osgi.framework.eventmgr.EventManager$
> EventThread.run(EventManager.java:340)
> Caused by: org.xml.sax.SAXParseException; lineNumber: 12; columnNumber:
> 69; cvc-elt.1: Cannot find the declaration of element
> 'endpoint-descriptions'.
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.
> createSAXParseException(ErrorHandlerWrapper.java:203)
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(
> ErrorHandlerWrapper.java:134)
>
>
> Nevertheless, the service is registered and functional:
>
> g! services com.my.service.MyClientService
> {com.my.service.MyClientService}={endpoint.id=http://some_host:18110/,
> service.imported=true, service.imported.configs=org.apache.cxf.ws,
> service.id=129, service.bundleid=89, service.scope=bundle}
>   "Registered by bundle:" cxf-dosgi-ri-dsw-cxf_1.7.0 [89]
>
> Does anyone have an idea what is going on here, and what I need to do to
> get rid of the Exception in the log (short from tuning the logger config
> file…)?
>
> Any help is greatly appreciated.
>
> BTW… running with Equinox-3.10.2 on Oracle J8.
>
>
> Kind Regards,
>
> Erwin
>
> Erwin Hogeweg
> CTO
> 3690 Airport Road
> Boca Raton, FL 33431
> P. +1 (954) 556-6565
> M. +1 (561) 306-7395
> F. +1 (561) 948-2730
> [Seecago]<http://www.seecago.com>
>