cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erlend Hamnaberg <erle...@underdusken.no>
Subject Re: inheritence problem
Date Tue, 19 Jun 2007 10:04:35 GMT
I can see that it is optional to use this field. however when i remove 
it, the following happens:

Jun 19, 2007 12:01:23 PM org.apache.cxf.interceptor.LoggingInInterceptor 
handleMessage
INFO: Inbound message: <soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:tir="http://www.imsglobal.org/services/ti/wsdl/sync/TIRLaunchService_v1p0">
   <soapenv:Header>
      <tir:imsx_syncRequestHeaderInfo>
         <!--Optional:-->
         <tir:imsx_version>?</tir:imsx_version>
         <tir:imsx_messageIdentifier>?</tir:imsx_messageIdentifier>
         <!--Optional:-->
         <tir:SecurityProfile/>
      </tir:imsx_syncRequestHeaderInfo>
   </soapenv:Header>
   <soapenv:Body>
      <tir:ProxyToolLaunchRequest>
         <tir:CoreSettings>
            <tir:ProxyTool>
               <tir:ProxyToolName>?</tir:ProxyToolName>
               <tir:ProxyToolVersion>
                  <tir:major>?</tir:major>
                  <tir:minor>?</tir:minor>
               </tir:ProxyToolVersion>
               <tir:IMSTIVersion>
                  <tir:major>?</tir:major>
                  <tir:minor>?</tir:minor>
               </tir:IMSTIVersion>
               <tir:ProxyToolDescription>?</tir:ProxyToolDescription>
            </tir:ProxyTool>
            <tir:TIR>
               <!--Optional:-->
               <tir:LaunchService>
                  <tir:ServiceName>?</tir:ServiceName>
                  <tir:ServiceLocation>?</tir:ServiceLocation>
                  <tir:ServiceProfileName>?</tir:ServiceProfileName>
               </tir:LaunchService>
               <!--Optional:-->
               <tir:OutcomeService>
                  <tir:ServiceName>?</tir:ServiceName>
                  <tir:ServiceLocation>?</tir:ServiceLocation>
                  <tir:ServiceProfileName>?</tir:ServiceProfileName>
               </tir:OutcomeService>
            </tir:TIR>
         </tir:CoreSettings>
         <tir:ContextualSettings>
            <tir:LaunchProfile>
               <tir:LaunchIdentifier>?</tir:LaunchIdentifier>
               <tir:Role>?</tir:Role>
               <tir:LaunchType>?</tir:LaunchType>
            </tir:LaunchProfile>
            <!--Optional:-->
            <tir:DeliveryContextProfile>
               <tir:IMSSourcedid>
                  <tir:SourceName>?</tir:SourceName>
                  <tir:SourceID>?</tir:SourceID>
               </tir:IMSSourcedid>
               <tir:Name>?</tir:Name>
               <tir:ContextDescription>?</tir:ContextDescription>
               <!--Optional:-->
               <tir:Ancillary>?</tir:Ancillary>
            </tir:DeliveryContextProfile>
            <!--Optional:-->
            <tir:AcclipProfile>
               <tir:Ancillary>?</tir:Ancillary>
            </tir:AcclipProfile>
            <!--Optional:-->
           <!-- <tir:UserProfile/>-->
         </tir:ContextualSettings>
         <tir:ToolSettings>
            <!--Optional:-->
            <tir:Ancillary>?</tir:Ancillary>
         </tir:ToolSettings>
      </tir:ProxyToolLaunchRequest>
   </soapenv:Body>
</soapenv:Envelope>
Jun 19, 2007 12:01:23 PM org.apache.cxf.phase.PhaseInterceptorChain 
doIntercept
INFO: Interceptor has thrown exception, unwinding now
java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
        at java.util.ArrayList.add(ArrayList.java:367)
        at 
org.apache.cxf.jaxws.interceptors.HolderInInterceptor.handleMessage(HolderInInterceptor.java:87)
        at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:148)
        at 
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:63)
        at 
org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:96)
        at 
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:185)
        at 
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:123)
        at 
org.apache.cxf.transport.servlet.CXFServlet.invoke(CXFServlet.java:257)
        at 
org.apache.cxf.transport.servlet.CXFServlet.doPost(CXFServlet.java:235)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
        at 
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
        at 
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
        at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
        at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
        at 
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
        at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:295)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503)
        at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:841)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:639)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:204)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379)
        at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:361)
        at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Jun 19, 2007 12:01:23 PM 
org.apache.cxf.transport.servlet.ServletDestination doMessage
INFO: Finished servicing http request on thread: Thread[btpool0-1,5,main]

Regards
- Erlend

Dan Diephouse wrote:
> I'm confused - what exactly do you want casted an where? JAXB is 
> responsible
> for generating the classes from the schema so I'm afraid we don't have 
> too
> much control there. A WSDL and an example of how you'd like things to 
> look
> might help a bit.
>
> Thanks,
> - Dan
>
> On 6/18/07, Erlend Hamnaberg <erlenha@tihlde.org> wrote:
>>
>> Hello.
>>
>> Another problem occured while my first problem was fixed.
>>
>> The xml types from the wsdl file i need to use, has some built-in
>> inheritence.
>> Snippet from schema that describes this follows:
>>
>> <xs:complexType abstract="true" name="UserProfile.Type">
>>                 <xs:annotation>
>>                     <xs:documentation>
>>                     </xs:documentation>
>>                 </xs:annotation>
>>
>>                 <xs:sequence>
>>                 </xs:sequence>
>>             </xs:complexType>
>>
>>             <xs:complexType name="SimpleUserProfile.Type">
>>                 <xs:annotation>
>>                     <xs:documentation>
>>                     </xs:documentation>
>>                 </xs:annotation>
>>
>>                 <xs:complexContent>
>>                     <xs:extension base="tns:UserProfile.Type">
>>                         <xs:sequence>
>>                             <xs:element maxOccurs="1" minOccurs="1"
>> ref="tns:IMSSourcedid"/>
>>                             <xs:element maxOccurs="1" minOccurs="1"
>> ref="tns:Userid"/>
>>                             <xs:element maxOccurs="1" minOccurs="1"
>> ref="tns:FirstName"/>
>>                             <xs:element maxOccurs="1" minOccurs="1"
>> ref="tns:LastName"/>
>>                             <xs:element maxOccurs="1" minOccurs="0"
>> ref="tns:Ancillary"/>
>>                         </xs:sequence>
>>
>>                     </xs:extension>
>>                 </xs:complexContent>
>>             </xs:complexType>
>>
>>
>> What I am wondering is: Is it possible to force cxf to cast the object
>> to SimpleUsertype ?
>> The generated UserType is an abstract object.
>>
>> I cannot change the schema, so i need to be able to override this. I can
>> post the entire wsdl file if this is helpful to you.
>>
>>
>> Regards
>>
>> Erlend Hamnaberg
>> Lead Developer
>> Evatest
>>
>
>
>


-- 
Erlend Hamnaberg
erlenha@underdusken.no
Student 3. dataingeniør AITeL HiST.
----------------------------------------
Tear down the walls
Wake up the world
Ignorance is not bliss
So fed up with second best
Our time is here and now

I am the enemy
I am the antidote
Watch me closely
I will stand up - now
  *Arch Enemy - We will rise*


Mime
View raw message