juddi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex O'Ree (JIRA)" <juddi-...@ws.apache.org>
Subject [jira] [Commented] (JUDDI-681) When saving a new business, the business key is not casted correctly
Date Fri, 01 Nov 2013 02:46:17 GMT

    [ https://issues.apache.org/jira/browse/JUDDI-681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13810988#comment-13810988
] 

Alex O'Ree commented on JUDDI-681:
----------------------------------

from Toufic via email


I had encountered a conflict between the following two jars:


uddi-ws-3.1.3-redhat-2.jar  a module in EAP 6 under ./modules/system/layers/base/org/apache/juddi/uddi-ws/main/
uddi-ws-3.2.0-SNAPSHOT.jar - ships with juddi-gui.war and juddiv3 under lib folder

To allow juddi-gui to use its JAR i had to add exclusions of all modules that depend on uddi-ws-3.1.3-redhat-2.jar
in a jboss-deployment-structure for both the juddi-gui and the juddiv3. The deployment descriptor
file for juddiv3 has the additional openjpa dependencies that Kurt defined. Here are the final
versions:

JUDDIV3:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
  <deployment>
    <exclusions>
        <module name="org.apache.juddi.uddi-ws"/>
        <module name="org.jboss.as.jaxr"/>
        <module name="org.apache.juddi.juddi-client"/>
        <module name="org.apache.juddi.scout"/>
    </exclusions>

    <dependencies>
      <module name="org.jboss.as.jpa.openjpa" />
      <module name="org.jboss.ws.cxf.jbossws-cxf-server" />
    </dependencies>
  </deployment>
</jboss-deployment-structure>


JUDDI-GUI
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2">
  <deployment>
        <exclusions>
            <module name="org.apache.juddi.uddi-ws"/>
            <module name="org.jboss.as.jaxr"/>
            <module name="org.apache.juddi.juddi-client"/>
            <module name="org.apache.juddi.scout"/>
        </exclusions>

  </deployment>
</jboss-deployment-structure>

This however did not solve the cast issue that we were seeing. to solve this one, I removed
the orm.xml definition that I grabbed from the juddi website (if you recall I had changed
the sequence name in it for open-jpa)

I redeployed both wars, and I ran a few smoke tests (which were failing before the orm.xml
file was removed) and services were published just fine :)

I just thought you two should know this, I do owe you a lot of documentation, and will deliver
as soon as I "destroy" the entire environment and rebuild from scratch to reverify all this.
I will be using the DDL file to build the database and not go through persistence.

> When saving a new business, the business key is not casted correctly
> --------------------------------------------------------------------
>
>                 Key: JUDDI-681
>                 URL: https://issues.apache.org/jira/browse/JUDDI-681
>             Project: jUDDI
>          Issue Type: Bug
>    Affects Versions: 3.2
>         Environment: RHEL 6.4, EAP 6.1.1, OpenJPA, Oracle 11g, ojdbc6.jar
>            Reporter: Toufic Arabi
>            Assignee: Kurt T Stam
>            Priority: Minor
>              Labels: newbie
>             Fix For: 3.2
>
>
> Trying to create a new business with key value "test" or any string form with or without
numbers causes the following exception
> 2013-10-28 16:16:28,362 ERROR [org.apache.juddi] - null
> javax.xml.ws.soap.SOAPFaultException: The business entity was not found for the given
key:  test
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:155)
> 	at com.sun.proxy.$Proxy122.getBusinessDetail(Unknown Source)
> 	at org.apache.juddi.webconsole.hub.UddiHub.GetBusinessDetails(UddiHub.java:940)
> 	at org.apache.juddi.webconsole.hub.UddiHub.SaveBusinessDetails(UddiHub.java:835)
> 	at org.apache.jsp.ajax.savebusiness_jsp._jspService(savebusiness_jsp.java:152)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
> 	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
> 	at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.cxf.binding.soap.SoapFault: The business entity was not found for
the given key:  test
> 	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:84)
> 	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51)
> 	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
> 	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
> 	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:800)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1592)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1490)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1309)
> 	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
> 	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:622)
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
> 	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:133)
> 	... 24 more
> 2013-10-28 16:16:28,515 ERROR [org.apache.juddi] - null
> javax.xml.ws.soap.SOAPFaultException: java.lang.String cannot be cast to java.lang.Long
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:155)
> 	at com.sun.proxy.$Proxy124.saveBusiness(Unknown Source)
> 	at org.apache.juddi.webconsole.hub.UddiHub.SaveBusinessDetails(UddiHub.java:796)
> 	at org.apache.juddi.webconsole.hub.UddiHub.SaveBusinessDetails(UddiHub.java:858)
> 	at org.apache.jsp.ajax.savebusiness_jsp._jspService(savebusiness_jsp.java:152)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:365)
> 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:242)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
> 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)
> 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
> 	at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)
> 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145)
> 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)
> 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)
> 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:336)
> 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
> 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)
> 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:920)
> 	at java.lang.Thread.run(Thread.java:724)
> Caused by: org.apache.cxf.binding.soap.SoapFault: java.lang.String cannot be cast to
java.lang.Long
> 	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:84)
> 	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51)
> 	at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
> 	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
> 	at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:800)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1592)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1490)
> 	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1309)
> 	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
> 	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:622)
> 	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271)
> 	at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:463)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:366)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:319)
> 	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
> 	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:133)
> 	... 24 more
> I can email the orm.xml that I am using as well as the current persistence file. 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message