Java.io.StreamCorruptedException: illegal handle value
Hi
I am using Oracle Coherence 3.3 in my application. I my application we are taking the objects from Webservices and storing them in the Cache(Replicated). And then retrieve them from the Cache.
But now on our application Linux server we are getting "java.io.StreamCorruptedException: illegal handle value"
Can anybody tell the reason of this. I am not sure whether it is a Coherence issue.
The log of error which i am getting is this. Please do reply. Its really urgent.
[6/7/08 11:23:36:287 EDT] 00004442 SystemErr R (Wrapped: CacheName=UMAChannelZipCache, Key=44120) java.io.StreamCorruptedException: illegal handle value
at java.io.ObjectInputStream.readHandle(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at java.util.HashMap.readObject(HashMap.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Compiled Code))
at java.util.TreeMap.buildFromSorted(TreeMap.java(Inlined Compiled Code))
at java.util.TreeMap.readTreeSet(TreeMap.java(Inlined Compiled Code))
at java.util.TreeSet.readObject(TreeSet.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at java.util.HashMap.readObject(HashMap.java(Compiled Code))
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java(Compiled Code))
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java(Inlined Compiled Code))
at com.tangosol.util.ExternalizableHelper.readObject(ExternalizableHelper.java(Compiled Code))
at com.tangosol.coherence.component.net.Message.readObject(Message.CDB(Inlined Compiled Code))
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache$ConverterFromInternal.convert(ReplicatedCache.CDB(Compiled Code))
at com.tangosol.coherence.component.util.CacheHandler.getCachedResource(CacheHandler.CDB(Compiled Code))
at com.tangosol.coherence.component.util.CacheHandler.get(CacheHandler.CDB(Compiled Code))
at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB(Compiled Code))
at com.att.uma.cache.ChannelCacheManager.checkCacheByZip(ChannelCacheManager.java(Compiled Code))
at com.att.uma.channel.UMAChannelServices.getChannelsByZip(UMAChannelServices.java(Compiled Code))
at com.att.uma.channel.RetrieveChannelLineup.performTask(RetrieveChannelLineup.java(Compiled Code))
at com.att.uma.channel.RetrieveChannelLineup.doPost(RetrieveChannelLineup.java(Compiled Code))
at com.att.uma.channel.RetrieveChannelLineup.doGet(RetrieveChannelLineup.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
Hi user628020,
Since you are using standard Java serialization, the only two reasons I can think of are:
1) a bug in serialization routines for any of the classes your objects use (e.g. TreeMap)
2) concurrent modification of the same object by another thread at the same time
With urgent support questions I would suggest using the Oracle Metalink.
Regards,
Gene
Similar Messages
-
XI Adapter Illegal count value 0
Hi all,
When configuring the PI Adapter to connect for outbound messaging from MDM, we are receiving the following error:
Illegal Count Value 0
This error is in the Component Monitoring.
Looking in the logs, this seems to be occuring because of the error here:
Catching java.lang.Exception: Illegal count value 0.
at com.sap.mdm.xiadapter.util.MdmUtil.getPortProperties(MdmUtil.java:98)
at com.sap.mdm.xiadapter.AbstractMdmAdapter.start(AbstractMdmAdapter.java:214)
at com.sap.mdm.xiadapter.MdmSender.start(MdmSender.java:46)
at com.sap.mdm.xiadapter.jca.XIConfiguration.channelAdded(XIConfiguration.java:160)
at com.sap.aii.af.service.administration.impl.AdminManagerImpl.notifyChannelActivationStateChanged(AdminManagerImpl.java:796)
at com.sap.aii.af.service.administration.impl.cluster.ClusterManager.eventReceivedSync(ClusterManager.java:426)
at com.sap.aii.af.service.event.impl.worker.sync.SyncLocalWorker.work(SyncLocalWorker.java:52)
at com.sap.aii.af.service.event.impl.worker.sync.AbstractSyncWorker.startWork(AbstractSyncWorker.java:40)
at com.sap.aii.af.service.event.impl.EventManagerImpl.sendEventAndWaitForAnswer(EventManagerImpl.java:484)
Could anyone provide any advice on this? The error occurs even if the Port is deliberately configured incorrectly, but only occurs when the Remote System is correctly configured. Changing the user seemed to make no difference.
We are using 7.1 SP05
Thanks in advance,
David
Edited by: David Apthorpe on Jul 21, 2010 3:54 PMHi David,
The error "Configuration Error:illegel count 0" will be fixed MDM 7.1 SP05 Patch06 (bulid 7.1.05.87) which is planned to be released by beginning CW 32 2010.
This issue only occured for only Prior to created Communcation Channel SPO5.
If you create Communcation Channel After Upgarde SP05 ,The messages successfully processed t
o MDM server(Ready folder).
Regards,
Ramesh -
I have an applet which calls a JSP to write data object to the db and then the
JSP sends back the updated data object. The writing part is ok but the response
is giving the following error. The data object is in a separate class which implements
Serialized.
Here's the code in the applet calling the JSP and the response from the JSP
URL server = null;
String urlConnectionString = "http://localhost:7001/isLoginValid.jsp";
try
server = new URL(urlConnectionString);
catch(MalformedURLException e)
System.out.println("URL exception: " + e );
// send request
ObjectInputStream response = null;
Object result = null;
try
URLConnection conn = server.openConnection();
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestProperty("Content-Type", "application/octet-stream");
ObjectOutputStream request = new ObjectOutputStream(new
BufferedOutputStream(conn.getOutputStream()));
request.writeObject((Object)dvo);
request.flush();
request.close();
// get the result input stream
response = new ObjectInputStream(new BufferedInputStream
(conn.getInputStream()));
// read response back from the server
result = response.readObject();
if( result!=null && (result instanceof DataVO))
dvo = (DataVO)result;
String vo = dvo.printDataVO();
System.out.println("*DataVO*\n"+vo);
else
System.out.println("not an instanceof DataVO");
catch(IOException ignored)
System.out.println("Error in DataVO response");
ignored.printStackTrace();
Here's the code in the JSP sending the response back to the applet. The 'dvo'
object is the object which is serialized and has gets and sets for the diff. data
elements. When I print the 'dvo' before writing the object to outputStream it
prints the correct values for the data element.
// send response
response.setStatus(HttpServletResponse.SC_OK);
ObjectOutputStream outputStream = new ObjectOutputStream (new BufferedOutputStream
(response.getOutputStream()));
outputStream.writeObject(dvo);
outputStream.flush();
ERROR is as follows:
Error in DataVO response
java.io.StreamCorruptedException: InputStream does not contain a serialized object
at java/io/ObjectInputStream.readStreamHeader
at java/io/ObjectInputStream.<init>
What am I doing wrong?. Please respond soon. The applet is run on IIS and the
JSP in on weblogic 6.1. I'm not sure if that makes any difference.
I have an applet which calls a JSP to write data object to the db and then the
JSP sends back the updated data object. The writing part is ok but the response
is giving the following error. The data object is in a separate class which implements
Serialized.
Here's the code in the applet calling the JSP and the response from the JSP
URL server = null;
String urlConnectionString = "http://localhost:7001/isLoginValid.jsp";
try
server = new URL(urlConnectionString);
catch(MalformedURLException e)
System.out.println("URL exception: " + e );
// send request
ObjectInputStream response = null;
Object result = null;
try
URLConnection conn = server.openConnection();
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestProperty("Content-Type", "application/octet-stream");
ObjectOutputStream request = new ObjectOutputStream(new
BufferedOutputStream(conn.getOutputStream()));
request.writeObject((Object)dvo);
request.flush();
request.close();
// get the result input stream
response = new ObjectInputStream(new BufferedInputStream
(conn.getInputStream()));
// read response back from the server
result = response.readObject();
if( result!=null && (result instanceof DataVO))
dvo = (DataVO)result;
String vo = dvo.printDataVO();
System.out.println("*DataVO*\n"+vo);
else
System.out.println("not an instanceof DataVO");
catch(IOException ignored)
System.out.println("Error in DataVO response");
ignored.printStackTrace();
Here's the code in the JSP sending the response back to the applet. The 'dvo'
object is the object which is serialized and has gets and sets for the diff. data
elements. When I print the 'dvo' before writing the object to outputStream it
prints the correct values for the data element.
// send response
response.setStatus(HttpServletResponse.SC_OK);
ObjectOutputStream outputStream = new ObjectOutputStream (new BufferedOutputStream
(response.getOutputStream()));
outputStream.writeObject(dvo);
outputStream.flush();
ERROR is as follows:
Error in DataVO response
java.io.StreamCorruptedException: InputStream does not contain a serialized object
at java/io/ObjectInputStream.readStreamHeader
at java/io/ObjectInputStream.<init>
What am I doing wrong?. Please respond soon. The applet is run on IIS and the
JSP in on weblogic 6.1. I'm not sure if that makes any difference.
-
Java.sql.SQLException: statement handle not executed
hello,
i am calling a stored procedure and its returns a REF CURSOR and i am getting intermittent exceptions below,
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not execute query; uncategorized SQLException for SQL [{call
xxxx_pkg(?,?)}]; SQL state [99999]; error code [17144]; statement handle not executed; nested exception is java.sql.SQLException: statement handle not executed
and
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not execute query; uncategorized SQLException for SQL [{call
xxxx_pkg(?,?,?)}]; SQL state [99999]; error code [17009]; Closed Statement; nested exception is java.sql.SQLException: Closed Statement
any clue what could be the issue,
Regards
GGits pretty simple have a java class calling hibernateTemplate's findByNamedQueryAndNamedParam method by passing the procedure name and binding parameters/values, and here is the stack
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not execute query; uncategorized SQLException for SQL [{call
xxx_pkg(?,?)}]; SQL state [99999]; error code [17144]; statement handle not executed; nested exception is java.sql.SQLException: statement handle not executed
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at org.springframework.orm.hibernate3.HibernateAccessor.convertJdbcAccessException(HibernateAccessor.java:424)
at org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:410)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
at org.springframework.orm.hibernate3.HibernateTemplate.findByNamedQueryAndNamedParam(HibernateTemplate.java:1006)
Caused by: java.sql.SQLException: statement handle not executed
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:403)
at oracle.jdbc.driver.T4CStatement.doDescribe(T4CStatement.java:701)
at oracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:3355)
at oracle.jdbc.driver.OracleResultSetImpl.findColumn(OracleResultSetImpl.java:2009)
at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:494)
at org.hibernate.type.StringType.get(StringType.java:18)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:163)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:154)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2091)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1380)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1308)
at org.hibernate.loader.Loader.getRow(Loader.java:1206)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
at org.hibernate.loader.Loader.doQuery(Loader.java:701)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.doList(Loader.java:2217)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2108)
at org.hibernate.loader.Loader.list(Loader.java:2103)
at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java:289)
at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java:1696)
at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java:142)
at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:152)
at org.springframework.orm.hibernate3.HibernateTemplate$34.doInHibernate(HibernateTemplate.java:1015)
at org.springframework.orm.hibernate3.HibernateTemplate$34.doInHibernate(HibernateTemplate.java:1)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406) -
Java.security.InvalidKeyException: Illegal key size
Hi,
I have developed an adf application using jdeveloper 11g which hosts weblogic 10.3.3.0.
My adf application has to connect to an external application for credit card validation.
To achieve this i am using a HTTPURLConnection and passing the external address and attributes that has to be written to it.
The external application which i am trying to connect is secured starts with https://..
I get an error as soon i am trying to open the "connection.getOutputStream()".
Following is the error i am getting
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
java.security.InvalidKeyException: Illegal key size
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at com.certicom.tls.provider.Cipher.init(Unknown Source)
at com.certicom.tls.ciphersuite.SecurityParameters.createWriteCipher(Unknown Source)
at com.certicom.tls.record.handshake.HandshakeHandler.changeCipherSpec(Unknown Source)
at com.certicom.tls.record.handshake.ClientStateReceivedCertificate.handle(Unknown Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessage(Unknown Source)
at com.certicom.tls.record.handshake.HandshakeHandler.handleHandshakeMessages(Unknown Source)
at com.certicom.tls.record.MessageInterpreter.interpretContent(Unknown Source)
at com.certicom.tls.record.MessageInterpreter.decryptMessage(Unknown Source)
at com.certicom.tls.record.ReadHandler.processRecord(Unknown Source)
at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source)
at com.certicom.tls.record.ReadHandler.readUntilHandshakeComplete(Unknown Source)
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.completeHandshake(Unknown Source)
at com.certicom.tls.record.WriteHandler.write(Unknown Source)
at com.certicom.io.OutputSSLIOStreamWrapper.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:124)The code i am using to connect to the external website is as follows.
URL url;
HttpURLConnection connection = null;
try {
//Create connection
url = new URL(targetURL);
connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
connection.setRequestProperty("Content-Length", "" + Integer.toString(urlParameters.getBytes().length));
connection.setRequestProperty("Content-Language", "en-US");
connection.setUseCaches (false);
connection.setDoOutput(true);
DataOutputStream wr = new DataOutputStream (
connection.getOutputStream ());
wr.writeBytes (urlParameters);
wr.flush ();
wr.close ();
//Get Response
InputStream is = connection.getInputStream();
System.out.println("after getting input stream");
BufferedReader rd = new BufferedReader(new InputStreamReader(is));
System.out.println("after BUffered reader");
String line;
StringBuffer response = new StringBuffer();
System.out.println("after String buffer");
while((line = rd.readLine()) != null) {
response.append(line);
response.append('\r');
} rd.close();
return response.toString();
} catch (Exception e) {
e.printStackTrace();
return null;
} finally {
if(connection != null) {
connection.disconnect();
}I am currently totally clueless , i dont understand what steps should i take. Is this error due to some keystore stuff??
I even tried to replace the policy files in jre as per some blogs but it still does not work.
I have very limited knowledge of the security issues with weblogic , i will really appreciate if i can get any links or any help in this matter.
Thanks in advance
ashThe messages prior to the exception are very significant:
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=GlobalSign,O=GlobalSign,OU=GlobalSign Root CA - R3". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "OU=Security Communication RootCA2,O=SECOM Trust Systems CO.\,LTD.,C=JP". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
<Oct 8, 2010 10:32:54 AM CDT> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>
java.security.InvalidKeyException: Illegal key size
So there are at least 4 certificates in your server's truststore that are causing issues.
Is your weblogic server using CustomIdentityAndStandardTrust? If so, the the keystore is the $JAVA_HOME/jre/lib/security/cacerts
You should familiarize yourself with keytool ( in $JAVA_HOME/bin ) and consider removing entries from your trust store unless you absolutely need them and are willing to trust any cert signed by them. There's been a thread about some newer Certificate Authorities ( CAs ) that were included as part of a recent java upgrade which have caused similar "unknown OID" issues.
For your specific endpoint, you can use your browser to invoke the services' wsdl; this will cause your browser to fetch the certificate from that server
You can then see what CA is used to sign it. Then see whether that CA is in your truststore.
There is also a thread with a very simple class to test the SSL handshake:
Re: Use Server Cert in Managed server not working -
Hi,
I am trying to insert an xml doc into a column of Oracle table which has a datatype CLOB in JSP. PFB my code that I am using --
int id = 100;
String st1 = "NEW";
String st2 = "WLR3_IN_1";
Date dt = new SimpleDateFormat("mm/dd/yyyy").parse("04/02/2008");
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con = DriverManager.getConnection("jdbc:odbc:CST Server","xmluser","xmluser");
String query = "INSERT INTO SEQ_API_MESSAGE_IN(SEQ_NO,MESSAGE_TEXT,STATUS,DIALECT,CREATED_TS) VALUES(?,?,?,?,?)";
out.println(6);
String fn = "C:/order.xml";
out.println(7);
PreparedStatement stmt = con.prepareStatement(query);
out.println(8);
File file = new File(fn);
out.println(9);
FileReader inputFileReader = new FileReader(file);
stmt.setInt(1,id);
stmt.setCharacterStream(2,inputFileReader, (long)file.length());
stmt.setString(3,st1);
stmt.setString(4,st2);
stmt.setDate(5,new java.sql.Date(dt.getTime()));
out.println(10);
if (stmt.executeUpdate() != 1) {
System.out.println("No record inserted.");
But I am getting an output in the form of an Oracle error - 5 6 7 8 9 10 [Oracle][ODBC][Ora]ORA-24801: illegal parameter value in OCI lob function
So all the statements are getting executed after which this Oracle error is thrown. Could you help me with this.
Thanks in anticipation.. :)As suggested I may try switching to JDBC instead of JDBC-ODBC bridge driver , but I also tried doing this to get the sysdate --
//Date dt = new SimpleDateFormat("mm/dd/yyyy").parse("04/02/2008");
String date = DateFormat.getInstance().format(new Date());
stmt.setString(5,date);
and now I am getting this error -- 5 6 7 8 9 10 [Oracle][ODBC][Ora]ORA-01843: not a valid month Hello1
Hello1 is coming from --
catch (SQLException sqle){
out.println(sqle.getMessage());
out.print("Hello1");
} -
Am running into following exception even after following all guidelines to implement POF. The main objective is to perform Distributed Bulk cache loading.
Oracle Coherence GE 3.7.1.10 <Error> (thread=Invocation:InvocationService, member=1): Failure to deserialize an Invocable object: java.io.StreamCorruptedException: unknown user type: 1001
java.io.StreamCorruptedException: unknown user type: 1001
at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3312)
at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:371)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:1)
at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.read(InvocationService.CDB:8)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:19)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:31)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:662)
Following is the pof-config.xml
<?xml version="1.0" encoding="UTF-8" ?>
<pof-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-pof-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-pof-config/1.1/coherence-pof-config.xsd">
<user-type-list>
<include>coherence-pof-config.xml</include>
<user-type>
<type-id>1001</type-id>
<class-name>com.westgroup.coherence.bermuda.loader.DistributedLoaderAgent</class-name>
<serializer>
<class-name>com.tangosol.io.pof.PofAnnotationSerializer</class-name>
<init-params>
<init-param>
<param-type>int</param-type>
<param-value>{type-id}</param-value>
</init-param>
<init-param>
<param-type>java.lang.Class</param-type>
<param-value>{class}</param-value>
</init-param>
<init-param>
<param-type>boolean</param-type>
<param-value>true</param-value>
</init-param>
</init-params>
</serializer>
</user-type>
<user-type>
<type-id>1002</type-id>
<class-name>com.westgroup.coherence.bermuda.profile.lpa.LPACacheProfile</class-name>
<serializer>
<class-name>com.tangosol.io.pof.PofAnnotationSerializer</class-name>
<init-params>
<init-param>
<param-type>int</param-type>
<param-value>{type-id}</param-value>
</init-param>
<init-param>
<param-type>java.lang.Class</param-type>
<param-value>{class}</param-value>
</init-param>
<init-param>
<param-type>boolean</param-type>
<param-value>true</param-value>
</init-param>
</init-params>
</serializer>
</user-type>
<user-type>
<type-id>1003</type-id>
<class-name>com.westgroup.coherence.bermuda.profile.lpa.Address</class-name>
<serializer>
<class-name>com.tangosol.io.pof.PofAnnotationSerializer</class-name>
<init-params>
<init-param>
<param-type>int</param-type>
<param-value>{type-id}</param-value>
</init-param>
<init-param>
<param-type>java.lang.Class</param-type>
<param-value>{class}</param-value>
</init-param>
<init-param>
<param-type>boolean</param-type>
<param-value>true</param-value>
</init-param>
</init-params>
</serializer>
</user-type>
<user-type>
<type-id>1004</type-id>
<class-name>com.westgroup.coherence.bermuda.profile.lpa.Discipline</class-name>
<serializer>
<class-name>com.tangosol.io.pof.PofAnnotationSerializer</class-name>
<init-params>
<init-param>
<param-type>int</param-type>
<param-value>{type-id}</param-value>
</init-param>
<init-param>
<param-type>java.lang.Class</param-type>
<param-value>{class}</param-value>
</init-param>
<init-param>
<param-type>boolean</param-type>
<param-value>true</param-value>
</init-param>
</init-params>
</serializer>
</user-type>
<user-type>
<type-id>1005</type-id>
<class-name>com.westgroup.coherence.bermuda.profile.lpa.Employment</class-name>
<serializer>
<class-name>com.tangosol.io.pof.PofAnnotationSerializer</class-name>
<init-params>
<init-param>
<param-type>int</param-type>
<param-value>{type-id}</param-value>
</init-param>
<init-param>
<param-type>java.lang.Class</param-type>
<param-value>{class}</param-value>
</init-param>
<init-param>
<param-type>boolean</param-type>
<param-value>true</param-value>
</init-param>
</init-params>
</serializer>
</user-type>
</user-type-list>
<allow-interfaces>true</allow-interfaces>
<allow-subclasses>true</allow-subclasses>
</pof-config>
cache-config.xml
<cache-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.oracle.com/coherence/coherence-cache-config"
xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-cache-config http://xmlns.oracle.com/coherence/coherence-cache-config/1.1/coherence-cache-config.xsd">
<defaults>
<serializer>pof</serializer>
</defaults>
<caching-scheme-mapping>
<cache-mapping>
<cache-name>DistributedLPACache</cache-name>
<scheme-name>LPANewCache</scheme-name>
<init-params>
<init-param>
<param-name>back-size-limit</param-name>
<param-value>250MB</param-value>
</init-param>
</init-params>
</cache-mapping>
</caching-scheme-mapping>
<caching-schemes>
<!-- Distributed caching scheme. -->
<distributed-scheme>
<scheme-name>LPANewCache</scheme-name>
<service-name>HBaseLPACache</service-name>
<serializer>
<instance>
<class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>pof-config.xml</param-value>
</init-param>
</init-params>
</instance>
</serializer>
<backing-map-scheme>
<read-write-backing-map-scheme>
<internal-cache-scheme>
<class-scheme>
<class-name>com.tangosol.util.ObservableHashMap</class-name>
</class-scheme>
</internal-cache-scheme>
<cachestore-scheme>
<class-scheme>
<class-name>com.westgroup.coherence.bermuda.profile.lpa.LPACacheProfile</class-name>
</class-scheme>
</cachestore-scheme>
<read-only>false</read-only>
<write-delay-seconds>0</write-delay-seconds>
</read-write-backing-map-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
<invocation-scheme>
<scheme-name>InvocationService</scheme-name>
<service-name>InvocationService</service-name>
<thread-count>5</thread-count>
<autostart>true</autostart>
</invocation-scheme>
</caching-schemes>
</cache-config>
DistributedLoaderAgent (user type 1001)
import java.io.IOException;
import java.io.Serializable;
import java.lang.annotation.Annotation;
import org.apache.log4j.Logger;
import com.tangosol.io.pof.PofReader;
import com.tangosol.io.pof.PofWriter;
import com.tangosol.io.pof.PortableObject;
import com.tangosol.io.pof.annotation.Portable;
import com.tangosol.io.pof.annotation.PortableProperty;
import com.tangosol.net.AbstractInvocable;
import com.tangosol.net.InvocationService;
@Portable
public class DistributedLoaderAgent extends AbstractInvocable implements PortableObject{
private static final long serialVersionUID = 10L;
private static Logger m_logger = Logger.getLogger(DistributedLoaderAgent.class);
@PortableProperty(0)
public String partDumpFileName = null;
public String getPartDumpFileName() {
return partDumpFileName;
public void setPartDumpFileName(String partDumpFileName) {
this.partDumpFileName = partDumpFileName;
public DistributedLoaderAgent(){
super();
m_logger.debug("Configuring this loader ");
public DistributedLoaderAgent(String partDumpFile){
super();
m_logger.debug("Configuring this loader to load dump file "+ partDumpFile);
partDumpFileName = partDumpFile;
@Override
public void init(InvocationService service) {
// TODO Auto-generated method stub
super.init(service);
@Override
public void run() {
// TODO Auto-generated method stub
try{
m_logger.debug("Invoked DistributedLoaderAgent");
MetadataTranslatorService service = new MetadataTranslatorService(false, "LPA");
m_logger.debug("Invoking service.loadLPACache");
service.loadLPACache(partDumpFileName);
}catch(Exception e){
m_logger.debug("Exception in DistributedLoaderAgent " + e.getMessage());
@Override
public void readExternal(PofReader arg0) throws IOException {
// TODO Auto-generated method stub
setPartDumpFileName(arg0.readString(0));
@Override
public void writeExternal(PofWriter arg0) throws IOException {
// TODO Auto-generated method stub
arg0.writeString(0, getPartDumpFileName());
Please assist.OK I have two suggestions.
1. Always create and flush the ObjectOutputStream before creating the ObjectInputStream.
2. Always close the output before you close the input. Actually once you close the output stream both the input stream and the socket are closed anyway so you can economize on this code. In the above you have out..writeObject() followed by input.close() followed by out.close(). Change this to out.writeObject() followed by out.close(). It may be that something needed flushing and the input.close() prevented the flush from happening. -
Java.io.StreamCorruptedException (APPLET SERVLET Communication)
Hi There,
I have an applet which calls the servlet over httpconnection and sends serialized object to the servlet.
It works fine but during heavy load it throws following exception but the application doesnot break :-
[8/5/09 7:36:09:498 EDT] 292c510e SystemErr R java.io.StreamCorruptedException
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at java.util.HashMap.readObject(HashMap.java:1172)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1003)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java(Compiled Code))
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java(Compiled Code))
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at java.io.ObjectInputStream.readObject0(ObjectInputStream.java(Compiled Code))
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at java.io.ObjectInputStream.readObject(ObjectInputStream.java(Compiled Code))
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at com.cisco.swc.applications.dlm.servlet.MigrationReportServlet.doPost(MigrationReportServlet.java:53)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[8/5/09 7:36:09:499 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.cisco.tools.filter.AccessLogFilter.doFilter(AccessLogFilter.java:114)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.netegrity.was511.filter.ServletFilter.doFilter(ServletFilter.java:72)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1027)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:544)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:210)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:139)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:332)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:254)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:657)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:453)
[8/5/09 7:36:09:500 EDT] 292c510e SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:937)
Any pointers would be of great help.
ThanksFirst, your singleton is not threadsafe, second because it's overly complicated. Simply eagerly initialize it.
Third: why don't you use the Session or a request parameter to handle your data?
Fourth: are you sure the serialized data is correctly written? -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am getting these error after changing table space
size for my database ...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I made changes in Database side for table space and
restart server.. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2><Jun 7, 2005 3:44:44 PM EDT>
<Info> <JMS> <BEA-040321> <JMSServer "ss1 JMS Server" is
resuming.><BR><Jun 7, 2005 3:44:45 PM EDT> <Alert> <JMS>
<BEA-040052> <JMSServer "ss1 JMS Server" store failed to open
java.io.StreamCorrup<BR>tedException: Unsupported class version 2.
Expected a value between 1 and 1 inclusive. Possible attempt to access
newer JMS<BR> version then current
version..<BR>java.io.StreamCorruptedException: Unsupported class version
2. Expected a value between 1 and 1 inclusive. Possible
attempt<BR> to access newer JMS version then current
version.<BR> at
weblogic.jms.common.JMSUtilities.versionIOException(JMSUtilities.java:111)<BR>
at
weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:438)<BR>
at
weblogic.jms.store.JMSStore.open(JMSStore.java:224)<BR>
at
weblogic.jms.backend.BEStore.open(BEStore.java:262)<BR>
at
weblogic.jms.backend.BEStore.start(BEStore.java:151)<BR>
at
weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)<BR>
at
weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)<BR>
at
weblogic.jms.JMSService.addJMSServer(JMSService.java:2241)<BR>
at
weblogic.jms.JMSService.addDeployment(JMSService.java:2012)<BR>
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:330)<BR>
at
weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:590)<BR>
at
weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:568)<BR>
at
weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:240)<BR>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)<BR> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<BR>
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<BR>
at
java.lang.reflect.Method.invoke(Method.java:324)<BR>
at
weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:711)<BR>
at
weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:690)<BR>
at
weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:476)<BR>
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)<BR>
at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)<BR>
at
weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:947)<BR>
at
weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:908)<BR>
at weblogic.management.internal.MBeanProxy.invoke</FONT></DIV></BODY></HTML>Hi
I am also getting the similar error when I restart the server and my JMSSTORE table has some records, Here is the exception I am getting
java.io.StreamCorruptedException: Unknown object stream version. 5505025
at weblogic.jms.store.BufferDataInputStream.readObject(BufferDataInputStream.java:167)
at weblogic.jms.store.JDBCIOStream.doRecoverBodies(JDBCIOStream.java:979)
at weblogic.jms.store.JDBCIOStream.doRecover(JDBCIOStream.java:871)
at weblogic.jms.store.JDBCIOStream.recover(JDBCIOStream.java:1090)
at weblogic.jms.store.JMSStore.recover(JMSStore.java:315)
at weblogic.jms.backend.BEStore.open(BEStore.java:264)
at weblogic.jms.backend.BEStore.start(BEStore.java:151)
at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
at weblogic.jms.JMSService.addJMSServer(JMSService.java:2241)
at weblogic.jms.JMSService.addDeployment(JMSService.java:2012)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:331)
at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:591)
at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:569)
at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:731)
at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:710)
at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:484)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
at weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:985)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:943)
at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:946)
at weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:481)
at weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7351)
at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1304)
at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:347)
at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131)
at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:966)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
at weblogic.Server.main(Server.java:32) -
Error while exporting : ORA-24801: illegal parameter value in OCI lob funct
hello,
I am doing an export on a 10.2.0.4 , solaris machine.
The table i am doing an export has a blob & clob.
During the export I get the error :
EXP-00056: ORACLE error 24801 encountered
ORA-24801: illegal parameter value in OCI lob function
In metalink it was given : Check every parameter in the OCI Lob function call to make sure they
are correct. Offsets should be greater than or equal to one.
Where should I check for that OCI Lob function. Or is there any other alternative to do the export.
Thanks for any help.I have increased the space on the mount I was doing the export and that solved the problem.
Thanks -
Hi All,
I am using SOA 11g(11.1.1.3). I am trying to insert data in to a table coming from a file. I have encountered the fallowing error.
Exception occured when binding was invoked.
Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception.
*insert failed. Descriptor name: [UploadStgTbl.XXXXStgTbl].*
Caused by java.sql.BatchUpdateException: ORA-12899: value too large for column "XXXX"."XXXX_STG_TBL"."XXXXXX_XXXXX_TYPE" (actual: 20, maximum: 15)
*The invoked JCA adapter raised a resource exception.*
*Please examine the above error message carefully to determine a resolution.*
The data type of the column errored out is VARCHAR2(25). I found related issue in metalink, java.sql.BatchUpdateException (ORA-12899) Reported When DB Adapter Reads a Row From a Table it is Polling For Added Rows [ID 1113215.1].
But the solution seems not applicable in my case...
Can anyone encountered same issue?? Is this a bug? If it is a bug, do we have patch for this bug??
Please help me out...
Thank you all...
Edited by: 806364 on Dec 18, 2010 12:01 PMIt didn't work.
After I changed length of that column of the source datastore (from 15 to 16), ODI created temporary tables (C$ with I$) with larger columns (16 instead of 15) but I got the same error message.
I'm wondering why I have to extend length of source datastore in the source model if there are no values in the source table with a length greather than 15....
Any other idea? Thanks ! -
Java.sql.SQLException: Invalid precision value. Cannot be less than zero
Hi,
In my portlet application have several jsf tables which bind to several oracle tables. I have tested the portlet in pluto and tried to deploy it on liferay. However, I get an exception stating:
java.sql.SQLException: Invalid precision value. Cann
ot be less than zero
What could this exception mean? Has anyone else encountered this?
Marc
P.S. The trace is shown below:
Feb 6, 2007 12:34:56 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.RuntimeException: java.sql.SQLException: Invalid precision value. Cann
ot be less than zero
at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(Cach
edRowSetDataProvider.java:343)
at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(Ca
chedRowSetDataProvider.java:300)
at com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount(Cache
dRowSetDataProvider.java:624)
at com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.
java:806)
at com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableR
owGroup.java:429)
at com.sun.rave.web.ui.component.TableRowGroup.getRowCount(TableRowGroup
.java:749)
at com.sun.rave.web.ui.component.Table.getRowCount(Table.java:307)
at com.sun.rave.web.ui.renderer.TableRenderer.renderTitle(TableRenderer.
java:400)
at com.sun.rave.web.ui.renderer.TableRenderer.encodeBegin(TableRenderer.
java:123)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.jav
a:683)I've dug deeper into this problem and am able reproduce the error in the Pluto server. To reproduce this error, I modified my Oracle jdbc driver from the JSC embedded driver (smoracle.jar) to the Oracle native driver (ojdbc14.jar). Now, I am getting the exception in my Sun Application Server:
What is the difference between ojdbc14.jar and smoracle.jar that could cause this problem? What can I do so that I can fix this problem for ojdbc14.jar?
Thanks,
Marc
P.S.
The problem is with the clob column (DOR_NOTE_TX). The stack trace is:
[#|2007-02-06T09:00:53.663-0800|INFO|sun-appserver-pe8.2|javax.enterprise.system.stream.out|_ThreadID=16;|
Reader executing query ps=0 SELECT DOR_NOTE_DT, DOR_NOTE_TX FROM DOR.DOR_NOTE_DATA WHERE DOR_NOTE_CD='SECURITY' AND TO_CHAR(DOR_Note_Dt, 'mm/dd/yyyy') = '02/05/2007'
No Params|#]
[#|2007-02-06T09:00:53.679-0800|WARNING|sun-appserver-pe8.2|javax.enterprise.system.stream.err|_ThreadID=16;|
java.sql.SQLException: Invalid precision value. Cannot be less than zero
Message was edited by:
marcnikko -
Java.sql.SQLException: Cannot convert value
I have a database table - name is client. It has one field with TimeStamp Datatype.
I am using mysql-3.23.51-win and j2sdk-1_4_0_01-windows-i586.
create table client (
MODIFIED timestamp(14)
while I am doing select MODIFIED from client that time I am receiving 00000000000000.
So It has 00000000000000 value in databse.
Now I am getting this value using ResultSet. for that
I have a one Client Object class name is GenericClient
public class GenericClient {
private java.util.Date _modified;
public java.util.Date getModified() {
return _modified;
public void setModified(java.util.Date newVal) {
this._modified = newVal;
In my database processing class I am getting database value and set that value in setModified(java.util.Date newVal).
like
private Client decodeRow(ResultSet rs) throws SQLException {
GenericClient obj = new GenericClient();
obj.setModified(rs.getTimestamp(1));
return obj;
So at obj.setModified(rs.getTimestamp(1)); line I am received error message
java.sql.SQLException: Cannot convert value '00000000000000' from column 1 to TIMESTAMP.
Please guide me why I am receiving the above error.
Thanks
AmitPlease find some more information from my side
1) I am passing Timestamp Object
2) I am using PreparedStatement
3) code
Table : client
create table client (
MODIFIED timestamp(14)
);Bean Class
public class GenericClient {
private java.util.Date _modified;
public java.util.Date getModified() {
return _modified;
public void setModified(java.util.Date newVal) {
this._modified = newVal;
}Method - which is fired error
private Client decodeRow(ResultSet rs) throws SQLException {
GenericClient obj = new GenericClient();
obj.setModified(rs.getTimestamp(1));
return obj;
}3) Error Stack
==========
java.sql.SQLException: Cannot convert value '00000000000000' from column 1 to TIMESTAMP.
at com.mysql.jdbc.ResultSet.getTimestampFromString(ResultSet.java:5538)
at com.mysql.jdbc.ResultSet.getTimestampInternal(ResultSet.java:5566)
at com.mysql.jdbc.ResultSet.getTimestamp(ResultSet.java:5219)
at com.ksea.manager.ClientManager.decodeRow(ClientManager.java:463)
at com.ksea.manager.ClientManager.loadByWhere(ClientManager.java:266)
at com.ksea.manager.ClientManager.loadByWhere(ClientManager.java:221)
at com.ksea.manager.ClientManager.loadByWhere(ClientManager.java:203)
at com.ksea.manager.ClientManager.loadByUsername(ClientManager.java:53)
at com.ksea.nt.DBSynch.synchEmployees(DBSynch.java:83)
at com.ksea.nt.DBSynch.synchAll(DBSynch.java:35)
at com.ksea.nt.DBSynch.main(DBSynch.java:168)4) db Info
=======
I am using mysql-3.23.51-win and j2sdk-1_4_0_01-windows-i586. -
ORA-24801: illegal parameter value in OCI lob function
Passing a null value or a null string as the value for a CLOB parameter, when executing a procedure or function, generates the error message 'ORA-24801: illegal parameter value in OCI lob function'. Passing a non-null string such as ' ' does not, does anyone have a solution to this problem?
I guess that export utility does not export LOB's columns.
Check it out here :
http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96652.pdf
Joel P�rez -
Getting "java.io.StreamCorruptedException: invalid stream header"
When creating a self made Stream (MacInputStream) and then using an ObjectInputStream over it to read Objects from a socket, I get this error:
java.io.StreamCorruptedException: invalid stream header
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:764)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:277)
at TServidor.run(TServidor.java:32)
Is there any special feature that the "self-made" streams have to implement to be possible to use ObjectInput streams over them :P ?
Here is the MacInputStream.java code:
import java.io.Closeable;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import javax.crypto.Mac;
public class MacInputStream extends FilterInputStream implements Closeable{
private Mac mac; // algorithm
private byte [] mmac; //message MAC
private boolean FIRST_TIME;
public MacInputStream(InputStream is,Mac mac) {
super(is);
this.mac=mac;
FIRST_TIME=true;
public int read() throws IOException{
if(FIRST_TIME){
mmac = new byte [mac.getMacLength()];
super.read(mmac);
if(super.in.available()==0){
FIRST_TIME=true;
return -1;
int rbyte = super.in.read();
FIRST_TIME=false;
mac.update((byte)rbyte);
System.out.println("available: "+super.in.available());
if(super.in.available()==0){
byte [] macres =mac.doFinal();
System.out.println("message MAC: "+new String(mmac));
System.out.println("calculated MAC: "+new String(macres));
if(!Arrays.equals(macres, mmac)){
throw new IOException("violated integrity");
return rbyte;
public int read(byte [] b) throws IOException{
if(FIRST_TIME){
mmac = new byte [mac.getMacLength()];
super.in.read(mmac);
if(super.available()==0){
FIRST_TIME=true;
return -1;
int rbytes = super.in.read(b);
FIRST_TIME=false;
mac.update(b);
if(super.available()==0){
byte [] macres =mac.doFinal();
if(!Arrays.equals(macres, mmac)){
throw new IOException("violated integrity");
return rbytes;
}And here is the "main" function where the exception gets thrown:
public void run() {
try {
ObjectOutputStream oos = new ObjectOutputStream(s.getOutputStream());
Mac mac = Mac.getInstance("HmacMD5");
Key key = KeyGenerator.getInstance("HmacMD5").generateKey();
oos.writeObject(key);
oos.flush();
mac.init(key);
ObjectInputStream cis = new ObjectInputStream(new MacInputStream(s.getInputStream(),mac));
String test;
try {
while (true) {
test = (String)cis.readObject();
System.out.println(ct + " : " + test);
} catch (EOFException e) {
System.out.println("["+ct + "]");
} finally {
if (cis!=null) cis.close();
if (oos!=null) oos.close();
} catch (Exception e) {
e.printStackTrace();
}It's exactly in the line: ObjectInputStream cis = new ObjectInputStream(new MacInputStream(s.getInputStream(),mac));Any ideas?
I'm starting to desperate :P(a) I still don't see where you are writing the MAC that you're reading. You're reading something, but it's all or part of the Object stream header I described above, which is why ObjectInputStream' constructor is throwing that exception.
(b) You don't need to override read(byte[] b) when you extend FilterInputStream, but you do need to override read(byte[] b, int offset, int length), and you need to do it like this:
public int read(byte[] buffer, int offset, int length) throws IOException
int count = 0;
do
int c = read();
if (c < 0)
break;
buffer[offset+count++] = (byte)c;
} while (count < length && available() > 0);
return count > 0 ? count : -1;
}This way the read() method gets to see every byte that's read and to do its MAC thing or whatever it does. The above is one of only two correct uses of available() in existence: it ensures that you only block once while reading, which is the correct behaviour e.g. on a network.
Maybe you are looking for
-
How do I import contacts from my other iMac to my new one?
I already have one iMac and just bought another one for our family. I don't know how to import my contacts from the first one so that I can have my contacts on the new one as well.
-
I can't seem to change the slide duration in iMovie. It's set to 4.0 automatically. I change it to 3.0. The program resets it to 6.5 or something I never intended. What am I doing wrong?
-
How to close other Windows Programs from a Swing GUI ?
I am making this really simple login program that once a user has successfully entered a username and password, and this is checked through a mySQL database , I run an Internet Explorer Windows. Now I am trying to setup a logout button and when they
-
Re: Functionality temporarily unavailable
Think I have solved this problem myself with a bit of help from some other postings in the newsgroup. I think that there is a problem with the documentation. It states that /portlets/portlet3/welcome.jsp should be used as the Content URL field. Unfor
-
I cant read CR2 Raw Files files in Photoshop CS3. I have tried to download the relevent plug-in from Adobe which is version 4.6. I think I am downloading it but a box comes up saying WinRAR in not free and giving an option to buy now. I have clicked