Error when using same QueueSession in a multi threaded application
I have deployed a OSSJ Trouble Ticket refererence Implementation on Sun Java System App Server Platform Edition 8.1 default server.
The TT server listens on queue MessageQueue and sends its reply on MessageReplyQueue
The application that sends the request to the TT server should support concurrent requests using threads.
The sender application creates a QueueConnection and a QueueSession.
This QueueSession is shared by all the threads that send the request to the TT server.
Each thread creates its own QueueSender, TemporaryQueue which is set as replyTo in the message, QueueReceiver using the TemporaryQueue in the run method
When the application is run multiple times i get the following exception
javax.jms.IllegalStateException: [C4055]: Resource in conflict. Concurrent operations on a session.
at com.sun.messaging.jmq.jmsclient.SessionImpl.setInSyncState(SessionImpl.java:2177)
at com.sun.messaging.jmq.jmsclient.SessionImpl.acknowledge(SessionImpl.java:972)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.receive(MessageConsumerImpl.java:375)
at com.sun.messaging.jmq.jmsclient.MessageConsumerImpl.receive(MessageConsumerImpl.java:347)
at xvt.tt.MessageSenderMultiThread.run(MessageSenderMultiThread.java:112)
The code looks as follows
public class MessageSenderMultiThread extends Thread {
private String strMessage = null;
private QueueSender queueSender = null;
private QueueReceiver queueReceiver = null;
private TextMessage message = null;
private TemporaryQueue tempQueue = null;
private QueueConnection tempQC = null;
private QueueSession tempQS = null;
private Queue tempQ = null;
String inputQname = "MyQueue";
String outputQname = "A";
private int sleepTime;
static InitialContext jndiContext = null;
Queue replyQueue=null;
Hashtable sessions=null;
static QueueConnection queueConnection = null;
public static String readFromFile(String fileName) {
String line = null;
try {
FileReader fr = new FileReader(fileName);
BufferedReader br = new BufferedReader(fr);
String temp = "";
line = "";
while ((temp = br.readLine()) != null) {
//System.out.println("line is"+line);
if (temp != null)
line = line + temp;
return line;
} catch (Exception ex) {
System.out.println("Exception occurred,Ex" + ex);
return line;
MessageSenderMultiThread(String strMsg, int sTime, QueueConnection qC, QueueSession qS, Queue q, String name) {
super(name);
this.strMessage = strMsg;
this.sleepTime = sTime;
this.tempQC = qC;
this.tempQS = qS;
this.tempQ = q;
sessions=new Hashtable();
System.out.println("Inside Constructior");
public void run() {
try {
queueSender = tempQS.createSender(tempQ);
tempQueue = tempQS.createTemporaryQueue();
queueReceiver = tempQS.createReceiver(tempQueue);
//queueReceiver = tempQS.createReceiver(replyQueue);
message = tempQS.createTextMessage();
message.setText(this.strMessage);
message.setJMSReplyTo(tempQueue);
//message.setJMSReplyTo(replyQueue);
message.setJMSCorrelationID("1234");
queueSender.send(message);
System.out.println(message.getText());
tempQC.start();
//while (true) {
Message m = queueReceiver.receive();
if (m != null) {
if (m instanceof TextMessage) {
message = (TextMessage) m;
if (message != null) {
System.out.println("########################corr id::"+message.getJMSCorrelationID());
queueReceiver.close();
//System.out.println("message:: " + message.getText() + "Thread Name " + this.getName());
} else
System.out.println("NULL");
} //else
//break;
System.out.println("Exiting !");
} catch (JMSException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
public static void main(String args[]) {
String inputQname = "System/RI/ApplicationType/TroubleTicket/Application/1-0;0-0;OSSJTTRI/Comp/MessageQueue";
QueueConnectionFactory queueConnectionFactory = null;
QueueSession queueSession = null;
Queue inputQueue = null;
try {
jndiContext = new InitialContext();
queueConnectionFactory = (QueueConnectionFactory) jndiContext.lookup("System/RI/ApplicationType/TroubleTicket/Application/1-0;0-0;OSSJTTRI/Comp/QueueConnectionFactory");
inputQueue = (Queue) jndiContext.lookup(inputQname);
queueConnection = queueConnectionFactory.createQueueConnection();
queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
} catch (JMSException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
String strRequest = null;
strRequest = readFromFile("C:/ISM/getTroubleTicketsByKeysRequest.xml");
new MessageSenderMultiThread(strRequest, 100, queueConnection, queueSession, inputQueue, "Thread1").start();
strRequest = readFromFile("C:/ISM/getTroubleTicketsByKeysRequest1.xml");
new MessageSenderMultiThread(strRequest, 100, queueConnection, queueSession, inputQueue,"Thread2").start();
System.out.println("OVER");
// System.exit(-1);
}
A session is single threaded (so it can not be used by different threads and generate valid behavior). This behavior is covered in @ setion 4.4 of the JMS specification
If you need multiple threads to process messages you should either:
* have them share a single session
* read messages in from the session in a single thread and pass them off to
other threads processing the message
On the second option, you must have the "reading" thread also acknowledge the message in client acknowledge (or commit in transactions)
Similar Messages
-
Question using Java API in a multi threaded application for MDX queries
Currently I’m building a web application that makes a lot of MDX calls using the Essbase Java API. Each time we run an MDX call we basically run the following code:
IEssbase ess = IEssbase.Home.create(IEssbase.JAPI_VERSION);
IEssDomain dom = ess.signOn(userName, password, false, null, "embedded");
IEssCubeView cv = cv=dom.openCubeView("view", hostName, appName, cubeName);
IEssOpMdxQuery op = cv.createIEssOpMdxQuery();
op.setQuery(false,mdx,false,IEssOpMdxQuery.EEssMemberIdentifierType.NAME);
cv.performOperation(op);
IEssMdDataSet mddata = cv.getMdDataSet();
cv.close();
My questions is, is this the correct way to use the API in multi threaded environment where many users may be hitting the application at the same time? For every request do I need to create a separate IEssbase object and sign on to an IEssDomain? Or can I use a single IEssbase and IEssDomain object for the entire application? If not should I call the IEssDomain.signOff() method after each user’s request has completed? Which of the above objects are thread safe? I’m using Essabae 9.3.1. Any insight would be really appreciated.
Thanks
DavidThanks for the input friend,
I should have mentioned that in my application all
connections to Essbase use the same user name and
password so the filtering isn’t a concern. This is my
first Java application using Essbase has a data
source, I’m used to connecting to various SQL
databases and I always use a connection pool, how is
connection pooling handled in the Essbase java API?I'm not sure what happened to it since I never used it, but there used to be something called the High Availability Services or something that was essentially a connection pool for Essbase JAPI connections, but it required an extra license.
Since you don't care about identity (everyone has full access to everything), you can create your own connection pool, but you'll have to manage your multithreading yourself. Its been this way since the beginning. The C API isn't/wasn't thread-safe either (we tried). -
Error when using PPR in the OA page developed.
HI,
We are encountering an error when using PPR for the custom OA page being developed. I am using JDeveloper version 9.0.3.5(Build 1437) and Oracle Applications version 11.5.10.CU2. The scenario we are using PPR and the steps to reproduce the issue is mentioned below,
Scenario:
1) PPR is enabled for a custom OA page that is developed.
2) The PPR is being used to enable or disable a particular field based on the
selection of a value in a poplist in the same OA Page.
Error replication steps:
1) The user enters a value in the primary mandatory field which has to have
unique value.
2) The user selects a value from the poplist of a field which has PPR associated.
3) The user enters data in all other mandatory fields in the OA page except one
and tries to save the form and is shown a error message saying that all
mandatory fields are not entered(This is correct). Now the page gets
automatically refreshed and so the entered values are wiped off.
4) Now if the user again enters a value in the primary mandatory field (as in
step1) and if that value happens to be already existing value and then select
a value from the poplist which has PPR enabled then immediately the error
"Please enter a unique value" is entered, though we did not save the record.
The unique record validation would happen only at the time of saving the
record as per out business logic.
5) But if in Step 4 if i had entered a unique value again then the above said error
does not happen. There are few more similar kind of issues happening in the
same page because PPR is enabled.
Please note that this issue happens only when the page is deployed in a oracle
applications instance and not in JDeveloper.
Would this issue because of some cacheing problem? If Yes then how do we resolve it? Or would it be some other problem caused by our internal coding.
Any inputs for resolving this issue would be highly appreciated.
Thanks, Raja.What works in Jdeveloper should work when deployed in iAS as well.
And PPR is an old feature given quite enough time to mature, so before we suspect OA we should investigate the code. What I do not understand is how the page refreshes in Step 3 and why does the user have to re-enter the fields just because he missed entering one mandatory field the last time.
Mandatory field validations are client validations set by making the fields 'Required'. You obviously have client validations turned off on your PPR, otherwise you would be stuck with a javascript popup on PPR. The only way you can get the "Please enter unique..." error on PPR is Server Validation. So where have you placed this validation? If it is not in the EO, is it in the AM? And are you unconditionally calling the AM validation method in your processFormRequest? The PPR will also go through processFormRequest so I hope the PPR event is in a different if-else block. -
Java Heap Error when using Stateless Session Timer Bean deployed in Oracle
Hi,
Am getting following Java Heap Error when using Stateless Session Timer Bean deployed in Oracle 10g AS R3 (Oracle Containers for J2EE 10g (10.1.3.0.0) (build 060119.1546.05277) ):
06/08/02 14:58:43 javax.ejb.EJBException: java.lang.OutOfMemoryError: Java heap space
06/08/02 14:58:43 at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:304)
06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:67)
06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:45)
06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:71)
06/08/02 14:58:43 at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1624)
06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:92)
06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:184)
06/08/02 14:58:43 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
06/08/02 14:58:43 at java.lang.Thread.run(Thread.java:595)
06/08/02 14:58:43 Caused by: java.lang.OutOfMemoryError: Java heap space
I had tried using -Xms / -Xmx options (upto 1 GB).
The trace of exception gets delayed (from being displayed on the console) as the memory size is increased; but after sometime it starts getting displayed on the console.
Even though this exception is displayed on the console, the Timer Bean continues to execute upto sometime before it finally crashes!
If anyone has encountered such problem; would appreciate if you could share the solution.
Regards, VidyadharHi guys, I have the same problem. I have an application EAR file with two modules (EJB and WAR starting in this order). The application can schedule a process via EJB timer. In this case restarting the server I receive the error above. If I change the modules start order --> WAR - EJB the server start correctly, but the application scheduler fails (the persistency is not working) with this error:
07/10/09 10:30:54 FINISSIMO: TimerTask.runBeanTimer java.lang.NullPointerException; nested exception is: java.lang.NullPointerExceptionjavax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
at java.util.logging.Formatter.formatMessage(Formatter.java:108)
at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
at java.util.logging.Logger.log(Logger.java:428)
at java.util.logging.Logger.doLog(Logger.java:450)
at java.util.logging.Logger.log(Logger.java:539)
at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
javax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:309)
at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:73)
at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:55)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
at java.util.logging.Formatter.formatMessage(Formatter.java:108)
at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
at java.util.logging.Logger.log(Logger.java:428)
at java.util.logging.Logger.doLog(Logger.java:450)
at java.util.logging.Logger.log(Logger.java:539)
at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
... 9 more
Any idea?
Thx Auro -
Error When Using Class :(
Hey,
Class:
package
import flash.display.MovieClip;
import flash.events.Event;
public class Main extends MovieClip
public var enemyA:Array = [];
public var birdA:Array = [];
public var rowNum:int = 2;
private var gap:int = 100;
private var obj_no = 2;
public var enemy1:mychar = new mychar();
public var TheBird:BirdChar = new BirdChar();
public function Main()
// constructor code
createEnemyF();
createBirdF();
this.addEventListener(Event.ENTER_FRAME,loopF);
public function createEnemyF()
for (var i:int = 0; i < rowNum; i++)
for (var j:int = 0; j < obj_no; j++)
enemy1.x = Math.random() * stage.stageWidth - enemy1.width;
enemy1.y = - i * (gap + enemy1.height) - 30.65;
enemyA.push(enemy1);
addChild(enemy1);
public function createBirdF() {
TheBird.x = 270.95;
TheBird.y = 350.95;
birdA.push(TheBird);
addChild(TheBird);
public function loopF(event:Event) {
updateEnemyPositionsF();
updateBirdPositionsF();
hitTestF();
public function updateEnemyPositionsF() {
enemy1.y += 2;
public function updateBirdPositionsF() {
TheBird.x = mouseX;
public function hitTestF() {
if(TheBird.hitTestObject(enemy1))
gotoAndPlay(5);
trace('The Bird Hit Enemy 1');
This conflicts and causes this error:
1046: Type was not found or was not a compile-time constant: MouseEvent
^ ^ Code repeats to all of my event listeners
Thanks for your time.Thanks, i thought it might be this because of previous problems but i seen i already had : import flash.events.Event; so i thought that would be OK!
Second Error:
1180: Call to an undefined method Timer.
I think this is the same sort of thing but what to import to fix this?
So far these are my imports:
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
Thanks for helping.
Date: Thu, 3 Nov 2011 05:36:22 -0600
From: [email protected]
To: [email protected]
Subject: Error When Using Class
Re: Error When Using Class
created by markerline in Flash Pro - General - View the full discussion
Looks like you imported events.Event but not events.MouseEvent (or some similar syntax) basically you must import MouseEvents separately from other Events.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4005227#4005227
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4005227#4005227. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Flash Pro - General by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Dbms_crypto - avoid error when using different key in lower environment
Hello Experts,
We are using Oracle 11.2.0.2. We are planning to implement dbms_crypto to encrypt few columns. We clone the data from production to lower environment ( DEV, QC).
For the lower environments, we do not want to get the sensitive data from production and do not plan to use same key. Rather than getting an error when using differnt key, is it possible to get a different resultset back.
In other words, we want the implementation to be same across environments but want to use a diffent key in lower environment and get different result (or garbage).
Any suggestions would be greatly appreciated.
While testing this logic, I am getting following error when using differnt key to decrypt. It works fine if I use same key.
Error at line 1
ORA-28817: PL/SQL function returned an error.
ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
ORA-06512: at "SYS.DBMS_CRYPTO", line 44
ORA-06512: at line 19
DECLARE
l_credit_card_no VARCHAR2(19) := '1234 5678 9012 3456';
l_ccn_raw RAW(128) := UTL_RAW.cast_to_raw(l_credit_card_no);
l_key RAW(128) := UTL_RAW.cast_to_raw('abcdefgh');
l2_key RAW(128) := UTL_RAW.cast_to_raw('12345678');
l_encrypted_raw RAW(2048);
l_decrypted_raw RAW(2048);
BEGIN
DBMS_OUTPUT.put_line('Original : ' || l_credit_card_no);
l_encrypted_raw := DBMS_CRYPTO.encrypt(src => l_ccn_raw,
typ => DBMS_CRYPTO.des_cbc_pkcs5,
key => l_key);
DBMS_OUTPUT.put_line('Encrypted : ' || RAWTOHEX(UTL_RAW.cast_to_raw(l_encrypted_raw)));
l_decrypted_raw := DBMS_CRYPTO.decrypt(src => l_encrypted_raw,
typ => DBMS_CRYPTO.des_cbc_pkcs5,
key => l2_key); --**Using different key to decrypt
DBMS_OUTPUT.put_line('Decrypted : ' || UTL_RAW.cast_to_varchar2(l_decrypted_raw));
END;Thank you.If I understand what you are trying to do ... and I may not ... it is not going to work.
SQL> DECLARE
2 l_credit_card_no VARCHAR2(19) := '1612-1791-1809-2605';
3 l_ccn_raw RAW(128) := utl_raw.cast_to_raw(l_credit_card_no);
4 l_key1 RAW(128) := utl_raw.cast_to_raw('abcdefgh');
5 l_key2 RAW(128) := utl_raw.cast_to_raw('zyxwvuts'); -- alternate key used to attempt a different decryption
6
7 l_encrypted_raw RAW(2048);
8 l_decrypted_raw RAW(2048);
9 BEGIN
10 dbms_output.put_line('Original : ' || l_credit_card_no);
11
12 l_encrypted_raw := dbms_crypto.encrypt(l_ccn_raw, dbms_crypto.des_cbc_pkcs5, l_key1);
13
14 dbms_output.put_line('Encrypted : ' || RAWTOHEX(utl_raw.cast_to_raw(l_encrypted_raw)));
15
16 l_decrypted_raw := dbms_crypto.decrypt(src => l_encrypted_raw, typ => dbms_crypto.des_cbc_pkc
s5, key => l_key1);
17
18 dbms_output.put_line('Key1 : ' || utl_raw.cast_to_varchar2(l_decrypted_raw));
19
20 l_decrypted_raw := dbms_crypto.decrypt(src => l_encrypted_raw, typ => dbms_crypto.des_cbc_pkc
s5, key => l_key2);
21
22 dbms_output.put_line('Key2 : ' || utl_raw.cast_to_varchar2(l_decrypted_raw));
23 END;
24 /
Original : 1612-1791-1809-2605
Encrypted : 3534443342333642353141363846384237463732384636373943374630364234323243334539383042323135
Key1 : 1612-1791-1809-2605
DECLARE
ERROR at line 1:
ORA-28817: PL/SQL function returned an error.
ORA-06512: at "SYS.DBMS_CRYPTO_FFI", line 67
ORA-06512: at "SYS.DBMS_CRYPTO", line 44
ORA-06512: at line 20 -
Error when using Oracle Migration WorkBench (Sql Server 2k to Oracle 8i)
I'm trying to migrate a Sql Server 2k database to an Oracle 8i schema using OMWB. After using BCP to collect metadata information on the source database, I tried to capture the source data model and got a "Capture aborted" message on the progress screen (even though then it appears a dialog window reporting "0 errors and 0 warnings", funny!). Down there is the error log OMWB generated. After reading some posts, I changed some columns of the OMWB dictionary that holds the source database name, but still got the same error. If someone can enlighten me on this toppic, I'd greatly appreciated it.
Here's the error log of OMWB:
** Oracle Migration Workbench
** Production
** ( Build 20050629 )
** OMWB_HOME: D:\Datos\Download\Oracle\Oracle Migration Workbench\omwb
** user language: es
** user region: null
** user timezone:
** file encoding: Cp1252
** java version: 1.4.2_04
** java vendor: Sun Microsystems Inc.
** o.s. arch: x86
** o.s. name: Windows 2000
** o.s. version: 5.0
** Classpath:
..\lib\boot.jar
** Started : Fri Feb 23 17:18:48 GMT-03:00 2007
** Workbench Repository : Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
Repository Connection URL: jdbc:oracle:thin:@ServerCms:1521:sigcewbc
** The following plugins are installed:
** Microsoft Access 2.0/95/97/2000/2002/2003 Plugin, Production Release 10.1.0.4.0
** Microsoft SQLServer 2000 Plugin, Production Release 10.1.0.4.0
** Microsoft SQLServer 6.5 Plugin, Production Release 10.1.0.4.0
** Microsoft SQLServer 7.0 Plugin, Production Release 10.1.0.4.0
** Active Plugin : SQLServer2K
EXCEPTION :SQLServer2KDisconnSourceModelLoad.loadSourceModel(): oracle.mtg.migration.MigrationStopException: java.lang.IndexOutOfBoundsException: Index: 15, Size: 15
** Shutdown : Fri Feb 23 18:00:50 GMT-03:00 2007Duplicate thread
Error when using Oracle Migration WorkBench (Sql Server 2k to Oracle 8i) -
ABAP Runtime error when using RSPC
Hi Team,
I am getting ABAP runtime error when using RSPC in my system.For the same user id in other systems this transaction is working fine.Pls help me.
regds
ShaHello Sha Han,
What is the runtime error you are getting?
Please check the authorization also for the user in that system
Thanks
Chandran -
Compilation error when used SET or MULTISET operator on nested tables
Dear All,
I am getting Compilation error when used SET or MULTISET operator on nested tables inside a procedure.
This is working fine in other DB installations of 10g but does not work in another 10g DB.
it says "wrong number of parameter or datatype used in SET"
Can any one suggest what went wrong here?
Thanks in advance.Hi,
Thanks for ur reply...
Since MULTISET and SET operators are the new additions in base 10g release for manipulation of nested tables data, I am surprised that same is working in similar 5 DBs installations with 10.2.0.1.0 version, but does not work in the sixth.
SET and MULTISET operators are used inside the PL/SQL procedure which is getting compiled in the above mentioned 5 DBs but not in sixth DB.
it gives
On line: 3112
PLS-00306: wrong number or types of arguments in call to 'SET'
Hope this clarifies the issue... -
Error when using filter on date column in interactive report
Hi,
I'm getting the following error when using the filter on a date column. None of the criteria in the filter list work. All give me the same error but when I use the filter on a column feature (in the search bar) and use ">" and "<" those work.
Can someone please help me????
" Settledate is in the last 2 years
ORA-30175: invalid type given for an argument ORA-02063: preceding line from MAINDATA "I have a similar problem . I have an interactive report based on resultset stored in a collection; since all the columns of a collection are of string datatype, I convert the columns to appropriate datatypes before its returned to the user; everything works as desired except when I try to filter on a data column , I get a ORA-01858: a non-numeric character was found where a numeric was expected .
I turned on debug mode and am copying the output here , column c009 which is aliased to 'C' is the one that I am trying to apply the filter on
select
ROWID as apxws_row_pk,
"C001",
"C002",
"C003",
"C004",
"C005",
"C006",
"C007",
"C008",
"CHECKOUTTIMESTAMP",
"C010",
"C011",
"TO_NUMBER(C012)",
"TO_NUMBER(C013)",
"TO_NUMBER(C014)",
"C015",
"C016",
"C017",
"TO_NUMBER(C018)",
"C",
count(*) over () as apxws_row_cnt
from (
select * from (
Select c001,c002,c003,c004,c005,c006,c007,c008,to_date(c009,'dd-MON-yy HH24.MI') checkouttimestamp,
cast(to_date(c009,'dd-MON-yy HH24.MI') as timestamp) c,
--TO_TIMESTAMP(c009,'dd-MON-yy HH24.MI') c1 ,
trunc(to_date(c009,'dd-MON-yy HH24.MI')) checkoutdate,
c010,c011,to_number(c012),to_number(c013), to_number(c014),c015,c016,c017,to_number(c018) from apex_collections where collection_name = 'IR_BOOKSALES'
) r
where ("C" between systimestamp - ((1/24) :APXWS_EXPR_1) and systimestamp)*
) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
order by ROWID
0.04: IR binding: ":APXWS_EXPR_1"="APXWS_EXPR_1" value="1"
0.04: IR binding: ":APXWS_MAX_ROW_CNT"="APXWS_MAX_ROW_CNT" value="2000"
ORA-01858: a non-numeric character was found where a numeric was expected
I have tried to convert c009 to date, timestamp and timestamp with time zone datatypes ; they all return the same error ,but all 3 datatypes work fine with systimestamp when I run them in sqlplus. Any help would be appreciated. -
"Could not complete scan" error when using Windows Fax and Scan
"Could not complete scan" error when using Windows Fax and Scan with a HP OfficeJet Pro 8600 Plus All-In-One network printer.
Printing is fine.
When using the HP Scan application, get the error "Scanner communication cannot be established".
When scanning from the printer itself it fails with the same message. In addition the printer panel displays the error:
"The scan could not be completed due to one or more of the following issues:
Connection to the computer is lost
The scanner is in use
OCR application is not installed"
My PC is a HP Compaq Pro 6300 SFF 64bit, with ethernet cable to the router and ethernet cable to the printer
Originally ran Windows 8.0; recently upgraded to Windows 8.1.
Older separate Netgear router and modem was replaced with a newer Netgear Router/Modem, but both experienced the same problem.
There was no problem with the original Windows 8.0 configuration and only after upgrading to 8.1 did the problem emerge.
On my home netowrk I have an HP ProBook 6550b running Windows 7 sp1 that uses wireless to get to the Router, and it has no problem with scanning.
I have followed the recommendations of a number of articles relating to this issue (including: http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c02915410&product=4323659#N94), but there has been no change in behaviour.
The printer has a static IP address;
Power settings have been adjusted to Never for Turn off Hard Disk; Sleep and Hybrid Sleep.
Scanning has been tested with all firewalls and antivirus turned off and in Selective Startup.
The printer has been plugged directly into the power socket.
With all these settings the Windows 8.1 cannot scan while the Windows 7 laptop with wireless to the router has no problems.
Appreciate any insights into this problem.
I can only surmise that the problem is a compatibility problem between the 8600 Printer and Windows 8.1.
Any ideas?
regards,
MotorbikeYou can determine if there is compatiblity between the printer and PC by checking the Windows 8.1 hardware compatibility list. I have done that and it is shown to be fully compatible. If the driver you installed before was only the basic driver,it would explain the lack of scan and copy functionality.
Download and install the Windows 8.1 full feature driver and software on the HP Compaq Pro 6300 SFF 64bit PC .
http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=bi-108858-4&cc=us&dlc=en&lc=en...
****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
2015 Microsoft MVP - Windows Experience Consumer -
Photoshop CS4 "Program Error" when using Text tool
Hello. I was having problems with Photoshop displaying a "Program Error" every so often, so I deleted the preference file and all seemed good. But after deleting the preference file for my Photoshop CS4 and re-launching Photoshop, the text tool causes Photoshop to display a Program Error when using the tool. It never did this before. Should I reinstall Photoshop? I am using a Powermac G5 running 10.5.8. I have already tried repairing the disk permissions.
ThanksThats kinda what I thought too, but the problem started happening randomly. It started when we were trying to use photomerge with large photos. The program just started giving the program errors. I still think it may be a font problem, but without going through my 2000+ fonts and disabling them one by one, how can I resolve this issue?
Thanks -
Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?
Have no idea of what you were even doing in Photoshop my crystal ball is out for repairs so I can not see.
-
Multivalue error when using the previous() function
I am getting a multivalue error when using the previous() function on a dimension object in the report. I thought that the previous function was supposed to look at the current report and then look at the previous record's contents. How could this possibly give me a multivalue error when the value is clearly output in the previous row? Anyone have any ideas?
By the way, this is a valuable function for the types of reports that I design. The next() function would be even more valuable.
Thanks for your help.Hi Michael,
Could you please test the following solutions it might help you to resolve the issue.
Solution1:
Use slice and dice to reset all the tables that have #multivalue in it. The only problem with this workaround is they have to do the formatting manually.
Solution2:
Also, test the issue by changing the object to dimension if it is a measure or to measure if it is a dimension.
Regards,
Sarbhjeet Kaur -
UDESEncrypt Errors when using the JAVA engine (NW IDM 7.0)
Folks,
I'm seeing an error when I use the uDESEncrypt function with the Java Engine in NW IDM SP2 Patch 3.
The error I am getting is:
runFunctionsInString($FUNCTION.encrPWD()$$) got exception
org.mozilla.javascript.EvaluatorException: uDESEncrypt: Key should be exactly 24 bytes long.
The code calling it is:
// Main function: encrPWD
function encrPWD(Par){
//Example calling DSE internal function
//UserFunc.uStop("Terminated by user");
key = "C:\Program Files\SAP\IdM\Workflow\configs\KEY\keys.ini";
OutString = UserFunc.uDESEncrypt(key, Par);
return OutString;
I have also seen this error when using Patch 4.
Interestingly enough, the error does not occur when using the Windows Engine. Anyone else seeing this?
Thanks,
MattHi Matthew,
Try to replace the '\' with '
key = "C:
Program Files
SAP
IdM
Workflow
configs
KEY
keys.ini";
Alternative approaches,
1) setting key empty and it will look into %DSE_HOME%\KEY\key.ini
which should be C:\Program Files\SAP\IdM\Identity Center\Key\key.ini on default installation path.
2) or setting the key to something like = 6D5A2AF59B1CDD7F9592484F178331C891537A3F9B91D362
a 24 byte key...
Also when using DES you should ensure that in Identity Center underneath Options/General
you have encryption algorithm set to 3DES.
Normally if you intend to use this for password provisioning in IC you would also
on the identity store (for instance 'Enterprise people') underneath 'password policy' check
of for 'enable password provisioning.'
By doing so the MX_ENCRYPTED_PASSWORD with be set when operating through
workflow (3DES encryption version of the MX_PASSWORD) which allows you to obtain password
when provisioning to other target systems...
Maybe you are looking for
-
Hi Gurus, What happens when it takes down payments in Payment program Does it reduce the balance we have to pay? and what happens to the open down payments? pls suggest Regards, Ravi
-
Can't get pdf hyperlink in DW CS4 to work...
Hello all, I created a page on which I wanted a clickable link to download a pdf. I went to Insert>Hyperlink, selected my text and pointed the window to the pdf file. When I upload it, I can see the text with the usual blue underline, but I cannot cl
-
Hey guys, Planning my CCIE voice, have come up with the below list of equipments, can you guys please have a look at it and let me know what is required and what all can I do without. ⢠MCS-7825H 3GHZ Xeon 2GB MEMORY 40GB HDD ---- 3 servers, 1 for
-
Indesign CS6 8.0.1. crashes when exporting a PDF
I am having a problem with Indesign CS6 8.0.1. When exporting a PDF Indesign crashes everytime. Here is the crash report http://pastebin.com/qYu9cWwP I am on a mac running 10.7.5 This happens with every file I try to export every time.
-
Saving spool request in PDF format using background job
Hi, We have some important jobs which create spool requests. My requirement is to save those spool requests either on front end or on application server in pdf format. I tried with program RSTXPDF4 but i can save those files only when pdf conversio