SerialVersionUID error
hey there!
I opened a file with Eclipse SDK 3.2.2, and a certain warning appears:
The serializable class xxx does not declare a static final serialVersionUID field of type long.
After hitting Ctrl-1, a few options appeared, one of them being Add generated serial version ID.
Clicking that, a new line appeared into my class:
private static final long serialVersionUID = -318066740353445032L;Well ,I thought that with this done, I solved the problem, but the warning still remains there..... what can I do??
Answer found:
I had to rebuild that file again so Eclipse could interpret that problem as "solved". Easy as pie :)
Similar Messages
-
ERROR while generating CAP file
Hello,
Iam trying to generate a cap file of JCRMI applet. Iam getting the following errors while generating a CAP file. Can anybody help me.
Thanks in advance,
With Regards,
Abhishek Goud
{color:#ff0000}{color:#008080}*C:\Documents and Settings\Administrator\Desktop\Demo>converter -classdir C:\jav*
a_card_kit-2_2_2\lib -exportpath C:\java_card_kit-2_2_2\api_export_files;C:\java
cardkit-2_2_2\lib -applet 0xa0:0x00:0x00:0x00:0x62:0x03:0x01:0x08:0x01 PurseAp*
plet com.sun.javacard.samples.RMIDemo 0xa0:0x00:0x00:0x00:0x62:0x12:0x34 1.3
{color}
Java Card 2.2.2 Class File Converter, Version 1.3
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to lic
ense terms.
warning: You did not supply export file for the previous minor version of the pa
ckage
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported type long of
field serialVersionUID.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnull in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode aas
tore in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode aas
tore in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ane
warray in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode ifnul
l in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okestatic in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method class$(java.lang.String) of class com.sun.javacard.s
amples.RMIDemo.PurseImpl_Stub.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode aas
tore in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okevirtual in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method getMethod(java.lang.String, java.lang.Class) of clas
s java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode goto
in clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unhandled bytecode pop i
n clinit method, try a different compiler.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode new
in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode inv
okespecial in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String) of class java.lang.NoSuchMe
thodError.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported bytecode ath
row in clinit method.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of method class$.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method forName(java.lang.String) of class java.lang.Class.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported return type
String of invoked method getMessage() of class java.lang.Throwable.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String) of class java.lang.NoClassD
efFoundError.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported long type co
nstant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe long of invoked method invoke(java.rmi.Remote, java.lang.reflect.Method, java
*.lang.Object, long) of class java.rmi.server.RemoteRef.*
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported String type
constant.
error: com.sun.javacard.samples.RMIDemo.PurseImpl_Stub: unsupported parameter ty
pe String of invoked method <init>(java.lang.String, java.lang.Exception) of cla
ss java.rmi.UnexpectedException.
{color}
conversion completed with 73 errors and 1 warnings.It seems there is a variable of type "long" in your applet. The "long" type is not supported by Java Card, so you should remove all variables with type "long".
Otherwise, without the source code, it is difficult to help you find out what's wrong. -
SerialVersionUID exception error
I'm getting the following error, when I use WSAD to send a Document from a WSAD server to a Tomcat client. This code was working fine when I was talking from Tomcat to Tomcat. How can I get this fixed ?
java.io.InvalidClassException: org.apache.xerces.dom.AttributeMap; Local class not compatible: stream classdesc serialVersionUID=-48425980201249810 local class serialVersionUID=8872606282138665383 java.lang.NullPointerExceptionhi , had you changed your class since you had tested tomcat to tomcat? The Nullpointer Excp. normally indicates that
a variable has not been intialized during the readObject-method.
If not, provide a static final long serialVersionUID by hand. Use serialver from the jdk to get the value. then you could suppress this error. But you have to overwrite readObject to do intialisation for every new (added after serialver was used) Non-Standard(Standard: int,boolean ..) variable like java.util.list or so.
Hope this helps.
Greetings Michael -
Error while opening a report in FRstudio client machine.
Hi,I'm getting below error while opening a report in FRstudio client machine. please help me if any of you resolved this issue earlier.
client laptop: 64bit windows7
hyperion version: 11.1.2.2
error msg:
"HARSnapin Initialize() Error -2147467259 - ; nested exception is:
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.InvalidClassException: com.hyperion.reporting.graphics.GridObject; local class incompatible: stream classdesc serialVersionUID = 5432192847655595077, local class serialVersionUID = -5245705824007679661"
thanksI've seen umarshalling error when there is a difference between the client and server version. Is there a patch applied? I would recommend to uninstall the existing one and install if from Workspace. (this will ensure that you've the correct client version)
Regards
Celvin
http://www.orahyplabs.com -
Error while comitting a transaction in oSB. The following is the error stack
Error while comitting a transaction in OSB. The following is the error stack
<Apr 20, 2015 12:00:15 AM MDT> <Error> <EJB> <BEA-010026> <Exception occurred during commit of transaction Xid=BEA1-1AE41F1CAE45F2B146FD(296700848),Status=Rolled back. [Reason=Unknown],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=2,seconds left=120,XAServerResourceInfo[WLStore_SOA_PRDKS_DOMAIN_FileStore_SOA_MS2]=(ServerResourceInfo[WLStore_SOA_PRDKS_DOMAIN_FileStore_SOA_MS2]=(state=new,assigned=none),xar=null,re-Registered = false),XAServerResourceInfo[WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1]=(ServerResourceInfo[WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1]=(state=rolledback,assigned=OSB_MS1),xar=WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_11603460297,re-Registered = false),XAServerResourceInfo[weblogic.jdbc.jta.DataSource]=(ServerResourceInfo[weblogic.jdbc.jta.DataSource]=(state=ended,assigned=none),xar=CMSDS,re-Registered = false),SCInfo[OSB_PRDKS_DOMAIN+OSB_MS1]=(state=rolledback),SCInfo[SOA_PRDKS_DOMAIN+SOA_MS2]=(state=pre-prepared),properties=({}),local properties=({weblogic.jdbc.jta.CMSDS=[ No XAConnection is attached to this TxInfo ]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=OSB_MS1+soaprd-vip-osb-ms1.cos.is.keysight.com:8001+OSB_PRDKS_DOMAIN+t3+, XAResources={eis/wls/Queue, WEDB_EVEREST_OSB_PRDKS_DOMAIN, XREFDS_OSB_PRDKS_DOMAIN, eis/activemq/Queue, CustomSchemaDS_OSB_PRDKS_DOMAIN, MobileApps_CIA_DS1_OSB_PRDKS_DOMAIN, eis/tibjmsDirect/Queue, eis/jbossmq/Queue, eis/Apps/Apps, MobileApps_AOS_MDS_OSB_PRDKS_DOMAIN, MobileApps_AOS_DRDS_OSB_PRDKS_DOMAIN, WSATGatewayRM_OSB_MS1_OSB_PRDKS_DOMAIN, eis/webspheremq/Queue, eis/AQ/aqSample, SBLPROD_OSB_PRDKS_DOMAIN, wlsbjmsrpDataSource_OSB_PRDKS_DOMAIN, eis/aqjms/Queue, CMSDS_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN_WseeFileStore_auto_1, FAP_OSB_PRDKS_DOMAIN, eis/sunmq/Queue, eis/pramati/Queue, FMWAPPDS_OSB_PRDKS_DOMAIN, weblogic.jdbc.jta.DataSource, GSDC_OSB_PRDKS_DOMAIN, eis/tibjms/Topic, eis/fioranomq/Topic, WLStore_OSB_PRDKS_DOMAIN_FileStore_MS1, PresidioOracleAppsDS_OSB_PRDKS_DOMAIN, GSDCDS_OSB_PRDKS_DOMAIN, eis/aqjms/Topic, CustOutDS_OSB_PRDKS_DOMAIN, OFMW/Logging/BAM, MobileAppsDS_OSB_PRDKS_DOMAIN, FIDDS_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN__WLS_OSB_MS1, HRMSDS_OSB_PRDKS_DOMAIN, WEDB_OSB_PRDKS_DOMAIN, OracleAppsDS_OSB_PRDKS_DOMAIN, eis/wls/Topic, eis/tibjms/Queue, eis/tibjmsDirect/Topic, IntrastatDS_OSB_PRDKS_DOMAIN, MobileApps_AOS_COSDS_OSB_PRDKS_DOMAIN, MobileApps_CIA_DS2_OSB_PRDKS_DOMAIN, EVEREST_WEDB_OSB_PRDKS_DOMAIN, WLStore_OSB_PRDKS_DOMAIN_FileStore_auto_1, Everest_OSB_PRDKS_DOMAIN},NonXAResources={})],CoordinatorURL=SOA_MS2+soaprd-vip-soa-ms2.cos.is.keysight.com:8002+SOA_PRDKS_DOMAIN+t3+): javax.transaction.SystemException: Lost connection to server while commit was in progress, ignoring because initiating server is not coordinating server. Remote Exception received=weblogic.rjvm.PeerGoneException: ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.InvalidClassException: oracle.jdbc.xa.OracleXAException; local class incompatible: stream classdesc serialVersionUID = -2542408691177300269, local class serialVersionUID = -4551795881821760665
at weblogic.transaction.internal.TransactionImpl.commit(TransactionImpl.java:376)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:237)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:224)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:552)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:423)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:325)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
at weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)Hi,
Have you tried Cancelling the release before adding the version?
Select the active version of the IDOC Segment and cancel its release first. Only then you will be able to add a version.
Please let me know if it worked!
Vijay -
Error while calling a bpel service from OSB
Hi
I try to call a BPEL service from OSB 10.3 and use these bpel url's
ormi://<hostname>:<rmi port>/<domain name>/<process name>
opmn://<hostname>:<opmn port>/<oc4j instance name>/<domain name>/<process name>
and I create a static service account with ocj4admin
when I try to run the BusinessService then I got this error
WARNING: Exception returned by remote server: {0}
com.evermind.server.rmi.RMIConnectionException: Disconnected: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = -91204487
54896609940, local class serialVersionUID = -916876369326528164
at com.evermind.server.rmi.RmiCallQueue.notifyQueuedThreads(RmiCallQueue.java:70)
at com.evermind.server.rmi.RMIClientConnection.notifyQueuedThreads(RMIClientConnection.java:208)
at com.evermind.server.rmi.RMIClientConnection.resetState(RMIClientConnection.java:147)
at com.evermind.server.rmi.RMIConnection.receiveDisconnect(RMIConnection.java:236)
at com.evermind.server.rmi.RMIClientConnection.receiveDisconnect(RMIClientConnection.java:176)
at com.evermind.server.rmi.RMIConnection.handleOrmiCommand(RMIConnection.java:208)
Please help me out.I am using SOA Server 10.1.3.4 with jdk 1.4.
Regards
Ayush
Edited by: Ayush fujitsu on Apr 6, 2010 3:36 AMHi i have followed the following steps which is specified in this thread
You need to follow below steps...
add a java parameter to the OSB server. Go to domains\osb_domain\bin folder and edit the setDomainEnv file and add this line to this file. set JAVA_PROPERTIES=-Dplatform.home=%WL_HOME% -Dwls.home=%WLS_HOME% -Dweblogic.home=%WLS_HOME% -Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0
Step 2 is to replace the bpel jars in the bpel transport ear. Go folder osb_10.3\lib\transports and open bpel10gtransport.ear and replace the following jar files orabpel.jar, orabpel-common.jar , xmlparserv2.jar and oc4jclient.jar with the ones you can find in the soa suite 10.1.3 home.
But still i am getting the error.
I am using WLS (10.0).Is it compatible with bpel-10g protocol, because i have already called a sync BPEL process with http protocol and it worked?This thread talks about WLS(9.2)
Regards
Ayush -
Error while invoking a Dataservice from client application
Hi,<br><br>
Code snippet of Client to invoke DataService is....<br><br>
Hashtable h = new Hashtable();<br>
h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");<br>
h.put(Context.PROVIDER_URL,"t3://10.1.5.31:7001");<br>
h.put(Context.SECURITY_PRINCIPAL,"weblogic");<br>
h.put(Context.SECURITY_CREDENTIALS,"weblogic"); <br>
Context context = new InitialContext(h);<br>
DataService ds =DataServiceFactory.newDataService(context, "HLCApp","ld:HLCAppDataServices/com/pfizer/hlc/dataservices/HCP_DETAILS"); <br>
<u>DataObject obj= (DataObject) ds.invoke("HCP_DETAILS", null);</u><br>
System.out.println(" HCP details : \n" + obj);
<br><br><br>
The line(which is underlind) is causing the error(I checked by putting some System.outs).
<br>
While invoking a DataService from the Client application(Java Client) I am getting the following error in the console.
<br><br>
Exception in thread "main" com.bea.ld.dsmediator.client.exception.SDOMediatorExc
eption: com.bea.ld.dsmediator.client.exception.SDOMediatorException: weblogic.rj
vm.PeerGoneException: ; nested exception is:
java.io.EOFException
at com.bea.ld.dsmediator.client.XmlDataServiceBase.invoke(XmlDataService
Base.java:114)
at com.pfizer.hlc.DSClient.HCP.main(HCP.java:23)
Caused by: com.bea.ld.dsmediator.client.exception.SDOMediatorException: weblogic
.rjvm.PeerGoneException: ; nested exception is:
java.io.EOFException
at com.bea.ld.dsmediator.client.XmlDataServiceBase.invokeQuery(XmlDataSe
rviceBase.java:183)
at com.bea.ld.dsmediator.client.XmlDataServiceBase.invoke(XmlDataService
Base.java:102)
... 1 more
Caused by: weblogic.rjvm.PeerGoneException: ; nested exception is:
java.io.EOFException
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.j
ava:108)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:290)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
ef.java:248)
at com.bea.ld.Server_ydm4ie_EOImpl_816_WLStub.executeFunction(Unknown So
urce)
at com.bea.ld.dsmediator.client.XmlDataServiceBase.invokeQuery(XmlDataSe
rviceBase.java:157)
... 2 more
Caused by: java.io.EOFException
at weblogic.rjvm.t3.T3JVMConnection.endOfStream(T3JVMConnection.java:897
at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.ja
va:599)
at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:549)
at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:707)
at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:654)
at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:2
82)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:
32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
<br><br><br><br>
<b>And in the server's log file the exception is like below</b><br><br>
<Nov 1, 2006 4:29:31 PM IST> <Error> <RJVM> <gsipl-c2-8> <cgServer> <ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <BEA-000503> <Incoming message header or abbreviation processing failed
<b>java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940</b>
java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
at java.io.ObjectStreamClass.initNonProxy(Ljava.io.ObjectStreamClass;Ljava.lang.Class;Ljava.lang.ClassNotFoundException;Ljava.io.ObjectStreamClass;)V(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
at weblogic.rjvm.ClassTableEntry.readExternal(ClassTableEntry.java:33)
at java.io.ObjectInputStream.readExternalData(Ljava.io.Externalizable;Ljava.io.ObjectStreamClass;)V(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
at weblogic.rjvm.InboundMsgAbbrev.readObject(InboundMsgAbbrev.java:65)
at weblogic.rjvm.InboundMsgAbbrev.read(InboundMsgAbbrev.java:37)
at weblogic.rjvm.MsgAbbrevJVMConnection.readMsgAbbrevs(MsgAbbrevJVMConnection.java:212)
at weblogic.rjvm.MsgAbbrevInputStream.readMessageContext(MsgAbbrevInputStream.java:251)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:748)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:782)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
<br><br><br>
<b>My workstation environment is</b>
Weblogic 8.1 SP6,Aqualogic 2.0 ,os is WindowsXP and JDK is jrockit81sp6_142_10.
<br><br><br>
Does anyone have any idea, why i am getting this error.
<br><br>
Thanks,<br>
Suresh varma.Hi Suresh varma
Did you get any answer for your problem?
I'm having the exact same problem. Working with Weblogic 8.1 SP6 and getting this strange message whenever I'm calling my data service.
I've followed the guidlines given on the URL posted here, and still getting the same message.
Let me know if you have any idea.
Cheers
Rod -
Deployment Error in Weblogic 9.2
Hi,
We are trying to deploy an ear file in Weblogic 9.2 and we are getting the following error in the console -
Unable to access the selected application.
Exception in AppMerge flows' progression.
I have seen from some other posts that doing "java weblogic.appc <ear_file>" might give some idea. I did that after the ear file was created and it shows some errors. Here goes the output of this command:
java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatib
le: stream classdesc serialVersionUID = 4418622981026545151, local class serialV
ersionUID = -9120448754896609940
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.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.util.HashMap.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(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.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 java.util.HashMap.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(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.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.bea.staxb.buildtime.internal.bts.BindingFile.forSer(BindingFile.j
ava:77)
at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingFiles(R
untimeTylar.java:111)
at com.bea.staxb.buildtime.internal.tylar.RuntimeTylar.getBindingLoader(
RuntimeTylar.java:90)
at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindin
gContext(BindingContextFactoryImpl.java:66)
at com.bea.staxb.runtime.internal.BindingContextFactoryImpl.createBindin
gContext(BindingContextFactoryImpl.java:52)
at weblogic.descriptor.internal.MarshallerFactory.<init>(MarshallerFacto
ry.java:48)
at weblogic.descriptor.DescriptorManager$DefaultMarshallerFactorySinglet
on.<clinit>(DescriptorManager.java:40)
at weblogic.descriptor.DescriptorManager.getDefaultMF(DescriptorManager.
java:116)
at weblogic.descriptor.DescriptorManager.getMarshallerFactory(Descriptor
Manager.java:125)
at weblogic.descriptor.DescriptorManager.getDescriptorFactory(Descriptor
Manager.java:153)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorMana
ger.java:277)
at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorMana
ger.java:248)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescript
orBeanFromReader(AbstractDescriptorLoader2.java:749)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescr
iptorBean(AbstractDescriptorLoader2.java:378)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
torBeanWithoutPlan(AbstractDescriptorLoader2.java:720)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
torBean(AbstractDescriptorLoader2.java:729)
at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(A
pplicationDescriptor.java:277)
at weblogic.application.compiler.CompilerCtx.setApplicationDescriptor(Co
mpilerCtx.java:127)
at weblogic.application.compiler.AppcUtils.setDDs(AppcUtils.java:141)
at weblogic.application.compiler.flow.DescriptorParsingFlow.compile(Desc
riptorParsingFlow.java:57)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDri
ver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.EARCompiler.compile(EARCompiler.java:42
at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCo
mpilerFlow.java:118)
at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompile
rFlow.java:43)
at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDri
ver.java:69)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
river.java:26)
at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36
at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
at weblogic.application.compiler.Appc.runBody(Appc.java:163)
at weblogic.utils.compiler.Tool.run(Tool.java:158)
at weblogic.utils.compiler.Tool.run(Tool.java:115)
at weblogic.application.compiler.Appc.main(Appc.java:174)
at weblogic.appc.main(appc.java:14)
javax.xml.namespace.QName; local class incompatible: stream classdesc serialVers
ionUID = 4418622981026545151, local class serialVersionUID = -912044875489660994
0
AND Here are the descriptors - application.xml
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"
version="1.4">
<display-name>dna</display-name>
<description>Drug n Alcohol Testing System</description>
<module>
<java>dnacommon.jar</java>
</module>
<module>
<ejb>dnaAdminVldCd.jar</ejb>
</module>
<module>
<web>
<web-uri>dnaAdminVldCd.war</web-uri>
<context-root></context-root>
</web>
</module>
</application>
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>ValidCdMtnAdminSvlt</servlet-name>
<servlet-class>com.united.tad.servlet.admin.ValidCdMtnAdminSvlt</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ValidCdMtnAdminSvlt</servlet-name>
<url-pattern>ValidCdMtnAdminSvlt</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file></welcome-file>
</welcome-file-list>
</web-app>
weblogic.xml
<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/920"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.bea.com/ns/weblogic/920
http://www.bea.com/ns/weblogic/920/weblogic-web-app.xsd">
<context-root></context-root>
</weblogic-web-app>
ejb-jar.xml
?xml version="1.0" encoding="UTF-8"?>
<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
<enterprise-beans>
<session>
<ejb-name>ValidCdMtnAdmin</ejb-name>
<home>com.united.tad.ejb.admin.ValidCdMtnAdminHome</home>
<remote>com.united.tad.ejb.admin.ValidCdMtnAdminRemote</remote>
<ejb-class>com.united.tad.ejb.admin.ValidCdMtnAdminSessionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<env-entry>
<env-entry-name>DS_JNDI</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>dnatestDataSource</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>UAL_SERVER_TYPE</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>DEVL</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>DB2_QUAL</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>DBADB2</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>PSDB2_QUAL</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>DBAPNPS</env-entry-value>
</env-entry>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>ValidCdMtnAdmin</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
weblogic-ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB//EN'
'http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>ValidCdMtnAdmin</ejb-name>
<enable-call-by-reference>True</enable-call-by-reference>
<jndi-name>ValidCdMtnAdminJNDI</jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
****Have you tried including the following in your setDomainEnv script:
JAVA_OPTIONS="$JAVA_OPTIONS -Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0"
-Jesus -
Not able to run my first Servlet..... 404 error!!!
Hi,
I am new to Java.
I am trying to create a small servlet application. I am using Tomcat 5.5 server and eclipse for this.
I have first writtern a HTML form which on submission is redirected to a servlet that displays the information submitted. but i am not able to evn open the html file through browser, i am getting 404 error.
My html codes and Servlet codes are inside the htmlform package...
When i type http://localhost:8080/htmlform/form.html i am gettig 404 error... Also let me know if any thing is wrong with the codes...
Here is my code...
form.html
<html>
<head>
<title> This is a HTML page </title>
</head>
<body>
<p><h3>This page displays a submission form</h3></p>
<form method="GET" action="/htmlform/LoginServlet">
<p> USERNAME: <input type="text" name="username"/> </p>
<p> PASSWORD: <input type="password" name="password" /> </p>
<p> <input type="submit" value="Press Me" name="submit"/> </p>
</form>
</body>
</html>
LoginServlet.java
package htmlform;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class LoginServlet extends HttpServlet{
private static final long serialVersionUID = 1L;
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
String username = request.getParameter("username");
String password = request.getParameter("password");
pw.println("<html><head><title>This is the out put page</title></head");
pw.println("<body><h2>If you can see this page then your form is cleanly processed</h2><br>");
pw.println("<h2>Congratulations!!!</h2>");
pw.println("<p>Your user name is: "+ username+ "</p>");
pw.println("<p>Your password is: "+ password + "</p>");
pw.println("<br></body></html>");
web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd"> -->
<web-app>
<servlet>
<servlet-name>Login</servlet-name>
<servlet-class>LoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>
</web-app>
Thanks in advanceyou might have other problems, but I think the action attribute in your HTML form is incorrect.
You have:
<form method="GET" action="/htmlform/LoginServlet">Your web.xml says:
<servlet-mapping>
<servlet-name>Login</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>So I think you should change the action like this:
<form method="GET" action="/htmlform/login">Your servlet's not in a package, and you might not be deploying it correctly (god forbid you added this to /ROOT), but try that first.
% -
Error while opening the Interface determination
Hi,
I am working on PI system(unix platform) which is a system copy(from a windows platform).
When i tried opening few interface determinations which are already present in ID, it gives me following Error.
====================================================================
= Root Exception ===================================================
====================================================================
Thrown:
com.sap.aii.utilxi.swing.toolkit.ServerCallCancelledException: Unexpected exception.
at com.sap.aii.ib.clsif.gen.BeanAccessHandler.handleRuntimeExInBusinessMethod(BeanAccessHandler.java:87)
at com.sap.aii.ib.clsif.oa.ObjectAccess.read(ObjectAccess.java:112)
at com.sap.aii.ib.client.oa.ObjectHandler.read(ObjectHandler.java:119)
at com.sap.aii.ib.gui.editor.DefaultPersistenceHandler.load(DefaultPersistenceHandler.java:94)
at com.sap.aii.ib.gui.editor.XiDocument.load(XiDocument.java:249)
at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.load(OpenCommand.java:353)
at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.localOpen(OpenCommand.java:273)
at com.sap.aii.utilxi.swing.framework.cmd.OpenCommand.execute(OpenCommand.java:211)
at com.sap.aii.utilxi.swing.framework.ExecutionContext.execute(ExecutionContext.java:198)
at com.sap.aii.utilxi.swing.framework.ExecutionContext.executeSafe(ExecutionContext.java:154)
at com.sap.aii.ib.gui.operations.OperationsServiceProvider.executeDefaultOperation(OperationsServiceProvider.java:295)
at com.sap.aii.ib.gui.nav.HierarchyNode.executeDefaultOperation(HierarchyNode.java:59)
at com.sap.aii.utilxi.swing.framework.navigation.tree.DefaultTreeCard.handleHierarchyEvent(DefaultTreeCard.java:198)
at com.sap.aii.utilxi.swing.framework.navigation.tree.ThreadedTree.fireHierarchyActionEvent(ThreadedTree.java:542)
at com.sap.aii.utilxi.swing.framework.navigation.tree.ThreadedTree.executeStandardOperation(ThreadedTree.java:2264)
at com.sap.aii.utilxi.swing.framework.navigation.tree.ThreadedTree$DblClickHandler.mouseReleased(ThreadedTree.java:2196)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.sap.aii.utilxi.swing.toolkit.Guitilities$EventProcessor.dispatchEvent(Guitilities.java:319)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: com.sap.engine.services.rmi_p4.P4RuntimeException: Unexpected exception.
at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:643)
at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:612)
at com.sap.engine.services.rmi_p4.reflect.P4InvocationHandler.invokeInternal(P4InvocationHandler.java:160)
at com.sap.engine.services.rmi_p4.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:52)
at $Proxy26.read(Unknown Source)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sap.engine.services.ejb3.runtime.impl.StatelessRemoteStubInvocationHandler.invoke(StatelessRemoteStubInvocationHandler.java:89)
at $Proxy27.read(Unknown Source)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sap.aii.ib.clsif.login.BeanProxy.invoke(BeanProxy.java:114)
at $Proxy27.read(Unknown Source)
at com.sap.aii.ib.clsif.oa.ObjectAccess.read(ObjectAccess.java:101)
... 39 more
Caused by: java.io.InvalidClassException: com.sap.aii.ib.bom.gen.container.ContainerElementState$XsdSimpleState; local class incompatible: stream classdesc serialVersionUID = 42, local class serialVersionUID = -6470496719860432109
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.readOrdinaryObject(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.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.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 java.util.Hashtable.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeReadObject(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.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.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.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.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.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.sap.engine.services.rmi_p4.reflect.P4InvocationHandler.readResult(P4InvocationHandler.java:303)
at com.sap.engine.services.rmi_p4.reflect.P4InvocationHandler.invokeInternal(P4InvocationHandler.java:138)
... 52 moreHi,
This is the problem with the XI system. You have to add some patches.
For that check this link same problem solved here.
PI 7.1 : Java exception creating new "Integration process"
Thanks. -
Error while getting the NotificationTemplate from NotificationService
Hi all
iam intrested in getting NotificationTemplate object using the NotificationService class' api using below code
NotificationTemplate objtemplate =objNotificationService.lookupTemplate(templateName.trim(),enLocale);when i execute the above code iam getting the exception
<Incoming message header or abbreviation processing failed
java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671
java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671I searched this on forums i found that it is due to different versions of the eclipselink.jar so i added the eclipselink.jar in my JDevloper's class path and also added same jar in the
my Jdevloper's weblogic path C:\jdevweblogic11g\oracle_common\modules\oracle.toplink_11.1.1
Still iam getting the the above exception.
please suggest me some solution.Hi all
when i run my below code as a standalone java application the code will execute fine..
NotificationService objNotificationService = client.getService(NotificationService.class);
NotificationTemplate objtemplate =objNotificationService.lookupTemplate(templateName.trim(),enLocale);but when i execute the above mentioned code as a web application using ADF, JDEvloper 11.1.1.4 and weblogic server it will give me error below.
<Jul 13, 2011 10:13:52 AM IST> <Error> <RJVM> <BEA-000503> <Incoming message header or abbreviation processing failed
java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671
java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671
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
>
The exception ; ; nested exception is:
java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671; nested exception is: java.rmi.UnmarshalException: Incoming message header or abbreviation processing failed ; nested exception is:
java.io.InvalidClassException: org.eclipse.persistence.internal.helper.DatabaseTable; local class incompatible: stream classdesc serialVersionUID = -3104383536215490874, local class serialVersionUID = -8219935847209476671
javax.ejb.EJBException: ; nested exception is: so i replace all the refrencence of eclipcselink.jar file in my weblogic enviornment with the same version which iam using.
still iam getting that same exception mentioned above.
so please provide me some pointers to above problem.how we can tell weblogic server to load test. jar file insted of other version of test.jar
Thanks and Regards.
Edited by: Bipin Patil on Jul 12, 2011 11:42 PM -
Error while running the Financial Reporting in Workspace.
Dear Folks
I am facing an issue with FR Report in Workspace
Hyperion Version : 11.1.1.3 on Windows 2003 64 bit.
Problem Description: We are trying to run the FRS reports in workspace and getting an error in a window "
Error Details :
Error "<?xml version="1.0" encoding="UTF-8"?>
<BpmResponse action="" type="error">
<code>0</code>
<desc>; nested exception is:
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.InvalidClassException: com.hyperion.reporting.properties.PovProperties; local class incompatible: stream classdesc serialVersionUID = -1387329505542936014, local class serialVersionUID = 2904510004932374854</desc>
</BpmResponse>"
Please reply me with solution
Thanks in advance.
Thanks , Harsha.MHi Harsha,
Have you ever been able to run this report successfully? If yes, I would restart Reporting and Analysis services and see if it'll solve the issue?
Also, is there any special characters such as !, &, % in the report? If yes, I would try to remove these and re-run the report.
Hope it helps.
Mehmet -
I started using JasperReports for my web application report generation. I'm using JSPs for web development.
I created a .jrxml file using iReport and used the following code to generate the report.
try {
JasperDesign jasperDesign = JRXmlLoader.load("C:\\tomcat\\webapps\\web\\JSP\\reports\\samples\\pmm-final.jrxml");
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
// Second, create a map of parameters to pass to the report.
Map parameters = new HashMap();
parameters.put("Title", "JasperReport");
// Third, get a database connection
Connection conn = null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ=C:/tomcat/webapps/db1/db1.mdb");
// Fourth, create JasperPrint using fillReport() method
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,
parameters, conn);
// You can use JasperPrint to create PDF
//JasperExportManager.exportReportToPdfFile(jasperPrint, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestReport.pdf");
JasperExportManager.exportReportToHtmlFile(jasperPrint, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestPMM.html");
JRXlsExporter exporter = new JRXlsExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "C:\\tomcat\\webapps\\web\\JSP\\reports\\TestPMM.xls");
exporter.exportReport();
// Or to view report in the JasperViewer
//JasperViewer.viewReport(jasperPrint);
} catch (JRException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
The above pmm-final.jrxml uses a subreport 'top.jasper'. Error being thrown while loading top.jasper file. Error is as follows.
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; lo
cal class incompatible: stream classdesc serialVersionUID = 604, local class ser
ialVersionUID = 606
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.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
ader.java:236)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
port.java:295)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
340)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
icalFiller.java:1224)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
rticalFiller.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
erticalFiller.java:205)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
alFiller.java:119)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
613)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
483)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:248)
at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
uide_jsp:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
NESTED BY :
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; lo
cal class incompatible: stream classdesc serialVersionUID = 604, local class ser
ialVersionUID = 606
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.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
ader.java:236)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
port.java:295)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
340)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
icalFiller.java:1224)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
rticalFiller.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
erticalFiller.java:205)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
alFiller.java:119)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
613)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
483)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:248)
at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
uide_jsp:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : C:\tom
cat\webapps\web\JSP\reports\samples\top.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:90
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLo
ader.java:236)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubre
port.java:295)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:
340)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageBand(JRVert
icalFiller.java:1224)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe
rticalFiller.java:353)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV
erticalFiller.java:205)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic
alFiller.java:119)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
613)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:
483)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:77
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:248)
at org.apache.jsp.JSP.UserGuide_jsp._jspService(org.apache.jsp.JSP.UserG
uide_jsp:74)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.ja
va:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBas
eReport; local class incompatible: stream classdesc serialVersionUID = 604, loca
l class serialVersionUID = 606
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.readObject(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:86
... 33 more
Anyone pls help. It's bit urgent. Thanks.I was using iReport v0.5.0 and it uses jasperreports-0.6.7.jar (v0.6.7) of
JasperReports. I compiled and i deployed my application in BEA weblogic server. I got the error listed below. Only after i saw your
response explaining that iReport was the issue, i checked the iReport lib directory and found this version of jasperreport jar.
iReport creates a java source file which is used to a jasper file.
iReport will link in the v0.6.7 version of jasperReports. When you
deploy your web application it will recognize this version through the compiled jasper file and give you the InvalidClassException, even
though you only have one jasperReport jar deployed with your war file.
The way i fixed this problem was to create my web application with the
jasperreport jar comes with iReport.
Thanks for mentioning iReport.
Christopher
Error:
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBas
eReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 10002
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.readNonProxyDesc(ObjectInputStream.java:1521)
... -
Error in deploying ejb in winXP
Hello,
I am not able to deploy any ejb application using weblogic7 in winxp,which i did suceefully in win2000 system.Does xp support weblogic. .I am getting the following errors.
D:\stateless>java weblogic.ejbc slsb.jar
Exception in thread "main" java.io.InvalidClassException: javax.management.MBean
AttributeInfo; local class incompatible: stream classdesc serialVersionUID = 704
3855487133450673, local class serialVersionUID = 8644704819898565848
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:154
6)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:154
6)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:154
6)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:19
12)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
713)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:245)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:184)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:167)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:67)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:51)
at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXM
LElementMBeanImpl.java:8)
at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init
(EJBDescriptorMBeanImpl.java:94)at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:210)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:103)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:88)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:655)
at weblogic.ejbc20.runBody(ejbc20.java:419)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:21)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationException: - with nested excepti
on:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class
incompatible: stream classdesc serialVersionUID = 7043855487133450673, local cl
ass serialVersionUID = 8644704819898565848]
at weblogic.management.internal.Helper.getMBeanInfo(Helper.java:250)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:184)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:167)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:67)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:51)
at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXM
LElementMBeanImpl.java:8)
at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init
(EJBDescriptorMBeanImpl.java:94)at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:210)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:103)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:88)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:655)
at weblogic.ejbc20.runBody(ejbc20.java:419)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:21)
--------------- nested within: ------------------
weblogic.management.configuration.ConfigurationError: No MBeanInfo found for MBe
an with name = null, type = EJBDescriptor, Class = weblogic.management.descripto
rs.toplevel.EJBDescriptorMBeanImpl - with nested exception:
[weblogic.management.configuration.ConfigurationException: - with nested except
ion:
[java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class
incompatible: stream classdesc serialVersionUID = 7043855487133450673, local cl
ass serialVersionUID = 8644704819898565848]]
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:191)
at weblogic.management.internal.DynamicMBeanImpl.<init>(DynamicMBeanImpl
.java:167)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:67)
at weblogic.management.descriptors.XMLElementMBeanDelegate.<init>(XMLEle
mentMBeanDelegate.java:51)
at weblogic.management.descriptors.BaseXMLElementMBeanImpl.<init>(BaseXM
LElementMBeanImpl.java:8)
at weblogic.management.descriptors.toplevel.EJBDescriptorMBeanImpl.<init
(EJBDescriptorMBeanImpl.java:94)at weblogic.ejb20.dd.xml.DDUtils.processEjbJarXML(DDUtils.java:210)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:103)
at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.jav
a:88)
at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:655)
at weblogic.ejbc20.runBody(ejbc20.java:419)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:21)This exception is because there are 2 different versions of your class.
Whenever there is a change in the class properties or attributes,
but server is using the old class file and in the jar file there is a change in class, so you get this InvalidClassException since there is a different version of class on server. -
NotSerializable error while trying to write arraylist
I am getting a NotSerializable error while trying to write an arraylist to a file.
Here's the part of the code causing problem
File temp = fileOpenerAndSaver.getSelectedFile(); // fileOpenerAndSaver is a JFileChooser object which has been created and initialized and was already used to select a file with
currentWorkingFile = new File (temp.getAbsolutePath() + ".gd"); // currentWorking file is a file object
try
ObjectOutput output = new ObjectOutputStream (new BufferedOutputStream(new FileOutputStream(currentWorkingFile)));
output.writeObject(nodeList); // <-- This is the line causing problem (it is line 1475 on which exception is thrown)
output.writeObject(edgeList);
output.writeObject(nodesWithSelfLoop);
output.writeObject(nextId);
output.writeUTF(currentMessage);
output.close();
catch (Exception e2)
JOptionPane.showMessageDialog (graphDrawer, "Unknown error writing.", "Error", JOptionPane.ERROR_MESSAGE);
e2.printStackTrace();
} As far as what nodeList is -- it's an arraylist of my own class Node which has been serialized and any object used inside the class has been serialized as well.
Here is the declaration of nodeList:
private ArrayList <Node> nodeList; // ArrayList to hold a list all the nodesLet me show you whats inside the node class:
private class Node implements Serializable
private static final long serialVersionUID = -4625153386839971250L;
/* edgeForThisNodeList holds all the edges that are between this node and another node
* nodesConnected holds all the nodes that are connected (adjacent) to this node
* p holds the top left corner coordinate of this node. The centre. of this node is at (p.x + 5, p.y + 5)
* hasSelfLoop holds whether this node has a self loop.
* **NOTE**: ONLY ONE SELF LOOP IS ALLOWED FOR A NODE.
ArrayList <Edge> edgeForThisNodeList = new ArrayList <Edge> ();
ArrayList <Node> nodesConnected = new ArrayList <Node> ();
Point p;
boolean hasSelfLoop = false;
int index = -1;
BigInteger id;
... some methods following this....
}Here is the edge class
private class Edge implements Serializable
private static final long serialVersionUID = -72868914829743947L;
Node p1, p2; // The two nodes
Line2D line;
* Constructor:
* Assigns nodes provided as appropriate.
* Also calls the addEdge method on each of the two nodes, and passes
* "this" edge and the other node to the nodes, so that
* this edge and the other node can be added to the
* data of the node.
public Edge (Node p1, Node p2)
this.p1 = p1;
this.p2 = p2;
line = new Line2D.Float(p1.p.x+5,p1.p.y+5,p2.p.x+5,p2.p.y+5);
p1.addEdge(this, p2, true);
p2.addEdge(this, p1, false);
}Here is the error I am getting:
java.io.NotSerializableException: javax.swing.plaf.metal.MetalFileChooserUI
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at MyPanel.save(MyPanel.java:1475)
at GraphDrawer.actionPerformed(GraphDrawer.java:243)
I inentionally did not write the whole error stack because it was way too long and I ran out of characters. But line 1475 is where I do the writeObject call. I also goet some weird not serialized exceptions before on some other classes that are not being written to the file or are not part of the object that I am writing. I serialized those classes and now it's this unknown object that's causing problems.
Edit: The problem may be due to the JFileChooser I am using to select the file as it is a non-serializable object. But I am not trying to write it to the file and in fact am just writing the arrayLists and BigInteger as objects to the file.
Edited by: Cricket_struck on Dec 21, 2009 1:25 PM
Edited by: Cricket_struck on Dec 21, 2009 1:32 PM
Edited by: Cricket_struck on Dec 21, 2009 2:16 PMjava.io.NotSerializableException: javax.swing.plaf.metal.MetalFileChooserUIThat's a Swing component and it is clearly related to the JFileChooser.
I also get some weird not serialized exceptions before on some other classes that are not being written to the file or are not part of the object that I am writing.That's a contradiction in terms. If you get NotSerialzableException it means the objects are being written. So they are reachable from the objects you're writing.
Edit: The problem may be due to the JFileChooser I am using to select the file as it is a non-serializable object.JFileChooser implements Serializable, but you're right, you shouldn't try to serialize it. But clearly this is the current problem. Somewhere you have a reference to it reachable via the object(s) you are serializing.
I suspect that Node and Edge inner classes and that you aren't aware that inner classes contain a hidden reference to their containing class. The solution for serializaition purposes is to make them static nested classes, or outer classes.
Maybe you are looking for
-
PO and down pmt made in last F.Y and now cancel PO w/out cancel the down p
Hello Guru's Please help me for below scenario. Our client was created Imported PO and down payment made in last F.Y and now some reasons they want to cancel the PO and create new domestic PO with same PR. But down payment was cleared and accounts ar
-
Wildcard SSL Server 3.2.1
I purchased a wildcard SSL certificate from Go Daddy. My public website is hosted by go daddy (www.example.com). I have a server (OS X 10.9.5, Server 3.2.1) in the office to handle printer, file sharing, profile manager, etc. (server.example.com) I w
-
HI all, when saved shipment cost document I cannot find service PO in reference tab.Why service PO is not created.Did I missed any settings (Service vendor exists)any helps?
-
Install correct versions of Forms (etc), Jdeveloper and Weblogic
Hello, We are upgrading from forms 10g. We want to be able to upgrade to the most recent (or almost most recent) versions of Forms, but we also want Jdeveloper. I know from experience that you need the proper version of jdeveloper to go with the prop
-
Why does my phone say invalid sim and why can I not phone or send messages on it
I cannot use phone or text today. What is problem?