axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchira <ruchira.sha...@ecanarys.com>
Subject Re: ERROR org.apache.axis2.rpc.receivers.RPCMessageReceiver - Exception occurred while trying to invoke service method getStoppedReaders ---java.lang.IllegalArgumentException: null rcl
Date Tue, 31 Jul 2007 05:49:46 GMT

Hi,
  Mywebservice
public List getStoppedReaders() throws ServiceException, RemoteException {
		Object[] allReaders = ws.getAllReaders();
		List<String> readersList=new ArrayList<String>();
		for(int i=0;i<allReaders.length;i++){
			Reader reader=(Reader) allReaders[i];
			readersList.add(reader.getId());
		}
		Map<String, com.canarys.rfid.webservice.reader.Reader>
startedReaders=ApplicationSetup.getStartedReaders();
		Set<String> keySet=startedReaders.keySet ();
		String[] ipAddress=new String[keySet.size()];
		int j=0;
		String startedKey=null;
		List<String> startedReadersKey=new ArrayList<String>();
		for(String ip:keySet){
			startedKey=ip.toString();
			System.out.println(ipAddress[j]);
			j++;
			startedReadersKey.add(startedKey);
		}
		List available=new ArrayList<String>();
		if(readersList!=null && !readersList.isEmpty() && 
				    startedReadersKey!=null ){
			for(String s:readersList){
				if(!startedReadersKey.contains(s)){
					Reader reader=ws.getReader(s);
					String readerName=reader.getName();
					s=s+" "+readerName;
					available.add(s);
				}
			}
		}
		System.out.println("........."+available);
		System.out.println("........."+ipAddress.toString());
		return available;
	}

this webservice is giving available means no problem here.

when i m calling this web service by client then it is giving exception
SystemControlWSStub getStoppedReaderStub=new SystemControlWSStub();
		GetStoppedReadersResponse getStoppedReadersResponse =
getStoppedReaderStub.getStoppedReaders();
		System.out.println("Response : " +
getStoppedReadersResponse.get_return());




GetStoppedReadersResponse is giving exception..........
 i am attaching stub which i generated by axis2 code generator.........

Thanks n regards
Ruchira

Deepal Jayasinghe-2 wrote:
> 
> Hi ruchira ,
> Either attach your full service code or try with Axis2 1.3 RC2. By
> looking at your code it is bit difficult for me to figure out the
> issues. And wrote the following service and it worked fine for me.
> 
>  public List getRes(int a, int b) throws Exception {
>         List list = new ArrayList();
>         list.add("ddd");
>         list.add("ddd");
>         list.add("ddd");
>         return list;
>     }
> 
> Thanks
> Deepal
>> hi,
>>     my webservice is like that
>> public List getStoppedReaders() throws SOAPException {
>> 		List stoppedReaderList=null;
>> 		try {
>> 			stoppedReaderList=systemControl.getStoppedReaders();
>> 			return stoppedReaderList;
>> 		} catch (Exception e) {
>> 			logger.error("This is Hibernate exception some error with data",e);
>> 	        throw new SOAPException("This is Hibernate exception some error
>> with data");
>> 		}
>> 	}
>>
>>
>>
>> and this stoppedReaderList is woring fine it is getting list of stopped
>> reader
>>
>>
>> but now in my client
>>
>>
>> 		SystemControlWSStub getStoppedReaderStub=new SystemControlWSStub();
>> 		GetStoppedReadersResponse getStoppedReadersResponse =
>> getStoppedReaderStub.getStoppedReaders();
>>
>>
>> getStoppedReadersResponse is giving Error
>>
>> ERROR org.apache.axis2.rpc.receivers.RPCMessageReceiver - Exception
>> occurred
>> while trying to invoke service method getStoppedReaders 
>> ---java.lang.IllegalArgumentException: null rcl
>> at
>> org.codehaus.jam.internal.reflect.ReflectClassBuilder.<init>(ReflectClassBuilder.java:47)
>> 	at
>> org.codehaus.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:173)
>> 	at
>> org.codehaus.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:137)
>> 	at
>> org.codehaus.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
>> 	at
>> org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:67)
>> 	at
>> org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:90)
>> 	at
>> org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:192)
>> 	at
>> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
>> 	at
>> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
>> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
>> 	at
>> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
>> 	at
>> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>> 	at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>> 	at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>> 	at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>> 	at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>> 	at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>> 	at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>> 	at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>> 	at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>> 	at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>> 	at
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>> 	at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>> 	at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>> 	at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>> 	at java.lang.Thread.run(Thread.java:595)
>>
>> Any solution for this exception.
>>
>> Thanks in advance
>> Regards
>> Ruchira
>>
>> 		
>> 			
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 
> 
> 
http://www.nabble.com/file/p11918562/stub.txt stub.txt 
-- 
View this message in context: http://www.nabble.com/ERROR-org.apache.axis2.rpc.receivers.RPCMessageReceiver---Exception-occurred-while-trying-to-invoke-service-method-getStoppedReaders-----java.lang.IllegalArgumentException%3A-null-rcl-tf4170114.html#a11918562
Sent from the Axis - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
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