[JBoss-user] [JBossWS] - Re: could not find deserializer for type

2005-08-31 Thread siddhik1982
I've added the follwing ws4ee-deployment.xml it's working. And I'm able to send 
WebServiceDO object to the client but member variable values are going as nill 
string. Pls tell me what might be the problem here.


ws4ee-deployment.xml 

  | 
  | deployment xmlns='http://xml.apache.org/axis/wsdd/'
  | xmlns:java='http://xml.apache.org/axis/wsdd/providers/java' 
xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/' 
  | xmlns:xsi='http://www.w3.org/2000/10/XMLSchema-instance' 
  | xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  | typeMapping qname='ns2:getMetaDataResponse' 
xmlns:ns2='http://com.test.csda.imaging/ws_acceptrequest/types' 
type='java:com.test.csda.imaging.common.WebServiceDO' 
serializer='org.jboss.axis.encoding.ser.BeanSerializerFactory' 
deserializer='org.jboss.axis.encoding.ser.BeanDeserializerFactory'
  | encodingStyle=''/
  | /deployment
  | 

View the original post : 
http://locahost:8080/index.html?module=bbop=viewtopicp=3892456#3892456

Reply to the post : 
http://locahost:8080/index.html?module=bbop=postingmode=replyp=3892456


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - javax.xml.rpc.ServiceException: java.lang.NullPointerExcept

2005-08-24 Thread siddhik1982
Hi All,

I'm using Jbos4.0.2 web services. When I tried to call my web service from 
client it is throwing the following Null pointer exception. Pls help me to 
rectify this.

Thanks 
Satya


Server Stach trace 

ulr :: http://T5-1FB-140531:8080/csda/csda/AcceptRequest?wsdl
Contacting webservice at http://T5-1FB-140531:8080/csda/csda/AcceptRequest?wsdl
log4j:WARN No appenders could be found for logger 
(org.jboss.webservice.EngineConfigurationFinder).
log4j:WARN Please initialize the log4j system properly.
javax.xml.rpc.ServiceException: java.lang.NullPointerException
at 
org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:124)
at 
com.pindarset.csda.imaging.client.CSDAAcceptRequestWsClient.main(CSDAAcceptRequestWsClient.java:48)
Caused by: java.lang.NullPointerException
at java.util.StringTokenizer.(Unknown Source)
at java.util.StringTokenizer.(Unknown Source)
at 
org.jboss.webservice.deployment.ServiceDescription.getPackageName(ServiceDescription.java:946)
at 
org.jboss.webservice.deployment.ServiceDescription.initOperations(ServiceDescription.java:732)
at 
org.jboss.webservice.deployment.ServiceDescription.initServiceDescription(ServiceDescription.java:140)
at 
org.jboss.webservice.deployment.ServiceDescription.(ServiceDescription.java:108)
at 
org.jboss.webservice.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:119)
... 1 more
Exception in thread main 


Client Program



public class CSDAAcceptRequestWsClient {

public static void main(String[] args) throws Exception{


String urlstr = 
http://T5-1FB-140531:8080/csda/csda/AcceptRequest?wsdl;;
System.out.println(ulr ::  +urlstr);
String jobId = A123;
String jobtype = JobType;
String colorCode = MONO;
String grFormat = jpeg;
int height=123;
int width=123;  

System.out.println(Contacting webservice at  + urlstr);
URL url = new URL(urlstr);  

String ns = http://ws_acceptrequest.imaging.csda.pindarset.com/;;
QName qname = new QName(ns, AcceptRequestService);
QName port = new QName(ns, AcceptRequestPort);
QName operation = new QName(ns, requestValidation);
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qname);
Call call = service.createCall(port, operation);
System.out.println(output: + call.invoke(new 
Object[]{jobId,jobtype,colorCode,grFormat, new Integer(height),new 
Integer(width)}));
}
}



Web service Interface

package com.pindarset.csda.imaging.ws_acceptrequest;

import java.rmi.Remote;
import java.rmi.RemoteException;

import com.pindarset.csda.imaging.common.WebServiceDO;
import com.pindarset.csda.imaging.exception.CSDAImagingException;


public interface AcceptRequest extends Remote {


public String requestValidation(String strJobId, String strJobType, String 
strColorCode, String strJobGraphicFormat, Integer objHeight, Integer objWidth) 
throws RemoteException, CSDAImagingException;


public Integer requestStatus(String strJobId)throws RemoteException, 
CSDAImagingException;

  
  public WebServiceDO getMetaData() throws RemoteException, 
CSDAImagingException;

}

 and Web service Bean


package com.pindarset.csda.imaging.ws_acceptrequest;

import java.lang.reflect.InvocationTargetException;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;

import javax.ejb.EJBException; 
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import javax.naming.NamingException;

import com.pindarset.csda.imaging.exception.CSDAImagingException;
import com.pindarset.csda.imaging.common.CSDAImagingContstants;
import com.pindarset.csda.imaging.common.JNDINames;
import com.pindarset.csda.imaging.common.Util;
import com.pindarset.csda.imaging.common.WebServiceDO;
import com.pindarset.csda.imaging.ipservice.sb_ipservice.IPServiceMgr;
import com.pindarset.csda.imaging.ipservice.sb_ipservice.IPServiceMgrHome;
import com.pindarset.csda.imaging.data.CSDADataDAO;
import com.pindarset.csda.imaging.data.Job;
import com.pindarset.csda.imaging.common.EJBUtil;


public class AcceptRequestBean implements  SessionBean {

public String requestValidation(String strJobId, String strJobType, String 
strColorCode, String strJobGraphicFormat, Integer objHeight, Integer objWidth) 
throws CSDAImagingException{
   //
}

  
  public Integer requestStatus(String strJobId) throws CSDAImagingException{
//  
  }

  public WebServiceDO getMetaData() throws CSDAImagingException{
  //
  }
  
  
/**
 * Callback method called by container before the bean is swapped into 
memory.
 */

public void setSessionContext(SessionContext arg0) throws