Hi,
Get me out of the following error.
Java service is throwing the following error. Java service expects the oracle SQL connection and the oracle object as inputs and then generates the oracle struct descriptor and returns the struct descriptor as output.
Error:
java.io.StreamCorruptedException: invalid type code: 55
at com.wm.util.coder.IDataBinCoder.doJavaSerializationDecode(IDataBinCoder.java:1199)
at com.wm.util.coder.IDataBinCoder._decode(IDataBinCoder.java:1163)
at com.wm.util.coder.IDataBinCoder._decode(IDataBinCoder.java:798)
at com.wm.util.coder.IDataBinCoder._decode(IDataBinCoder.java:798)
at com.wm.util.coder.IDataBinCoder.decode(IDataBinCoder.java:294)
at com.wm.driver.comm.b2b.http.SessionHTTPLink.transportMsg(SessionHTTPLink.java:89)
at com.wm.driver.comm.b2b.http.HTTPLink$HTTPSendReceive.run(HTTPLink.java:362)
at java.lang.Thread.run(Thread.java:724)
Java code:
import com.wm.data.;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
import java.text.;
import java.util.;
import java.sql.;
import oracle.sql.;
import oracle.jdbc.pool.OracleDataSource;
import java.io.;
import oracle.jdbc.driver.*;
public final class createStructDescriptor_SVC
{
/**
* The primary method for the Java service
*
* @param pipeline
* The IData pipeline
* @throws ServiceException
*/
public static final void createStructDescriptor(IData pipeline)
throws ServiceException {
IDataCursor pipelineCursor = pipeline.getCursor();
System.out.println("Entered createStructDescriptor");
Connection connection = (Connection) IDataUtil.get( pipelineCursor, "connection" );
String structName = IDataUtil.getString( pipelineCursor, "structName" );
StructDescriptor structDescriptor = null;
try{
System.out.println("Before Getting connection");
structDescriptor = StructDescriptor.createDescriptor(structName, connection);
System.out.println("After getting connection");
}catch(Throwable throwable) {
throwable.printStackTrace();
throw new ServiceException("CreateStructDescriptor Service:" + throwable);
}
System.out.println("Before IData Put");
IDataUtil.put( pipelineCursor, "structDescriptor", structDescriptor );
pipelineCursor.destroy();
}
// --- <<IS-BEGIN-SHARED-SOURCE-AREA>> ---
// --- <<IS-END-SHARED-SOURCE-AREA>> ---
/**
* The service implementations given below are read-only and show only the
* method definitions and not the complete implementation.
*/
}