You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Babette Wagner (s713474)" <b....@tfh-berlin.de> on 2006/12/11 14:36:39 UTC
Axis 1.4 - DataHandler: second param is null
I'm using Axis-1_4 with apache-tomcat-5.5.20 and JDK 1.5.0_08
With wsdl2java I've generated skeleton/stub/impl for two different methods.
Both have DataHandler as return type and one or two DataHandlers as input params.
The method which has two input params doesn't work properly because the second
argument is null, even if it is visible in the soap request that follows:
--------------------------------------------------------------------
POST /axis/services/QueryHandler HTTP/1.0
Content-Type: multipart/related; type="text/xml";
start="<EB09A043635184039EE39D58E26D5CB9>";
.boundary="----=_Part_0_5910186.1165843911958"
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.4
Host: localhost:8080
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 4002
------=_Part_0_5910186.1165843911958
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <EB09A043635184039EE39D58E26D5CB9>
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><in0
href="cid:A9CD60060FF3B61443ADBE982A56CA4E" xmlns="urn:QueryHandler"/><in1
href="cid:EDECEF261A3FCB6C3684BB17AF2B14AC"
xmlns="urn:QueryHandler"/></soapenv:Body></soapenv:Envelope>
------=_Part_0_5910186.1165843911958
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
Content-Id: <A9CD60060FF3B61443ADBE982A56CA4E>
......JFIF.............C..............
.......
....&"((&"%$*0=3*-9.$%5H59?ADED)3KPJBO=CDA...C...........A,%,AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA......Q.v..".......................................5.........................!1."AQ.2a..Rq..#B.....%.........................................................!1A."Q............?..];..s.u.;..>.C..~...d.....u8.....2.dXP@....u.3.b..V.".......g9.....Q.b.q..3<....I...QB...\
H....+..;..0..:..id..........(....S4.C+./...........1jv:6....M+
....lM.04.#.s...RO..8%T...L..}........%p.....S)..<*.-.%.*Bn..O..>...UuL<)y<.....,.VV.^.R.....om..+].A...-..[..{.2.....`..m....<....
.rv^..4...{.I[....;............U....&......O....q.ih.Z4o..D......z....m..o.;..+Kv.i...^...jI.f.....q.=...D.a%..i...
b.TT..g,n.r.;........5.V..
...]:..m.(y0...iC....hA..1.32=XTV..\...h...Z...|.......9xN.d:C.cN....-...Ca#....yd.gdqEx..`.O`c9\..#.ANm.u..u0.0:.y.......L67..5..].%..........x9.}..x..>...h......<"...e.d..m.....5......pfIT.Q....I..'.bSa...........6.......4A.p.2....|U.*.....$.....h...qrF.W.+..J..W.x..:.Q.3N....#...>...c...........N...^b.m-9<F....'WX..\.%........%._A..~.'..Um.b...
......<X2\.oC...;.Q...Ob.P..G=.{.Z.......N.....t.&......t,...x..PCO......i!$...\Y2..8r.6..
..:^......V.;...........=.Mc.i$
TZ6sjq-.|.Z.).,...u....j.....;....IU.0M3...+Y..W...t.q.xt.........H.5.QM...].B.......i.\.m..Q>@3..c.X...l.w[i..,=.'.H.CH...D1..9..yan.8.../.r..Q.K.....)...N.[........T..E.~.t.t.|.J.m.b
uU+A....m..}...S..e.9|/.u4.....1..;_d...q(i.i....y........`z..U`QE/.}$.FA..........s..6Jy......P4+%.~p.rRI.E0..e.Y
..GX.\..c..V.!t4....4i..k...i....5e..f.......|<..._(.
.ZB-6..S.%e.....i.4..6[S..}J.......b.q>^&s...f.....^..s.PG...[.....I>..D.n.m......!..{(........a....hb.r|..
v...}3....v
...x....E6..<.'.....}:....v2>~........./.....r.eC%..._.n.......J.=.2......m.n.....f....K&.)..|o....".K..l.I.d..
.X.
...`...RI+S...Y.f.X.t......4].ewT9...).....Q.Z$e&muK.<.L.O.l...*I..P3H...m....E..
7..K.3<....QM....(EQ..Hlg.....E..t;-.QD.Iw.-}.. .N..E. .vV*(."^.;.4....(...Q....
------=_Part_0_5910186.1165843911958
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-Id: <EDECEF261A3FCB6C3684BB17AF2B14AC>
<?xml version="1.0" encoding="UTF-8"?>
<Mpeg7 xmlns="urn:mpeg:mpeg7:schema:2004"
xmlns:m7qf="urn:mpeg:mp7qf:schema:2006"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:mpeg:mp7qf:schema:2006
http://141.39.14.53:8080/exist/M7v2schema.xsd">
<DescriptionUnit sessionID="sessionID" xsi:type="m7qf:SessionType">
<m7qf:UserDescription>
<User xsi:type="PersonType">
<Name>
<GivenName>Babette</GivenName>
<FamilyName>Wagner</FamilyName>
</Name>
</User>
</m7qf:UserDescription>
<m7qf:Query timeout="100">
<m7qf:RsPresentation maxPageEntries="5"/>
<m7qf:Input>
<m7qf:MediaResource id="abi1" mimeType="image/jpeg" uriRef="abi1.jpeg"/>
<m7qf:QueryExpression>
<m7qf:SingleSearch exactMatch="false" mediaIDREF="abi1"
xsi:type="m7qf:QueryByExampleMediaType">
<m7qf:SortBy csRef="urn:dominantColor" xsi:nil="true"/>
</m7qf:SingleSearch>
</m7qf:QueryExpression>
</m7qf:Input>
</m7qf:Query>
</DescriptionUnit>
</Mpeg7>
------=_Part_0_5910186.1165843911958--
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=76993315CDBDB675E0D71742F4417CD2; Path=/axis
Content-Type: text/xml;charset=utf-8
Date: Mon, 11 Dec 2006 13:31:54 GMT
Connection: close
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.NullPointerException</faultstring><detail><ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">cengiz</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
----------------------------------------------------------------------------------------------------------------
If I do a remote debugging it becomes obvious, that param in1 is null.
Any ideas?
regards,
Babette
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org