Error decrypting with Java Cipher
My program encrypts properly, but while decrypting I get this error:
Error Input length (with padding) not multiple of 8 bytes
Any idea??? Please, HELP!
protected byte[] decrypt(byte[] buffer,char[] passwd)
byte[] salt={(byte)0xd4,(byte)0xa3,(byte)0xff,(byte)0x9e,(byte)0x12,(byte)0xc7,(byte)0xd0,(byte)0x84};
byte[] plainTxt=null;
Cipher c=null;
PBEParameterSpec paramSpec=null;
SecretKey passwordKey=null;
try
paramSpec=new PBEParameterSpec(salt,20);
PBEKeySpec keySpec=new PBEKeySpec(passwd);
SecretKeyFactory kf=SecretKeyFactory.getInstance("PBEWithMD5AndDES");
passwordKey=kf.generateSecret(keySpec);
c=Cipher.getInstance("PBEWithMD5AndDES");
c.init(Cipher.DECRYPT_MODE, passwordKey, paramSpec);
plainTxt=c.doFinal(buffer);
catch (Exception e)
System.out.println("Error "+ e.getMessage());
System.exit(0);
return plainTxt;
}
Below is the test harness I wrapped round your code and for me it works without the errors you say you get!
Your code could be made much more rugged and efficient but it works.
import javax.crypto.*;
import javax.crypto.spec.*;
import java.security.*;
import java.security.spec.*;
public class Test4 {
protected byte[] decrypt(byte[] buffer,char[] passwd) {
byte[] salt={(byte)0xd4,(byte)0xa3,(byte)0xff,(byte)0x9e,(byte)0x12,(byte)0xc7,(byte)0xd0,(byte)0x84};
byte[] plainTxt=null;
Cipher c=null;
PBEParameterSpec paramSpec=null;
SecretKey passwordKey=null;
try {
paramSpec=new PBEParameterSpec(salt,20);
PBEKeySpec keySpec=new PBEKeySpec(passwd);
SecretKeyFactory kf=SecretKeyFactory.getInstance("PBEWithMD5AndDES");
passwordKey=kf.generateSecret(keySpec);
c=Cipher.getInstance("PBEWithMD5AndDES");
c.init(Cipher.DECRYPT_MODE, passwordKey, paramSpec);
plainTxt=c.doFinal(buffer);
} catch (Exception e) {
System.out.println("Error "+ e.getMessage());
System.exit(0);
return plainTxt;
protected byte[] encrypt(byte[] buffer,char[] passwd) {
byte[] salt={(byte)0xd4,(byte)0xa3,(byte)0xff,(byte)0x9e,(byte)0x12,(byte)0xc7,(byte)0xd0,(byte)0x84};
byte[] cipherTxt=new byte[buffer.length];
Cipher c=null;
PBEParameterSpec paramSpec=null;
SecretKey passwordKey=null;
try {
paramSpec=new PBEParameterSpec(salt,20);
PBEKeySpec keySpec=new PBEKeySpec(passwd);
SecretKeyFactory kf=SecretKeyFactory.getInstance("PBEWithMD5AndDES");
passwordKey=kf.generateSecret(keySpec);
c=Cipher.getInstance("PBEWithMD5AndDES");
c.init(Cipher.ENCRYPT_MODE,passwordKey,paramSpec);
cipherTxt=c.doFinal(buffer);
} catch (Exception e) {
System.out.println("Error "+ e.getMessage());
System.exit(0);
return cipherTxt;
public static void main(String[] args) {
try {
// Make sure SUN are a valid provider
Security.addProvider(new com.sun.crypto.provider.SunJCE());
char[] passphrase = "sabre150".toCharArray();
Test4 agent = new Test4();
// Get the dataString to encrypt from the command line
String dataString = "The quick brown fox jumps over the lazy dog.";
byte[] dataBytes = dataString.getBytes("UTF8");
System.out.println("Data string ....................[" + dataString + "]");
// Encrypt the data
byte[] encryptedBytes = agent.encrypt(dataBytes, passphrase);
// Decrypt the data
byte[] recoveredDataBytes = agent.decrypt(encryptedBytes, passphrase);
String recoveredDataString = new String(recoveredDataBytes, "UTF8");
System.out.println("Recovered data string ..........[" + recoveredDataString + "]");
} catch (Exception e) {
e.printStackTrace();
}
Similar Messages
-
XML Publisher errors out with java.lang.IndexArrayOutofBounds 5 =5 when out
Hi Everyone,
I have a particular report which has some dynamic columns involved.
On certain cases (more than 5 dynamic columns) when the report is run with output as PDF it gives out an error java.lang.IndexArrayOutofBounds 5>=5 (where the number differs for each case)
But for the same data when i use output type as HTML or EXCEL the output is coming out to be fine.
<?for-each-group@column: G_TRADING_PARTNER_NAME3;BID_NUMBER2?> for the column header of the dynamic columns
<?for-each-group@cell:G_TRADING_PARTNER_NAME3;BID_NUMBER2?> for the column data
My version of XMLP is 5.6.0
and apps version is 11.5.10.2
Is there anything that needs to be changed for the PDF output ?
Kindly let me know in case your have come across such issues.
Thanks
AnoopGlad you have sorted this - note that the fnd_concurrent_requests table has the fields pp_Start_date and pp_end_date which will show how long post processing is taking.
Good to a good idea to monitor this in relation to the setting you have made in the profile option Concurrent:OPP Timeout profile option though 3 hours should cover most things!!!! -
Error Compiling With java.mail.Session class
Hi,
The Java compiler issues an error message (below) during compilation of the following line:
Session session = Session.getDefaultInstance( fMailServerConfig, null );
The error message is:
bad class file: c:\j2ee_sdk\lib\j2ee.jar(javax/mail/Session.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
javax.mail.Session session = javax.mail.Session.getDefaultInstance( fMailServerConfig, null );
I have tried switching between JDKs by changing the JAVA_HOME environment variable between JDKs 1.3.x to 1.4.x to 1.5.x and also to the JDK installed with the 2005 Q1 J2EE installation that I am using.
Any ideas on how to resolve this problem? And help would be GREATLY appreciated.
Thanks!!!
Stuart Hoffmanin Session session = Session.getDefaultInstance( fMailServerConfig, null ); pass the object of properties class instead of mailServerconfig
now your problem are solved -
When starting oem Agent ir error out with java.lang.NoClassDefFoundError: o
Hi ,
Facing below error when starting oem agent with comand./emctl start oms
Oracle Enterprise Manager 10g Release 4 Grid Control
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
opmnctl: opmn is already running
93938978
ADMN-202045
An exception occurred while constructing the OracleAS Repository API, a DCM dependent component.
Resolution:
This exception may be occurring because the ias.properties file is misconfigured.
Check the exception thrown by the OracleAS Repository API for any additional resolution information.
Base Exception:
java.lang.NoClassDefFoundError
oracle/security/jazn/util/JAZNSecurityManager
java.lang.NoClassDefFoundError: oracle/security/jazn/util/JAZNSecurityManager
at oracle.ias.sysmgmt.persistence.SeedDbAccess.<init>(Unknown Source)
at oracle.ias.sysmgmt.persistence.SeedDbAccess.getDbAccess(Unknown Source)
at oracle.ias.sysmgmt.persistence.SeedDbAccess.getDbAccess(Unknown Source)
at oracle.ias.sysmgmt.clustermanagement.ComponentTypeFactory.init(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.checkInit(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.execute(Unknown Source)
at oracle.ias.sysmgmt.cmdline.DcmCmdLine.main(Unknown Source)
Starting HTTP Server ...
Starting Oracle Management Server ...
Checking Oracle Management Server Status ...
Oracle Management Server is Down. -
Connection error -2147217387 with Java RAS SDK and Crystal Server 2011
Due to a change in operating system, we are required to upgrade our Crystal Reports server from BusinessObjects Crystal Reports Server 11.5 to SAP Crystal Server 2011. We use the Java RAS SDK (RASCore 9.2.2.446 / RASApp 9.0) more or less as described in Java RAS2008-unmanaged exportreport. We use the Crystal Server to export reports stored on disk as PDF files.
In SAP Crystal Server 2011, the CrystalReports2011ReportApplicationServer is configured with Request Port 1566 and Host Identifier 172.16.4.154 (the local machine). The Crystal Server, report-definition files, and Java VM are all on the same machine.
The error is
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: XML serialization failed.---- Error code:-2147217387 Error code name:connectServer
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.v.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.ab.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.do(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.for(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
at ourpackage.OurClass.openReport(OurClass.java:95)
... 6 more
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.net.SocketInputStream.read(SocketInputStream.java:203)
at java.io.DataInputStream.readInt(DataInputStream.java:388)
The code is as follows.
ReportClientDocument clientDocument = new ReportClientDocument();
clientDocument.setReportAppServer("172.16.4.154:1566"); // localhost
// Error occurs on ReportClientDocument.open method
clientDocument.open("D:\\path\\to\\report.rpt", com.crystaldecisions.sdk.occa.report.application.OpenReportOptions.refreshRepositoryObjects.value());
DatabaseController dbController = clientDocument.getDatabaseController();
dbController.logon("dbuser", "dbpassword");
ParameterFieldController pfController = clientDocument.getDataDefController().getParameterFieldController();
Fields fields = clientDocument.getDataDefinition().getParameterFields();
ParameterField oldParameter = (ParameterField) field.get(0);
ParameterField newParameter = new ParameterField();
oldParameter.copyTo(newParameter, false);
newParameter.getCurrentValues().clear();
ParameterFieldDiscreteValue newDiscreteValue = new ParameterFieldDiscreteValue();
newDiscreteValue.setValue("paramValue");
newParameter.getCurrentValues().add(0, newDiscreteValue);
pfController.modify(oldParameter, newParameter);
clientDocument.refreshReportDocument();
PrintOutputController po = clientDocument.getPrintOutputController();
InputStream is = po.export(reportFormat);
Could anyone advise me how to proceed with resolving this error?Thanks for the link. I copied the CrystalReportsSDK.jar and logging.jar from the Crystal Server java\lib directory into my project and revised the code accordingly. Now, a slightly different error occurs at the same place:
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: {0}. --- Connection reset by peer: socket write error---- Error code:-2147217387 [CRSDK00000039] Error code name:connectServer
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(ReportSDKServerException.java:115)
at com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.request(TCPIPCommunicationAdapter.java:659)
at com.crystaldecisions.proxy.remoteagent.AdapterCommunicationChannel.send(AdapterCommunicationChannel.java:88)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.request(ReportAppSession.java:382)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.logon(ReportAppSession.java:342)
at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(ReportAppSession.java:330)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initializeServerConnectionAdapter(ClientDocument.java:627)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initializeServerConnection(ClientDocument.java:658)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.initializeServerConnection(ReportClientDocument.java:1420)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(ClientDocument.java:982)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.open(ReportClientDocument.java:226)
at ourPackage.OurClass.openReport(OurClass.java:97)
The revised code is
ReportClientDocument clientDocument = new ReportClientDocument();
clientDocument.setReportAppServer("172.16.4.154:1566"); // localhost
// Error occurs here
clientDocument.open("D:\\path\\to\\report.rpt", com.crystaldecisions.sdk.occa.report.application.OpenReportOptions.openAsReadOnly.value()); -
Large Report Errors out with Java Heap Space in EBS 12.0.6
When running custom or Standard BI report that have a huge data , we get a following error in EBS
[UNEXPECTED] [156627:RT4605044] java.lang.OutOfMemoryError: Java heap space
at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:45)
at java.lang.StringBuffer.<init>(StringBuffer.java:91)
at oracle.apps.xdo.template.fo.FOHandler.init(FOHandler.java:161)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(FOProcessingEngine.java:335)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:1045)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:259)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
We have tried the follwing workaroud mentioned in the docoment 737311.1
A)
1)update FND_CP_SERVICES set DEVELOPER_PARAMETERS =
'J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx5120m'
where SERVICE_ID = (select MANAGER_TYPE from FND_CONCURRENT_QUEUES
where CONCURRENT_QUEUE_NAME = 'FNDCPOPP');
2)As XML Publisher Administrator navigate to Administration->Configuration.
Under Temporary Directory pick a temporary file location on your concurrent processing node. This should be at least 5GB or 20x larger than largest XML data file you generate
Under FO Processing, set:
Use XML Publisher's XSLT processor set to True
Enable scalable feature of XSLT processor set to False (see #4 below),
Enable XSLT runtime optimization set to True
3)We also have tried to to apply the workaround mentioned in the document 747750.1
In to Concurrent -> Program -> Define, in the 'Executable' group, there is a field named 'Options'.
Enter the value '-ms1024m -mx1024m' as the value for this field.
None of these seem to have worked.
Also refered to the the previous forum entries on these. But did not find anything specific to EBS. Most of them were related to Standalone installations.
CAn anyone help me.
Dhaval Khi gurus
The problem has sovled.I supplyed the wrong file for the rawfile.conf,everything was fine after I provided the corrent one.
Thanks for your time. -
Dbca errors out with java.lang.OutOfMemoryError: Java heap space
hi gurus
I am trying to use DBCA to create a 10.2.0.4 database on a HP platform.DBCA hangs at the step 6 and following message can be seen in the
trace.log:
java.lang.OutOfMemoryError: Java heap space
I googled and modified the DBCA scripts content from
# Run DBCA
$JRE_DIR/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$OH -DDISPLAY=$DISPLAY -DJDBC_PROTOCOL=thin -mx128m
-classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
to
# Run DBCA
$JRE_DIR/bin/java -Dsun.java2d.font.DisableAlgorithmicStyles=true -DORACLE_HOME=$OH -DDISPLAY=$DISPLAY -DJDBC_PROTOCOL=thin -mx256m
-classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
and rerun the DBCA and the problem still there.
How to solve this problem?
Thanks !
Edited by: KevinMao on Mar 31, 2010 2:39 AM
Edited by: KevinMao on Mar 31, 2010 2:42 AMhi gurus
The problem has sovled.I supplyed the wrong file for the rawfile.conf,everything was fine after I provided the corrent one.
Thanks for your time. -
Using jce with java 1.3.1
Hi,
I use Java 1.3.1, jce 1.2.2 and eclipse.
To include the packet added it with �Project/Properties/ Add External JARs� but when I compile the program I get the following errors:
compile:
[javac] Compiling 10 source files to D:\MyTemp\ZFProjectView\build\temp\projectviewer
[javac] D:\MyTemp\ZFProjectView\src\projectviewer\DesEncrypter.java:3: package javax.crypto does not exist
[javac] import javax.crypto.*;
[javac] ^
[javac] D:\MyTemp\ZFProjectView\src\projectviewer\DesEncrypter.java:5: package javax.crypto.spec does not exist
[javac] import javax.crypto.spec.*;
[javac] ^
[javac] D:\MyTemp\ZFProjectView\src\projectviewer\DesEncrypter.java:15: cannot resolve symbol
[javac] symbol : class Cipher
[javac] location: class projectviewer.DesEncrypter
[javac] Cipher ecipher;
[javac] ^
Is it necessary to expand the classpath in the build.xml file or something like this?
ThanksI know its too late to answer your query... but just thought if not you there might be other people who may search solution for the same error.
Java 1.3 does not contains these packages... these are included in java 1.4 on wards.
If you want to do some encryption / decryption with java 1.3 i can provide you a link that might be of some help.
http://www.builderau.com.au/program/java/soa/Install-and-utilise-JCE/0,339024620,320264469,00.htm?feed=pt_library
<Happy Coding>
Cheers,
Jags -
Getting Error while integrating Crystal reports with Java
Hi All,
I am getting below error while integrating crystal report with java
[java] os.arch = x86
[java] java.lang.NoSuchMethodError: com.crystaldecisions.Utilities.d.<init>
(Ljava/awt/Image;I)V
[java] at com.crystaldecisions.Utilities.af.try(Unknown Source)
[java] at com.crystaldecisions.Utilities.af.a(Unknown Source)
[java] at com.crystaldecisions.Utilities.af.<init>(Unknown Source)
[java] at com.businessobjects.crystalreports.viewer.applet.g.a(Unknown
Source)
[java] at com.crystaldecisions.ReportViewer.ReportViewer.start(Unknown
Source)
[java] at ReportViewerFrame.<init>(ReportViewerFrame.java:51)
[java] at JRCViewReport.launchApplication(JRCViewReport.java:29)
[java] at JRCViewReport$1.run(JRCViewReport.java:50)
[java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
178)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
[java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:190)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:144)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:138)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:130)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Any help can be appreciated
KalyanHi All,
For got to mention i am using crystal reports XI release 2 with JDK1.4.
Kalyan -
Lookup in Xi using XSLT with Java enhancement "Error"
Hi Experts,
I need your advice urgently.
I have done message mapping using XSLT mapping with Java enhancement.
I included the code for SAP DB connection to read from the table.
I imported both the sapdbc-7_6_00_30_5567 Driver.jar and my custom jar into imported archives.
I used the java functions in my XSLT to get the lookup value.
The code was working correctly in NWDS, but when i tried to execute the scenario, it gave me 'SYSTEM ERROR'
Following is the error as seen in SXMB_MONI
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">TRANSFORMER_EXCEPTION</SAP:Code>
<SAP:P1>PortalTransaction_EP_to_Insert_EP_DB</SAP:P1>
<SAP:P2>http://ab.com/xys/subscription</SAP:P2>
<SAP:P3>8abf9c80-ad4a-11db-bb9a-ccaaac110865</SAP:P3>
<SAP:P4>-1</SAP:P4>
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Exception occurred during XSLT mapping of the application</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Following is the DEBUG trace when i tries to test the Interface Mapping
Creating mapping sequence with 2 steps.
Creating step 0
Creating XSLT mapping PortalTransaction_SUBSYS_to_PortalTransaction_EP
Creating step 1
Creating XSLT mapping PortalTransaction_EP_to_Insert_EP_DB
Start executing mapping sequence with 2 steps.
Executing mapping step 0
Call XSLT processor with stylsheet PortalTransaction_SUBSYS_to_PortalTransaction_EP.xsl.
Returned form XSLT processor.
XSLT transformation: PortalTransaction_SUBSYS_to_PortalTransaction_EP.xsl completed with 0 warning(s).
Mapping step 0 has been executed.
Executing mapping step 1
Call XSLT processor with stylsheet PortalTransaction_EP_to_Insert_EP_DB.xsl.
Loaded class com.cityandguilds.clasp.xi.DateTimeFunctions
Method fatalError called, terminate transformation
javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: java.lang.ClassNotFoundException: Class doesn't have appropriate method! -> java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:251) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150) at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81) at com.sap.aii.ibrep.server.mapping.ibrun.RepSequenceMapping.execute(RepSequenceMapping.java:54) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127) at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:167) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: com.sap.engine.lib.xml.util.NestedException: java.lang.ClassNotFoundException: Class doesn't have appropriate method! -> java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:65) at com.sap.engine.lib.xsl.xpath.JLBLibrary.getFunction(JLBLibrary.java:107) at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:76) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:98) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:83) at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:56) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:43) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:51) at com.sap.engine.lib.xsl.xslt.XSLVariable.process(XSLVariable.java:132) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:463) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:431) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:394) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:398) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:240) ... 19 more Caused by: java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.init(JLBFunction.java:273) at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:63) ... 34 more -
com.sap.engine.lib.xml.util.NestedException: java.lang.ClassNotFoundException: Class doesn't have appropriate method! -> java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.init(JLBFunction.java:273) at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:63) at com.sap.engine.lib.xsl.xpath.JLBLibrary.getFunction(JLBLibrary.java:107) at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:76) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:98) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:83) at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:56) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:43) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:51) at com.sap.engine.lib.xsl.xslt.XSLVariable.process(XSLVariable.java:132) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:463) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:431) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:394) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:398) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:240) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150) at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81) at com.sap.aii.ibrep.server.mapping.ibrun.RepSequenceMapping.execute(RepSequenceMapping.java:54) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127) at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:167) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) -
at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:65) at com.sap.engine.lib.xsl.xpath.JLBLibrary.getFunction(JLBLibrary.java:107) at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:76) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:98) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:83) at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:56) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:43) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:51) at com.sap.engine.lib.xsl.xslt.XSLVariable.process(XSLVariable.java:132) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:463) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:431) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:394) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:398) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:240) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150) at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81) at com.sap.aii.ibrep.server.mapping.ibrun.RepSequenceMapping.execute(RepSequenceMapping.java:54) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127) at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:167) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.init(JLBFunction.java:273) at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:63) ... 34 more
TransfromerException during XSLT processing:
javax.xml.transform.TransformerException: com.sap.engine.lib.xml.util.NestedException: java.lang.ClassNotFoundException: Class doesn't have appropriate method! -> java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:251) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150) at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81) at com.sap.aii.ibrep.server.mapping.ibrun.RepSequenceMapping.execute(RepSequenceMapping.java:54) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127) at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:167) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: com.sap.engine.lib.xml.util.NestedException: java.lang.ClassNotFoundException: Class doesn't have appropriate method! -> java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:65) at com.sap.engine.lib.xsl.xpath.JLBLibrary.getFunction(JLBLibrary.java:107) at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:76) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:98) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:83) at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:56) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:43) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:51) at com.sap.engine.lib.xsl.xslt.XSLVariable.process(XSLVariable.java:132) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:463) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:431) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:394) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:398) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:240) ... 19 more Caused by: java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.init(JLBFunction.java:273) at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:63) ... 34 more -
com.sap.engine.lib.xml.util.NestedException: java.lang.ClassNotFoundException: Class doesn't have appropriate method! -> java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.init(JLBFunction.java:273) at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:63) at com.sap.engine.lib.xsl.xpath.JLBLibrary.getFunction(JLBLibrary.java:107) at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:76) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:98) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:83) at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:56) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:43) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:51) at com.sap.engine.lib.xsl.xslt.XSLVariable.process(XSLVariable.java:132) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:463) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:431) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:394) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:398) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:240) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150) at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81) at com.sap.aii.ibrep.server.mapping.ibrun.RepSequenceMapping.execute(RepSequenceMapping.java:54) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127) at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:167) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) -
at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:65) at com.sap.engine.lib.xsl.xpath.JLBLibrary.getFunction(JLBLibrary.java:107) at com.sap.engine.lib.xsl.xpath.LibraryManager.getFunction(LibraryManager.java:76) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:98) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:83) at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:56) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:43) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:51) at com.sap.engine.lib.xsl.xslt.XSLVariable.process(XSLVariable.java:132) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:296) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:272) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:463) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:431) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:394) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:398) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:240) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingTransformer.transform(RepMappingTransformer.java:150) at com.sap.aii.ibrep.server.mapping.ibrun.RepXSLTMapping.execute(RepXSLTMapping.java:81) at com.sap.aii.ibrep.server.mapping.ibrun.RepSequenceMapping.execute(RepSequenceMapping.java:54) at com.sap.aii.ibrep.server.mapping.ibrun.RepMappingHandler.run(RepMappingHandler.java:80) at com.sap.aii.ibrep.server.mapping.rt.MappingHandlerAdapter.run(MappingHandlerAdapter.java:107) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInterfaceMapping(ServerMapService.java:127) at com.sap.aii.ibrep.server.mapping.ServerMapService.transform(ServerMapService.java:104) at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.transform(MapServiceBean.java:40) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.transform(MapServiceRemoteObjectImpl0.java:167) at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:104) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: java.lang.ClassNotFoundException: Class doesn't have appropriate method! at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.init(JLBFunction.java:273) at com.sap.engine.lib.xsl.xpath.functions.JLBFunction.<init>(JLBFunction.java:63) ... 34 more
17:44:11 End of test
Thanks in advance,
MonaHi,
Thanks to all who replied.
I solved the problem.
I was calling the java method from XSLT without passing any arguement.
I realised that the java methods called from XSLT should always have input parameter. So i changed the javamethod call from
public static String getCurrentRecNo() to public static String getCurrentRecNo(Object test)
and it worked.
Can anybody explain me why java methods called from XSLT should always have an input arguement.
Thanks
Mona -
Error When I Deploy Dependent DC With Java DC
Hai ,
When i deployed Dependent Dc With Java Dc I got the floowing Error please let me know the solution . for all applications .
500 Internal Server Error
SAP NetWeaver Application Server/Java AS
The initial exception that caused the request to fail, was:
java.lang.ClassNotFoundException: com.outokumpu.roma.service.model.RomaListValue -
Loader Info -
ClassLoader name: [outokumpu.com/romamast] Living status: alive Direct parent loaders: [system:Frame] [service:servlet_jsp] [service:ejb] [outokumpu.com/csdeploy] [outokumpu.com/romamodel] [outokumpu.com/romaexp] [outokumpu.com/lookup] Resources: /usr/sap/S72/J02/j2ee/cluster/apps/outokumpu.com/romamast/servlet_jsp/webdynpro/resources/outokumpu.com/romamast/root/WEB-INF/lib/app.jar -
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:259)
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:228)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:353)
at com.outokumpu.romamast.romamastcomp.wdp.InternalRomaMastComp.<init>(InternalRomaMastComp.java:140)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
... 115 moreYou have you references and dependecies wrong. Very few, if any of us, are clairvoyant.
If you really want to to get help; and there is someone who feels they want to help and has the requisite understanding... you need to provide a proper and complete explanation of your dependencies and setup.
You need to get your references right and dependencies right. -
Reposinst Fails With Java Error on OWB 10.2.0.4
When Warehouse Builder repository creation (reposinst.sh) goes up to 21% (build repository owner) and dies with :
Before processing SPAWN Token
*... I am in processSPAWN ...*
wholeLine =../unix/jvm.sh -classpath ../../../lib/transx.zip:../../../lib/xschema.jar:../../../lib/xsu12.jar:../../../rdbms/jlib/xdb.jar:../../lib/int/rtpplatform.jar:../../lib/int/rtpcommon.jar:../../../jdbc/lib/ojdbc14.jar:../../../lib/xmlparserv2.jar:../../../sqlj/lib/runtime12.jar:../../../jdk/jre/lib/rt.jar oracle.xml.transx.loader (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=%host)(PORT=%port))(CONNECT_DATA=(SERVICE_NAME=%serviceName))) %user %password ../../browserasst/views/owb_uprop_nls.xml
Connection: host/port/serice_name = HOST_NUMBER/PORT_NUMBER/BASE
url = (DESCRIPTION=(ADDRESS=(HOST=HOST_NUMBER)(PROTOCOL=tcp)(PORT=PORT_NUMBER))(CONNECT_DATA=(SERVICE_NAME=BASE)))
*[getConnection]....*
after executing the output
*(Spawn Token) Error loading Java into DB:*
Error occured in 'processSPAWN': java.io.BufferedInputStream@6b93c5
java.lang.Exception: Error occured in 'processSPAWN': java.io.BufferedInputStream@6b93c5
at oracle.wh.service.impl.assistant.ProcessEngine.processSPAWN(ProcessEngine.java:886)
at oracle.wh.service.impl.assistant.ProcessEngine.processFileTokens(ProcessEngine.java:583)
at oracle.wh.service.impl.assistant.ProcessEngine.createOWBRepository(ProcessEngine.java:269)
at oracle.wh.ui.install.assistant.wizards.AssistantWizardDefinition$4.runTask(AssistantWizardDefinition.java:531)
at oracle.ewt.thread.TaskScheduler.runTask(Unknown Source)
at oracle.ewt.thread.TaskScheduler.processTask(Unknown Source)
at oracle.ewt.thread.TaskScheduler$TaskQueue.run(Unknown Source)
at oracle.ewt.timer.Timer.doRun(Unknown Source)
at oracle.ewt.timer.Timer.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
*[processSPAWN]: A spawned program error. Exception = java.lang.Exception: Error occured in 'processSPAWN': java.io.BufferedInputStream@6b93c5*
Get the error, stop processing other tokens...
java.lang.Exception: Error occured in 'processSPAWN': java.io.BufferedInputStream@6b93c5
at oracle.wh.service.impl.assistant.ProcessEngine.processSPAWN(ProcessEngine.java:886)
at oracle.wh.service.impl.assistant.ProcessEngine.processFileTokens(ProcessEngine.java:583)
at oracle.wh.service.impl.assistant.ProcessEngine.createOWBRepository(ProcessEngine.java:269)
at oracle.wh.ui.install.assistant.wizards.AssistantWizardDefinition$4.runTask(AssistantWizardDefinition.java:531)
at oracle.ewt.thread.TaskScheduler.runTask(Unknown Source)
at oracle.ewt.thread.TaskScheduler.processTask(Unknown Source)
at oracle.ewt.thread.TaskScheduler$TaskQueue.run(Unknown Source)
at oracle.ewt.timer.Timer.doRun(Unknown Source)
at oracle.ewt.timer.Timer.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Exception = Exception occured in 'processSPAWN'. java.lang.Exception: Error occured in 'processSPAWN': java.io.BufferedInputStream@6b93c5
java.lang.Exception: Exception occured in 'processSPAWN'. java.lang.Exception: Error occured in 'processSPAWN': java.io.BufferedInputStream@6b93c5
at oracle.wh.service.impl.assistant.ProcessEngine.processSPAWN(ProcessEngine.java:898)
at oracle.wh.service.impl.assistant.ProcessEngine.processFileTokens(ProcessEngine.java:583)
at oracle.wh.service.impl.assistant.ProcessEngine.createOWBRepository(ProcessEngine.java:269)
at oracle.wh.ui.install.assistant.wizards.AssistantWizardDefinition$4.runTask(AssistantWizardDefinition.java:531)
at oracle.ewt.thread.TaskScheduler.runTask(Unknown Source)
at oracle.ewt.thread.TaskScheduler.processTask(Unknown Source)
at oracle.ewt.thread.TaskScheduler$TaskQueue.run(Unknown Source)
at oracle.ewt.timer.Timer.doRun(Unknown Source)
at oracle.ewt.timer.Timer.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
java.lang.Exception: Exception occured in 'processSPAWN'. java.lang.Exception: Error occured in 'processSPAWN': java.io.BufferedInputStream@6b93c5
at oracle.wh.service.impl.assistant.ProcessEngine.processSPAWN(ProcessEngine.java:898)
at oracle.wh.service.impl.assistant.ProcessEngine.processFileTokens(ProcessEngine.java:583)
at oracle.wh.service.impl.assistant.ProcessEngine.createOWBRepository(ProcessEngine.java:269)
at oracle.wh.ui.install.assistant.wizards.AssistantWizardDefinition$4.runTask(AssistantWizardDefinition.java:531)
at oracle.ewt.thread.TaskScheduler.runTask(Unknown Source)
at oracle.ewt.thread.TaskScheduler.processTask(Unknown Source)
at oracle.ewt.thread.TaskScheduler$TaskQueue.run(Unknown Source)
at oracle.ewt.timer.Timer.doRun(Unknown Source)
at oracle.ewt.timer.Timer.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
before open 'UnSuccessDialog'
*Posting GUI_FINISHED on oracle.wh.ui.owbcommon.OWBWizard$7[frame0,157,58,700x572,invalid,layout=java.awt.BorderLayout,title=Repository Assistant - Summary,resizable,normal,defaultCloseOperation=DO_NOTHING_ON_CLOSE,rootPane=javax.swing.JRootPane[,5,25,690x542,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=null,alignmentY=null,border=,flags=385,maximumSize=,minimumSize=,preferredSize=],rootPaneCheckingEnabled=true], isCancelled = false*
I tried with:
I Navigated to owb_home/owb/bin/admin; Edited the file jdbcdriver.properties; Replaced driver=thin with driver=oci and Restarted the reposinst. But I did not work.
And Default Configuration for External Procedures is OK.
Any another idea?
Thanks for all!> I am in the process of installing CRM 7 with Netweaver on 7.01 on a Windows 2008 64-bit system. I would have preferred a windows 2003 system, but according to an OSS note (1326698 and 1320013) CRM 7.0 isn't supported on Windows 2003.
The statement in the note is valid for CRM 7.0 SR1 only!
> Can anyone suggest what the problem might be?
Did you disable UAC?
Markus -
How to deal with java.io.EOFException error in Java application?
Recently a java application called Jin stopped working on my iMac under 10.6.8. On startup it gives a java.io.EOFException error. When I boot from a full backup on external hard disk, the program still works fine. It has run without problem for at least two years.
This program logs onto an online chess community called ICC (see chessclub.com) using a non-http protocol.
I have tried everything I can think of to repair the problem, including:
-- Reinstalling both Jin and Java
-- Playing with Java Preferences, in particular trying both 32-bit and 64-bit versions
-- Discarding a couple .plist files associated with Java and Jin
-- Repairing permissions
-- Replacing /usr/share/java/Tools with version from backup disk (I created a Smart Folder to find files recently changes, and these were the only java files that came up
I've run out of ideas. It seems to me that some obscure Java support file has been corrupted, but I have no idea what or where.
Is it a good idea to replace the entire /Library folder from backup, or is that going to cause a problem?
I have a very bad feeling about replacing /System from backup.Please enable the following debug
CA server
/atg/epub/DeploymentServer
loggingDebug=true
/atg/deployment/DeploymentManager
loggingDebug=true
loggingThreadDebug=true
Agent Servers
/atg/epub/DeploymentAgent
loggingDebug=true
recreate and attach the full logs
++++
Thanks
Gareth
Please mark any update as "Correct Answer" or "Helpful Answer" if that update helps/answers your question, so that others can identify the Correct/helpful update between many updates. -
New @ RMI need help with java.rmi.UnmarshalException: error unmarshalling
Hi @ all out there,
I'm new with Java RMI and have to write a EventSystem for an college project where clients can subscribe to a topic and get notified when someone publishes a message to the subscribed topic.
At server-side I have a class called EventSystem that provides methods for subscribing and unsubscribing from topics, and also for posting messages (for publishers).
To subscribe i thought that the client must specify the topic and also itself ( means that a client calls in this way: obj.subscribe("mytopic", this).
The EventSystem handles a list of all clients, and whenever a new message is posted it goes trough all clients and invokes the handleMessage(String msg) method that all Clients have to provide.
On my local machine without RMi this concept works just great.
I now tried to get it working using RMI , but I get the following Exception when starting the client (the server starts fine) :
Looking up for rmiregistry at 138.232.248.22:1099
Subscriber exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:336)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
at $Proxy0.subscribe(Unknown Source)
at SubscriberImpl.main(SubscriberImpl.java:48)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:293)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
at java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:713)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1733)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:290)
... 9 more
Caused by: java.io.InvalidClassException: SubscriberImpl; class invalid for deserialization
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:587)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
... 13 moreI googled now for 2 hours but can't resolve the problem alone. As far as I can understand I have to serialize Objects that I want to send to the server, right?
So how can i do this? I've never used serialization till now.
any ideas how to solve this problem?
greets from italy and sorry for my very weak english
bd_italyA class has been modified after deployment. Stop the Registry, clean, recompile, and redeploy.
-
Java.lang.InstantiationException: Error communicating with server:
Hello everybody, I am an easy Helloworld application, the deploy is fine, but when I execute the client it appears the next error:
java.lang.InstantiationException: Error communicating with server: Lookup error:
java.net.ConnectException: Connection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect; nested exception
is:
javax.naming.NamingException: Lookup error: java.net.ConnectException: C
onnection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect
at com.evermind.server.ApplicationClientContext.createContext(Applicatio
nClientContext.java:300)
at com.evermind.server.ApplicationClientInitialContextFactory.getInitial
Context(ApplicationClientInitialContextFactory.java:190)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at hello.HelloClient.main(HelloClient.java:33)
NamingException: Error reading application-client descriptor: Error communicatin
g with server: Lookup error: java.net.ConnectException: Connection refused: conn
ect; nested exception is:
java.net.ConnectException: Connection refused: connect; nested exception
is:
javax.naming.NamingException: Lookup error: java.net.ConnectException: C
onnection refused: connect; nested exception is:
java.net.ConnectException: Connection refused: connect
This is my application client:
// HelloClient.java
package hello;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;
import java.io.*;
import java.util.*;
import java.rmi.RemoteException;
* A simple client for accessing an EJB.
public class HelloClient
public static void main(String[] args)
System.out.println("client started...");
try {
// Initial context properties are set in the jndi.properties file
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClientInitialContextFactory");
env.put(Context.PROVIDER_URL, "ormi://ecd11107.eadscasa.casa.corp:23791/helloworld");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "123");
Context context = new InitialContext(env);
// This for use with com.evermind.server.rmi.RMIInitialContextFactory
//Object homeObject = context.lookup("HelloBean");
// This is for use with com.evermind.server.ApplicationClientInitialContextFactory
Object homeObject = context.lookup("java:comp/env/Helloworld");
// Narrow the reference to HelloHome.
HelloHome home =
(HelloHome) PortableRemoteObject.narrow(homeObject, HelloHome.class);
System.out.println("hello home");
// Create remote object and narrow the reference to Hello.
Hello remote =
(Hello) PortableRemoteObject.narrow(home.create(), Hello.class);
System.out.println(remote.sayHello("James Earl"));
} catch(NamingException e) {
System.err.println("NamingException: " + e.getMessage());
} catch(RemoteException e) {
System.err.println("RemoteException: " + e.getMessage());
} catch(CreateException e) {
System.err.println("FinderException: " + e.getMessage());
Can somebody helps me ???Thank you, but don�t work well yet. I checked the files orion-application.xml & principals.xml in the directory C:\servOracle\oracle\j2ee\home\application-deployments\helloworld but the result is the same, when I run the client the next error appears:
NamingException: Lookup error: javax.naming.NoPermissionException: Not allowed to look up HelloBean, check the namespace-access tag setting in orion-application.xml for details; nested exception is:
javax.naming.NoPermissionException: Not allowed to look up HelloBean, check the namespace-access tag setting in orion-application.xml for details
This is my orion-application.xml
<?xml version="1.0"?>
<!DOCTYPE orion-application PUBLIC "-//ORACLE//DTD OC4J Application runtime 9.04//EN" "http://xmlns.oracle.com/ias/dtds/orion-application-9_04.dtd">
<orion-application deployment-version="9.0.4.0.0" default-data-source="jdbc/OracleDS" treat-zero-as-null="true">
<ejb-module remote="false" path="helloworld-ejb.jar" />
<web-module id="helloworld-web" path="helloworld-web.war" />
<client-module path="helloworld-client" deployment-time="fce4439997" auto-start="false" />
<persistence path="persistence" />
<principals path="principals.xml" />
<jazn provider="XML" location="jazn-data.xml" />
<log>
<file path="application.log" />
</log>
<namespace-access>
<read-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="users" />
</security-role-mapping>
</namespace-resource>
</read-access>
<write-access>
<namespace-resource root="">
<security-role-mapping name="<jndi-user-role>">
<group name="users" />
</security-role-mapping>
</namespace-resource>
</write-access>
</namespace-access>
</orion-application>
And this is my principals.xml
<?xml version="1.0"?>
<!DOCTYPE principals PUBLIC "//ORACLE//DTD OC4J Principals 9.04//EN" "http://xmlns.oracle.com/ias/dtds/principals-9_04.dtd">
<principals>
<groups>
<group name="users">
<description>users</description>
<permission name="rmi:login" />
</group>
<group name="guests">
<description>guests</description>
</group>
<group name="administrators">
<description>administrators</description>
<permission name="administration" />
</group>
</groups>
<user username="admin" password="ADMIN">
<description>The default administrator</description>
<group-membership group="administrators" />
<group-membership group="guests" />
<group-membership group="users" />
</user>
<user username="SCOTT" password="TIGER">
<description>no description</description>
<group-membership group="users" />
<group-membership group="administrators" />
</user>
</principals>
Thanks in advance, please help me....
Maybe you are looking for
-
Error while deploying the SC on server.....
Hi, We are trying to deploy a Software Component that we created and when we try to deploy it on our server, it gives us the following the error : Application error occurred during request processing. Details: Error [com.sap.engine.services.servl
-
Problems with special effect pictures on importing, why is this happening?
I have taken pic in expressive mode on my camera ( panasonic fz200) and when i have imported them they don't have the effect that I used, is there something I have to do on importing or do I have to change photos setting on my own in develop module o
-
It will not let me download any apps it say my Apple ID is deactivated
-
ACE in one-arm model. VIP on Client Side, servers in other vlan
Hello All i have a LAN whit many servers,but only 2 need to be balanced. So i think in one-arm model, due to the higth trafic that not be pass trought ACE. i have a vlan 900 where is the client side and the VIP also. (10.0.9.64/26) the servers are in
-
How to load oracle views data in essbase via sql interface
<p>Could someone explain to me how to use Essbasesql-interface.</p><p>We have some oracle views for data and a certain number of DLRsfor otl building and data loading.</p><p>I know that there is an INCBUILDDIM syntax for sql source inwich you just sp