Uncaught Exception when opeing query
When opening a query/workbbok there is an Exception Error like;
An error has occured when communicating with the BI server.
Runtime Errors UNCAUGHT_EXCEPTION
Exception CX_RSR_X_MESSAGE
What happened?
The exception 'CX_RSR_X_MESSAGE' was raised, but it was not caught anywhere
along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_RSBOLAP_BICS_SERVICES======CP' has to be
terminated.
This ia only happening in Prod server.
Can you suggest what can be the reason and to resolve it.
Regards
Soumen
[Hello ,|http://chandranonline.blogspot.com]
Please see the following OSS notes
SAP Note 1067918 CL_RSBOLAP_BICS_SERVICES, HANDLE_UNCAUGHT_EXCEPTION
SAP Note 1045008 RRK_LIST_OPEN CX_SY_REF_IS_INITIAL UNCAUGHT_EXCEPTION
[Thanks|http://chandranonline.blogspot.com]
[Chandran|http://chandranonline.blogspot.com]
Similar Messages
-
Unexpected problem: uncaught exception when working with audio files in Soundtrack Pro
Hey,
Whenever I double click an audio file in the timeline to work on it, I end up getting the Error message: "Unexpected problem: uncaught exception" and Soundtrack Pro eventually crashes. Also, this happens when I try to work with audio files in the file editor. I have Leopard and am using Logic Studio 8. Any insight would be much appreciated. Thanks
MattDidnt know how to remove the original clip from the STP arrange window - or whatever it's called in STPro. So I could go no further in my perverse science experiment.
It also appeared that I could only import an aif but not a wav?
I gave up on STPro and did what I needed to do in Logic, which I use regularly.
Thank you for folowing up on this.
PS. I used to use an old PowerPC version (1.0.3) of STPro and loved the way it visually showed the change in the waveform when you added each efffect. It appears that the new version (3.0.1) does not allow you to do this anymore? You can render or flatten the effects to see the final waveform, but then you are dead in the water and cant make changes?
Im such a newbie at STPro that I am probably not using it right? -
Soundtrack Pro 2.0.2-Uncaught exception when exporting video
I'm running STP2.0.2 on Leopard 10.5.6, 8core 2.8 Mac Pro ... and I just recently got it running
Every time I try to export video from STP2 using Compressor (cause thats the only option I think) I'm getting an error "Uncaught Exception"
I've checked the permissions on destination folder and Compressor alone works perfectly.
... helpHi, sorry to disappoint you but i don't know the answer.
I just wanted to ask roughly how you combine video and audio in Compressor.
I finished a project in Soundtrack Pro, but then found out there's no way to bounce it as a video file?
Ideas?
Thanks
Simon -
Uncaught exception when executing web dynpro application
Hello all,
I'm getting run time error exception CX_WDR_RR_EXCEPTION not caught when running web dynpro application
The error analysis shows the custom component is locked by the user and cannot be regenerated. But I checked in SM12 for locked entries and component was not listed there.
The program terminated in the include LWDR_RUNTIME_REPOSITORYF12
Please suggest how to resolve the isse?
Regards,
anilDear Anil,
What type of WD is it ?
Do you get the error when you trigger some sort of event ?
Is it when first launch the WD ?
Can you be more specific and share with us the code where this is dumping ?
You can also check this link
[CX_WDR_RT_EXCEPTION' - How to catch it?;
Kind Regards
/Ricardo Quintas -
Dear All,
We are facing an issue when we test the service "HRTMC_TA_DEV_PLAN" (Development Plans) for ESS/MSS we get the following error. This service is activated in SICF
The URL http://sapqaserp.ffc.com.pk:8000/sap/bc/webdynpro/sap/hrtmc_ta_dev_plan was not called due to an error.
Note
The following error text was processed in the system QAS : Invalid parameter combination PLVAR/OTYPE/OBJID
The error occurred on the application server SAPQASERP_QAS_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_HRBAS_OBJECT_OPERATIONS~EXIST_OBJECT of program CL_HRBAS_OBJECT_OPERATIONS====CP
Function: STRUCTURE_BUILD of program SAPLRHAS
Function: HR_STRUCTURE_GET of program SAPLRH_STRUCTURE_GET
Method: GET_MANAGER of program CL_HRTMC_CP_BASIC_UTILITIES===CP
Method: ON_START of program /1BCWDY/BE4YV9AB9Y1MZN3RKC36==CP
Method: IF_COMPONENTCONTROLLER~ON_START of program /1BCWDY/BE4YV9AB9Y1MZN3RKC36==CP
Method: OVERRIDE_EVENT_OIF of program /1BCWDY/BE4YV9AB9Y1MZN3RKC36==CP
Method: IWCI_IF_FPM_OIF_CONF_EXIT~OVERRIDE_EVENT_OIF of program /1BCWDY/BE4YV9AB9Y1MZN3RKC36==CP
Method: GET_UIBBS_FOR_EVENT of program /1BCWDY/8R131AGT95SAN0HYZNYO==CP
Method: IWCI_IF_FPM_FLOORPLAN_COMP~GET_UIBBS_FOR_EVENT of program /1BCWDY/8R131AGT95SAN0HYZNYO==CP
When i see the in ST22 it shows exception " CX_HRBAS_INVALID_PARAMETER". And I have search the SAP NOTES and found the following sapnotes
1333240, 1532761, 139078 but they are not relevant as our SAP basis release on level 6 i.e. SAPKB70106 .
Kindly help in resolving the issue.Hello Blamca,
We are facing the same above error in the Development plan link in ESS, in Qa system , the link is working fine in DEv but in the QA it is rresulting in the error. The service is activated and when tested from there also results in the same error.
and We have just tested this occurs for specific user and not with everyone who logins inot QA Portal:(
Please suggest how to resolve this.
Thanks in advace
Pooja
Edited by: Pooja Gupta on Jan 16, 2012 10:11 AM -
Uncaught exception when I update window
Hi All,
I want to show a progress bar while executing script.
and i am using the following code for that:
var win = new Window("palette", "SnpCreateProgressBar", [150, 150, 600, 260]);
win.pnl = win.add("panel", [10, 10, 440, 100], "Script Progress");
win.pnl.progBar = win.pnl.add("progressbar", [20, 35, 410, 60], 0, 100);
win.pnl.progBarLabel = win.pnl.add("statictext", [20, 20, 320, 35], "0%");
win.show();
while(win.pnl.progBar.value < win.pnl.progBar.maxvalue)
// this is what causes the progress bar increase its progress
win.pnl.progBar.value++;
win.pnl.progBarLabel.text = win.pnl.progBar.value+"%";
$.sleep(10);
alert('Done!');
win.close();
But I am having following error when I run it:
Can you please tell me why it is happening....
Thanks
Harsh SYaar I am posting my code again on this portal:
this is terrible because its not working:::
function artboardToJPGs(size)
var win = new Window("palette", "SnpCreateProgressBar", undefined, {borderless: true});
win.pnl = win.add("panel", [10, 10, 440, 100], "Creating JPEG");
win.pnl.progBar = win.pnl.add("progressbar", [20, 35, 410, 60], 0, 100);
win.pnl.progBarLabel = win.pnl.add("statictext", [20, 20, 320, 35], "0%");
win.show ();
for(i=0; i<10; i++)
win.pnl.progBar.value+=10;
win.pnl.progBarLabel.text = win.pnl.progBar.value+"%";
win.update();
var idx, j, sizes, jpegOpt, doc, docName, dF, artBds, abName, scale, jpgFile, destinationFolder, originalImage;
jpegOpt = new ExportOptionsJPEG();
jpegOpt.Optimization = true;
jpegOpt.QualitySetting = 100;
jpegOpt.blurAmount=0;
jpegOpt.artBoardClipping=false;
dF=new Folder(jpgImageFolder);
if ( !dF.exists ) dF.create();
doc = app.activeDocument;
docName=doc.name;
artBds = doc.artboards;
idx = artBds.getActiveArtboardIndex();
abName = artBds[ idx ].name;
var w= artBds[ idx ].artboardRect[2] - artBds[ idx ].artboardRect[0] ;
var h=artBds[ idx ].artboardRect[1] - artBds[ idx ].artboardRect[3];
var width= 100+ ( (size - w)/w ) * 100;
var height= 100+ ( ( size - h )/h ) * 100;
jpgFile = File( dF.fsName + '/' + fileName + size + 'x' + size + '.jpg' );
jpegOpt.horizontalScale =width;
jpegOpt.verticalScale = height;
doc.exportFile( jpgFile, ExportType.JPEG ,jpegOpt );
win.close(); -
Exception when querying the database
Hi
I'm using jtds driver to connect to the database, it's been working fine all along and now all of a sudden it's giving exceptions when I query the database and It requires me to logout and login to my application again.
The exception is as follows
javax.servlet.ServletException: Could not execute query
at org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
root cause
net.sf.hibernate.exception.GenericJDBCException: Could not execute query
at net.sf.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:80)
at net.sf.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:69)
at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
at net.sf.hibernate.impl.SessionImpl.convert(SessionImpl.java:4131)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1557)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1531)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1523)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1480)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:524)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.sql.SQLException: Invalid state, the Connection object is closed.
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.checkOpen(ConnectionJDBC2.java:1305)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.prepareStatement(ConnectionJDBC2.java:1978)
at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:216)
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:323)
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:263)
at net.sf.hibernate.impl.BatcherImpl.getPreparedStatement(BatcherImpl.java:236)
at net.sf.hibernate.impl.BatcherImpl.prepareQueryStatement(BatcherImpl.java:67)
at net.sf.hibernate.loader.Loader.prepareQueryStatement(Loader.java:784)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:269)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
at net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
at net.sf.hibernate.loader.Loader.list(Loader.java:1054)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1554)
... 42 moreCan it maybe be the large size of the dabase?
What can be wrong?java.sql.SQLException: Invalid state, the Connection object is closed
It answers your question to an extent. Check if your connection or recordset object is closed
cheers,
Siddhs -
Local query properties throwing UNCAUGHT EXCEPTION
Hi Gurus
After execution of a query, when I tried to change the query properties,like Zero suppression, currency conversion etc.. its getting an error message as given below and getting disconnected
"Program Error in Class SAPMSSY1 method: UNCAUGHT EXCEPTION
SYSTEM ERROR IN PROGRAM CL_RSR_REQUEST and form CHANM_SETTINGS_SET"
How can I resolve this issue, as this is affecting all queries?
Can somebody answer the above issues?Hi,
It may be due to some Support Pack which you have not installed properly.
What you can do is copy the Same Quey with the Same Technical name, before doing this delete the existing one. It may works.
Let us know the Status....
Reg
Pra
Edited by: prakash satya on Jul 1, 2008 5:38 PM -
Still getting uncaught exception in c++ API running keywords query
When I run a search based on keyword in java application, the first time, most likely the query results is returned, but for the subsequent keywords searches, the application throws the error below...
com.sleepycat.dbxml.XmlException: Uncaught exception from C++ API, errcode = INTERNAL_ERROR
at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:85)
at epss.utilities.XQueryUtil.getQueryResultsByKeywords(XQueryUtil.java:168)
at epss.search.XmlContentByKeywords.getDocumentContentByKeywords(XmlContentByKeywords.java:123)
at com.epss.test.TestApp.main(TestApp.java:83)
I know one of the many things to consider fixing this problem is to make sure all berkeley db xml objects (e.g. xmlContainer, XmlManager, XmlResults, XmlQueryExpression, etc) delete() method is called on those obects once they are done to free resources etc. I've been doing all that and still getting the error. This problem doesn't happen when i run a search for based on id (attribute value).
Note: I'm not explicitly using trasanction since i turned on transaction in EnvironmentConfig to create XmlManager.
This is the method that does the query and return us the results...
* Gets the query results by keywords.
* @param keywords
* the keywords under search
* @param manager
* the object used to perform activities such as preparing XQuery
* queries
* @return the query results by keywords
public static synchronized XmlResults getQueryResultsByKeywords(
final String keywords, XmlManager manager) {
/* Represents a parsed XQuery expression. */
XmlQueryExpression expr = null;
/* Encapsulates the results of a query that has been executed. */
XmlResults results = null;
/* The query context */
XmlQueryContext context = null;
// The value
XmlValue value = null;
// Declare string variables
String query = null;
// Run logic
try {
/* Do null check */
if (manager != null) {
// Make XmlValue object
value = new XmlValue(keywords);
// Get a query context
context = manager.createQueryContext();
// Bind xquery variable value to its variable name
context.setVariableValue(DataConstants.KEYWORD, value);
// Build the query string
query = QueryStringUtil.xQueryStringByKeywords(
DataConstants.ELEMENTS, DataConstants.KEYWORD);
// Compile an XQuery expression into an XmlQueryExpression
expr = manager.prepare(query, context);
// Evaluates the XQuery expression against the containers
results = expr.execute(context);
/* Release resources */
if (results.size() == 0) {
results.delete();
results = null;
// Free the native resources
expr.delete();
// Dereference objects
expr = null;
value = null;
context = null;
query = null;
manager.delete();
manager = null;
return results;
} catch (final XmlException e) {
// Free the native resources
expr.delete();
// dereference objects
expr = null;
value = null;
context = null;
query = null;
// Write to log
WriteLog.logExceptionToFile(e);
return null;
This is the callback method that return the query string...
* Returns query keyword query string to retrive keywords.
* @param elementName The particular node under search
* @param keywords The keywords being searched under the node
* @return The string used for the query
public static synchronized String xQueryStringByKeywords(
final String elementName, final String keywords) {
/* Build query string */
final StringBuffer sb = new StringBuffer();
sb.append("let $found := false\n");
sb.append("let $terms := tokenize($");
sb.append(keywords);
sb.append(", \",\")\n");
sb.append("for $element in collection('");
sb.append(DataConstants.CONTAINER);
sb.append("')");
sb.append("/(FUNDOC | JOBDOC)");
sb.append("//");
sb.append(elementName);
sb.append("//");
sb.append("parent::*[1]");
sb.append("\nlet $found := for $term in $terms\n");
sb
.append(" return if (contains(lower-case($element), lower-case($term)))");
sb.append(" \nthen \"true\"");
sb.append(" else \"false\" \n");
sb.append(" return if ($found = \"false\") \nthen () else $element");
return sb.toString();
Edited by: user3453165 on Jan 20, 2010 7:20 AMI am using berkeley db xml 2.5.13 on windows xp. Yes that's the complete error message. I am going to add my environment class and also part of the keyword search class that extends the environment, which will give u idea about how i'm creating and using transaction. I don't explicitly use transaction. I used to explicitly use it but i thought it's redundant. So when i create the db environment, i just call envc.setTransactional(true) and pass the EnvironmentConfig object (i.e. envc) to the environment to create instance of XmlManager and this is fine. Look below and u will see what i mean. Please let me know if u need more information. Thanks for your help. Appreciate it.
Tue, 2010-01-19 10:58:27 PM
com.sleepycat.dbxml.XmlException: Uncaught exception from C++ API, errcode = INTERNAL_ERROR
at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_1(Native Method)
at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:85)
at epss.utilities.XQueryUtil.getQueryResultsByKeywords(XQueryUtil.java:166)
at epss.search.XmlContentByKeywords.getDocumentContentByKeywords(XmlContentByKeywords.java:123)
at com.epss.test.TestApp.main(TestApp.java:66)
The environment class...
package epss.core;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import com.sleepycat.db.DatabaseException;
import com.sleepycat.db.Environment;
import com.sleepycat.db.EnvironmentConfig;
import com.sleepycat.dbxml.XmlContainer;
import com.sleepycat.dbxml.XmlContainerConfig;
import com.sleepycat.dbxml.XmlManager;
import com.sleepycat.dbxml.XmlManagerConfig;
import epss.utilities.GlobalUtil;
* Class used to open and close Berkeley Database environment.
public class DatabaseEnvironment {
/** The db env_. */
private Environment dbEnv_ = null;
/** The mgr_. */
private XmlManager mgr_ = null;
/** The opened container. */
private XmlContainer openedContainer = null;
/** The new container. */
private XmlContainer newContainer = null;
/** The path2 db env_. */
private File path2DbEnv_ = null;
/** Whether we are creating or opening database environment. */
private int mode = -1;
/** Constants for mode opening or mode creation. */
private static final int OPEN_DB = 0, CREATE_DB = 1;
* Set the Mode (CREATE_DB = 1, OPEN_DB = 0).
* @param m
* the m
protected synchronized void setDatabaseMode(final int m) {
if (m == OPEN_DB || m == CREATE_DB)
mode = m;
* Gets the manager.
* @return the manager
protected synchronized XmlManager getManager() {
return mgr_;
* Gets the opened container.
* @return the opened container
protected synchronized XmlContainer getOpenedContainer() {
return openedContainer;
* Gets the new container.
* @return the new container
protected synchronized XmlContainer getNewContainer() {
return newContainer;
* Initialize database environment.
* @throws Exception
* the exception
protected synchronized void doDatabaseSetup(String container)
throws Exception {
switch (mode) {
case OPEN_DB:
// check database home dir exist
if (!(isPathToDbExist(new File(DataConstants.DB_HOME)))) {
WriteLog.logMessagesToFile(DataConstants.DB_FILE_MISSING);
cleanup();
throw new IOException(DataConstants.DB_FILE_MISSING);
} else {
// Configure database environment
configureDatabaseEnv();
// Configuration settings for an XmlContainer instance
XmlContainerConfig config = new XmlContainerConfig();
// DB shd open within a transaction
config.setTransactional(true);
// Opens a container, returning a handle to an XmlContainer obj
openedContainer = getManager().openContainer(container, config);
break;
case CREATE_DB:
// Set environment home
setDatabaseHome();
// Validate database home dir exist
if (isPathToDbExist(new File(DataConstants.DB_HOME))) {
// Configure database environment
configureDatabaseEnv();
// Configuration settings for an XmlContainer instance
XmlContainerConfig config = new XmlContainerConfig();
// Sets whether documents are validated
config.setAllowValidation(true);
// DB shd open within a transaction
config.setTransactional(true);
// The database container path
File file = new File(path2DbEnv_, container);
// Creates a container, returning a handle to
// an XmlContainer object
newContainer = getManager().createContainer(file.getPath(),
config);
newContainer.setAutoIndexing(true);
break;
default:
throw new IllegalStateException("mode value (" + mode
+ ") is invalid");
* Validate path2 db env.
* @param path2DbEnv
* the path2 db env
* @return true, if checks if is path to db env
private synchronized boolean isPathToDbExist(final File path2DbEnv) {
boolean returnValue = false;
if (!(path2DbEnv.isDirectory() || path2DbEnv.exists())) {
throw new IllegalArgumentException(DataConstants.DIR_ERROR
+ path2DbEnv.getAbsolutePath()
+ DataConstants.DOES_NOT_EXIST);
} else {
path2DbEnv_ = path2DbEnv;
// Test whether db home exist when mode is 0
if (path2DbEnv_.exists() && mode == OPEN_DB) {
// Test whether all db files exist
returnValue = true;
} else {
// Test whether db home exist when mode is 1
if (path2DbEnv_.exists() && mode == CREATE_DB) {
returnValue = true;
return returnValue;
* Set database environment home.
* @throws IOException
* Signals that an I/O exception has occurred.
private synchronized void setDatabaseHome() throws IOException {
// The base dir
File homeDir = new File(DataConstants.DB_HOME);
// If db home delete fails, throw io exception
if (!GlobalUtil.deleteDir(homeDir) && homeDir.exists()) {
WriteLog.logMessagesToFile(DataConstants.ERROR_MSG);
throw new IOException(DataConstants.ERROR_MSG);
} else {
// If delete is successful, recreate db home
final boolean success = homeDir.mkdir();
// if home dir creation is successful
if (success) {
// Construct file object
File logDir = new File(homeDir, DataConstants.LOG_DIR);
// File dbHome = new File(homeDir, DataConstants.DB_DIR);
// Create log file
boolean logCreated = logDir.mkdir();
// Create db home
// boolean dbHomeCreated = dbHome.mkdir();
if (logCreated) {
WriteLog.logMessagesToFile(homeDir.getAbsolutePath()
+ " successfully created");
} else {
WriteLog.logMessagesToFile(homeDir.getAbsolutePath()
+ " failed to create");
* Sets environment configuration and it's handlers.
* @throws Exception
* the exception
private synchronized void configureDatabaseEnv() throws Exception {
// Construct a new log file object
File logDir = new File(path2DbEnv_, DataConstants.LOG_DIR);
// The environment config
EnvironmentConfig envc = new EnvironmentConfig();
// estimate how much space to allocate
// for various lock-table data structures
envc.setMaxLockers(10000);
// estimate how much space to allocate
// for various lock-table data structures
envc.setMaxLocks(10000);
// estimate how much space to allocate
// for various lock-table data structures
envc.setMaxLockObjects(10000);
// automatically remove log files
// that are no longer needed.
envc.setLogAutoRemove(true);
// If environment does not exist create it
envc.setAllowCreate(true);
// For multiple threads or processes that are concurrently reading and
// writing to berkeley db xml
envc.setInitializeLocking(true);
// This is used for database recovery from application or system
// failures.
envc.setInitializeLogging(true);
// Provides an in-memory cache that can be shared by all threads and
// processes
envc.setInitializeCache(true);
// Provides atomicity for multiple database access operations.
envc.setTransactional(true);
// location of logging files.
envc.setLogDirectory(logDir);
// set the size of the shared memory buffer pool
envc.setCacheSize(500 * 1024 * 1024);
// turn on the mutexes
envc.setMaxMutexes(500000);
// show error messages by BDB XML library
envc.setErrorStream(System.err);
// File db_home = new File(path2DbEnv_, "db");
// Create a database environment
dbEnv_ = new Environment(path2DbEnv_, envc);
// Configure an XmlManager instance via its constructors
XmlManagerConfig mgrConf = new XmlManagerConfig();
mgrConf.setAllowExternalAccess(true);
mgrConf.setAllowAutoOpen(true);
// Create xml manager object
mgr_ = new XmlManager(dbEnv_, mgrConf);
mgr_.setDefaultContainerType(XmlContainer.NodeContainer);
* This method is used to close the database environment freeing any
* allocated resources that may have been held by it's handlers and closing
* any underlying subsystems.
* @throws DatabaseException
* the database exception
protected synchronized void cleanup() throws DatabaseException {
if (path2DbEnv_ != null) {
path2DbEnv_ = null;
if (newContainer != null) {
newContainer.delete();
newContainer = null;
if (openedContainer != null) {
openedContainer.delete();
openedContainer = null;
if (mgr_ != null) {
mgr_.delete();
mgr_ = null;
if (dbEnv_ != null) {
dbEnv_.close();
dbEnv_ = null;
// This is the keyword search class...
public final class XmlContentByKeywords extends DatabaseEnvironment {
public synchronized Document getDocumentContentByKeywords(String keywords)
throws Exception {
// Encapsulates the results of a query that has been executed.
XmlResults results = null;
// The manager
XmlManager manager = null;
// Run the logic
if (keywords != null) {
try {
// Flag to open db
final int OPEN_DB = 0;
// The keywords content
Document keywordsContent = null;
// Open db connection
try {
// Get database instance
setDatabaseMode(OPEN_DB);
// Open this container in db environment
doDatabaseSetup(DataConstants.CONTAINER);
} catch (Exception ex) {
// Create error node with error message
keywordsContent = Wrapper.createErrorDocument(ex
.getMessage());
// Return the error node doc
return keywordsContent;
// Manager instance
// final XmlManager manager = getManager();
manager = getManager();
// Transaction instance
// final XmlTransaction txn_ = getTxn();
// The map
Map<String, Document> map = null;
// The temp map
Map<String, Document> tempMap = null;
// Return the query results
results = XQueryUtil.getQueryResultsByKeywords(keywords, manager);
// use results here...
// close results when done
results.delete();
results = null;
manager.delete();
manager = null;
} -
hi Experts,
while running SQL Query i am getting an error as
The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator. for the query
select T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
T2.LineText
from OQUT T0 INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN
QUT10 T2 ON T1.DocEntry = T2.DocEntry where T1.DocEntry='590'
group by T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
,T2.LineText
how to resolve the issueDear Meghanath,
Please use the following query, Hope your purpose will serve.
select T1. Dscription,T1.docEntry,T1.Quantity,T1.Price ,
CAST(T2.LineText as nvarchar (MAX))[LineText]
from OQUT T0 INNER JOIN QUT1 T1 ON T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
QUT10 T2 ON T1.DocEntry = T2.DocEntry --where T1.DocEntry='590'
group by T1. Dscription,T1.docEntry,T1.Quantity,T1.Price
,CAST(T2.LineText as nvarchar (MAX))
Regards,
Amit -
Error Message when trying to open mail - Uncaught Exception - Help!
Hello
Yesterday when I received a notification that I had new emails I clicked on the envelope on the home screen only to find the error message: 'Uncaught exception: String index out of range: -1' I now can't access my mail at all. I have rebooted the phone and it is still coming up.
I just wondered if anyone else had this error message before and the easiest way to resolve it?
My phone is a Curve 9300 and running on v5.0.0.794 (Platform 6.3.0.23)
Thanks
Emmai have a bold 9780 and I got: "Uncaught exception:java.lang.ArrayIndexOutOfBoundsException" now i can't open messages or text
EmmaLou_0702 wrote:
Hello
Yesterday when I received a notification that I had new emails I clicked on the envelope on the home screen only to find the error message: 'Uncaught exception: String index out of range: -1' I now can't access my mail at all. I have rebooted the phone and it is still coming up.
I just wondered if anyone else had this error message before and the easiest way to resolve it?
My phone is a Curve 9300 and running on v5.0.0.794 (Platform 6.3.0.23)
Thanks
Emma -
I'm using the interface (Firmware V1.24) on a D-Link DPR-1260 Print Server, connected to an Epson Printer/Scanner. When I hit the "Scan" button, I get an "uncaught exception" error. This firmware has been working for years (at least back to Firefox 3.x), but no longer works with Firefox V6.0
Nothing really, but... The firmware runs in a web browser. It's been working fine for years and no longer works since I got the latest version of Firefox. It does, however, still work in IE (V9) so I do have a way to use my existing hardware.
I tried D-Link and Google search for any information about this, but came up empty. I was hoping that there might be similar problems with other software with Firefox 6.0.2 and someone might have a work-around or there might be a patch coming soon. At the very least, someone associated with Firefox might be interested that they've apparently broken something that used to work. -
I am getting a line 1 error which I have provided in the troubleshooting box. I have a the newest verison of Java and the newest version of firefox. No addons will load, no toolbars will load, those being yahoo, Google.
== This happened ==
Every time Firefox opened
== when I download 3.6.8, yahoo toolbar and google toolbar also dont load. These error are rolling error that happen every time I start firefoxMy Error:
Error: uncaught exception: Error: <http://www.mayi.com> à³CPûÖ^' Proxy.InstallTrigger
what's this?
help~~~
thanks. -
Uncaught exception error when entering in "Messages"
I have a client that uses a Blackberry World Edition (8830) and when he tries to go into Messages (by selecting the Messages icon) he gets this error message all the time: Uncaught Exception:java.lang.null.pointer
I tried 2 kind of resets, alt+caps+del and tried removing the battery while the BB is on and same thing, I did a hard reset, which is wipe the BB and client left me a message this morning that he still gets the same error message.
From my BES console (we synchronise with Domino servers on a Lotus Notes plattform) I see that he has the
platform version 3.0.0.81
Blackberry version: 4.2.2.196
His blackberry ues a Bell Mobility service.
Right now, the only other thing I can think of is to download the OS and reload it on the BB using Desktop Manager.
Can anyone help me with this please. I appreciate all the help.
Robert Goupil
BES administrator
* Update -- my client activated his blackberry with the BES this morning and sent me a message that, after the activation, the problem seems to be resolved. Now, is there anything different that can be done in case this happens again, we have over 800 blackberry users and most of them have the 8830 model.
Message Edited by robgou on 11-05-2008 10:56 AM
Solved!
Go to Solution.Hi,
Your troubleshooting actions were right on the money, as far as I can see.
HRT is the Host Routing Tables. It is entries sent from the Carrier.
When you highlight the above entry and hit register now, it registers it with the wireless network. Updates the device details onto the rim relay and sends down carrier specific icons or applicants
I believe the problem existed in a corrupt application on the users smartphone, by registering the phone, the application
was refreshed. This is the first time I have seen that particular exception message get resolved without a device
reload. (Just for reference I have read 133150 posts.)
Thanks,
Please remember to resolve your thread. Put the check mark in the green box that contained your answer! Thanks
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure. -
Hi,
When I run the apps. Than apps crash on the point where data coming from the soap....like line,,
YPWalletTransaction *transaction = (YPWalletTransaction*)[result.walletTransactionList objectAtIndex:i];.............meas data not coming properly.
And here is the code.......
#pragma mark Other Functions
//Handle the Response of getTransactionForWallet
-(void)getTransactionsForWalletHandlers:(id) value
[waitIndicator stopAnimating];
// Handle errors
if([value isKindOfClass:[NSError class]]) {
NSLog(@"%@", value);
return;
// Handle faults
if([value isKindOfClass:[SoapFault class]]) {
NSLog(@"%@", value);
return;
NSLog(@"getTransactionsForWalletHandlers.......start");
// Do something with the YPLoginResponse* result
YPGetTransactionsForWalletResponse* result = (YPGetTransactionsForWalletResponse*)value;
if(result.statusCode == 0)
NSLog(@"Number of Transaction is %d",[result.walletTransactionList count]);
NSString *deleteQuery = @"delete from AllTransaction where userid = ";
deleteQuery = [deleteQuery stringByAppendingString:appDelegate.userID];
[DataBase deleteDataFromTable:deleteQuery];
NSLog(@"result.walletTransactionList count %d",[result.walletTransactionList count]);
NSMutableDictionary * transactionList=[[NSMutableDictionary alloc]init];
NSMutableArray *theArray =[[NSMutableArray alloc] init] ;
for (int i =0; i< [result.walletTransactionList count] - 2; i++)
NSLog(@"in loop"); ///////// crash here
YPWalletTransaction *transaction = (YPWalletTransaction*)[result.walletTransactionList objectAtIndex:i];
NSString *date=(NSString *)[transaction transactionDate];
NSLog(@"Transactionnnnnnn Date %@",date);
[transactionList setValue:transaction.merchantName forKey:@"merchantName"];
[theArray addObject:[transactionList copy]];
NSMutableString *transactionDate = [NSMutableString stringWithFormat:@"%@",transaction.transactionDate];
[transactionDate insertString:@"/" atIndex:2];
[transactionDate insertString:@"/" atIndex:5];
NSString *insertQuery = @"Insert into AllTransaction (cardnumber,transactiontype,transactiondate,totalamount,transactionnumber,useri d,merchantname,storename) values(";
insertQuery = [insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','%@','%@',%d,%d,%@,'%@','%@')",
transaction.cardNumber,transaction.transactionType,transactionDate,transaction. totalAmount,transaction.transactionNumber,appDelegate.userID,transaction.merchan tName,transaction.storeName]];
//for Future when we get the updated WSDL
NSString *insertQuery = @"Insert into AllTransaction (cardnumber,transactiontype,transactiondate,totalamount,transactionnumber,updat edatetimestamp,userid,merchantname,storename,cardreferance) values(";
insertQuery = [insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','%@','%@',%d,%d,'%@',%@,'%@','%@','%@')",
transaction.cardNumber,transaction.transactionType,transactionDate,transaction. totalAmount,transaction.transactionNumber,result.updateDatetimestamp,appDelegate .userID,transaction.merchantName,transaction.storeName,transaction.cardReference ]];
//NSLog(@"Insert Transactions Query is %@",insertQuery);
///[DataBase InsertIntoTable:insertQuery];
NSMutableDictionary *theDictionary = [[NSMutableDictionary alloc] init];
//NSLog(@"COunttt%d",[theArray count]);
for (int i=0; i<[theArray count]; i++) {
theDictionary=[ theArray objectAtIndex:i];
NSString *currCode=[theDictionary objectForKey:@"merchantName"];
NSLog(@"Finalllyyyyyyyyy transaction Date====> %@",currCode);
//Read Update Data From DataBase and Refresh Table
if([DataBase getNumberOfRows:@"AllTransaction"] > 0)
NSString *query = @"";
if([cardreference isEqualToString:@"0"])
query = @"Select * from AllTransaction where userid = ";
query = [query stringByAppendingString:appDelegate.userID];
else {
query = @"Select * from AllTransaction where userid = ";
query = [query stringByAppendingString:[NSString stringWithFormat:@"%@ and cardreferance = '%@'",appDelegate.userID,cardreference]];
NSMutableArray *temp=[DataBase getTransactionTableData:query];
[resultArray removeAllObjects];
for (int i=0;i< [temp count]; i++) {
[resultArray addObject:[temp objectAtIndex:i]];
[table reloadData];
else {
[Common ShowAlert:result.responseMessage alertTitle:@"Transaction Error"];Having the same issue with Numbers in iWork. Was on the phone with Apple Support and went through a variety of trouble shooting methods to no avail.
Here is the message that occurs on every attempt to start Numbers. This is a user specific issue as I am able to run numbers in a Guest user mode.
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -getComponents: not valid for the NSColor NSNamedColorSpace System gridColor; need to first convert colorspace.'
If anyone has any advice I am all ears.
Thanks.
Maybe you are looking for
-
Fed up with how shuffle handles audiobooks.
Hello. I both love and hate how the shuffle handles audiobooks. It is small. it is eaisly concealable. I put the the ear-buds in, I put the pod down my shirt, I attach it to my pants and all I ever nee to do is pause and play. Why should I pay so muc
-
How to get a SD card from out of the DVD/CD slot?
I have an HP Envy 17 CTO notebook which has a slot for inserting the DVD or CD - like the slots on Apple Notebook (instead of the pop out trays that used to be there on HP before) I accidentally slipped a SD card into the DVD slot - because the SD sl
-
HELP -Need to record in 640x480
I need to take Captivate 2 shots of Windows XP in 640x480 resolution. (Note: It will not help me to resize to 640x480 after recording ) XP normally allows a minimum resolution of 800x600. I've been told to choose the compatibility tab in preferences
-
Making Primavera P6 reports and dashboards available to a portal
Has anybody any experience with making Primavera P6 reports and dashboards available through a portal?
-
Add 1 hour to a batch a photo?
In the case I gather pictures from different cameras, and that all the cameras are not at the same time, is it possible to add/substract 1(or more) hour/minute and modify the metadata? I use to use ACDSee wiht my PC but I am wondering whether iPhoto