• Post Reply Bookmark Topic Watch Topic
  • New Topic

JAX-RPC :: NullPointerException  RSS feed

 
Anwar S
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am Pretty new to Java web services .. just trying with some sample programs.
I am trying to generate server ties from the service end point config.xml.. below is the code snippet which i have used.

--StockQuoteProvider.java
public interface StockQuoteProvider extends java.rmi.Remote {
public float getLastTradePrice(String tickerSymbol)
throws java.rmi.RemoteException;
public String getStockQuote(String tickerSymbol)
throws java.rmi.RemoteException;
}

--config.xml
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<service name="StockQuoteService"
targetNamespace="http://stockquote.org/wsdl"
typeNamespace="http://stockquote.org/types"
packageName="com.example">
<interface
name="StockQuoteProvider"
servantName="StockQuoteImpl">
</interface>
</service>
</configuration>

and the wscompile command i tried is
/> wscompile -cp . -gen:server config.xml

Here i got stuck., its giving me the error message :
error : modeler error : java.lang.NullPointerException

If anyone knows about it pleas help.
Thanks in Advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!