ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marek Skorek (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WSCOMMONS-575) Problem with parsing artibutes value containg colon character
Date Tue, 25 Oct 2011 09:14:32 GMT

     [ https://issues.apache.org/jira/browse/WSCOMMONS-575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marek Skorek updated WSCOMMONS-575:
-----------------------------------

    Description: 
Sorry if this issue is not placed correctly as a bug.

I got xml schema with atrribute definioiton as below:

<xs:attribute use="optional" type="meta:javaDateTime" name="SOME_NAME" meta:pattern="yyyy-MM-dd
hh:mm:ss.S"></xs:attribute>

When I try to read it I get the following exception:

2011-02-04 08:31:46,492 ERROR [ConfigManagerImpl,pool-5-thread-2:477]: Error getting  configuration
for id: d29cbd1e-5c8f-445d-942a-043b4fede3c5
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
        at org.apache.xerces.dom.CoreDocumentImpl.createAttribute(Unknown Source)
        at org.apache.ws.commons.schema.SchemaBuilder.handleAttribute(SchemaBuilder.java:1311)
        at org.apache.ws.commons.schema.SchemaBuilder.handleAttribute(SchemaBuilder.java:1211)
        at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:662)
        at org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1424)
        at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:210)
        at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:512)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:385)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:425)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:451)
        at com.assecobs.connector.message.structure.Structure.<init>(Structure.java:73)
        at com.assecobs.connector.config.dao.dom.StructureDOMDAO.read(StructureDOMDAO.java:65)
        at com.assecobs.connector.service.impl.ConfigManagerImpl.getStructure(ConfigManagerImpl.java:473)
        at com.assecobs.connector.component.DstFTPComponent.invoke(DstFTPComponent.java:147)
        at com.assecobs.connector.core.kernel.ModuleProcess.process(ModuleProcess.java:217)
        at com.assecobs.connector.core.kernel.ModuleProcess.run(ModuleProcess.java:165)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)


After some debugging I noticed that that problem occurs when the attribute value contains
colon character. String before this character is treat as a namespace but I guess I should
not be?

I you got some tips or any workarounds I will be very thankful :-)

Regards.

  was:
Sorry if this issue is not placed correctly as a bug.

I got xml schema with atrribute definioiton as below:
{code}
<xs:attribute use="optional" type="meta:javaDateTime" name="SOME_NAME" meta:pattern="yyyy-MM-dd
hh:mm:ss.S"></xs:attribute>
{code}
When I try to read it I get the following exception:
{code}
2011-02-04 08:31:46,492 ERROR [ConfigManagerImpl,pool-5-thread-2:477]: Error getting  configuration
for id: d29cbd1e-5c8f-445d-942a-043b4fede3c5
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
        at org.apache.xerces.dom.CoreDocumentImpl.createAttribute(Unknown Source)
        at org.apache.ws.commons.schema.SchemaBuilder.handleAttribute(SchemaBuilder.java:1311)
        at org.apache.ws.commons.schema.SchemaBuilder.handleAttribute(SchemaBuilder.java:1211)
        at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:662)
        at org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1424)
        at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:210)
        at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:512)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:385)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:425)
        at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:451)
        at com.assecobs.connector.message.structure.Structure.<init>(Structure.java:73)
        at com.assecobs.connector.config.dao.dom.StructureDOMDAO.read(StructureDOMDAO.java:65)
        at com.assecobs.connector.service.impl.ConfigManagerImpl.getStructure(ConfigManagerImpl.java:473)
        at com.assecobs.connector.component.DstFTPComponent.invoke(DstFTPComponent.java:147)
        at com.assecobs.connector.core.kernel.ModuleProcess.process(ModuleProcess.java:217)
        at com.assecobs.connector.core.kernel.ModuleProcess.run(ModuleProcess.java:165)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
{code}

After some debugging I noticed that that problem occurs when the attribute value contains
colon character. String before this character is treat as a namespace but I guess I should
not be?

I you got some tips or any workarounds I will be very thankful :-)

Regards.

    
> Problem with parsing artibutes value containg colon character
> -------------------------------------------------------------
>
>                 Key: WSCOMMONS-575
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-575
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>            Reporter: Marek Skorek
>
> Sorry if this issue is not placed correctly as a bug.
> I got xml schema with atrribute definioiton as below:
> <xs:attribute use="optional" type="meta:javaDateTime" name="SOME_NAME" meta:pattern="yyyy-MM-dd
hh:mm:ss.S"></xs:attribute>
> When I try to read it I get the following exception:
> 2011-02-04 08:31:46,492 ERROR [ConfigManagerImpl,pool-5-thread-2:477]: Error getting
 configuration for id: d29cbd1e-5c8f-445d-942a-043b4fede3c5
> org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character
is specified.
>         at org.apache.xerces.dom.CoreDocumentImpl.createAttribute(Unknown Source)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleAttribute(SchemaBuilder.java:1311)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleAttribute(SchemaBuilder.java:1211)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleComplexType(SchemaBuilder.java:662)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleElement(SchemaBuilder.java:1424)
>         at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:210)
>         at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:121)
>         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:512)
>         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:385)
>         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:425)
>         at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:451)
>         at com.assecobs.connector.message.structure.Structure.<init>(Structure.java:73)
>         at com.assecobs.connector.config.dao.dom.StructureDOMDAO.read(StructureDOMDAO.java:65)
>         at com.assecobs.connector.service.impl.ConfigManagerImpl.getStructure(ConfigManagerImpl.java:473)
>         at com.assecobs.connector.component.DstFTPComponent.invoke(DstFTPComponent.java:147)
>         at com.assecobs.connector.core.kernel.ModuleProcess.process(ModuleProcess.java:217)
>         at com.assecobs.connector.core.kernel.ModuleProcess.run(ModuleProcess.java:165)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> After some debugging I noticed that that problem occurs when the attribute value contains
colon character. String before this character is treat as a namespace but I guess I should
not be?
> I you got some tips or any workarounds I will be very thankful :-)
> Regards.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message