Help!: local class incompatible exception
Hi!, im new in the ejb tech, I'm using jboss 3.2.3, windows 2000, j2ee 1.4 and jdk 1.4.1.
I already deploy the ejb in the app server, but at the Context.lookup statement from the client i get a local class incompatible exception!!, could anyone help me with this??? the client and the ejb are running in different machines, but the classes are the same ( I map the network drive and put it in my classpath to ensure im using the same classes with the same serial uid).
Thanks a lot!!!
The complete Stack trace is
javax.naming.CommunicationException. Root exception is java.io.InvalidClassException: org.jboss.proxy.ejb.GenericEJBInterceptor; local class incompatible: stream classdesc serialVersionUID = 3844706474734439975, local class serialVersionUID = 4582256576523491346
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:459)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:104)
Sorry, i already found the problem!!! . I was running the client within the forte 4 ee ide, and it seems that forte assigns the objects their own serial uid. When I execute the client from a terminal, it executes ok =)
Similar Messages
-
Java.io.InvalidClassException:local class incompatible?
hello everyone:
I deploy a J2EE application called A in a weblogic domain called A, it can run correctly;
then I deploy another J2EE application called B, which is a new edition of A, in another weblogic domain called B, it can also run correctly;
The two domains use the same server. I don't know whether this will cause problems like this.
But the previous A can't run correctly and throw exceptions as follows in Java Console:
java.io.InvalidClassException: com.longzhou.oa.docnet.dto.abstractdto.DnBaseRole; local class incompatible: stream classdesc serialVersionUID = 1264764439065723117, local class serialVersionUID = -6834466395328850197
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readArray(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at com.longzhou.oa.applet.util.EjbLocator.getInputStream(EjbLocator.java:18)
at com.longzhou.oa.applet.DnIO.getDnAllByID(DnIO.java:63)
at com.longzhou.oa.applet.DnIO.loadGraph(DnIO.java:33)
at org.enhydra.jawe.DnDefine.loadDn(Unknown Source:185)
at org.enhydra.jawe.AbstractEditor.<init>(Unknown Source:130)
at org.enhydra.jawe.PackageEditor.<init>(PackageEditor.java:60)
at org.enhydra.jawe.JaWE.init(JaWE.java:195)
at org.enhydra.jawe.DnApplet.jbInit(DnApplet.java:67)
at org.enhydra.jawe.DnApplet.init(DnApplet.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.longzhou.oa.applet.DnIO.getDnFromDto(DnIO.java:731)
at com.longzhou.oa.applet.DnIO.loadGraph(DnIO.java:34)
at org.enhydra.jawe.DnDefine.loadDn(Unknown Source:185)
at org.enhydra.jawe.AbstractEditor.<init>(Unknown Source:130)
at org.enhydra.jawe.PackageEditor.<init>(PackageEditor.java:60)
at org.enhydra.jawe.JaWE.init(JaWE.java:195)
at org.enhydra.jawe.DnApplet.jbInit(DnApplet.java:67)
at org.enhydra.jawe.DnApplet.init(DnApplet.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.lang.Object
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at com.longzhou.oa.applet.util.EjbLocator.getInputStream(EjbLocator.java:18)
at com.longzhou.oa.applet.InitModel.initEmpGroupList(InitModel.java:353)
at org.enhydra.jawe.DnDefine._$1(Unknown Source:241)
at org.enhydra.jawe.DnDefine.loadDn(Unknown Source:186)
at org.enhydra.jawe.AbstractEditor.<init>(Unknown Source:130)
at org.enhydra.jawe.PackageEditor.<init>(PackageEditor.java:60)
at org.enhydra.jawe.JaWE.init(JaWE.java:195)
at org.enhydra.jawe.DnApplet.jbInit(DnApplet.java:67)
at org.enhydra.jawe.DnApplet.init(DnApplet.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.NotSerializableException: java.lang.Object
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at com.longzhou.oa.util.EgovServlet.service(EgovServlet.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
at java.lang.Thread.startThreadFromVM(Unknown Source)
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.lang.Object
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at com.longzhou.oa.applet.util.EjbLocator.getInputStream(EjbLocator.java:18)
at com.longzhou.oa.applet.InitModel.initSysRoleList(InitModel.java:371)
at org.enhydra.jawe.DnDefine._$1(Unknown Source:242)
at org.enhydra.jawe.DnDefine.loadDn(Unknown Source:186)
at org.enhydra.jawe.AbstractEditor.<init>(Unknown Source:130)
at org.enhydra.jawe.PackageEditor.<init>(PackageEditor.java:60)
at org.enhydra.jawe.JaWE.init(JaWE.java:195)
at org.enhydra.jawe.DnApplet.jbInit(DnApplet.java:67)
at org.enhydra.jawe.DnApplet.init(DnApplet.java:54)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.NotSerializableException: java.lang.Object
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at com.longzhou.oa.util.EgovServlet.service(EgovServlet.java:332)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
at java.lang.Thread.startThreadFromVM(Unknown Source)
Can anyone tell me the reason? Thanks"local class incompatible" error is due to the retrieving of serialized object, which might be dumping from memory to somewhere like database, file etc., that is of different edition of the class. Maybe an object A of AClass was stored in a database and lately the AClass changed to a new edition, let's call it A'Class, and they have something different, especially the serialVersionUID field. When the object A is retrieved from the database, which should be compatible with A'Class (be ware of that A'Class and AClass has the same name but of different edition), unfortunately, they don't, the error mentioned above occurs.
So, I guess that although the app A and B uses different domain, if they uses the same database to store and retrieve something (here may refers to objects) of different edition and are run one after another, the compatible issues are going to occur.
Separating app A from B as much as possible is not a good solution, but you could have a try.
Hoping helpful, good luck! -
Local class incompatible: different serialVersionUID
Hi!
I wrote an Object of type X to a file (in the server) and am sending the file to a client. This is done using:
FileOutputStream fo = new FileOutputStream (filename);
ObjectOutputStream so = new ObjectOutputStream (fo);
so.writeObject(x); //x is of Object type X
so.flush();
so.close();
fo.close();
The file 'filename' is sent to the client and I read it as follows:
FileInputStream in = new FileInputStream(filename);
ObjectInputStream s = new ObjectInputStream(in);
xobject = (X) x.readObject(); //xobject is of Object type X
This is throwing an error as follows:
java.util.Vector; local class incompatible:stream classdesc serialVersionUID = -2804478835259887871, local class serialVersionUID = -2767605614048989439
Can anyone tell me what to do to be able to type cast the object and use it? I did go thro' some @serial documentation, but, couldn't understand it.
Please help,
Thanks,
x86...or, alternatively, maintain the X class in one package, the one where your server-side classes are compiled, say, and import it into the second, client side source code, which presumably lives in a separate package or this problem probably wouldn't have come up. The goal is never to have more than one copy of the compiled class file.
You may have to modify your classpath.
Hi!
I wrote an Object of type X to a file (in theserver)
and am sending the file to a client. This is done
using:
<snip>
>
This is throwing an error as follows:
java.util.Vector; local class incompatible:stream
classdesc serialVersionUID = -2804478835259887871,
local class serialVersionUID = -2767605614048989439Hi
try using one copy of the compiled class for the
server
and the client, I had this happen many times until I
figured out
the server compiled its version of the serialiable
class and the client compiled its version of the
serialiable class,
then got class incompatable exceptions..among others
easy way around this is to compile the code of botht
he client and server, then copy the class code across
to the client side
Boris -
InvalidClassException: JComponent; local class incompatible - JVM Version?
Iam having trouble deserializing some old objects.
My object header is
public class SoundMatrix extends AbstractTableModel implements Serializable
So i happend to save some swing components :(
Now i got the problem of deserializing them again. What can i do to recover the data?
The serialVersionUID is the same, none has changed.
java.io.InvalidClassException: javax.swing.JComponent; local class incompatible: stream classdesc serialVersionUID = -2514362798440941654, local class serialVersionUID = -1030230214076481435
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at javax.swing.event.EventListenerList.readObject(EventListenerList.java:255)
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:597)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at dk.tigermedia.Prog.main(Prog.java:119)
I guess its a JVM Versioning problem, the version may have changed over time, the application have been used.
I know the problem is, that i have serialized Swing objects- the docs even warn against this. Great :)
Can i see which version was used to make the files? Can take control over the deserializing process?
Tryed overwriting the readObject - but it dont seem to get that far.
Any help is much appreciated. Thanks.Update versions don't matter, just 1.3, 1.4, 1.5 etc.
You don't need to recompile except backwards, e.g. if you're using JDK 1.3 you need binaries produced by 1.3 or with -target 1.3. But I'd advocate writing a new mini application for this conversion task, using 1.3 or whatever the JDK version actually was when the data was serialized.
You also need to inform management about this debacle and the reasons for it. The warnings about serialization-incompatibility of Swing classes have been right there in the Javadoc since the beginning. No competent IT professional should have perpetrated this act. Make sure it doesn't happen again. -
Ava.io.InvalidClassException: local class incompatible: stream classdesc
Hi,
When I am testing a scnerio in my application, I am getting the following error. When I am trying to do again, I am not getting this error. Basically when first time serializable object creation, I am getting this error I guess. Pls reply as its really disturbs our application in Production.
22 Apr 2005 14:27:12,442 ERROR [service-j2ee] model.TopsFileManager - java.io.InvalidClassException: com.gepower.gees.tops.data.JobCtxtMgr; local class incompatible: stream classdesc serialVersionUID = 7011266017804180214, local class serialVersionUID = 1299119170608910687
java.io.InvalidClassException: com.gepower.gees.tops.data.JobCtxtMgr; local class incompatible: stream classdesc serialVersionUID = 7011266017804180214, local class serialVersionUID = 1299119170608910687
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:463)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at com.gepower.gees.tops.model.TopsFileManager.getValue(TopsFileManager.java:159)
at com.gepower.gees.tops.control.PlanJobAssocCtrl.process(PlanJobAssocCtrl.java:181)
at com.gepower.gees.tops.control.LeafCommand.perform(LeafCommand.java:93)
at com.ge.dialect.cb.DefaultController.processInteraction(DefaultController.java:790)
at com.ge.dialect.cb.DefaultController.handleInteraction(DefaultController.java:607)
at com.ge.dialect.cb.DefaultController.service(DefaultController.java:490)
at com.ge.casper.servlet.CasperServlet.service(CasperServlet.java:231)
at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:309)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
22 Apr 2005 14:27:12,445 ERROR [service-j2ee] control.ProcessJobCtrl - com.gepower.gees.tops.data.JobCtxtMgr; local class incompatible: stream classdesc serialVersionUID = 7011266017804180214, local class serialVersionUID = 1299119170608910687
Thanks in advanceHello
I am using Netbeans5.5, JBoss 4.0.4 with hibernate3. I have a simple Entity bean (UserProfile), which i mapped from the database table.
In the session bean, i am using EntityManager to find my Entity bean i.e. UserProfile. But i am getting the following exception:
java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
java.io.InvalidClassException: org.hibernate.collection.PersistentBag; local class incompatible: stream classdesc serialVersionUID = -992182677146982163, local class serialVersionUID = 2819117614876030537
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:306)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:133)
at $Proxy1.findUser(Unknown Source)
at anapro.Main.main(Main.java:34)
Caused by: java.io.InvalidClassException: org.hibernate.collection.PersistentBag; local class incompatible: stream classdesc serialVersionUID = -992182677146982163, local class serialVersionUID = 2819117614876030537
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122)
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1711)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
... 14 moreSince netbeans creates an EJB module and a client module, I have added hibernate-entitymanager.jar to the class path of both the client and ejb module but this exception exists. can anyone please help me in this?
thanks -
Oracle.jbo.domain.Number; local class incompatible
Hi Forum,
Development Tool : Jdeveloper 9.0.4 (part of Oracle 10g Suite)
Target Application Summary:
A simple application which displays the content of a database table and allows it to be modified both through a web interface as well as a Swing standalone client.
A Workspace having three projects:
1) A Business layer defined by using BC4J(Business Components For Java) provided with Jdeveloper 10g.
2) A Swing/JClient application for BC4J which accesses the BCJ4 layer using a Business component client data model.
3)A JSP application using JSP for business components which accesses the BC4j layer
Target Deployment:
1) Light-weight swing interface at machine 1
2) Business components and JSP part in an application server on Machine 2
3) Oracle DB on Machine3
Problem Statement
We deployed the BC4J Middle tier on OC4J standalone as a session bean. Then the client jar was deployed as a remote application(using Swing/JClient for business componments), the following error comes:
(oracle.jbo.PiggybackException) JBO-28300: Piggyback read error
----- LEVEL 1: DETAIL 0 -----
(java.io.InvalidClassException) oracle.jbo.domain.Number; local class incompatible: stream classdesc serialVersionUID = -6507359405709672486, local class serialVersionUID = -592084144037230518
Can the forum help me with the problem (i am using the library BC4JOracleDomains which has oracle.jbo.domain.Number class)
Thanking you in advance.Firstly, good job on describing your problem/situation. Some people just don't bother to be verbose.
Secondly, I have to note that I don't do any development in this way so I have no 1st hand experience with this excpetion. But, it appears as though you are using different versions of the jar files (which in turn contain different versions of the classes). Maybe you should take a look at that? -
Oracle.jdbc.pool.OracleDataSource; local class incompatible
I want to place a DataSource in a InitialContext with the following code
public void getEnvironment() throws Exception{ try{ System.setProperty(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); /*System.setProperty(Context.PROVIDER_URL, "t3://127.0.0.1:7001"); System.setProperty(Context.SECURITY_PRINCIPAL, "weblogic"); System.setProperty(Context.SECURITY_CREDENTIALS, "password");*/ InitialContext ic = new InitialContext(); ic.createSubcontext("java:"); ic.createSubcontext("java:/comp"); ic.createSubcontext("java:/comp/env"); ic.createSubcontext("java:/comp/env/jdbc"); // Construcvt Datasource OracleConnectionPoolDataSource ds = new OracleConnectionPoolDataSource(); ds.setURL("jdbc:oracle:thin:@cdcehr29:14985"); ds.setUser("user"); ds.setPassword("pwd"); //Connection conn = ds.getConnection(); ic.bind("java:/comp/env/jdbc/test", ds); System.out.println("see?"); Context envIc = (Context) ic.lookup("java:/comp/env"); envIc.bind("THIS_SERVICE_CD", ""); envIc.bind("THIS_SERVICE_VER", ""); envIc.bind("SERVICE_DATA_SOURCE_JNDI", "jdbc/test"); envIc.bind("ALS_PROJECT_CD", ""); envIc.bind("ALS_SYSTEM_CD", ""); envIc.bind("EHR_CONFIG_DATA_SOURCE_JNDI", ""); envIc.bind("SGR_PATH", ""); envIc.bind("AUDIT_TABLE_NAME", ""); envIc.bind("DEBUG_TABLE_NAME", ""); }catch(NamingException ex){ ex.printStackTrace(); }catch(Exception ex){ ex.printStackTrace(); } }
but the following error is shown (but not catch in catch block, very strange)
>
<Jun 26, 2012 6:17:02 PM CST> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
java.io.InvalidClassException: oracle.jdbc.pool.OracleDataSource; local class incompatible: stream classdesc serialVersionUID = 8680830911645568991, local class serialVersionUID = 3349652938965166731
java.io.InvalidClassException: oracle.jdbc.pool.OracleDataSource; local class incompatible: stream classdesc serialVersionUID = 8680830911645568991, local class serialVersionUID = 3349652938965166731
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
Truncated. see log file for complete stacktrace
>
what is the problem come from?>
but the following error is shown (but not catch in catch block, very strange)
>
<Jun 26, 2012 6:17:02 PM CST> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
java.io.InvalidClassException: oracle.jdbc.pool.OracleDataSource; local class incompatible: stream classdesc serialVersionUID = 8680830911645568991, local class serialVersionUID = 3349652938965166731
java.io.InvalidClassException: oracle.jdbc.pool.OracleDataSource; local class incompatible: stream classdesc serialVersionUID = 8680830911645568991, local class serialVersionUID = 3349652938965166731
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1316)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
Truncated. see log file for complete stacktrace
what is the problem come from?
>
You didn't post the part of the stacktrace that shows the line number that the problem occured on. (Truncated. see log file for complete stacktrace)
Are you sure the problem occured in the code you posted? If so did this line execute and print on the console?
System.out.println("see?");That error can occur when the code used to deserialize an object uses a different version of the class than the version it was serialized with. The code you posted doesn't shown anything that appears to do any deserialization.
Have their been any changes to the environment lately? Upgrades to Java version, WebLogic or the JDBC driver? -
Hi,
I recently create a webservice application.
It work fine when the server is implemented as java application. But when rewritten as web application( *.war), the deploiement work on WLS.
However it throws java.io.InvalidClassException: org.eclipse.persistence.internal.indirection.DatabaseValueHolder; local class incompatible: stream classdesc serialVersionUID = -6893195210780291759, local class serialVersionUID = 1128857921468654749 error when the client start consumming the web service methods.
I add both eclipselink-javax.persistence-2.0.jar and eclipselink-2.0.2.jar(which are also used in the server side) in $WL_HOME/wlserver_10.3/common/deployable-libraries, that doesn't solve the problem yet.
Any help will be appreciated, cheers.Abenk,
This looks like a serial version mismatch due to multiple Eclipselink.jar files. Check if you have any under server/internal/ext folder.
What are you putting in your classpath? Is there a "jrf.jar" and is it getting picked up first? Does this Jrf.jar have an entry of Eclipselink jar?
Try to check the classpath of the jars used by Weblogic and remove any redundant Eclipselink/Toplink jars.
What is the complete version of your Weblogic Server ? -
Local class incompatible: stream classdesc serialVersionUID
The following code is being executed from the configFile class:
if(configFileIn != null)
try
ourConfigItemsAL = (ArrayList)alInObjectStream.readObject();
catch(Exception e)
configIsValid = false;
System.out.println("Error: Can't read (readObject ourConfigItemsAL) from \"" + theFileName + "\". (" + e.toString() + ")");
configItemsAL = theDefList;
I get the following error when trying to run. It worked with an older version of the jre.
Creating new NewConfigFile object.
About to read configuration from "c:/Program Files/HearingRecorder/HearingRecorder.cfg" file.
Error: Can't read (readObject ourConfigItemsAL) from "c:/Program Files/HearingRecorder/HearingRecorder.cfg". (java.io.InvalidClassException: javax.swing.JComponent; local class incompatible: stream classdesc serialVersionUID = -7908749299918704233, local class serialVersionUID = 7917968344860800289)
java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
at HearingRecorder.ConfigFile.readConfig(ConfigFile.java:150)
at HearingRecorder.ConfigFile.<init>(ConfigFile.java:92)
at HearingRecorder.HearingRecorder.<clinit>(HearingRecorder.java:4462)
Exception in thread "main"The Java TutorialEssential Java Classes I/O: Object Serialization
Lightweight persistence--the archival of an object for use in a later invocation of the same program.
Serlization does not play nice between VM versions. It tells you this in the APIs for JComponent
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see XMLEncoder. -
InvalidClassException ImageIcon.$AccessibleImageIcon class incompatible
Greetings,
I cannot seem to find a solution for this problem, so I am turning to you - your help is greatly appreciated.
Below is a snippet of some legacy code that has been deployed in an app running JRE 1.4.2.
class NodeImage implements Serializable {
final static long serialVersionUID = 2606889903904458364L;
public Dimension dim;
public transient Image img;
public ImageIcon ii; //VERY PROBLEMATIC NOW!!!!
public String name;
public String description;
}Now, with the application having been modified and upgraded to run on JRE 1.5.0, old serialized objects can no longer be read into the above class, because the ImageIcon.$AccessibleImageIcon serialVersionUID has changed. The exception being thrown is as follows:
java.io.InvalidClassException: javax.swing.ImageIcon$AccessibleImageIcon;
local class incompatible: stream classdesc serialVersionUID = -3994512798706967451,
local class serialVersionUID = -1903458698681874148
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:468)
at javax.swing.ImageIcon.readObject(ImageIcon.java:389)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...The object has no explicit readObject or writeObject methods.
I have tried a variety of things - e.g. writing a new readObject method, and using java.io.ObjectInputStream.GetField fields = in.readFields(); but I cannot seem to find a way to read the offending field without the exception being thrown and the rest of the read process aborted.
Is there ANY way around this?
I don't care if the end result makes the ImageIcon ii field null. But because this is just one object in a serialized hierarchy, I just want to be able to get the dim, name, and description attributes and then continue loading the remainder of the object hierarchy.
Thanks in advance for your help! Any insight would be great.
.Your developers should have read the warning in the javadoc for javax.swing.ImageIcon before serializing ImageIcons across JDK versions.
You may have to use JDK 1.4 to read these streams and write them out again using something other than classes with this warning when they occur.
The only other thing I can suggest is a custom readObject method which doesn't call defaultReadObject() and instead picks apart the serialization protocol itself for the offending class(es), calling readObject() for all non-offending members. -
Class cast exception in jsp plz help
i have written a jsp where i displayed a text box with value given by user inside it
when the user enters some other value in text box and clicks on update button then i forwarded reqeust to servlet which will some data base work
servlet will forward again to the same jsp with the new value in text box.
but i am getting CLASS CAST EXCEPTION when servlet is forwarding reqeust to same JSP
help me what to do ........
thanking you in advance ..cheersdisplay cart.jsp file:
<%@ page import="java.util.*,org.*" %>
<html>
<body>
<%
Vector cartupdate = (Vector)session.getAttribute("cartlist");
for (int i = 0; i < cartupdate.size(); i++) {
CartListBean clb = (CartListBean)cartupdate.elementAt(i);
%>
<form name="itemslist<%=i%>" action="updateCart" method="post">
<input type="hidden" name="itemcode" value="<%=clb.getItemCode()%>">
<input type="hidden" name="itemname" value="<%= clb.getItemName()%>">
<input type="hidden" name="price" value="<%= clb.getPrice()%>">
<%= clb.getItemName() %>
<input type="text" name="qty" value="<%=clb.getQuantity()%>">
<input type="submit" name="<%=clb.getItemCode()%>" value="update">
</form>
<br>
<%
%>
<form name="tobuy" action="buysrv" method="post">
<input type="submit" name="buy" value="BUY">
</form>
</body>
</html>
updatecart servlet code:
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import org.*;
import java.sql.*;
import java.util.*;
public class UpdateCart extends HttpServlet
public void service(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException
HttpSession session=request.getSession(false);
Vector cartupdate = (Vector)session.getAttribute("cartlist");
for (int i = 0; i < cartupdate.size(); i++) {
org.CartListBean cart = (org.CartListBean)cartupdate.elementAt(i);
if((cart.getItemCode()).equals(request.getParameter("itemcode")))
org.CartListBean clb=new org.CartListBean();
clb.setItemCode(request.getParameter("itemcode"));
clb.setQuantity(request.getParameter("qty"));
clb.setItemName(request.getParameter("itemname"));
clb.setPrice(request.getParameter("price"));
cartupdate.setElementAt(clb,i);
session.setAttribute("cartlist",cart);
ServletContext application=getServletContext();
System.out.println("got finished");
RequestDispatcher rd=application.getRequestDispatcher("/displaycart.jsp");
rd.forward(request,response);
Message was edited by:
143java -
Class Cast Exception in a custom adapter processing module
Hi,
I am trying to create a Custom adapter module in my file adapter as a Local enterprise Bean.
I have taken the "ConvertCRLFfromToLF" sample given by SAP as a reference, created an EJB module project, and deployed the enterprise archive to the J2EE engine.
However, i am getting a Class Cast Exception in the Adapter Engine for my communication channel.
Any help on this will much appreciated.
Thanks & Regards,
Renjith.HI,
Managed to solve this..this was due to the additional jars which was included by the Developer Studio in the EAR file. We have to remoce the jars from the EAR, change the application.xml and sap_manifest.mf files to give reference to the jars already deployed in the J2EE engine.
Thanks & Regards,
Renjith -
Class cast exception in Process Control
Hello,
I am trying to use a SubProcess through a Process Control from a ParentProcess in another Workshop application.
They are both deployed in the same domain.
The SubProcess Control is packaged in a Control Project whose jar is imported in the other ParentProcess Workshop application.
The data that is passed is in form of XML documents described as schemas. And both applications use the same Schema.jar.
The call from the ParentProcess looks like it is OK.
But when the reply comes back it looks like the transform fails. I get a "class cast exception"
The feeling I get is that the returning xml document variable can't be cast into the local xml document variable. Even though they are of the exact same type...
All help is very much appreciated!!!
Unhandled Process Exception:
java.lang.ClassCastException
at se.telia.object.kund.control.sokKundPControl.clientRequest(Unknown Source)
at se.telia.tab.regae.process.Untitled.sokKundPctrlClientRequest(Untitled.jpd:101)
-------------I'm having some problems with a transformation and I'm getting a cast exception so maybe it's the same thing.
The problem is when the source schema has some element with minOccurs="0". If the element is not present in the xml document that is received, the transformation seems to be trying to cast it anyway. -
Class Cast exception in ArrayDescriptor.createDescriptor(
I want to pass an array into a an Oracle procedure called using a callableSatement.
When I create the array descriptor i get an class cast exception. I believe this error occurs when the sun.jdbc.odbc.JdbcOdbcConnection
or the weblogic.jdbc.wrapper.PoolConnection_weblogic_jdbc_oci_Connection connection object is being cast to oracle.jdbc.driver.OracleConnection by createDescriptor method how can i overcome this run time error????Welcome to the forum!
>
am trying to pass ArrayList to Oracle procedure
but when i am excuting the code i got the following error
java.lang.ClassCastException: com.ibm.ws.rsadapter.jdbc.WSJdbcConnection incompatible with oracle.jdbc.OracleConnection
Can anybody help me to resolve this problem.
>
Not if you don't provide the code you are using so we can see what it is doing. Also post your 4 digit Oracle version, Java version, JDBC jar file name/version and the procedure signature that shows the language, parameters and types.
An ArrayList is a Java object so are you using a Java stored procedure?
Or are you using WebSphere? If WebSphere see this IBM link which appears to apply to the problem you are describing.
http://www-01.ibm.com/support/docview.wss?uid=swg21409335 -
Hi,
Can you any one help me to resolve this exception below. The conext is I
have successfully deplyed a bean and when i call the bean remot method I am
getting the following exception.
Can you any one help me in what situations we will get this type of
exception. I am using jdk1.3
Thanks
Kumar
*************** EXCEPTIN IS BELOW *****************************
PayDateRespondRequestBean lookup successful
creating session bean instance
Calling operation operation
java.io.InvalidClassException: javax.ejb.EJBException; Local class not
compatible: stream classdesc serialVersionUID=-9219910240172116449 local
class serialVers
ionUID=796770993296843510
at
java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523)
at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567)
at
java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:29)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1212)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:66)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:38)
at
weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.j
ava:175)
at
weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.j
ava:154)
at
weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:582)
at
weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at
weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:311)
at
weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:225)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception
creating response stream ] - with nested exception:
[java.io.InvalidClassException: javax.ejb.EJBException; Local class not
compatible: stream classdesc serialVersionUID=-9219910240172116449 local
class serialVersionUID=796770993296843510]
at
weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.j
ava:184)
at
weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.j
ava:154)
at
weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:582)
at
weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at
weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:311)
at
weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:225)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Error accessing PayDateRespondRequest bean
weblogic.rjvm.PeerGoneException: ; nested exception is:
weblogic.utils.NestedException: ***** ASSERTION FAILED
****[ Exception
creating response stream ] - with nested exception:
[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception
creating
response stream ] - with nested exception:Yes, this solved my problem. I was having two versions of javax.ejb package.
--Sajith
"Nils Winkler" <[email protected]> wrote in message
news:[email protected]...
Hi,
it looks like you have two different versions of the same class in the
classpath. Your client is expecting version A, but the server is
returning an instance of version B. Make sure that you only have one
version of the class in your classpath. If you're starting the client as
a separate app, also make sure that it's using the same classes as the
server.
Hope that helps,
Nils
Sajith wrote:
Hi,
Can you any one help me to resolve this exception below. The conext is I
have successfully deplyed a bean and when i call the bean remot method I
am
getting the following exception.
Can you any one help me in what situations we will get this type of
exception. I am using jdk1.3
Thanks
Kumar
*************** EXCEPTIN IS BELOW *****************************
PayDateRespondRequestBean lookup successful
creating session bean instance
Calling operation operation
java.io.InvalidClassException: javax.ejb.EJBException; Local class not
compatible: stream classdesc serialVersionUID=-9219910240172116449 local
class serialVers
ionUID=796770993296843510
at
java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java:523)
atjava.io.ObjectStreamClass.setClass(ObjectStreamClass.java:567)
at
java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:936)
atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:29)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1212)
atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
atjava.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:66)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:38)
at
weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.j
ava:175)
at
weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.j
ava:154)
at
weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:582)
at
weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at
weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:311)
at
weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:225)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
--------------- nested within: ------------------
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception
creating response stream ] - with nested exception:
[java.io.InvalidClassException: javax.ejb.EJBException; Local class not
compatible: stream classdesc serialVersionUID=-9219910240172116449 local
class serialVersionUID=796770993296843510]
at
weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.j
ava:184)
at
weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.j
ava:154)
at
weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:582)
at
weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
at
weblogic.socket.JavaSocketMuxer.processSockets2(JavaSocketMuxer.java:311)
at
weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:225)
at
weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Error accessing PayDateRespondRequest bean
weblogic.rjvm.PeerGoneException: ; nested exception is:
weblogic.utils.NestedException: ***** ASSERTION FAILED
****[ Exception
creating response stream ] - with nested exception:
[weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Exception
creating
response stream ] - with nested exception:--
============================
[email protected]
Maybe you are looking for
-
CRM 2013 - "Save and Close" button behavnig like "Save and New"
Hi, I am working in CRM 2013. I have a scenario in which I am saving new opportunity product record through javascript and preventing original save of CRM. Save is working fine. After save, I need to refresh the screen. So I have used "Xrm.Utility.op
-
My iPhone 5s has stopped playing music out of the speakers. It works when I plug in my headphones but other than that there's no sound. It just randomly happened so I'm not sure if I can fix it or if I need to bring my phone in. Help?
-
Generate GST Report in SGD despite Company Code in USD
Dear People, The local currency of the new company in SAP is USD. However as the company is incorporated in Singapore, we have to generate a GST (Goods Service Tax) Report in Singapore Dollars for tax reporting purposes. Does SAP have a standard repo
-
Remove / Update files loaded into a personalised table
Hello All, I have a table in my database which holds pdf documents that i have uploaded using mime types, id's etc from the htmldb_files table. I am doing this using file browse then writing the file to my own table ( approvals ). I need to be able t
-
Delivery problem - naming of delivered report
Hi everyone, I've got a problem with delivering reports via mail ... I'm using the following code DeliveryManager dm = new DeliveryManager(); DeliveryRequest req = dm.createRequest(DeliveryManager.TYPE_SMTP_EMAIL); req.addProperty(DeliveryPropertyDef