axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Ferenci (JIRA)" <j...@apache.org>
Subject [jira] Closed: (AXIS2-2577) SEVERE: Exception occurred while trying to invoke service method
Date Tue, 24 Apr 2007 20:03:15 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-2577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Ferenci closed AXIS2-2577.
-------------------------------

    Resolution: Fixed

It was a coding error on my side that caused the problem.



> SEVERE: Exception occurred while trying to invoke service method
> ----------------------------------------------------------------
>
>                 Key: AXIS2-2577
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2577
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>    Affects Versions: nightly
>         Environment: I am running Tomcat 5.5, on a windows XP PC.
> The nightly build from April 21 was used.
>            Reporter: Sean Ferenci
>
> I modified the Quick Start sample as follows:
> public class StockQuoteService {
>    ...
>     
>     public stock getCompany(String symbol, String market)
>     {
>         dao = (stockDataDAOInterface)new stockRetrieval();
>         stock mystock = dao.getCompany(symbol,market);
>         mystock.print();
>         return mystock;
>     }
>     ...
>  }
> the 
> stock class is:
> public class stock extends stockNameSymbolVO {
>     
>     private int yearStart;
>     private stockDataVO[] yearData;
>     
>     private float recentPrice;
>     
>     public stock() {
>         super();
>         yearStart = 0;
>         recentPrice= 0;
>     }
>     
>     public void setStockNameSymbol(stockNameSymbolVO data)
>     {
>         this.setIndustry(data.getIndustry());
>         this.setStockMarket(data.getStockMarket());
>         this.setStockSymbol(data.getStockSymbol());
>         this.setStockName(data.getStockName());
>     }
>     
>     public void setStockData(stockDataVO[] data)
>     {
>         yearData = data;
>     }
>     
>     public stockDataVO[] getStockData()
>     {
>         return yearData;
>     }
>     
>     public void print()
>     {
>         super.print();
>         System.out.println("year: " + yearStart);
>         System.out.println("recentPrice: " + recentPrice);
>         for(int i=0; i<yearData.length; i++)
>         {
>             yearData[i].print();
>         }
>     }
>    
>     
> }
> public class stockNameSymbolVO {
>     
>     /** Creates a new instance of stockNameSymbolVO */
>     private String stockName = "";
>     private String stockSymbol = "";
>     private int    industry    = 0;
>     private int    stockMarket = 0;
>     
>     public stockNameSymbolVO()
>     {
>         
>     }
>     
>     public stockNameSymbolVO(String iName, String iSymbol, int iMarket, int iIndustry)
{
>         this.setStockName(iName);
>         this.setIndustry(iIndustry);
>         this.setStockSymbol(iSymbol);
>         this.setStockMarket(iMarket);
>     }
>     
>     public void setStockName(String iName)
>     {
>         stockName = iName;
>     }
>     
>     public void setStockSymbol(String iSymbol)
>     {
>         stockSymbol = iSymbol;
>     }
>     
>     public void setStockMarket(int iMarket)
>     {
>         stockMarket = iMarket;
>     }
>     
>     public void setIndustry(int iIndustry)
>     {
>         industry = iIndustry;
>     }
>     
>     public String getStockName()
>     {
>         return stockName;
>     }
>     
>     public String getStockSymbol()
>     {
>         return stockSymbol;
>     }
>     
>     public int getStockMarket()
>     {
>         return stockMarket;
>     }
>     
>     public int getIndustry()
>     {
>         return industry;
>     }
>     
>     public void print()
>     {
>         System.out.println("stockName: " +stockName);
>         System.out.println("stockSymbol: " + stockSymbol);
>         System.out.println("industry: " + industry);
>         System.out.println("stockMarket: " + stockMarket);
>     }
>     
> }
> There Error Generated was as follows
> 21-Apr-2007 9:53:39 PM org.apache.axis2.rpc.receivers.RPCMessageReceiver invokeB
> usinessLogic
> SEVERE: Exception occurred while trying to invoke service method getCompany
> java.lang.NullPointerException
>         at org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.ja
> va:268)
>         at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:9
> 8)
>         at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:2
> 51)
>         at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
> (RPCMessageReceiver.java:134)
>         at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(A
> bstractInOutSyncMessageReceiver.java:39)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)
>         at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUt
> il.java:122)
>         at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTU
> til.java:116)
>         at org.apache.axis2.transport.http.AxisServlet$ProcessRESTRequest.proces
> sURLRequest(AxisServlet.java:767)
>         at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:23
> 8)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:213)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:178)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:126)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:105)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:107)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
> a:148)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :856)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
> ssConnection(Http11Protocol.java:744)
>         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
> int.java:527)
>         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
> lowerWorkerThread.java:80)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:684)
>         at java.lang.Thread.run(Unknown Source)

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


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message