Java service error java.io.StreamCorruptedException: invalid type code: 55

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.
 */

}

Laxman,
What exactly your business requirement. Please kindly share complete details like business need, which versions of webMethods you are using, …

Thanks,

Hi,

wM has to invoke a stored procedure or Oracle API to load an order into database which is expecting java.lang.struct as input. In order to create the structs, first struct descriptors to be created. I am trying to create the struct descriptors using the java method CreateDescriptor. But I am getting the error message which I have posted.

wM version details:

Product: webMethods Integration Server
Version: 9.5.1.0
Updates:IS_9.5_SP1_Core_Fix3
Build Number:202
SSL: Strong (128-bit)

Thanks for your time and let me know for any details.

im ever like this,…java scrift error…but now i can do it…because im join here forum…tx u for u information…


Pipa HDPE

Welcome to the forum Kumala!