Runtime exceptions while trying to DES encryption
Hi,
I am quite new to Java and I am trying the following Encryption/decryption logic using DES Encryption. It works fine on my machine which has JDK 1.4 version and JCE 1.2.2
CODE SAMPLE:-
import java.io.UnsupportedEncodingException;
import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.KeySpec;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;
public class DesEncrypter {
Cipher ecipher;
Cipher dcipher;
// 8-byte Salt
byte[] salt = {
(byte)0xA9, (byte)0x9B, (byte)0xC8, (byte)0x32,
(byte)0x56, (byte)0x35, (byte)0xE3, (byte)0x03
// Iteration count
int iterationCount = 19;
DesEncrypter(String passPhrase) {
try {
// Create the key
KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray(), salt, iterationCount);
SecretKey key = SecretKeyFactory.getInstance(
"PBEWithMD5AndDES").generateSecret(keySpec);
ecipher = Cipher.getInstance(key.getAlgorithm());
dcipher = Cipher.getInstance(key.getAlgorithm());
// Prepare the parameter to the ciphers
AlgorithmParameterSpec paramSpec = new PBEParameterSpec(salt, iterationCount);
// Create the ciphers
ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
} catch (java.security.InvalidAlgorithmParameterException e) {
} catch (java.security.spec.InvalidKeySpecException e) {
} catch (javax.crypto.NoSuchPaddingException e) {
} catch (java.security.NoSuchAlgorithmException e) {
} catch (java.security.InvalidKeyException e) {
public String encrypt(String str) {
try {
// Encode the string into bytes using utf-8
byte[] utf8 = str.getBytes("UTF8");
// Encrypt
byte[] enc = ecipher.doFinal(utf8);
// Encode bytes to base64 to get a string
return new sun.misc.BASE64Encoder().encode(enc);
} catch (javax.crypto.BadPaddingException e) {
} catch (IllegalBlockSizeException e) {
} catch (UnsupportedEncodingException e) {
} catch (java.io.IOException e) {
return null;
public String decrypt(String str) {
try {
// Decode base64 to get bytes
byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
// Decrypt
byte[] utf8 = dcipher.doFinal(dec);
// Decode using utf-8
return new String(utf8, "UTF8");
} catch (javax.crypto.BadPaddingException e) {
} catch (IllegalBlockSizeException e) {
} catch (UnsupportedEncodingException e) {
} catch (java.io.IOException e) {
return null;
public static void main(String args[])
try {
// Create encrypter/decrypter class
DesEncrypter encrypter = new DesEncrypter("My Pass Phrase!");
String origText="My text";
System.out.println("Original Text="+origText);
// Encrypt
String encrypted = encrypter.encrypt(origText);
System.out.println("Encrypted Text="+encrypted);
// Decrypt
String decrypted = encrypter.decrypt(encrypted);
System.out.println("Decrypted Text="+decrypted);
} catch (Exception e) {
However, when i try it on another machine with JDK 1.3 and JCE 1.2.2 I get the error message
Exception in thread "main" java.lang.NoSuchMethodError
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
at DesEncrypter.<init>(DesEncrypter.java:31)
at DesEncrypter.main(DesEncrypter.java:93)
Just for the sake of inference, we have already tried the steps mentioned in
http://archives.java.sun.com/cgi-bin/wa?A2=ind0110&L=java-security&F=&S=&P=6353
and
http://archives.java.sun.com/cgi-bin/wa?A2=ind0103&L=java-security&F=&S=&P=14826
But the problem is ever persistent. Any help in this regards would be greatly appreciated.
Regards,
Diws
Hello Praveen,
This is just a Vanilla installation of the Portal and KMC. we are on EP 6 SP14. I try opening the KMContent and I get this big page of exceptions.
I am not able to figure out what and when was the final deployment..
Please suggest me if you have any solution in mind.
<b>~~As always, points galore for the right and helpful
answer.</b>
Thanks,
~LB
Similar Messages
-
Runtime exception while updating data
Hi All,
I'm getting a runtime exception while trying to update data to cube. It if full load and the error is like
"A RAISE statement in the program "SAPLSDIFRUNTIME" raised the exception
condition "NOT_FOUND".
Since the exception was not intercepted by a superior
program, processing was terminated."
The runtime exception is "RAISE_EXCEPTION".
Can anyone pls help me understand it and how to overcome it.
Thanks in advance,
SanandaHi,
Are you trying to load from DSO->Cube? or PSA->Cube?
Whatever the case, take an ABAPer's help and analyze the dump. You will get a clue.......
Regards,
Suman -
Hi everyone,
I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
And the notifications configured on approval task does not start either.
The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
Has anyone passed trough this situation in SP09?
I think there is an issue with the runtime components delivered with this initial package of SP09.
Suggestions?Hi Kelvin,2016081
The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
For more info about the issue and the patch please refer to SAPNote 2016081.
@Michael Penn - I might be able to assist if you provide the ticket number
Cheers,
Kristiyan
IdM Development -
Getting exception while trying to lookup jmsconnectionfactory
Hi All,
I am getting an exception while trying to do a lookup JMSConnection Factory.
javax.naming.InvalidNameException: Exception in lookup. [Root exception is org.omg.CosNaming.NamingContextPackage.InvalidName: IDL:omg
.org/CosNaming/NamingContext/InvalidName:1.0]
I have two different machines i have installed my program. On one its working perfectly will but on other machine its giving this error. There is no change in code and java version on both machine.
Do any one have clue why this will be happening. I urgently need the solution of it.
weblogic version is : 8.1 SP6
java version is : 1.4That is an iiop problem. Try using t3 protocol replacing thin client with thick client(weblogic.jar).
- Sathish -
Getting Exception while trying to get Connection
Getting Exception while trying to get Connection from Data Source in ejbCreate() for the First time when ejbCreate() is called.
Thanks in AdvanceHello Mallidi,
And the exception is ?
Cheers, Tsvetomir -
JMS Exception while trying to send a message on Login
I am getting the following exception while trying to send a JMS message after the login.
2012-06-01 12:09:30,688 ERROR [nucleusNamespace.com.tesco.events.manager.ILActivityManager] JMSException Occured
javax.jms.JMSException: A transaction-related exception occurred while trying to obtain a JMS Session from provider "Login": javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.syncwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.syncwhenaborted] Can't register synchronization because the transaction is in aborted state
at atg.dms.patchbay.SessionManager.getSession(SessionManager.java:190)
at atg.dms.patchbay.Provider.getQueueSession(Provider.java:632)
at atg.dms.patchbay.OutputDestination.getPooledSession(OutputDestination.java:268)
at atg.dms.patchbay.OutputPort.getPooledSession(OutputPort.java:156)
at atg.dms.patchbay.ElementManager.createTextMessage(ElementManager.java:848)
at atg.dms.patchbay.ElementManager.createTextMessage(ElementManager.java:546)
at atg.dms.patchbay.ElementManager.createTextMessage(ElementManager.java:557)
at com.tesco.events.manager.ILActivityManager.sendLogMessage(ILActivityManager.java:81)
at com.tesco.events.manager.ILActivityManager.logActivity(ILActivityManager.java:69)
at com.tesco.events.listener.ATGLogEventListenerImpl.logActivity(ATGLogEventListenerImpl.java:46)
at com.tesco.events.source.ATGLogEventSource.logActivity(ATGLogEventSource.java:61)
at com.tesco.ecom.userprofiling.ProfileFormHandler.postLoginUser(ProfileFormHandler.java:2022)
at com.tesco.ecom.userprofiling.ProfileFormHandler.handleLogin(ProfileFormHandler.java:1191)
at sun.reflect.GeneratedMethodAccessor1140.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at atg.droplet.EventSender.sendEvent(EventSender.java:582)
at atg.droplet.FormTag.doSendEvents(FormTag.java:791)
at atg.droplet.FormTag.sendEvents(FormTag.java:640)
at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)
at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at com.tesco.ecom.userprofiling.AssignCookieServlet.service(AssignCookieServlet.java:139)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2442)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at com.spindrift.sitebuilder.request.AuthServlet.service(AuthServlet.java:74)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at com.tesco.ecom.userprofiling.LoginControlServlet.service(LoginControlServlet.java:61)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at com.tesco.ecom.userprofiling.AccessControlServlet.processExpiredSession(AccessControlServlet.java:645)
at com.tesco.ecom.userprofiling.AccessControlServlet.service(AccessControlServlet.java:392)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at com.tesco.bns.droplets.AddingRecentlyViewedDroplet.service(AddingRecentlyViewedDroplet.java:235)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:477)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at atg.search.servlet.SearchClickThroughServlet.service(SearchClickThroughServlet.java:396)
at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:135)
at com.tesco.servlet.pipeline.LogOutputFilterServlet.logWithMdc(LogOutputFilterServlet.java:68)
Edited by: 915252 on Jun 4, 2012 2:39 AMHi,
you may be interested in a solution I tracked down at http://support.bea.com/application?namespace=askbea&origin=ask_bea.jsp&event=button.search_ask_bea&askbea_display=relevancy&askbea_max_number_returned=50&question=weblogic.jms.common.JMSException%3A+Connection+not+found&all_bea_products=all_bea_products&ES=ES#
Basically : you need to have your Weblogic servers, JMS servers and JMS stores
on each domain named uniquely !!!
"Joe Mooney" <[email protected]> wrote:
>
Any news on this one ?
"B Liu" <[email protected]> wrote:
Can u tell me how you supplied the required security credentials?
Thanks,
-Ben
"Andy" <[email protected]> wrote:
Hi.
I have a situation where I am sending an JMS message to external queue
on Weblogic
Server which is not part of cluster. This happens in a session bean,which
is wrapped
in a container transaction. I have supplied the required security credentials
like user, password etc.
I get an error while tryign to send the message through bean. The stack
trace
is :
weblogic.jms.common.JMSException: Connection not found
at weblogic.jms.dispatcher.InvocableManager.invocableFind(InvocableManager.java:136)
at weblogic.jms.dispatcher.Request.wrappedFiniteStateMachine(Request.java:596)
at weblogic.jms.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:153)
at weblogic.jms.client.JMSConnection.createSessionInternal(JMSConnection.java:400)
at weblogic.jms.client.JMSConnection.createQueueSession(JMSConnection.java:347)
also one thing interesting is that if I call the same server and queue
outside
of the session bean,it works fine.
Any ideas what might be causing the issue?
Thanks
Andy -
Runtime error while trying to convert script to pdf and sending in mail
Hi all,
I m trying to convert the standard script into pdf using convert_otf fm and trying to send it as an attachment using 'SO_NEW_DOCUMENT_ATT_SEND_API1'.
I m using fm 'SSF_FUNCTION_MODULE_NAME' to get the function module name.
But i m getting a runtime error while executing the program..
Can anyone help me in this issue please.
Thanks in advance,
AshokHi Ramesh,
I m getting an runtime error function module not found. I ll paste the code here.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lf_formname
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc = 0.
error handling ent_retco = sy-subrc.
perform protocol_update_i.
ENDIF.
ls_control_param-getotf = 'X'.
DATA: l_document_output_info TYPE ssfcrespd,
l_job_output_info TYPE ssfcrescl,
l_job_output_options TYPE ssfcresop.
check ent_retco eq 0.
CALL FUNCTION 'lf_fm_name'
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_composer_param
user_settings = ' '
zxekko = l_doc-xekko
zxpekko = l_doc-xpekko
zxaend = l_doc-xaend
IMPORTING
document_output_info = l_document_output_info
job_output_info = l_job_output_info
job_output_options = l_job_output_options
TABLES
l_xekpo = l_doc-xekpo[]
l_xekpa = l_doc-xekpa[]
l_xpekpo = l_doc-xpekpo[]
l_xeket = l_doc-xeket[]
l_xtkomv = l_doc-xtkomv[]
l_xekkn = l_doc-xekkn[]
l_xekek = l_doc-xekek[]
l_xaend = l_doc-xaend[]
l_xkomk = l_xkomk
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = l_job_output_info-otfdata
lines = tb_pdf
EXCEPTIONS
err_max_linewidth = 0
err_format = 1
err_conv_not_possible = 2
OTHERS = 3. -
Getting a Runtime Exception while inserting value in MSAccess 2000
I am using below mentioned code to insert values in MSAccess 2000 which having table structure as mentioned below:-
Field Name
Data Type
TodaysDate
Date/Time
Cart ID
Number
Client Name
Text
Team & Segment
Text
Duration
Number
Tape ID
Text
Start Date
Date/Time
End Date
Date/Time
Code:-
private boolean enterDataIntoMSAccessDatabaseusingPreparedStatement()
try {
ps = connection.prepareStatement("INSERT INTO [Cart ID Details] VALUES (?,?,?,?,?,?,?,?)");
System.out.println("After Query");
catch (SQLException se) {
generateErrorMessage("Error in Prepared Statement \n " + se.getMessage() );
return false;
catch (Exception e)
generateErrorMessage("Unexpected Error Occured \n " + e.getMessage());
String todaysDate = cartIDApplicationAddCartIDDatejTextField.getText().trim();
String cartID = cartIDApplicationAddCartIDCartIDjTextField.getText().trim();
String clientName = cartIDApplicationAddCartIDClientNamejTextField.getText().trim();
String teamSegment = cartIDApplicationAddCartIDTeamAndSegmentjTextField.getText().trim();
String duration = cartIDApplicationAddCartIDDurationjTextField.getText().trim();
String tapeID = cartIDApplicationAddCartIDTapeIDjTextField.getText().trim();
String startDate = cartIDApplicationAddCartIDStartDatejTextField.getText().trim();
String endDate = cartIDApplicationAddCartIDEndDatejTextField.getText().trim();
try {
//System.out.println("Before ps.setString()");
ps.setString(1, todaysDate);
ps.setString(2, cartID );
ps.setString(3, clientName);
ps.setString(4, teamSegment);
ps.setString(5, duration);
ps.setString(6, tapeID);
ps.setString(7, startDate);
ps.setString(8, endDate);
//System.out.println("After ps.setString()");
ps.executeUpdate();
catch (SQLException se) {
generateErrorMessage("Error while inserting data in database \n " + se.getMessage());
return false;
catch (Exception e)
generateErrorMessage("Unexpected Error Occured \n" + e.getMessage() );
return true;
The above boolean function is called in "Save Button" action event, but when I click Save I am getting as Runtime Exception.
Kindly help me to sort out this issue.Print stack traces not just messages. And it will tell you what is wrong. And if you posted the stack trace someone else might be able to tell you.
If you get an exception DO NOT CONTINUE. You can't do an update if the prepared statement failed so there is no point in trying. (Of course that depends on what 'generateErrorMessage' does)
Other than that note that you are using strings for everything even though the data types are not all text fields. -
Exception while trying to deploy to portal
Dear all,
I have a serious deploy problem with the SAPNWCE71TrialSP1Preview_DevStudio in combination with SAP WAS...
This is the error message
Reason: Clusterwide exception: server ID 23000550:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application local/Calendar cannot be started. Reason: it has hard reference to resource tc~wd~api with type application, which is not active on the server.
I can not find the resource tcwdapi in my file system... do I need an additional external jar file! I added the com.sap.security.api.jar as external lib
as info: before, I worked with the NWDS 7.0.9 and had no time a deploy problem!?
I have already looked throw related problems, but nor workaround solved my problem...
may be my application-j2ee-engine.xml file is not configured in the right way;
I hope someone can fix my problem
enclosed please find the entire error message:
1.10.2007 08:32:07 /userOut/daView_category (eclipse.UserOutLocation) [Thread[Deploy Thread,5,main]] INFO:
[001]Additional log information about the deployment
<!--LOGHEADER[START]/-->
<!--HELP[Manual modification of the header may cause parsing problem!]/-->
<!--LOGGINGVERSION[1.5.3.7185 - 630]/-->
<!--NAME[D:usrsapJ4SJC02SDMprogramlogsdmcl20071031073143.log]/-->
<!--PATTERN[sdmcl20071031073143.log]/-->
<!--FORMATTER[com.sap.tc.logging.TraceFormatter(%24d %s: %m)]/-->
<!--ENCODING[Cp1252]/-->
<!--LOGHEADER[END]/-->
Oct 31, 2007 8:31:44 AM Info: -------------------------- Starting deployment ------------------------
Oct 31, 2007 8:31:44 AM Info: Error handling strategy: OnErrorStop
Oct 31, 2007 8:31:44 AM Info: Prerequisite error handling strategy: OnPrerequisiteErrorStop
Oct 31, 2007 8:31:44 AM Info: Update strategy: UpdateAllVersions
Oct 31, 2007 8:31:44 AM Info: Starting deployment prerequisites:
Oct 31, 2007 8:31:46 AM Info: Loading selected archives...
Oct 31, 2007 8:31:46 AM Info: Loading archive 'D:usrsapJ4SJC02SDMprogramtemptemp16414Calendar.ear'
Oct 31, 2007 8:31:49 AM Info: Selected archives successfully loaded.
Oct 31, 2007 8:31:49 AM Info: Actions per selected component:
Oct 31, 2007 8:31:49 AM Info: Update: Selected development component 'Calendar'/'local'/'LOKAL'/'0.2007.10.31.08.31.30'/'0' updates currently deployed development component 'Calendar'/'local'/'LOKAL'/'0.2007.10.30.18.27.26'/'0'.
Oct 31, 2007 8:31:50 AM Info: Ending deployment prerequisites. All items are correct.
Oct 31, 2007 8:31:50 AM Info: Saved current Engine state.
Oct 31, 2007 8:31:50 AM Info: Starting: Update: Selected development component 'Calendar'/'local'/'LOKAL'/'0.2007.10.31.08.31.30'/'0' updates currently deployed development component 'Calendar'/'local'/'LOKAL'/'0.2007.10.30.18.27.26'/'0'.
Oct 31, 2007 8:31:50 AM Info: SDA to be deployed: D:usrsapJ4SJC02SDMrootoriginlocalCalendarLOKAL00.2007.10.31.08.31.30temp16414Calendar.ear
Oct 31, 2007 8:31:50 AM Info: Software type of SDA: J2EE
Oct 31, 2007 8:31:50 AM Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****
Oct 31, 2007 8:32:02 AM Info: Begin of log messages of the target system:
07/10/31 08:31:50 - ***********************************************************
07/10/31 08:31:54 - Start updating EAR file...
07/10/31 08:31:54 - start-up mode is lazy
07/10/31 08:31:54 - EAR file updated successfully for 453ms.
07/10/31 08:31:54 - Start updating...
07/10/31 08:31:55 - EAR file uploaded to server for 500ms.
07/10/31 08:32:01 - Successfully updated. Update took 5813ms.
07/10/31 08:32:01 - Deploy Service status:
07/10/31 08:32:01 - Application : local/Calendar
07/10/31 08:32:01 -
07/10/31 08:32:01 - webdynpro/resources/local/Calendar - WEB
07/10/31 08:32:01 - ***********************************************************
Oct 31, 2007 8:32:02 AM Info: End of log messages of the target system.
Oct 31, 2007 8:32:02 AM Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
Oct 31, 2007 8:32:02 AM Warning: Finished with warnings: development component 'Calendar'/'local'/'LOKAL'/'0.2007.10.31.08.31.30'/'0':
Caught exception during application startup from SAP J2EE Engine's deploy service:
java.rmi.RemoteException: Error occurred while starting application local/Calendar and wait.
Reason: Clusterwide exception: server ID 23000550:com.sap.engine.services.deploy.exceptions.ServerDeploymentException: Application local/Calendar cannot be started. Reason: it has hard reference to resource tc~wd~api with type application, which is not active on the server.
at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:597)
at com.sap.engine.services.deploy.server.ReferenceResolver.processMakeReference(ReferenceResolver.java:399)
at com.sap.engine.services.deploy.server.ReferenceResolver.beforeStartingApplication(ReferenceResolver.java:328)
at com.sap.engine.services.deploy.server.application.StartTransaction.beginCommon(StartTransaction.java:162)
at com.sap.engine.services.deploy.server.application.StartTransaction.begin(StartTransaction.java:136)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesImpl(ParallelAdapter.java:342)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:126)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:245)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4761)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4666)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:4639)
at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1163)
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.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while starting: sap.com/tc~wd~api', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while starting: sap.com/tc~wd~api
at com.sap.portal.prt.sapj2ee.PortalRuntimeContainer.prepareStart(PortalRuntimeContainer.java:527)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4415)
at com.sap.engine.services.deploy.server.ReferenceResolver.processReferenceToApplication(ReferenceResolver.java:589)
... 21 more
Caused by: com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception while starting: SAPJ2EE::local/NEW', Arguments: []--> : Can't find resource for bundle java.util.PropertyResourceBundle, key Exception while starting: SAPJ2EE::local/NEW
at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:886)
at com.sap.portal.prt.sapj2ee.PortalRuntimeContainer.prepareStart(PortalRuntimeContainer.java:511)
... 23 more
Caused by: com.sapportals.portal.prt.runtime.PortalRuntimeException: [ExternalApplicationItem.prepare]: SAPJ2EE::local/NEW
at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:188)
at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.prepare(SAPJ2EEApplicationItem.java:232)
at com.sapportals.portal.prt.core.broker.SAPJ2EEApplicationItem.start(SAPJ2EEApplicationItem.java:192)
at com.sapportals.portal.prt.service.sapj2ee.Mediator.getAndStartExternalApplication(Mediator.java:132)
at com.sap.portal.prt.sapj2ee.StartPortalApplication.coreRun(StartPortalApplication.java:59)
at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime.getAndStartSAPJ2EEApplicationItem(SAPJ2EEPortalRuntime.java:882)
... 24 more
Caused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application tc~wd~api
at com.sapportals.portal.prt.core.broker.PortalApplicationItem.prepare(PortalApplicationItem.java:415)
at com.sapportals.portal.prt.core.broker.ExternalApplicationItem.prepare(ExternalApplicationItem.java:180)
... 29 more
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
Oct 31, 2007 8:32:02 AM Info: Starting to save the repository
Oct 31, 2007 8:32:04 AM Info: Finished saving the repository
Oct 31, 2007 8:32:04 AM Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
Oct 31, 2007 8:32:04 AM Warning: ------ At least one of the Deployments finished with warning(s) -------Hi,
May be of use
1. Open the visual admin at <installdrive>:\usr\sap\J2E\JC00\j2ee\admin\go.bat
2. Login is Administrator + admin-password you defined during installation.
3. Under the Server 0... node select Services->Deploy
4. Select the "Application" radio button at the bottom.
5. Check if there exists an application sap.com/tcwdtools
And the following applications are running
sap.com/tcwdcorecomp
sap.com/tcwddispwda
sap.com/tcwdtools.
Last thing was their any errors in the installation.
Regards
Ayyapparaj -
Java Runtime exception while importing WSDL to PI 7.1
Hi Experts,
I am getting a weird java runtime error while importing the wsdl file to PI 7.1 ESR. I have checked the well formness of wsdl and its looks Ok, but some how while importing in PI ESR its giving following error log.
Thrown:
com.sap.aii.utilxi.misc.api.BaseRuntimeException: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.aii.utilxi.wsdl.api.WsdlHandler.parseWsdlWithOrderRearrange(Lcom/sap/aii/utilxi/xml/xdom/XElement;Z)Lcom/sap/aii/utilxi/wsdl/api/Wsdl;
java.lang.RuntimeException: java.lang.NoSuchMethodError: com.sap.aii.utilxi.wsdl.api.WsdlHandler.parseWsdlWithOrderRearrange(Lcom/sap/aii/utilxi/xml/xdom/XElement;Z)Lcom/sap/aii/utilxi/wsdl/api/Wsdl;
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:80)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
at
I am realy stuck now and replies are higjhly appreciated.
Cheers,
Rakscheck the wsdl file in xml spy software.
chirag. -
RunTime Exception while reading the file
Hi,
I am using aixs1.0 for my current project. I have uploading an image file. if the file is in c: drive then upload successfully. if the file is in desktop it gives socket connection exception. while the desktop name is with .v example.c:\documents and settings\srinivas.v\desktop\image2.gif when I amreding this file from the project it gives the following error. can u please help in this regard
10/10 18:33:12 error [axis] java.io.IOException:
java.net.SocketException: Software caused connection abort: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:106)
at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336)
at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:395)
at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
at java.io.OutputStreamWriter.write(OutputStreamWriter.java:191)
at java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
at java.io.BufferedWriter.write(BufferedWriter.java:206)
at java.io.Writer.write(Writer.java:126)
at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:277)
at org.apache.axis.Message.writeTo(Message.java:440)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja
va:466)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:122)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at com.stellent.www.CheckIn.CheckInSoapStub.checkInUniversal(CheckInSoap
Stub.java:210)
at jrun__Product_Info__CompetitiveProductConfirmation2ejsp30._jspService
(jrun__Product_Info__CompetitiveProductConfirmation2ejsp30.java:266)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
yFilter.java:103)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
249)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
10/10 18:39:47 error
java.lang.NullPointerException
at jrun__Home__Home2ejspe._jspService(jrun__Home__Home2ejspe.java:182)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
yFilter.java:103)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invokeNext(JRunRequestDispatcher.j
ava:447)
at jrun.servlet.JRunRequestDispatcher.forwardInvoke(JRunRequestDispatche
r.java:417)
at jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java
:175)
at jrun.servlet.file.FileServlet.service(FileServlet.java:306)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
at jrun.servlet.security.StandardSecurityFilter.doFilter(StandardSecurit
yFilter.java:103)
at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
at jrun.servlet.FilterChain.service(FilterChain.java:101)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:
249)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:
527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo
l.java:348)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j
ava:451)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.
java:294)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
ThankYou
Srinivas VakkalankaHi,
check the MOS Note: readDomain() on UnPacked WLS 12c Domain will Fail with com.oracle.cie.common.CommonException: fail to load domain from directory. (Doc ID 1681602.1)
https://support.oracle.com/epmos/faces/DocContentDisplay?id=1681602.1
Borys -
Runtime exception while I connect to SAP using JCO
I am getting this error when I am trying to write a Java DC Project using NWDS.
I have added all the JCO API DC to my project and all the classes are available in that.
I am getting runtime exception class not found - com.sap.mw.jco.JCO$Repository
I am deploying the java dc in the SAP J2EE Server by making Java Lib DC & deploy that.
Is it possible to connect to SAP R/3 from Java DC? or we need to have Portal Projects like PAR or Webdynpro only?
I want to use Background Callable object using GP API here.Thank you Venkat. One more question - in one of my java library, I want to make a class a public part and I added as public part but it is not accessible from SAP Portal GP as Background callable object, getting message: cannot find this class name
Do you have any idea ?
see my post:Custom Email Template in GP
Thank you once again. -
Getting an exception while trying to create a territory
Hi All,
I got a dump while trying to create a territory using tcode crmm_terrman. The dump was in program CRM_TERRMAN_READ_EMP_OF_POS saying NO_ACTIVE_PLVAR Found Exception. Request you all to please guide me in finding the reason behind this dump.
Regards
MandeepHi All,
The dump was coming because there were empty postitions created in the org structure.
Regards
Mandeep -
WD Runtime exception: while using webservices!
Hi all
I am facing a wd runtime exception. using a webservice call from wd on CE 7.1. any clues?
java.lang.ClassNotFoundException: Loader /L_local#wd_webserviceejb3 could not load class com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass
thank you.
regards
LNV
Edited by: vln on Jan 2, 2008 5:55 PMHi,
"Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Node <b><DisplayName></b> child of <b><response></b> not described in Schema"
From my point of view the response does not fit to the WSDL of the web service.The only solution that i can think of is to adjust the WSDL to the real response and to reimport the model after that.
Best regards,
Abhishek. -
Runtime Exception while creating dynamic ui
Hi ,
when i creating textview ui element dynamically
iam getting runtime exception following is the same.
*Note:_*_
*textForD=(IWDTextView)view.createElementIWDTextView.class,"test"+i);_*_
*_the above statement is the cause for this exception.
_*com.sap.tc.webdynpro.services.exceptions.CreationFailedException: Cannot create view element implementation com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TextView
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:161)
at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:177)
at com.cgsl.examples.dialogms.DispalyView.wdDoModifyView(DispalyView.java:153)
at com.cgsl.examples.dialogms.wdp.InternalDispalyView.wdDoModifyView(InternalDispalyView.java:294)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:480)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processPhaseLoop(WebDynproWindow.java:345)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:152)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
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(AccessController.java:215)
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.reflect.InvocationTargetException
at sun.reflect.GeneratedConstructorAccessor54.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:44)
at java.lang.reflect.Constructor.newInstance(Constructor.java:315)
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:151)
... 34 more
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "Deasis0" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TextView
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:735)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:40)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:168)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.TextView.<init>(TextView.java:82)
... 38 moreHi,
I think your code is not complete, I don't see any close bracket there.
anyway, inside of the loop you try to create InputField with the same name "test",
Please see "bold" for my correction.
if (firstTime){
IPrivateDispalyView.ISelectTableDataElement element;
IWDTextView textForD;
IWDInputField input;
for(int i=0;i<wdContext.nodeSelectTableData().size();i++){
element=wdContext.nodeSelectTableData().getSelectTableDataElementAt(i);
if(element.getCheck()){
textForD=(IWDTextView)view.createElement(IWDTextView.class,"name"+i);
input=(IWDInputField)view.createElement(IWDInputField.class,"test" + i );
textForD.setText(element.getDeasis());
IWDTransparentContainer container=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
container.addChild(textForD);
container.addChild(input);
Maybe you are looking for
-
500 internal error while approving leave request
Hi All, One of my user when trying to approve leave request, he is getting the following error. it was working previously but suddenly thsi error has come 500 internal server error Application error occurred during request processing Details: com.sap
-
I have cs3 and windows 7 64 bit. I was able to run cs3 in xp, but everytime I try 7 it hangs up right before it asks for my serial number. The installation is perfect, everything goes great, but when I open cs3 it opens up a blank cs3 window, and t
-
Cannot connect to sqlplus as / as sysdba
Dear Folks, I am not able to connect to sqlplus as / as sysdba .I can see remote_os_authent=true,in the sqlnet.ora SQLNET.AUTHENTICATION_SERVICES= (NTS) but for some reasons i am not able to connect it with / as sysdba.Kindly help me with this issue
-
Making a smooth automated photogallery on flash cs5
Can someone show me how to make this sort of photo gallery on flash. http://www.weddingorg.com/indian/indian.html after clicking on this link, select family and click the link saying 'click to view harshith and amita's family photo'. From this, you w
-
Favorites exported from Internet Explorer are not available in Bookmarks drop down list as they should. Where can I find them?