Remote exception while fetching information from ALI collaboration 4.5
We have seen a remote exception recurring from IDK api while accessing collaboration service.
It says :
“java.rmi.RemoteException: Unexpected fault was returned by the server (faultcode: Server.userException, faultstring: org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.).
at com.plumtree.remote.prc.collaboration.project.ProjectManagerWrapper.queryProjects(ProjectManagerWrapper.java:177)”
we are using idk api 6.0 to fetch information from ali collaboration 4.5 concurrently.
Please guide us
First and foremost question....do you think is this THE ONLY & BEST possible way to implement your business logic ? To me it seems this can be achieved using much less code...more the code, more the chances of errors, difficult to debug and difficult to maintain...
Anyways, it is quite difficult to pinpoint the error without the knowledge of underlying table structure and data. Here are some observations...
In your outermost loop, you are doing this:
FETCH cur_accdetail BULK COLLECT INTO vl_t_LogDate; If this step yields data, you are populating vl_t_ModStEnDate collection.
However, if FETCH results into an exception (maybe NO_DATA_FOUND), you are writing the error to a file and program CONTINUES.
In next logic, you are directly refereing to vl_t_ModStEnDate collection, without verifying whether it is populated. THAT MAY BE THE CULPRIT. NO CLAIMS...JUST GUESSES....
BUT, I sincerely request you to revisit your requirement and see if you really need to have this much code to address the same.
p.s. If you feel you don't have that much time (close deadlines etc...), take my word, it will be worth doing it now.
Similar Messages
-
How to use for all entires clause while fetching data from archived tables
How to use for all entires clause while fetching data from archived tables using the FM
/PBS/SELECT_INTO_TABLE' .
I need to fetch data from an Archived table for all the entries in an internal table.
Kindly provide some inputs for the same.
thanks n Regards
RameshHi Ramesh,
I have a query regarding accessing archived data through PBS.
I have archived SAP FI data ( Object FI_DOCUMNT) using SAP standard process through TCODE : SARA.
Now please tell me can I acees this archived data through the PBS add on FM : '/PBS/SELECT_INTO_TABLE'.
Do I need to do something else to access data archived through SAP standard process ot not ? If yes, then please tell me as I am not able to get the data using the above FM.
The call to the above FM is as follows :
CALL FUNCTION '/PBS/SELECT_INTO_TABLE'
EXPORTING
archiv = 'CFI'
OPTION = ''
tabname = 'BKPF'
SCHL1_NAME = 'BELNR'
SCHL1_VON = belnr-low
SCHL1_BIS = belnr-low
SCHL2_NAME = 'GJAHR'
SCHL2_VON = GJAHR-LOW
SCHL2_BIS = GJAHR-LOW
SCHL3_NAME = 'BUKRS'
SCHL3_VON = bukrs-low
SCHL3_BIS = bukrs-low
SCHL4_NAME =
SCHL4_VON =
SCHL4_BIS =
CLR_ITAB = 'X'
MAX_ZAHL =
tables
i_tabelle = t_bkpf
SCHL1_IN =
SCHL2_IN =
SCHL3_IN =
SCHL4_IN =
EXCEPTIONS
EOF = 1
OTHERS = 2
OTHERS = 3
It gives me the following error :
Index for table not supported ! BKPF BELNR.
Please help ASAP.
Thnaks and Regards
Gurpreet Singh -
How can we improve the performance while fetching data from RESB table.
Hi All,
Can any bosy suggest me the right way to improve the performance while fetching data from RESB table. Below is the select statement.
SELECT aufnr posnr roms1 roanz
INTO (itab-aufnr, itab-pposnr, itab-roms1, itab-roanz)
FROM resb
WHERE kdauf = p_vbeln
AND ablad = itab-sposnr+2.
Here I am using 'KDAUF' & 'ABLAD' in condition. Can we use secondary index for improving the performance in this case.
Regards,
HimanshuHi ,
Declare intenal table with only those four fields.
and try the beloe code....
SELECT aufnr posnr roms1 roanz
INTO table itab
FROM resb
WHERE kdauf = p_vbeln
AND ablad = itab-sposnr+2.
yes, you can also use secondary index for improving the performance in this case.
Regards,
Anand .
Reward if it is useful.... -
Eliminate duplicate while fetching data from source
Hi All,
CUSTOMER TRANSACTION
CUST_LOC CUT_ID TRANSACTION_DATE TRANSACTION_TYPE
100 12345 01-jan-2009 CREDIT
100 23456 15-jan-2000 CREDIT
100 12345 01-jan-2010 DEBIT
100 12345 01-jan-2000 DEBITNow as per my requirement, i need to fetch data from CISTOMER_TRANSACTION table for those customer which has transaction in last 10 years. In my above data, customer 12345 has transaction in last 10 years, whereas for customer 23456, does not have transaction in last 10 years so will eliminate it.
Now, CUSTOMER_TRANSACTION table has approximately 100 million records. So, we are fectching data in batches. Batching is divided into months. Total 120 months. Below is my query.
select *
FROM CUSTOMER_TRANSACTION CT left outer join
(select distinct CUST_LOC, CUT_ID FROM CUSTOMER_TRANSACTION WHERE TRANSACTION_DATE >= ADD_MONTHS(SYSDATE, -120) and TRANSACTION_DATE < ADD_MONTHS(SYSDATE, -119) CUST
on CT.CUST_LOC = CUST.CUST_LOC and CT.CUT_ID = CUST.CUT_IDThru shell script, months number will change. -120:-119, -119:-118 ....., -1:-0.
Now the problem is duplication of records.
while fetching data for jan-2009, it will get cust_id 12345 and will fetch all 3 records and load it into target.
while fetching data for jan-2010, it will get cust_id 12345 and will fetch all 3 records and load in into target.
So instead of having only 3 records, for customer 12345 it will be having 6 records. Can someone help me on how can i eliminate duplicate records from getting in.
As of now i have 2 ways in mind.
1. Fetch all records at once. Which is impossible as it will give space issue.
2. After each batch, run a procedure which will delete duplicate records based on cust_loc, cut_id and transaction_date. But again it will have performance problem.
I want to eliminate it while fetching data from source.
Edited by: ace_friends22 on Apr 6, 2011 10:16 AMYou can do it this way....
SELECT DISTINCT cust_doc,
cut_id
FROM customer_transaction
WHERE transaction_date >= ADD_MONTHS(SYSDATE, -120)
AND transaction_date < ADD_MONTHS(SYSDATE, -119)However please note that - if want to get the transaction in a month like what you said earlier jan-2009 and jan-2010 and so on... you might need to use TRUNC...
Your date comparison could be like this... In this example I am checking if the transaction date is in the month of jan-2009
AND transaction_date BETWEEN ADD_MONTHS(TRUNC(SYSDATE,'MONTH'), -27) AND LAST_DAY(ADD_MONTHS(TRUNC(SYSDATE,'MONTH'), -27)) Your modified SQL...
SELECT *
FROM customer_transaction
WHERE transaction_date BETWEEN ADD_MONTHS(TRUNC(SYSDATE,'MONTH'), -27) AND LAST_DAY(ADD_MONTHS(TRUNC(SYSDATE,'MONTH'), -27))Testing..
--Sample Data
CREATE TABLE customer_transaction (
cust_loc number,
cut_id number,
transaction_date date,
transaction_type varchar2(20)
INSERT INTO customer_transaction VALUES (100,12345,TO_DATE('01-JAN-2009','dd-MON-yyyy'),'CREDIT');
INSERT INTO customer_transaction VALUES (100,23456,TO_DATE('15-JAN-2000','dd-MON-yyyy'),'CREDIT');
INSERT INTO customer_transaction VALUES (100,12345,TO_DATE('01-JAN-2010','dd-MON-yyyy'),'DEBIT');
INSERT INTO customer_transaction VALUES (100,12345,TO_DATE('01-JAN-2000','dd-MON-yyyy'),'DEBIT');
--To have three records in the month of jan-2009
UPDATE customer_transaction
SET transaction_date = TO_DATE('02-JAN-2009','dd-MON-yyyy')
WHERE cut_id = 12345
AND transaction_date = TO_DATE('01-JAN-2010','dd-MON-yyyy');
UPDATE customer_transaction
SET transaction_date = TO_DATE('03-JAN-2009','dd-MON-yyyy')
WHERE cut_id = 12345
AND transaction_date = TO_DATE('01-JAN-2000','dd-MON-yyyy');
commit;
--End of sample data
SELECT *
FROM customer_transaction
WHERE transaction_date BETWEEN ADD_MONTHS(TRUNC(SYSDATE,'MONTH'), -27) AND LAST_DAY(ADD_MONTHS(TRUNC(SYSDATE,'MONTH'), -27));Results....
CUST_LOC CUT_ID TRANSACTI TRANSACTION_TYPE
100 12345 01-JAN-09 CREDIT
100 12345 02-JAN-09 DEBIT
100 12345 03-JAN-09 DEBITAs you can see, there are only 3 records for 12345
Regards,
Rakesh
Edited by: Rakesh on Apr 6, 2011 11:48 AM -
Fatal error while fetching data from bi
hi,
i am getting following error while fetching data from bi using select statement
i have written code in this way
SELECT [Measures].[D2GFTNHIOMI7KWV99SD7GPLTU] ON COLUMNS, NON EMPTY { [DEM_STATE].MEMBERS} ON ROWS FROM DEM_CUBE/TEST_F_8
error description when i click on test
Fatal Error
com.lighthammer.webservice.SoapException: The XML for Analysis provider encountered an errorthanks for answering .but when i tried writing the statement in transaction 'MDXTEST' and clicked on check i am getting following error
Error occurred when starting the parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
Message no. BRAINOLAPAPI011
Diagnosis
Failed to start the MDX parser.
System Response
timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
Procedure
Check the Sys Log in Transaction SM21 and test the TCP-IP connection MDX_PARSER in Transaction SM59.
SO I WENT IN SM 59 TO CHECK THE CONNECTION.
CAN U TELL ME WHAT CONFIGERATION I NEED TO DO FOR MAKING SELECT STATEMENTS WORK? -
Watched folder error - "Exception while getting principal from Directory manager"
Hi! I've been having problems with a LiveCycle ES installation.
I've configured a watched folder that starts a process with an Office
Document, converts it to PDF and applies a Rights Management Policy.
It runs on behalf of an Active Directory user.
Sometimes it works flawlessly, but most of the time it fails, giving a
ridiculously long failure log with the longest trace stacks I've ever
seen in life... resumed:
=======================
ALC-DSC-600-000: com.adobe.idp.dsc.provider.service.scheduler.impl.SchedulerRuntimeException : Failure to invoke the job [watched_folder_endpoint_name]
Caused by: ALC-FEP-011-000: com.adobe.idp.dsc.service.file.impl.FileProviderRuntimeException: Failed to get the context on behalf of user [username], domain [company_domain] for watch folder [watched_folder_endpoint_name]
Caused by: | [com.adobe.idp.um.api.impl.AuthenticationManagerImpl] errorCode:16386 errorCodeHEX:0x4002 message:Exception while getting principal from Directory manager| [IDPLoggedException] errorCode:12801 errorCodeHEX:0x3201 message:Exception while getting principal from Directory manager
chainedException:javax.ejb.TransactionRolledbackLocalException: null;
CausedByException is:
nullchainedExceptionMessage:null; CausedByException is:
null chainedException
trace:javax.ejb.TransactionRolledbackLocalException: null;
CausedByException is:
null
=======================
I vaguely suspect is the server's clock going out of sync with the domain controller's clock, but I tried everything I knew of about it with no consistent results.
It's LiveCycle 8.0.1 SP2 installed on a Windows 2003 Server.
Manual install, JBoss Clustered configuration (the second node is actually turned off for the time being)
SQL Server 2005 as backend Database
Users on Active Directory on a Windows 2003 Server -which is a "copy" of the main domain controller.
Watched folder is in a mounted share of another Windows 2003 Server acting as fileserver.
Any clue will be greatly appreciated!!Hello,
sorry in advance for my english. i am beginning in Adobe LiveCycle and i think that you can help me : i want to configure a watched folder to automatically convert in pdf file and apply a right management policy. Can you tell me how you configure it ? many thanks in advance. regards -
Exception when fetch message from pop3 mail server
below exception occur whenever i fetched message from pop3 mail server. Its occur for perticular message. so i catched javax.mail.MessagingException but this is not working and rest of the messages skips.
plz help me , its urgent.
javax.mail.MessagingException: error loading POP3 headers;
nested exception is:
java.io.IOException: Unexpected response: ------=_NextPart_000_01B9_01C8
A1AB.148BE090
at com.sun.mail.pop3.POP3Message.loadHeaders(POP3Message.java:467)
at com.sun.mail.pop3.POP3Message.getHeader(POP3Message.java:275)
at javax.mail.internet.MimeMessage.getSubject(MimeMessage.java:717)
at fetch1.<init>(fetch1.java:92)
at fetch1.main(fetch1.java:185)
Caused by: java.io.IOException: Unexpected response: ------=_NextPart_000_01B9_0
1C8A1AB.148BE090
at com.sun.mail.pop3.Protocol.simpleCommand(Protocol.java:361)
at com.sun.mail.pop3.Protocol.multilineCommand(Protocol.java:373)
at com.sun.mail.pop3.Protocol.top(Protocol.java:271)
at com.sun.mail.pop3.POP3Message.loadHeaders(POP3Message.java:451)
... 4 more
Press any key to continue...Code :-
import java.util.*;
import java.io.*;
import javax.mail.*;
import javax.mail.Flags.*;
import javax.mail.internet.*;
import javax.activation.*;
public class fetch3
fetch3()
try
// Setup properties
Properties props = System.getProperties();
props.put("mail.pop3.host","myMailserver ip");
// Setup authentication, get session
Authenticator auth = new PopupAuthenticator();
Session session = Session.getDefaultInstance(props, auth);
// Get the store
Store store = session.getStore("pop3");
store.connect();
// Get folder
Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_WRITE);
Flags flag = folder.getPermanentFlags();
// Get directory
Message message[] = folder.getMessages();
// Display from (only first) and subject of messages
for (int i=0, n=message.length; i<n; i++)
System.out.println ("------------------------------------------------------");
System.out.println(" From : "+message.getFrom()[0]);
System.out.println(" To : "+message[i].getAllRecipients()[0]+" "+message[i].getAllRecipients().length);
System.out.println(" Replyto : "+message[i].getReplyTo()[0]);
System.out.println(" Subject : "+message[i].getSubject());
System.out.println ("type "+message[i].getContent());
Part messagePart=message[i];
Object content=messagePart.getContent();
// -- or its first body part if it is a multipart message --
if (content instanceof Multipart)
messagePart=((Multipart)content).getBodyPart(0);
// System.out.println("[ Multipart Message ]");
// -- Get the content type --
String contentType=messagePart.getContentType();
// -- If the content is plain text, we can print it --
System.out.println("CONTENT:"+contentType);
if (contentType.startsWith("text/plain") || contentType.startsWith("text/html") || contentType.startsWith("multipart/alternative"))
InputStream is = messagePart.getInputStream();
BufferedReader reader
=new BufferedReader(new InputStreamReader(is));
String thisLine=reader.readLine();
while (thisLine!=null)
System.out.println(thisLine);
thisLine=reader.readLine();
System.out.println ("------------------------------------------------------");
// Close connection
folder.close(false);
store.close();
catch(Exception e)
e.printStackTrace();
public static void main(String s[])
new fetch3();
Regards
Sagar
Edited by: sagar_birari on 23 Apr, 2008 1:18 PM
Edited by: sagar_birari on 23 Apr, 2008 4:30 PMit shows below output
C:\>java -Dmail.debug=true fetch1
DEBUG: JavaMail version 1.4ea
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_06\lib\java
mail.providers (The system cannot find the file specified)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax
.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsyste
ms, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com
.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLSt
ore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsyst
ems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.su
n.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=jav
ax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc],
com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP
3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.
sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STOR
E,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Prov
ider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc],
pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems
, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.S
MTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_06\lib\java
mail.address.map (The system cannot find the file specified)
DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.
POP3Store,Sun Microsystems, Inc]
DEBUG POP3: connecting to host "pop3_server_ip", port 110, isSSL false
S: +OK Hello there.
C: USER [email protected]
S: +OK Password required.
C: PASS mypass
S: +OK logged in.
DEBUG: setDebug: JavaMail version 1.4ea
C: STAT
S: +OK 16 143077
C: NOOP
S: +OK Yup.Edited by: sagar_birari on 24 Apr, 2008 1:16 PM
Edited by: sagar_birari on 24 Apr, 2008 1:18 PM -
Reg: Proxy error while fetching data from RFC's
Hi All,
I am fetching data from RFC's. When the data is in bulk I am getting an error like:
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /webdynpro/dispatcher/sap.com/pb/PageBuilder.
Reason: Error reading from remote server
When the data is samll only I am not getting any error and am able to fetch it easily. Please suggest me something in this regard.
Thanks in advance,
GauravHi Detlef / Gowtham,
Now I am able to fetch data from flat files from OWB Server as well as OWB Client.
One way I have achieved as suggested by you
1) Creating location on the OWB Client
2) Samples the files at client
3) Created & Configured external table
4) Copy all flat files on OWB Server
5) Updated the location which I created at the client.
Other way
1) Creating location on the OWB Client
2) Samples the files at client
3) Created & Configured external table
4) Copied flat files on the sever in same drive & directory . like if my all flat files are on C:\data at OWB Client then I copied flat file C:\data on the OWB Server. But this is feasible for Non-Windows.
Hence my problem solved.
Thanks a lot.
Regards,
Manmohan -
Slow Speed While fetching data from SQL 2008 using DoQuery.
Hello,
I am working for an AddOn and tried to use DoQuery for fetching data from SQL 2008 in C#.
There are around 148 records which full fill this query condition but it takes much time to fetch the data.
I wanna know that is there any problem in this code by which my application is getting slower.
I used break Points and checked it, I founds that while connecting to the server it is taking time.
Code:
// Get an initialized SBObob object
oSBObob = (SAPbobsCOM.SBObob)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoBridge);
//// Get an initialized Recordset object
oRecordset = (SAPbobsCOM.Recordset)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
string sqlstring = "select DocEntry,ItemCode From OWOR where OWOR.Status='R' and DocEntry not in ( Select distinct(BaseRef) from IGE1 where IGE1.BaseRef = OWOR.DocEntry)";
oRecordset.DoQuery(sqlstring);
var ProductList = new BindingList<KeyValuePair<string, string>>();
ProductList.Add(new KeyValuePair<string, string>("", "---Please Select---"));
while (!(oRecordset.EoF))
ProductList.Add(new KeyValuePair<string, string>(oRecordset.Fields.Item(0).Value.ToString(), oRecordset.Fields.Item(0).Value.ToString() + " ( " + oRecordset.Fields.Item(1).Value.ToString() + " ) "));
oRecordset.MoveNext();
cmbProductionOrder.ValueMember = "Key";
cmbProductionOrder.DisplayMember = "Value";
Thanks and Regards,
Ravi SharmaHi Ravi,
your code and query look correct. But can you ellaborate a little bit.
It seems to be a DI API program ( no UI API ) ?
When you say "I founds that while connecting to the server it is taking time." do you mean the recordset query or the DI API connection to SBO ? The later would be "normal" since the connection can take up to 30 seconds.
To get data it is usually better to use direct SQL connections.
regards,
Maik -
Facing prolem in Dashboard 4.1, while fetching data from Bex Query
Hi Exports,
I am facing an error message " Failed to (de-)serialise data. (Xsl 000004)" while fetching data in Dashboard from Bex Query.
The query is getting connect. while drag n drop some dimensions and measures then going for Refesh or Run Query, geting this error.
The same query is working fine with other comp like webi n crystal.
Anybody having solution for this please let me know. I am stuck somewhere.
Thank YouHi,
Check the data in the infoProvider.Reduce the Bex query Characteristics & Key figure fields.Try to identify due to which characteristsic adding in Bex Query ,are you facing the issue.Check that characteristic data in the infoProvider.
Regards,
Venkat -
Exception while loading properties from an xml file
Hi all,
I've got a problem while loading properties from an XML file:
java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl cannot be cast to org.w3c.dom.Element
ERROR - Cannot load properties from the specified file <./conf/login.prop> java.lang.ClassCastException: org.apache.xerces.dom.DeferredCommentImpl cannot be cast to org.w3c.dom.Element
at java.util.XMLUtils.importProperties(XMLUtils.java:97)
at java.util.XMLUtils.load(XMLUtils.java:69)
at java.util.Properties.loadFromXML(Properties.java:852)
at g2.utility.HRPMProperties.<init>(HRPMProperties.java:78)
at g2.utility.HRPMProperties.getInstance(HRPMProperties.java:94)
at g2.gui.workers.ApplicationSwingWorker.<init>(ApplicationSwingWorker.java:36)
at g2.main.Main.main(Main.java:37)but this code worked before, and I've got the xerces and xercesImpl packages in the classpath, anyone can give me an hint on how to fix the problem?Here there's the code that instantiates the HRPMProperties object loading the property file:
public class HRPMProperties extends Properties {
* A reference to myself.
protected static HRPMProperties mySelf = null;
* The property file to which load the configuration.
protected static String propertyFile = "./conf/login.prop";
* A set of static strings used as keys in the properties file.
public final static String DATABASE_URL = "database_url";
public final static String DATABASE_USERNAME = "database_username";
public final static String DATABASE_PASSWORD = "database_password";
public final static String REAL_USERNAME = "real_username";
public final static String REAL_PASSWORD = "real_password";
public final static String PHANTOM_LOGIN = "login_thru_phantom_user";
public final static String AUTOCONNECT = "autoconnect";
public final static String TRANSLATION_FILE = "translation_file";
* Builds up an empty properties map.
protected HRPMProperties(){
super();
this.reload();
* Builds up the property map from the specified input file. <B> The file must be in XML format</B>.
* In case of exception and/or problems reading from the specified file, an empty property map is returned.
* @param fileName the path and the name of the file with the XML representation of the properties.
protected HRPMProperties(String fileName){
super();
try{
this.loadFromXML(new FileInputStream(fileName));
}catch(Exception e){
Logger.error("Cannot load properties from the specified file <"+fileName+"> " + e);
e.printStackTrace();
* Provides an instance of the property class loaded from the default configuration file.
* @return the property instance
public static final HRPMProperties getInstance(){
if( HRPMProperties.mySelf != null )
return HRPMProperties.mySelf;
else{
HRPMProperties.mySelf = new HRPMProperties(HRPMProperties.propertyFile);
return HRPMProperties.mySelf;
}The constructor is the one triggering the exception, so there's a problem loading the XML property file. -
Error while fetching data from OWB Client using External Table.
Dear All,
I am using Oracle Warehouse Builder 11g & Oracle 10gR2 as repository database on Windows 2000 Server.
I facing some issue in fetching data from a Flat File using external table from OWB Client.
I have perform all the steps without any error but when I try to view the data, I got the following error.
======================================
RA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
ORA-06512: at "SYS.ORACLE_LOADER", line 19
java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
ORA-06512: at "SYS.ORACLE_LOADER", line 19
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774)
at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377)
at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386)
at oracle.wh.ui.owbcommon.QueryResult.<init>(QueryResult.java:18)
at oracle.wh.ui.owbcommon.dataviewer.relational.OracleQueryResult.<init>(OracleDVTableModel.java:48)
at oracle.wh.ui.owbcommon.dataviewer.relational.OracleDVTableModel.doFetch(OracleDVTableModel.java:20)
at oracle.wh.ui.owbcommon.dataviewer.RDVTableModel.fetch(RDVTableModel.java:46)
at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel$1.actionPerformed(BaseDataViewerPanel.java:218)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel.executeQuery(BaseDataViewerPanel.java:493)
at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.init(BaseDataViewerEditor.java:116)
at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.<init>(BaseDataViewerEditor.java:58)
at oracle.wh.ui.owbcommon.dataviewer.relational.DataViewerEditor.<init>(DataViewerEditor.java:16)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at oracle.wh.ui.owbcommon.IdeUtils._tryLaunchEditorByClass(IdeUtils.java:1412)
at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1349)
at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1367)
at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:869)
at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:856)
at oracle.wh.ui.console.commands.DataViewerCmd.performAction(DataViewerCmd.java:19)
at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
===========================
In the error it is showing that file expense_categories.csv in SOURCE_LOCATION not found but I am 100% sure that file is very much there.
Is anybody face the same issue?
Do we need to configure something before loading data from a flat file from OWB Client?
Any help would higly appreciable.
Regards,
Manmohan SharmaHi Detlef / Gowtham,
Now I am able to fetch data from flat files from OWB Server as well as OWB Client.
One way I have achieved as suggested by you
1) Creating location on the OWB Client
2) Samples the files at client
3) Created & Configured external table
4) Copy all flat files on OWB Server
5) Updated the location which I created at the client.
Other way
1) Creating location on the OWB Client
2) Samples the files at client
3) Created & Configured external table
4) Copied flat files on the sever in same drive & directory . like if my all flat files are on C:\data at OWB Client then I copied flat file C:\data on the OWB Server. But this is feasible for Non-Windows.
Hence my problem solved.
Thanks a lot.
Regards,
Manmohan -
BAM reports taking more time while fetching data from EDS
I have created an external Data Source(EDS) in the BAM, and when i create an object with that EDS, it is taking very long to fetch data from the EDS( more than 20 mins.), but as the Database is installed on my local system, when i fire a query there, it don't take much time. Please help me in this, what could be the possible reason?
Your messaging gateway question would be better addressed in the SQL PL/SQL forum
All Places > Database > Oracle Database + Options > SQL and PL/SQL > Discussions -
Oracle mgw more time while fetching data from MQ
Dear All,
Good morning.
I am using oracle 11.2.0.3 version and using MGW to connect to MQ series (IBM WebSphere MQ ,Version: 7.5.0.0).
We are experincing delay while retriving message from MQ for some times and it is not happening always.
MQ2AQ
Found MQ MSG
>>2014-12-22 09:25:49 MGW Engine 1 TRACE Polling
Polling thread: JOB_MQ2AQ new msgCount = 1
2014-12-22 09:25:49
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:49 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:49
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:50 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:50
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:51 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:51
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:52 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:52
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:53 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:53
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:54 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:54
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:55 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:55
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:56 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:56
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:57 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:57
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:58 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:58
MQ2AQ
MQ MSG DEQ Start
>>2014-12-22 09:25:59 MGW Engine 1 TRACE worker0
entering deqMessages for job JOB_MQ2AQ
2014-12-22 09:25:59
MQ2AQ
MQ MSG DEQ Retry
>>2014-12-22 09:25:59 MGW Engine 1 TRACE Polling
Polling thread: skip polling JOB_MQ2AQ msg count=1
2014-12-22 09:25:59
MQ2AQ
MQ MSG DEQ Finsh
>>2014-12-22 09:25:59 MGW Engine 1 TRACE worker0
leaving deqMessages for job JOB_MQ2AQ with seqno 1544 deqMsgCount = 1
2014-12-22 09:25:59
MQ2AQ
MQ MSG ENQ to AQ
>>2014-12-22 09:25:59 MGW Engine 1 TRACE worker0
entering enqMessages for job JOB_MQ2AQ with request 1544
2014-12-22 09:25:59
MQ2AQ
ENQ MSG 2 AQ Finish
>>2014-12-22 09:26:02 MGW Engine 1 TRACE worker0
leaving enqMessages for job JOB_MQ2AQ with seqno 1544
2014-12-22 09:26:02
MQ2AQ
MSG REC
>>2014-12-22 09:26:02 MGW Engine 1 TRACE worker0
leaving commitMessages for job JOB_MQ2AQ with seqno 1544
2014-12-22 09:26:02
Above log took 11 sec to retrive the message from MQ
But the below log took 1 sec and i use the same message in both time.
MQ2AQ
Found MQ MSG
>>2014-12-22 09:35:01 MGW Engine 1 TRACE Polling
Polling thread: JOB_MQ2AQ new msgCount = 1
2014-12-22 09:35:01
MQ2AQ
MQ MSG DEQ Start
>>2014-12-22 09:35:01 MGW Engine 1 TRACE worker0
entering deqMessages for job JOB_MQ2AQ
2014-12-22 09:35:01
MQ2AQ
MQ MSG DEQ Finsh
>>2014-12-22 09:35:01 MGW Engine 1 TRACE worker0
leaving deqMessages for job JOB_MQ2AQ with seqno 1545 deqMsgCount = 1
2014-12-22 09:35:01
MQ2AQ
MQ MSG ENQ to AQ
>>2014-12-22 09:35:01 MGW Engine 1 TRACE worker0
entering enqMessages for job JOB_MQ2AQ with request 1545
2014-12-22 09:35:01
MQ2AQ
ENQ MSG 2 AQ Finish
>>2014-12-22 09:35:01 MGW Engine 1 TRACE worker0
leaving enqMessages for job JOB_MQ2AQ with seqno 1545
2014-12-22 09:35:01
MQ2AQ
MSG REC
>>2014-12-22 09:35:01 MGW Engine 1 TRACE worker0
leaving commitMessages for job JOB_MQ2AQ with seqno 1545
2014-12-22 09:35:01
It showing Polling thread: skip polling JOB_MQ2AQ msg count=1" multiple times. what is it mean?
Can anyone share any good doc which i can refer to debug oracle message gate way issue.
Thanks,
Shine.Your messaging gateway question would be better addressed in the SQL PL/SQL forum
All Places > Database > Oracle Database + Options > SQL and PL/SQL > Discussions -
Sessions opening\closing in oracle while fetching data from XI
Hi Friends,
I used JDBC adaptor to fetch data from Oracle. I set the poll interval 86400 seconds because we need to run it on daily basis.
Now when XI fetch data from Oracle, It will open session in oracle, but it is not closed automatically. So, I have nearly 100 channels, and all channels are activated. So, for each channel 1 session is opened in oracle. By this way, the oracle server performance goes down. It is not working properly at that time.
How can I close these sessions in oracle.
Regards,
NarendraDid u try this paramter in JDBC sender adapter...
Disconnect from Database After Processing Each Message
Set this indicator if the database connection is to be released and reestablished before every poll interval.
-Siva Maranani
Maybe you are looking for
-
Copy Protection for home movies
I have a small video recording business. I taped a ballet recital and will sell the videos to the parents. I would like to know if there is a way that I can copy protect these so they can not make copies of them. thanks
-
Use of scripts in $OAD_TOP/admin/scripts/CONTEXT
Hi , please let me know the function of below scripts for 11i adfmsctl.sh jtffmctl.sh adfrmctl.sh adexecsql.pl adtcfctl.sh adfmcctl.sh
-
MATCH_RECOGNIZE question
I have a MATCH_RECOGNIZE CQLquery (see below) and wonder, why an event is always just in one match, not in multiple, as it seems. Let's say I have an event stream like this: E1-E2-E3-E4 Assume my PATTERN(A B) is a hit for E1-E2, E2-E3 and E3-E4. Why
-
Hey Kids... Quick question I should know the answer to but don't. Client sent me a logo for their film that I redid in Photoshop CS 4 - but when I brought it in to FCP it was squished. I thought (foolishly or not) that the newer versions compensated
-
Aperture No Longer finds Masters
I have a large number of my photos that I have opened and worked with in Photoshop adding layers and such. Within Aperture, these files show that they are a PSD file. But now when I choose to edit them in photoshop, all the layers are gone. I found