juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Brown (JIRA)" <juddi-...@ws.apache.org>
Subject [jira] Created: (JUDDI-390) setPublisherAssertions causes Hibernate exception
Date Mon, 03 May 2010 18:35:57 GMT
setPublisherAssertions causes Hibernate exception
-------------------------------------------------

                 Key: JUDDI-390
                 URL: https://issues.apache.org/jira/browse/JUDDI-390
             Project: jUDDI
          Issue Type: Bug
          Components: core
    Affects Versions: 3.0.1
         Environment: Tomcat 6.0.10, PostgreSQL 8.4
            Reporter: Jason Brown
            Assignee: Kurt T Stam


When attempting a set_publisherAssertions call wtih publisherAssertion data or an empty body,
a SOAP fault indicating Hibernate exception is returned.

INPUTS: 

the following businesses are saved: 

<save_business xmlns="urn:uddi-org:api_v3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <businessEntity businessKey="uddi:assertiontest:01">
        <name>uddi:assertiontest:01</name>
    </businessEntity>
</save_business>

<save_business xmlns="urn:uddi-org:api_v3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <businessEntity businessKey="uddi:assertiontest:02">
        <name>uddi:assertiontest:02</name>
    </businessEntity>
</save_business>


The following set_publisherAssertions are attempted (fails with SOAP fault below for both
instances):

empty body:
<set_publisherAssertions xmlns="urn:uddi-org:api_v3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    
</set_publisherAssertions>

with publisherAssertion data:
<set_publisherAssertions xmlns="urn:uddi-org:api_v3"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:uddi-org:api_v3 file:/C:/sd-sandbox/sd-devel/misc/xsd/uddi_v3.xsd">
    <authInfo>authtoken:9d92c75f-63b1-4055-8f61-17ff76733b90</authInfo>
    <publisherAssertion>
        <fromKey>uddi:assertiontest:01</fromKey>
        <toKey>uddi:assertiontest:02</toKey>
        <keyedReference tModelKey="uddi:uddi.org:relationships" keyName="Assertion Test"
keyValue="parent-child"/>
    </publisherAssertion>
</set_publisherAssertions>



The following SOAP fault is returned:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
	<soap:Body>
		<soap:Fault>
			<faultcode>soap:Server</faultcode>
				<faultstring>org.hibernate.hql.ast.QuerySyntaxException: unexpected token: from
near line 1, column 11 [delete pa from org.apache.juddi.model.PublisherAssertion pa where
( pa.businessEntityByFromKey.entityKey in ( ?1, ?2, ?3, ?4, ?5)  or pa.businessEntityByToKey.entityKey
in ( ?6, ?7, ?8, ?9, ?10) ) ]
				</faultstring>
		</soap:Fault>
	</soap:Body>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message