Problem with calling a sevice of type Simple

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with calling a sevice of type Simple

G.Venkata Phanindra
Hi All,
      I am getting following runtime exception   when i am trying to call a
service of type simple
    The following is the lines of code i m using to call the service
            I am pretty sure that i am passing all the required Parameters.
And i am also getting all the values that i am passing on in the logging
statement i added.
 Quick reply will be of great help
Debug.logInfo(request.getParameter("address1") +" ==" +
request.getParameter("city")
+" =="  +request.getParameter("postalCode")
                            + "==" + request.getParameter("stateProvinceGeoId")
+ "==" + request.getParameter("countryGeoId")
                            + "====" +
request.getParameter("contactMechPurposeTypeId")
+ "===="  +  request.getParameter("contactMechTypeId")+"==" +


request.getParameter("preContactMechTypeId"),module);

            createPartyPostalAddressMap.put("address1", request.getParameter
("address1"));
            createPartyPostalAddressMap.put("city", request.getParameter
("city"));
            createPartyPostalAddressMap.put("postalCode",
request.getParameter("postalCode"));
            createPartyPostalAddressMap.put("stateProvinceGeoId",
request.getParameter("stateProvinceGeoId"));
            createPartyPostalAddressMap.put("countryGeoId",
request.getParameter("countryGeoId"));
            createPartyPostalAddressMap.put("contactMechTypeId",
request.getParameter("contactMechTypeId"));
            createPartyPostalAddressMap.put("contactMechPurposeTypeId",
request.getParameter("contactMechPurposeTypeId"));
            createPartyPostalAddressMap.put("preContactMechTypeId",
request.getParameter("preContactMechTypeId"));
            Map createPartyPostalAddressresult =
dispatcher.runSync("createPartyPostalAddress",
createPartyPostalAddressMap);

     [java] 2006-11-16 12:34:59,732 (TP-Processor11) [
GniCheckoutProcessor.java:27 :INFO ] hyd ==hyd
==11111==AZ==USA====SHIPPING_LOCATION====POSTAL_ADDRESS==POSTAL_ADDRESS
     [java] 2006-11-16 12:34:59,736 (TP-Processor11) [
ServiceDispatcher.java:387:ERROR]
     [java] ---- runtime exception report
--------------------------------------------------
     [java] Service [createPartyPostalAddress] threw an unexpected
exception/error
     [java] Exception: java.lang.NullPointerException
     [java] Message: null
     [java] ---- stack trace
---------------------------------------------------------------
     [java] java.lang.NullPointerException
     [java] org.ofbiz.service.ModelParam.toString(ModelParam.java:129)
     [java] javolution.lang.TextBuilder.append(Unknown Source)
     [java] javolution.util.FastMap$EntrySet.toText(Unknown Source)
     [java] javolution.util.FastMap.toText(Unknown Source)
     [java] javolution.realtime.RealtimeObject.toString(Unknown Source)
     [java] java.lang.String.valueOf(String.java:2577)
     [java] java.lang.StringBuffer.append(StringBuffer.java:220)
     [java] org.ofbiz.service.ModelService.toString(ModelService.java:190)
     [java] org.ofbiz.service.ModelService.debugInfo(ModelService.java:198)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(
ServiceDispatcher.java:309)
     [java] org.ofbiz.service.ServiceDispatcher.runSync(
ServiceDispatcher.java:212)
     [java] org.ofbiz.service.GenericDispatcher.runSync(
GenericDispatcher.java:114)
     [java]
com.ecomzera.giftsnideas.order.shoppingcart.GniCheckoutProcessor.processCheckoutWithOutLogin
(GniCheckoutProcessor.java:39)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
     [java] sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
     [java] java.lang.reflect.Method.invoke(Method.java:585)
     [java] org.ofbiz.webapp.event.JavaEventHandler.invoke(
JavaEventHandler.java:90)
     [java] org.ofbiz.webapp.event.JavaEventHandler.invoke(
JavaEventHandler.java:76)
     [java] org.ofbiz.webapp.control.RequestHandler.runEvent(
RequestHandler.java:408)
     [java] org.ofbiz.webapp.control.RequestHandler.doRequest(
RequestHandler.java:243)
     [java] org.ofbiz.webapp.control.ControlServlet.doGet(
ControlServlet.java:183)
     [java] org.ofbiz.webapp.control.ControlServlet.doPost(
ControlServlet.java:79)
     [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
     [java] javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
     [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:252)
     [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
     [java] org.ofbiz.webapp.control.ContextFilter.doFilter(
ContextFilter.java:249)
     [java] org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:202)
     [java] org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
     [java] org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
     [java] org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
     [java] org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:126)
     [java] org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:105)
     [java] org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
     [java] org.apache.catalina.valves.AccessLogValve.invoke(
AccessLogValve.java:541)
     [java] org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:148)
     [java] org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
:199)
     [java] org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
:282)
     [java] org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
:754)
     [java] org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:684)
     [java] org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
ChannelSocket.java:876)
     [java] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
     [java] java.lang.Thread.run(Thread.java:595)


regards,

G.Venkata Phanindra
Mob:: 9849852989
Reply | Threaded
Open this post in threaded view
|

Re: Problem with calling a sevice of type Simple

cjhowe
in your service definition check that the
location="org/.../.../.../.../MySimpleMethods.xml"
field is correct

--- "G.Venkata Phanindra" <[hidden email]> wrote:

> Hi All,
>       I am getting following runtime exception  
> when i am trying to call a
> service of type simple
>     The following is the lines of code i m using to
> call the service
>             I am pretty sure that i am passing all
> the required Parameters.
> And i am also getting all the values that i am
> passing on in the logging
> statement i added.
>  Quick reply will be of great help
> Debug.logInfo(request.getParameter("address1") +"
> ==" +
> request.getParameter("city")
> +" =="  +request.getParameter("postalCode")
>                             + "==" +
> request.getParameter("stateProvinceGeoId")
> + "==" + request.getParameter("countryGeoId")
>                             + "====" +
> request.getParameter("contactMechPurposeTypeId")
> + "===="  +
> request.getParameter("contactMechTypeId")+"==" +
>
>
>
request.getParameter("preContactMechTypeId"),module);

>
>            
> createPartyPostalAddressMap.put("address1",
> request.getParameter
> ("address1"));
>             createPartyPostalAddressMap.put("city",
> request.getParameter
> ("city"));
>            
> createPartyPostalAddressMap.put("postalCode",
> request.getParameter("postalCode"));
>            
>
createPartyPostalAddressMap.put("stateProvinceGeoId",
> request.getParameter("stateProvinceGeoId"));
>            
> createPartyPostalAddressMap.put("countryGeoId",
> request.getParameter("countryGeoId"));
>            
> createPartyPostalAddressMap.put("contactMechTypeId",
> request.getParameter("contactMechTypeId"));
>            
>
createPartyPostalAddressMap.put("contactMechPurposeTypeId",
> request.getParameter("contactMechPurposeTypeId"));
>            
>
createPartyPostalAddressMap.put("preContactMechTypeId",
> request.getParameter("preContactMechTypeId"));
>             Map createPartyPostalAddressresult =
> dispatcher.runSync("createPartyPostalAddress",
> createPartyPostalAddressMap);
>
>      [java] 2006-11-16 12:34:59,732 (TP-Processor11)
> [
> GniCheckoutProcessor.java:27 :INFO ] hyd ==hyd
>
==11111==AZ==USA====SHIPPING_LOCATION====POSTAL_ADDRESS==POSTAL_ADDRESS

>      [java] 2006-11-16 12:34:59,736 (TP-Processor11)
> [
> ServiceDispatcher.java:387:ERROR]
>      [java] ---- runtime exception report
> --------------------------------------------------
>      [java] Service [createPartyPostalAddress] threw
> an unexpected
> exception/error
>      [java] Exception:
> java.lang.NullPointerException
>      [java] Message: null
>      [java] ---- stack trace
>
---------------------------------------------------------------
>      [java] java.lang.NullPointerException
>      [java]
>
org.ofbiz.service.ModelParam.toString(ModelParam.java:129)

>      [java]
> javolution.lang.TextBuilder.append(Unknown Source)
>      [java]
> javolution.util.FastMap$EntrySet.toText(Unknown
> Source)
>      [java] javolution.util.FastMap.toText(Unknown
> Source)
>      [java]
> javolution.realtime.RealtimeObject.toString(Unknown
> Source)
>      [java]
> java.lang.String.valueOf(String.java:2577)
>      [java]
> java.lang.StringBuffer.append(StringBuffer.java:220)
>      [java]
>
org.ofbiz.service.ModelService.toString(ModelService.java:190)
>      [java]
>
org.ofbiz.service.ModelService.debugInfo(ModelService.java:198)

>      [java]
> org.ofbiz.service.ServiceDispatcher.runSync(
> ServiceDispatcher.java:309)
>      [java]
> org.ofbiz.service.ServiceDispatcher.runSync(
> ServiceDispatcher.java:212)
>      [java]
> org.ofbiz.service.GenericDispatcher.runSync(
> GenericDispatcher.java:114)
>      [java]
>
com.ecomzera.giftsnideas.order.shoppingcart.GniCheckoutProcessor.processCheckoutWithOutLogin

> (GniCheckoutProcessor.java:39)
>      [java]
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>      [java]
> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>      [java]
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>      [java]
> java.lang.reflect.Method.invoke(Method.java:585)
>      [java]
> org.ofbiz.webapp.event.JavaEventHandler.invoke(
> JavaEventHandler.java:90)
>      [java]
> org.ofbiz.webapp.event.JavaEventHandler.invoke(
> JavaEventHandler.java:76)
>      [java]
> org.ofbiz.webapp.control.RequestHandler.runEvent(
> RequestHandler.java:408)
>      [java]
> org.ofbiz.webapp.control.RequestHandler.doRequest(
> RequestHandler.java:243)
>      [java]
> org.ofbiz.webapp.control.ControlServlet.doGet(
> ControlServlet.java:183)
>      [java]
> org.ofbiz.webapp.control.ControlServlet.doPost(
> ControlServlet.java:79)
>      [java]
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>      [java]
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>      [java]
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:252)
>      [java]
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
>      [java]
> org.ofbiz.webapp.control.ContextFilter.doFilter(
> ContextFilter.java:249)
>      [java]
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:202)
>      [java]
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:173)
>      [java]
>
org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
>      [java]
>
org.apache.catalina.core.StandardContextValve.invoke(

> StandardContextValve.java:178)
>      [java]
> org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:126)
>      [java]
> org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:105)
>      [java]
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
>      [java]
> org.apache.catalina.valves.AccessLogValve.invoke(
> AccessLogValve.java:541)
>      [java]
> org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:148)
>      [java]
>
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
> :199)
>      [java]
>
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
> :282)
>      [java]
>
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
> :754)
>      [java]
>
org.apache.jk.common.ChannelSocket.processConnection(
> ChannelSocket.java:684)
>      [java]
>
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
> ChannelSocket.java:876)
>      [java]
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>      [java] java.lang.Thread.run(Thread.java:595)
>
>
> regards,
>
> G.Venkata Phanindra
> Mob:: 9849852989
>
=== message truncated ===

Reply | Threaded
Open this post in threaded view
|

Re: Problem with calling a sevice of type Simple

G.Venkata Phanindra
Hi Chris ..  thanks for ur replay but i did not get what u r pointing as a
problem can u be more specific please.
regards
Phani

On 11/16/06, Chris Howe <[hidden email]> wrote:

>
> in your service definition check that the
> location="org/.../.../.../.../MySimpleMethods.xml"
> field is correct
>
> --- "G.Venkata Phanindra" <[hidden email]> wrote:
>
> > Hi All,
> >       I am getting following runtime exception
> > when i am trying to call a
> > service of type simple
> >     The following is the lines of code i m using to
> > call the service
> >             I am pretty sure that i am passing all
> > the required Parameters.
> > And i am also getting all the values that i am
> > passing on in the logging
> > statement i added.
> >  Quick reply will be of great help
> > Debug.logInfo(request.getParameter("address1") +"
> > ==" +
> > request.getParameter("city")
> > +" =="  +request.getParameter("postalCode")
> >                             + "==" +
> > request.getParameter("stateProvinceGeoId")
> > + "==" + request.getParameter("countryGeoId")
> >                             + "====" +
> > request.getParameter("contactMechPurposeTypeId")
> > + "===="  +
> > request.getParameter("contactMechTypeId")+"==" +
> >
> >
> >
> request.getParameter("preContactMechTypeId"),module);
> >
> >
> > createPartyPostalAddressMap.put("address1",
> > request.getParameter
> > ("address1"));
> >             createPartyPostalAddressMap.put("city",
> > request.getParameter
> > ("city"));
> >
> > createPartyPostalAddressMap.put("postalCode",
> > request.getParameter("postalCode"));
> >
> >
> createPartyPostalAddressMap.put("stateProvinceGeoId",
> > request.getParameter("stateProvinceGeoId"));
> >
> > createPartyPostalAddressMap.put("countryGeoId",
> > request.getParameter("countryGeoId"));
> >
> > createPartyPostalAddressMap.put("contactMechTypeId",
> > request.getParameter("contactMechTypeId"));
> >
> >
> createPartyPostalAddressMap.put("contactMechPurposeTypeId",
> > request.getParameter("contactMechPurposeTypeId"));
> >
> >
> createPartyPostalAddressMap.put("preContactMechTypeId",
> > request.getParameter("preContactMechTypeId"));
> >             Map createPartyPostalAddressresult =
> > dispatcher.runSync("createPartyPostalAddress",
> > createPartyPostalAddressMap);
> >
> >      [java] 2006-11-16 12:34:59,732 (TP-Processor11)
> > [
> > GniCheckoutProcessor.java:27 :INFO ] hyd ==hyd
> >
> ==11111==AZ==USA====SHIPPING_LOCATION====POSTAL_ADDRESS==POSTAL_ADDRESS
> >      [java] 2006-11-16 12:34:59,736 (TP-Processor11)
> > [
> > ServiceDispatcher.java:387:ERROR]
> >      [java] ---- runtime exception report
> > --------------------------------------------------
> >      [java] Service [createPartyPostalAddress] threw
> > an unexpected
> > exception/error
> >      [java] Exception:
> > java.lang.NullPointerException
> >      [java] Message: null
> >      [java] ---- stack trace
> >
> ---------------------------------------------------------------
> >      [java] java.lang.NullPointerException
> >      [java]
> >
> org.ofbiz.service.ModelParam.toString(ModelParam.java:129)
> >      [java]
> > javolution.lang.TextBuilder.append(Unknown Source)
> >      [java]
> > javolution.util.FastMap$EntrySet.toText(Unknown
> > Source)
> >      [java] javolution.util.FastMap.toText(Unknown
> > Source)
> >      [java]
> > javolution.realtime.RealtimeObject.toString(Unknown
> > Source)
> >      [java]
> > java.lang.String.valueOf(String.java:2577)
> >      [java]
> > java.lang.StringBuffer.append(StringBuffer.java:220)
> >      [java]
> >
> org.ofbiz.service.ModelService.toString(ModelService.java:190)
> >      [java]
> >
> org.ofbiz.service.ModelService.debugInfo(ModelService.java:198)
> >      [java]
> > org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java:309)
> >      [java]
> > org.ofbiz.service.ServiceDispatcher.runSync(
> > ServiceDispatcher.java:212)
> >      [java]
> > org.ofbiz.service.GenericDispatcher.runSync(
> > GenericDispatcher.java:114)
> >      [java]
> >
>
> com.ecomzera.giftsnideas.order.shoppingcart.GniCheckoutProcessor.processCheckoutWithOutLogin
> > (GniCheckoutProcessor.java:39)
> >      [java]
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> >      [java]
> > sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:39)
> >      [java]
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:25)
> >      [java]
> > java.lang.reflect.Method.invoke(Method.java:585)
> >      [java]
> > org.ofbiz.webapp.event.JavaEventHandler.invoke(
> > JavaEventHandler.java:90)
> >      [java]
> > org.ofbiz.webapp.event.JavaEventHandler.invoke(
> > JavaEventHandler.java:76)
> >      [java]
> > org.ofbiz.webapp.control.RequestHandler.runEvent(
> > RequestHandler.java:408)
> >      [java]
> > org.ofbiz.webapp.control.RequestHandler.doRequest(
> > RequestHandler.java:243)
> >      [java]
> > org.ofbiz.webapp.control.ControlServlet.doGet(
> > ControlServlet.java:183)
> >      [java]
> > org.ofbiz.webapp.control.ControlServlet.doPost(
> > ControlServlet.java:79)
> >      [java]
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> >      [java]
> >
> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> >      [java]
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > (ApplicationFilterChain.java:252)
> >      [java]
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:173)
> >      [java]
> > org.ofbiz.webapp.control.ContextFilter.doFilter(
> > ContextFilter.java:249)
> >      [java]
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > (ApplicationFilterChain.java:202)
> >      [java]
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java:173)
> >      [java]
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java:213)
> >      [java]
> >
> org.apache.catalina.core.StandardContextValve.invoke(
> > StandardContextValve.java:178)
> >      [java]
> > org.apache.catalina.core.StandardHostValve.invoke(
> > StandardHostValve.java:126)
> >      [java]
> > org.apache.catalina.valves.ErrorReportValve.invoke(
> > ErrorReportValve.java:105)
> >      [java]
> > org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:107)
> >      [java]
> > org.apache.catalina.valves.AccessLogValve.invoke(
> > AccessLogValve.java:541)
> >      [java]
> > org.apache.catalina.connector.CoyoteAdapter.service(
> > CoyoteAdapter.java:148)
> >      [java]
> >
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
> > :199)
> >      [java]
> >
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
> > :282)
> >      [java]
> >
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
> > :754)
> >      [java]
> >
> org.apache.jk.common.ChannelSocket.processConnection(
> > ChannelSocket.java:684)
> >      [java]
> >
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
> > ChannelSocket.java:876)
> >      [java]
> >
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java:684)
> >      [java] java.lang.Thread.run(Thread.java:595)
> >
> >
> > regards,
> >
> > G.Venkata Phanindra
> > Mob:: 9849852989
> >
> === message truncated ===
>
>


--
G.Venkata Phanindra
Mob:: 9849852989
Reply | Threaded
Open this post in threaded view
|

Re: Problem with calling a sevice of type Simple

Scott Gray
He is saying that there may be a problem with your service definition,
the place where the service createPartyPostalAddress is defined i.e. in
the current svn version it is defined in
applications/party/servicedef/services.xml

Regards
Scott

G.Venkata Phanindra wrote:

> Hi Chris ..  thanks for ur replay but i did not get what u r pointing
> as a
> problem can u be more specific please.
> regards
> Phani
>
> On 11/16/06, Chris Howe <[hidden email]> wrote:
>>
>> in your service definition check that the
>> location="org/.../.../.../.../MySimpleMethods.xml"
>> field is correct
>>
>> --- "G.Venkata Phanindra" <[hidden email]> wrote:
>>
>> > Hi All,
>> >       I am getting following runtime exception
>> > when i am trying to call a
>> > service of type simple
>> >     The following is the lines of code i m using to
>> > call the service
>> >             I am pretty sure that i am passing all
>> > the required Parameters.
>> > And i am also getting all the values that i am
>> > passing on in the logging
>> > statement i added.
>> >  Quick reply will be of great help
>> > Debug.logInfo(request.getParameter("address1") +"
>> > ==" +
>> > request.getParameter("city")
>> > +" =="  +request.getParameter("postalCode")
>> >                             + "==" +
>> > request.getParameter("stateProvinceGeoId")
>> > + "==" + request.getParameter("countryGeoId")
>> >                             + "====" +
>> > request.getParameter("contactMechPurposeTypeId")
>> > + "===="  +
>> > request.getParameter("contactMechTypeId")+"==" +
>> >
>> >
>> >
>> request.getParameter("preContactMechTypeId"),module);
>> >
>> >
>> > createPartyPostalAddressMap.put("address1",
>> > request.getParameter
>> > ("address1"));
>> >             createPartyPostalAddressMap.put("city",
>> > request.getParameter
>> > ("city"));
>> >
>> > createPartyPostalAddressMap.put("postalCode",
>> > request.getParameter("postalCode"));
>> >
>> >
>> createPartyPostalAddressMap.put("stateProvinceGeoId",
>> > request.getParameter("stateProvinceGeoId"));
>> >
>> > createPartyPostalAddressMap.put("countryGeoId",
>> > request.getParameter("countryGeoId"));
>> >
>> > createPartyPostalAddressMap.put("contactMechTypeId",
>> > request.getParameter("contactMechTypeId"));
>> >
>> >
>> createPartyPostalAddressMap.put("contactMechPurposeTypeId",
>> > request.getParameter("contactMechPurposeTypeId"));
>> >
>> >
>> createPartyPostalAddressMap.put("preContactMechTypeId",
>> > request.getParameter("preContactMechTypeId"));
>> >             Map createPartyPostalAddressresult =
>> > dispatcher.runSync("createPartyPostalAddress",
>> > createPartyPostalAddressMap);
>> >
>> >      [java] 2006-11-16 12:34:59,732 (TP-Processor11)
>> > [
>> > GniCheckoutProcessor.java:27 :INFO ] hyd ==hyd
>> >
>> ==11111==AZ==USA====SHIPPING_LOCATION====POSTAL_ADDRESS==POSTAL_ADDRESS
>> >      [java] 2006-11-16 12:34:59,736 (TP-Processor11)
>> > [
>> > ServiceDispatcher.java:387:ERROR]
>> >      [java] ---- runtime exception report
>> > --------------------------------------------------
>> >      [java] Service [createPartyPostalAddress] threw
>> > an unexpected
>> > exception/error
>> >      [java] Exception:
>> > java.lang.NullPointerException
>> >      [java] Message: null
>> >      [java] ---- stack trace
>> >
>> ---------------------------------------------------------------
>> >      [java] java.lang.NullPointerException
>> >      [java]
>> >
>> org.ofbiz.service.ModelParam.toString(ModelParam.java:129)
>> >      [java]
>> > javolution.lang.TextBuilder.append(Unknown Source)
>> >      [java]
>> > javolution.util.FastMap$EntrySet.toText(Unknown
>> > Source)
>> >      [java] javolution.util.FastMap.toText(Unknown
>> > Source)
>> >      [java]
>> > javolution.realtime.RealtimeObject.toString(Unknown
>> > Source)
>> >      [java]
>> > java.lang.String.valueOf(String.java:2577)
>> >      [java]
>> > java.lang.StringBuffer.append(StringBuffer.java:220)
>> >      [java]
>> >
>> org.ofbiz.service.ModelService.toString(ModelService.java:190)
>> >      [java]
>> >
>> org.ofbiz.service.ModelService.debugInfo(ModelService.java:198)
>> >      [java]
>> > org.ofbiz.service.ServiceDispatcher.runSync(
>> > ServiceDispatcher.java:309)
>> >      [java]
>> > org.ofbiz.service.ServiceDispatcher.runSync(
>> > ServiceDispatcher.java:212)
>> >      [java]
>> > org.ofbiz.service.GenericDispatcher.runSync(
>> > GenericDispatcher.java:114)
>> >      [java]
>> >
>>
>> com.ecomzera.giftsnideas.order.shoppingcart.GniCheckoutProcessor.processCheckoutWithOutLogin
>>
>> > (GniCheckoutProcessor.java:39)
>> >      [java]
>> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>> > Method)
>> >      [java]
>> > sun.reflect.NativeMethodAccessorImpl.invoke(
>> > NativeMethodAccessorImpl.java:39)
>> >      [java]
>> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> > DelegatingMethodAccessorImpl.java:25)
>> >      [java]
>> > java.lang.reflect.Method.invoke(Method.java:585)
>> >      [java]
>> > org.ofbiz.webapp.event.JavaEventHandler.invoke(
>> > JavaEventHandler.java:90)
>> >      [java]
>> > org.ofbiz.webapp.event.JavaEventHandler.invoke(
>> > JavaEventHandler.java:76)
>> >      [java]
>> > org.ofbiz.webapp.control.RequestHandler.runEvent(
>> > RequestHandler.java:408)
>> >      [java]
>> > org.ofbiz.webapp.control.RequestHandler.doRequest(
>> > RequestHandler.java:243)
>> >      [java]
>> > org.ofbiz.webapp.control.ControlServlet.doGet(
>> > ControlServlet.java:183)
>> >      [java]
>> > org.ofbiz.webapp.control.ControlServlet.doPost(
>> > ControlServlet.java:79)
>> >      [java]
>> >
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
>> >      [java]
>> >
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
>> >      [java]
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> > (ApplicationFilterChain.java:252)
>> >      [java]
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> > ApplicationFilterChain.java:173)
>> >      [java]
>> > org.ofbiz.webapp.control.ContextFilter.doFilter(
>> > ContextFilter.java:249)
>> >      [java]
>> >
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> > (ApplicationFilterChain.java:202)
>> >      [java]
>> >
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> > ApplicationFilterChain.java:173)
>> >      [java]
>> >
>> org.apache.catalina.core.StandardWrapperValve.invoke(
>> > StandardWrapperValve.java:213)
>> >      [java]
>> >
>> org.apache.catalina.core.StandardContextValve.invoke(
>> > StandardContextValve.java:178)
>> >      [java]
>> > org.apache.catalina.core.StandardHostValve.invoke(
>> > StandardHostValve.java:126)
>> >      [java]
>> > org.apache.catalina.valves.ErrorReportValve.invoke(
>> > ErrorReportValve.java:105)
>> >      [java]
>> > org.apache.catalina.core.StandardEngineValve.invoke(
>> > StandardEngineValve.java:107)
>> >      [java]
>> > org.apache.catalina.valves.AccessLogValve.invoke(
>> > AccessLogValve.java:541)
>> >      [java]
>> > org.apache.catalina.connector.CoyoteAdapter.service(
>> > CoyoteAdapter.java:148)
>> >      [java]
>> >
>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
>> > :199)
>> >      [java]
>> >
>> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
>> > :282)
>> >      [java]
>> >
>> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
>> > :754)
>> >      [java]
>> >
>> org.apache.jk.common.ChannelSocket.processConnection(
>> > ChannelSocket.java:684)
>> >      [java]
>> >
>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
>> > ChannelSocket.java:876)
>> >      [java]
>> >
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
>> > ThreadPool.java:684)
>> >      [java] java.lang.Thread.run(Thread.java:595)
>> >
>> >
>> > regards,
>> >
>> > G.Venkata Phanindra
>> > Mob:: 9849852989
>> >
>> === message truncated ===
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Problem with calling a sevice of type Simple

G.Venkata Phanindra
Hi, all
     I was able to fix the problem. the  problem was it was looking for
Authentication, i.e the service requires authentication and i did not pass
on the parameter userLogin in the map i was sending so after adding that the
service worked fine.

regards,
G Venkata Phanindra.

On 11/16/06, Scott Gray <[hidden email]> wrote:

>
> He is saying that there may be a problem with your service definition,
> the place where the service createPartyPostalAddress is defined i.e. in
> the current svn version it is defined in
> applications/party/servicedef/services.xml
>
> Regards
> Scott
>
> G.Venkata Phanindra wrote:
> > Hi Chris ..  thanks for ur replay but i did not get what u r pointing
> > as a
> > problem can u be more specific please.
> > regards
> > Phani
> >
> > On 11/16/06, Chris Howe <[hidden email]> wrote:
> >>
> >> in your service definition check that the
> >> location="org/.../.../.../.../MySimpleMethods.xml"
> >> field is correct
> >>
> >> --- "G.Venkata Phanindra" <[hidden email]> wrote:
> >>
> >> > Hi All,
> >> >       I am getting following runtime exception
> >> > when i am trying to call a
> >> > service of type simple
> >> >     The following is the lines of code i m using to
> >> > call the service
> >> >             I am pretty sure that i am passing all
> >> > the required Parameters.
> >> > And i am also getting all the values that i am
> >> > passing on in the logging
> >> > statement i added.
> >> >  Quick reply will be of great help
> >> > Debug.logInfo(request.getParameter("address1") +"
> >> > ==" +
> >> > request.getParameter("city")
> >> > +" =="  +request.getParameter("postalCode")
> >> >                             + "==" +
> >> > request.getParameter("stateProvinceGeoId")
> >> > + "==" + request.getParameter("countryGeoId")
> >> >                             + "====" +
> >> > request.getParameter("contactMechPurposeTypeId")
> >> > + "===="  +
> >> > request.getParameter("contactMechTypeId")+"==" +
> >> >
> >> >
> >> >
> >> request.getParameter("preContactMechTypeId"),module);
> >> >
> >> >
> >> > createPartyPostalAddressMap.put("address1",
> >> > request.getParameter
> >> > ("address1"));
> >> >             createPartyPostalAddressMap.put("city",
> >> > request.getParameter
> >> > ("city"));
> >> >
> >> > createPartyPostalAddressMap.put("postalCode",
> >> > request.getParameter("postalCode"));
> >> >
> >> >
> >> createPartyPostalAddressMap.put("stateProvinceGeoId",
> >> > request.getParameter("stateProvinceGeoId"));
> >> >
> >> > createPartyPostalAddressMap.put("countryGeoId",
> >> > request.getParameter("countryGeoId"));
> >> >
> >> > createPartyPostalAddressMap.put("contactMechTypeId",
> >> > request.getParameter("contactMechTypeId"));
> >> >
> >> >
> >> createPartyPostalAddressMap.put("contactMechPurposeTypeId",
> >> > request.getParameter("contactMechPurposeTypeId"));
> >> >
> >> >
> >> createPartyPostalAddressMap.put("preContactMechTypeId",
> >> > request.getParameter("preContactMechTypeId"));
> >> >             Map createPartyPostalAddressresult =
> >> > dispatcher.runSync("createPartyPostalAddress",
> >> > createPartyPostalAddressMap);
> >> >
> >> >      [java] 2006-11-16 12:34:59,732 (TP-Processor11)
> >> > [
> >> > GniCheckoutProcessor.java:27 :INFO ] hyd ==hyd
> >> >
> >> ==11111==AZ==USA====SHIPPING_LOCATION====POSTAL_ADDRESS==POSTAL_ADDRESS
> >> >      [java] 2006-11-16 12:34:59,736 (TP-Processor11)
> >> > [
> >> > ServiceDispatcher.java:387:ERROR]
> >> >      [java] ---- runtime exception report
> >> > --------------------------------------------------
> >> >      [java] Service [createPartyPostalAddress] threw
> >> > an unexpected
> >> > exception/error
> >> >      [java] Exception:
> >> > java.lang.NullPointerException
> >> >      [java] Message: null
> >> >      [java] ---- stack trace
> >> >
> >> ---------------------------------------------------------------
> >> >      [java] java.lang.NullPointerException
> >> >      [java]
> >> >
> >> org.ofbiz.service.ModelParam.toString(ModelParam.java:129)
> >> >      [java]
> >> > javolution.lang.TextBuilder.append(Unknown Source)
> >> >      [java]
> >> > javolution.util.FastMap$EntrySet.toText(Unknown
> >> > Source)
> >> >      [java] javolution.util.FastMap.toText(Unknown
> >> > Source)
> >> >      [java]
> >> > javolution.realtime.RealtimeObject.toString(Unknown
> >> > Source)
> >> >      [java]
> >> > java.lang.String.valueOf(String.java:2577)
> >> >      [java]
> >> > java.lang.StringBuffer.append(StringBuffer.java:220)
> >> >      [java]
> >> >
> >> org.ofbiz.service.ModelService.toString(ModelService.java:190)
> >> >      [java]
> >> >
> >> org.ofbiz.service.ModelService.debugInfo(ModelService.java:198)
> >> >      [java]
> >> > org.ofbiz.service.ServiceDispatcher.runSync(
> >> > ServiceDispatcher.java:309)
> >> >      [java]
> >> > org.ofbiz.service.ServiceDispatcher.runSync(
> >> > ServiceDispatcher.java:212)
> >> >      [java]
> >> > org.ofbiz.service.GenericDispatcher.runSync(
> >> > GenericDispatcher.java:114)
> >> >      [java]
> >> >
> >>
> >>
> com.ecomzera.giftsnideas.order.shoppingcart.GniCheckoutProcessor.processCheckoutWithOutLogin
> >>
> >> > (GniCheckoutProcessor.java:39)
> >> >      [java]
> >> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> > Method)
> >> >      [java]
> >> > sun.reflect.NativeMethodAccessorImpl.invoke(
> >> > NativeMethodAccessorImpl.java:39)
> >> >      [java]
> >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> > DelegatingMethodAccessorImpl.java:25)
> >> >      [java]
> >> > java.lang.reflect.Method.invoke(Method.java:585)
> >> >      [java]
> >> > org.ofbiz.webapp.event.JavaEventHandler.invoke(
> >> > JavaEventHandler.java:90)
> >> >      [java]
> >> > org.ofbiz.webapp.event.JavaEventHandler.invoke(
> >> > JavaEventHandler.java:76)
> >> >      [java]
> >> > org.ofbiz.webapp.control.RequestHandler.runEvent(
> >> > RequestHandler.java:408)
> >> >      [java]
> >> > org.ofbiz.webapp.control.RequestHandler.doRequest(
> >> > RequestHandler.java:243)
> >> >      [java]
> >> > org.ofbiz.webapp.control.ControlServlet.doGet(
> >> > ControlServlet.java:183)
> >> >      [java]
> >> > org.ofbiz.webapp.control.ControlServlet.doPost(
> >> > ControlServlet.java:79)
> >> >      [java]
> >> >
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
> >> >      [java]
> >> >
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
> >> >      [java]
> >> >
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >> > (ApplicationFilterChain.java:252)
> >> >      [java]
> >> >
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> > ApplicationFilterChain.java:173)
> >> >      [java]
> >> > org.ofbiz.webapp.control.ContextFilter.doFilter(
> >> > ContextFilter.java:249)
> >> >      [java]
> >> >
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> >> > (ApplicationFilterChain.java:202)
> >> >      [java]
> >> >
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> > ApplicationFilterChain.java:173)
> >> >      [java]
> >> >
> >> org.apache.catalina.core.StandardWrapperValve.invoke(
> >> > StandardWrapperValve.java:213)
> >> >      [java]
> >> >
> >> org.apache.catalina.core.StandardContextValve.invoke(
> >> > StandardContextValve.java:178)
> >> >      [java]
> >> > org.apache.catalina.core.StandardHostValve.invoke(
> >> > StandardHostValve.java:126)
> >> >      [java]
> >> > org.apache.catalina.valves.ErrorReportValve.invoke(
> >> > ErrorReportValve.java:105)
> >> >      [java]
> >> > org.apache.catalina.core.StandardEngineValve.invoke(
> >> > StandardEngineValve.java:107)
> >> >      [java]
> >> > org.apache.catalina.valves.AccessLogValve.invoke(
> >> > AccessLogValve.java:541)
> >> >      [java]
> >> > org.apache.catalina.connector.CoyoteAdapter.service(
> >> > CoyoteAdapter.java:148)
> >> >      [java]
> >> >
> >> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
> >> > :199)
> >> >      [java]
> >> >
> >> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
> >> > :282)
> >> >      [java]
> >> >
> >> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java
> >> > :754)
> >> >      [java]
> >> >
> >> org.apache.jk.common.ChannelSocket.processConnection(
> >> > ChannelSocket.java:684)
> >> >      [java]
> >> >
> >> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
> >> > ChannelSocket.java:876)
> >> >      [java]
> >> >
> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >> > ThreadPool.java:684)
> >> >      [java] java.lang.Thread.run(Thread.java:595)
> >> >
> >> >
> >> > regards,
> >> >
> >> > G.Venkata Phanindra
> >> > Mob:: 9849852989
> >> >
> >> === message truncated ===
> >>
> >>
> >
> >
>
>


--
G.Venkata Phanindra
Mob:: 9849852989