Menu
Category

Exceptions

TypeError: h.apply is not a function

This is a Knockout JS error. I faced this issue when I am trying to invoke click action of a link created. My link statement is like below. <a data-bind=”attr:{id:Reqid},text: Title,click: $(‘#popup1’).ojPopup(‘open’, ‘#btnTitle’)”></a> And on click of this link, I am getting the below error. TypeError: h.apply is not a function This is because the click handler needs to be…

WindowManager: android.view.WindowLeaked: Activity has leaked window

While developing an android mobile app, I received this error. In the mobile app, on click of back button, a dialog will be opened with few buttons including “Exit”. On click of exit, I have given (Activity context).finish(); but it is throwing the below error.WindowManager: android.view.WindowLeaked: Activity <app package> has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{45500950 V.E….. R……. 0,0-640,929} that was originally added here…

Cordova Plugin is not added to Oracle MAF

Issue: I faced an issue where I could not able to add few cordova plugins to Oracle MAF application. I could able to select the plugin but after selected, it is not added to MAF and not showing any error also.Solution: Check the value of the attribute xmlns of the tag plugin in the plugin.xml file under the corddova plugin folder. Generally it…

java.sql.SQLException: stale connection

If you are getting the exception “java.sql.SQLException: stale connection” then you should check whether the Connection object is closed anywhere in the app and you are trying to access the same object. In this case, the object is closed and no longer available, so you can not do any execution on that object. Solution is to create a fresh connection…

android.content.ActivityNotFoundException: Unable to find explicit activity class

I am developing an android application. On the home screen, it has a button, on click of this an activity should be displayed. While testing the app, on click of the button, the app is giving the below error and the app got terminated.E/AndroidRuntime(Number): java.lang.RuntimeException: Unable to resume activity {app package}: android.content.ActivityNotFoundException: Unable to find explicit activity class {activity class};…

ERROR: Plugin ‘Camera’ not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist

I am developing a MAF application in which I need to collect images from the user for which I provided a button. On click of the button, photo library supposed to be opened, so that the user can select the images. But on click of the button, I am getting the below error. Error: Plugin ‘Camera’ not found, or is…

ADF_FACES-30108:The view state of the page has expired because of inactivity. Reload the page.

I have several tabs in my portal application, in which some of them are loading data from web services. Some times when I click on those tabs, an alert message with the below error message is displaying and on-click of Ok button, the app is reloading. The error message: ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RESTORE_VIEW 1 javax.faces.application.ViewExpiredException: viewId:/oracle/webcenter/portalapp/pages/home.jspx…

java.sql.SQLException: Protocol violation

Exception in thread “main” java.sql.SQLException: Protocol violation: [1]                 at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:502)                 at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)                 at oracle.jdbc.driver.T4C7Ocommoncall.doOLOGOFF(T4C7Ocommoncall.java:64)                 at oracle.jdbc.driver.T4CConnection.logoff(T4CConnection.java:576)                 at oracle.jdbc.driver.PhysicalConnection.close(PhysicalConnection.java:5222)                at XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Connection con=createConnection(); Con.close(); Con.commit(); Con.close();   Here, commit() is invoked after the connection is closed, hence the above exception occurred.

java.lang.ArrayIndexOutOfBoundsException while executing batch Statements in Java

I have created a PreparedStatement to execute a batch of insert statements. But while executing, the below exception occurred.java.lang.ArrayIndexOutOfBoundsException: 22 at oracle.jdbc.driver.T4CNumberAccessor.unmarshalOneRow(T4CNumberAccessor.java:207) at oracle.jdbc.driver.T4C8Oall.readRXD(T4C8Oall.java:745) at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:371) at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205) at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217) at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1115) at oracle.jdbc.driver.OraclePreparedStatement.executeForRowsWithTimeout(OraclePreparedStatement.java:13106) at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:13246) at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:248) at XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  Solution:   After googling, I realized that the PreparedStatement is not accepting more than 6 parameters. Below is…

oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/Connection1DS

Issue: <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6 oracle.jbo.DMLException: JBO-27200: JNDI failure. Unable to lookup Data Source at context jdbc/Connection1DS                 at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1476)                 at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:332)                 at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:203)                 at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:592)                 at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:422)                 at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8995)                 at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4603) Solution: Check the connection in AppModule. To check,   Right click on AppModule Select Configurations…

Hi, Welcome here.
JOIN OUR NEWSLETTER
And get notified everytime we publish a new blog post.