Database with JAR binding..!
Dear friends,
i have one Jar file contains database(Ms Access) and other java classes and utilities....
when i run java -jar myJarFile.jar am getting following exception
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Not a valid file name.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)after i tried to print the full file path. it returns
jar:file:/C:/Documents%20and%20Settings/user/Desktop/myJarFile.jar!/db/msAccessDB.mdbPlease HELP me out.....
Thank you,
boss134
You can't do this for a bunch of reasons, including that the Access driver needs to have write access to the directory that the database is in.
Similar Messages
-
I'm using windows DW 2014.1 cc. I'm following lynda.com tutorials to build a website database with PHP and MySQL. I learned I have to download Adobe Extension Mngr to active DATABASE, BINDING, SERVER BEHAVIOR panels, which I've done. BUT NOW I'VE BEEN ADVISED NOT TO USE THESE TOOLS for new development. If this is the truly the case, then WHAT TOOLS DO I USE to develop a website that has a database?
then WHAT TOOLS DO I USE to develop a website that has a database?
Besides the tools you would already need for a system using server behaviors (web server, PHP, MySQL, phpMyAdmin) the only extra tool you need is your own brain.
A lot of people are disappointed by the lack of database tools in DW now, but really it's much better this way. You can never achieve better than a rinky-dink dynamic website using server behaviors. The code Dreamweaver dynamic behaviors create is really terrible. (I'm not insulting the fine folks who wrote the feature. It's just a consequence of automated code.) You can write better, simpler, more maintainable code yourself, and over time you will improve. With server behaviors you cannot improve. you get stuck in database kindergarten. -
Queries not working with multiple bind position variables?
still need help here - can anyone provide any direction?
(note: this is a follow-up from prior topic, " How to use JDBC Positional Binding Style & ExecuteWithParams?")
I created two simple view objects off of the same entity
object to perform this test:
#1 - ViewObject with one bind position variable - where clause: where id > ?
#2 - ViewObject with two bind position variables - where clause: where id > ? and id < ?
I created two separate .jspx pages, view1.jspx (one input field) and view2.jspx (two input fields), for each view object by dragging ExecuteWithParams operation onto the JSF page.
The .jspx page with one input field works (returns result sets.) The view2.jspx page with two input fields does not work - the query does not return any result sets (no errors produced, it just does not return any rows) - I've tested my query outside of jdeveloper and it works fine. I also tried switching my inputs to make sure I did not have an illogical query (i.e., id >100 and id< 1).
Is there anything different / extra I need to do to use two bind position variables?
Everything in this simple test was identical except for using 2 input variables versus 1.
Technology stack is: jdeveloper 10.1.3, jsf/ADF BC, mySQL 5.01
Message was edited by:
javaXUsing the where clause: "where id > ? and id < ? for the 2 input variables, I get the same result - no row results returned (though query works outside the browser.)
Interestingly, I modified the where clause to where between ? and ?, and then used values of 1 and 100 to test. Using the BC4J tester, the query gave back a single row with id = 100 (should have brought back 100 rows because there are 100 records with ids 1-100.) So I got it to return something, but not the right results. This makes me believe that a different query is being sent to MySQL other than what I'm expecting from what is shown in the SQL Statement of the View Object..
Is there anyway to view what SQL statement is actually being sent to the database using the BC4J tester? Also, could this be an issue related to the mySQL connector drivers and JDeveloper? Im using mysql-connector-java=3.1.11-bin.jar (10/10/2005)? First though, if I could see what query is actually being sent, this may help me to debug and figure out the problem. -
BOE XI 3.1 Mysql database connection jar
Hi All,
I am new learner for BOE.I installed Business Object Enterpraise 12.0.
I have created the report WebI rich client and saved in local path, and also some value insert into mysql database table.
I need to know how its stored into mysql database.
which jar file is used for creating the connection with mysql database .
Thanks,
Yousuf
Edited by: yousufalam on Dec 31, 2010 12:40 PMThe connection objects are store in the CI_APPOBJECTS repository table with SI_KIND='Metadata.DataConnection' . The connection properties are stored as property bags along with your objects.
Unfortunately I have just found a reference that this kind of access in not fully supported though and you may have to use the Universe Designer SDK (COM based)
Change password of Universe connection using Java SDK?
Since you are working with the SDK it will make sense to post your questions here:
Java SDK Application Development
Regards,
Stratos -
How to connect HSQLDB database in jar
Hi people, How can i to connect hsqldb database in jar file without getResource() method ?
thanksDevel application in JBOoss application server.
JBoss is configured with HSQLDB by default. -
Sync external database with Active Directory
Hi,
We are in the process of consolitating all user information in our systems in Active Directory.
We have a system that can only authenicate users from information stored in a relational database. We are investigating options that would allow us to sync the password in this relational database with the password stored in Active Directory. Whenever the user changes their domain password, we would like for an JNDI application to update the relational database with their new password.
I'm fairly new to JNDI/Active Directory. My research does not look too positive. Does anybody know of any way that we can perform this password synchronization? Any advice would be greatly appreciated!
Thanks!
DaveThere are several mechanisms available that enable AD to authenticate users for your web application.
1. Perform a simple LDAP bind using the user's credentials submitted from a form. If the bind is successful, then you can infer that the credentials are correct.
2. If the users have already performed an interactive logon to Active Directory, provide a Single Sign-On experience by utilizing their existing Kerberos ticket. Refer to JNDI, Active Directory and Authentication (Part 1) (Kerberos)
http://forum.java.sun.com/thread.jspa?threadID=579829&tstart=300
for an explanation of using Kerberos & GSS-API.
3. If the users are not performing an interactive logon to your Active Directory, but you want to provide a federated single sign-on experience, then you may be interested in Active Directory Federation Services which uses SAML 1.0 tokens & WS-* to assert claims. Information on ADFS can be found at http://www.microsoft.com/windowsserver2003/techinfo/overview/adfsoverview.mspx
Two third party ISV's; Vintela and Centrify both provide solutions for non-Windows Web Servers to enable the second & third scenarios. -
Try to use Mysql database with forte
Dear All:
As title said, I try to use Mysql database with forte.
I read the manual , it said I have to put the database jdbc driver in
the Forte for Java lib/ext directory.
I did it and then add a new Driver in the Runtime tab in the Explorer
window .
But when I try to test this new driver(by Right-clicking on the driver
or connection in the Explorer and select Test Driver from the context
menu),it said "cannot find driver class: check your CLASSPATH or
\lib\ext direectory".
I am sure I'hve put the driver class(with the whole directory structure)
in that folder.
Does anyone what I may go wrong ?
Could you please give me some advices that I can fix this problem ?
Thanks in advance.
Ken @ Taipei , Taiwan , AsiaYou should have put the jar file that contains the driver into that directory. If you unpacked the jar file and put the individual classes into that directory, it will not work.
-
OIM 11gR2 - custom attribute with illegal binding on Create User form in published sandbox
Hi,
I think I have managed to paint myself into a corner!
In OIM 11gR2 I have added a number of custom attributes to the "User Form" - some Text-, some Lookup-type attributes.
While customizing the "Create User" page within a sandbox and adding a SelectOneChoice item and fiddling around with its binding, I was distracted by a phone call and the browser timed out.
The binding property on the new item is now not correct and the sandbox has unfortunately been published, and I am now unable to enter the "Create User" page - when I try, I get the following:
<Sep 23, 2013 2:39:11 PM CEST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /user/createView URI: /oracle/iam/ui/runtime/form/view/pages/userCreateForm.jsff actual-URI: /oracle/iam/ui/runtime/form/view/pages/userCreateForm.jsff.
javax.el.PropertyNotFoundException: Target Unreachable, 'ekstraresource1__c' returned null
at com.sun.el.parser.AstValue.getTarget(AstValue.java:108)
at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:149)
at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:248)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:340)
<Sep 23, 2013 2:39:11 PM CEST> <Warning> <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /catalog-tf/cart-details URI: /oracle/iam/ui/catalog/pages/cart-details.jsff actual-URI: /oracle/iam/ui/catalog/pages/cart-details.jsff.
javax.el.PropertyNotFoundException: Target Unreachable, 'ekstraresource1__c' returned null
at com.sun.el.parser.AstValue.getTarget(AstValue.java:108)
at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:149)
at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:248)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer._getUncachedReadOnly(EditableValueRenderer.java:486)
at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.cacheReadOnly(EditableValueRenderer.java:416)
at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.beforeEncode(LabeledInputRenderer.java:128)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:340)
Caused By: java.io.IOException: javax.el.PropertyNotFoundException: Target Unreachable, 'ekstraresource1__c' returned null
at oracle.adfinternal.view.page.editor.renderkit.PageCustomizableRenderer.encodeAll(PageCustomizableRenderer.java:764)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1396)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:341)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:767)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:937)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:405)
etc.
Of course the sandbox should not have been published - but it is - and I am stuck trying to figure out how to somehow undo this mess.
Is it possible to clean up this mess by diving to the database and removing some rows from the right tables - or perform some other operations undo my mistake?
Thanks in advance,
- Tomoim version is oim 11gR2 with BP4
-
How to query Database with Parameters and configure null value response?
Hi,
1.When capture attributes from forms & after applying several logics, passing to a DB table using an API, how to get relevant values for a given parameter in another DB table ?
2.When a DB table is queried, if the value does not exist, how to configure the response message ?
Thanks.Okay, you've provided exactly what John S. asked for - and no more. This is helpful, but not enough. I think we're going to need a use case to understand exactly what you are asking. What should the user see? What does the user do next? What should happen in the database and in the application when the user does this?
However, I'll try to read between the lines a bit, and get you part of the way there. To query the database with parameters in ADF BC, you need a View Object (VO). The simplest thing to do is create the SELECT command behind the VO with some bind variables and add the bind variables to your VO. At that point, you will get an ExecuteWithParameters operation in the Data Control. You can drag that operation onto a JSF page and it will give you an option to create a parameter form to let the user fill in the parameters to set the bind variables, and a button to execute the query with these values. Any table or form based on that same VO will show the selected data.
A Trinidad or ADF Rich Faces table will have an attribute to let you define some text to show the user if no data was retrieved by the query. But there are other ways to determine if data was retrieved which you can use to control other ways to display this information. For instance, I have a page that has an outputText component that has a "rendered" attribute to show the text only when there was no data retrieved by a query. -
I have downloaded the MySQL JDBC from their site and have a jar file. It is called
mysql-connector-java-3.1.13- bin.jar
I would like to have my NetBeans IDE 4.1 recognize this so I can write java code. It does not recognize the class currently.
I tried adding it to the IDE path
going to the web project, right click for properties.
Choose libraries
Choose the tab that says "compile tests"
Then, I click "add jar/folder" and browse to the jar file
Then choose the tab that says "run tests"
Then I click "add jar/folder" and browse to the jar file
Now I would assume this would be added to my class path for startup
but it doesnt work
Any ideasI do have the database linked in to my "Databases" with a driver listed under this list. Which is why I do not comprehend why my jsp code can not find the driver itself.
Here is the error I get:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: org.gjt.mm.mysql.Driver
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.index_jsp._jspService(index_jsp.java:183)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
root cause
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:150)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:71)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:164)
org.apache.jsp.index_jsp._jspService(index_jsp.java:60)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.When I right click on "MySql" under drivers I get the name
org.gjt.mm.mysql.Driver
so my code now appears as:
<%@page import="java.sql.*" %>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<%
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
%>
<% Class.forName("org.gjt.mm.mysql.Driver").newInstance();
//org.gjt.mm.mysql.Driver
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/database01", "user", "password");
statement = connection.createStatement();
rs = statement.executeQuery("SELECT * FROM table01");
while (rs.next()) {
out.println(rs.getString("field01")+"<br>");
%>Any ideas welcome.. I have been searching through this link
http://www.netbeans.org/kb/50/using-netbeans/configuring.html
Without a lot of luck. I am using 4.1 -
Pointbase Database with OC4J, JDeveloper
Has any one connected Pointbase Database with OC4J with the help of JDeveloper
If yes Please post the code data-source.xml, ejb-jar.xml orion-jar.xml
Thanking you in advance.
Regards
Prem KumarSystem.out.println(o.getClass());
returns
class com.evermind.naming.SubContext
I do not know what it means -
Integrating Existing database with mobile server
Hi,
I have an existing application database and now i need to make a mobile application on this database. For this i need to integrate the application database with the mobile server. Could somebody please help with this?
Regards,
Ritu RatheeThe actual intergration between your server side application database, and the mobile clients is achieved via the definition of an application and publication items. These create essentially replication snapshots of the relevenat data in the underlying tables that are sent to the mobile client. The mobile server software (the MGP process) then handles the sending of the data to the clients and handlig changes made on the clients, uploading these to the server and applying them to the server application schema. Mechanics are different, but it is not that dissimilar to old style replication snapshots for extranet applications.
First step as Marc said is to irun the mobile server install. This will set up the repository database under schema MOBILEADMIN, and also all of the application server software.
Next use MDW to decide which objects (table or views) in the server schema you want to send to the mobile clients. As a part of this you will need to consider if you want all of the data in the table sent, or only a subset for a particular user. If the latter then you will need to define as part of the selection the means by which you will determine the data, and this will create a subsetting parameter (rather like a run time bind variable) that you can set for the user. You also need to think about the order of sending and processing data to deal with parent child relationships, and what to do in the case where the same data record has been changed on both the server and client -
SRDemo do not handle ApplicationPoolExc on page visit with iterator binding
I have a problem that I am able to reproduce in SRDemo as well. My goal is to be able to always present a user friendly
message to users should database go down while they are surfing the site. In SRDemo, if I visit a page whose page definition has no iterator bindings, a user
friendly message is presented to user if database is down. However, if I visit a page with iterator binding, an ApplicationPoolException stack trace is
presented to user instead of a user friendly message.
In the case of page with no iterator binding, the ApplicationPoolException is caught property in the SRDemoPageLifeCycle
resulting in user friendly error presented to user.
In the case of page with iterator binding, the ApplicationPoolException is not caught in the SRDemoPageLifeCycle and hence
ApplicationPoolException stack trace is presented to user.
For the working case of page with no iterator binding, the stack trace is as follows:
[312] Created root application module: 'App.AppModule'
[313] Locale is: 'en_US'
[314] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
[315] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
[316] Creating a new pool resource
[317] Trying connection/2: url='jdbc:oracle:thin:@192.168.1.101:1521:ORCL' ...
[318] DBTransactionImpl.initTransaction: Login failed
[319] java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
192.168.1.101:1521:ORCL
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:293)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:189)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:326)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:911)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1156)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5891)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:120)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:194)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:454)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:343)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7763)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4074)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2161)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396)
at ui.MyDCJboDataControl.beginRequest(MyDCJboDataControl.java:32)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)
at oracle.adf.model.BindingContext.get(BindingContext.java:457)
* at oracle.adf.model.BindingContext.findDataControl(BindingContext.java:308)*
* at ui.frameworkExt.RSPageLifecycle.proactivelyWarnDemoUserIfConnectionNotSetupCorrectly(RSPageLifecycle.java:350)*
* at ui.frameworkExt.RSPageLifecycle.prepareModel(RSPageLifecycle.java:334)*
* at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)*
* at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)*
* at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29)*
* at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:327)*
* at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:90)*
* at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)*
* at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)*
* at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)*
* at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)*
* at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)*
* at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)*
* at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)*
* at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)*
* at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)*
* at ui.servlets.ApplicationSessionExpiryFilter.doFilter(ApplicationSessionExpiryFilter.java:32)*
* at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)*
* at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)*
* at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)* at ui.servlets.gzip.GZIPFilter.doFilter(GZIPFilter.java:20)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:619)
[320] A dead application module instance was detected
[321] The application module instance was removed from the pool
[322] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
For the non working case of page with iterator binding, the stact trace is as follows:
[312] Created root application module: 'App.AppModule'
[313] Locale is: 'en_US'
[314] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
[315] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
[316] Creating a new pool resource
[317] Trying connection/2: url='jdbc:oracle:thin:@192.168.1.101:1521:ORCL' ...
[318] DBTransactionImpl.initTransaction: Login failed
[319] java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
192.168.1.101:1521:ORCL
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:293)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:189)
at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:135)
at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:536)
at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:326)
at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:87)
at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:66)
at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:911)
at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1156)
at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:5891)
at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:120)
at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:194)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:454)
at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:343)
at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:7763)
at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4074)
at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2161)
at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1961)
at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:2793)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
at oracle.adf.model.bc4j.DCJboDataControl.rebuildApplicationModule(DCJboDataControl.java:1536)
at oracle.adf.model.bc4j.DCJboDataControl.beginRequest(DCJboDataControl.java:1396)
at ui.MyDCJboDataControl.beginRequest(MyDCJboDataControl.java:32)
at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:99)
at oracle.adf.model.BindingContext.get(BindingContext.java:457)
* at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)*
* at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)*
* at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)*
* at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:127)*
* at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)*
* at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:87)*
* at oracle.jbo.uicli.binding.JUIteratorDef.createIterBinding(JUIteratorDef.java:51)*
* at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)*
* at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)*
* at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)*
* at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)*
* at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)*
* at oracle.adf.model.BindingContext.get(BindingContext.java:483)*
* at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)*
* at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)*
* at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:265)*
* at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:169)*
* at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:161)*
* at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)* at ui.servlets.gzip.GZIPFilter.doFilter(GZIPFilter.java:20)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
at java.lang.Thread.run(Thread.java:619)
[320] A dead application module instance was detected
[321] The application module instance was removed from the pool
[322] ApplicationPoolImpl.resourceStateChanged wasn't release related. No notify invoked.
I am aware of the following link but I don't know how to handle the ApplicationPoolException in beginRequest method
like Steve is refering to. Any idea? I am seeking a consistent solution to handle ApplicationPookException for both page modes with and without iterator
bindings.
Exception JBO-26061 (JDBC connection Error) not being handled by SRDemo
I am using JDeveloper 10.1.3.2.
ThanksHi
You can set a default in the item attributes. Just click on the item in the application builder page and scroll down until you see default. You can specify it in a number of ways defined by a drop down.
Cheers
Ben
http://www.munkyben.wordpress.com
Don't forget to mark replies helpful or correct ;) -
How to use your own database with your users to authenticate in a Web app?
Hello, everybody!
I'm starting to write my first web application and I'm going to use JSF, JPA and EJB3 in this application. One of the first things that I have to do on it is the authentication part where I'll have a page with a user name and a password for the user to login. So, as I'm new to all this in Java (I've already implemented this on .NET in the past), I was studying the Java EE 5 Tutorial, especifically the section "Example: Using Form-Based Authentication with a JSP Page". But I saw that the users that the sample application uses come from the file realm on the Application Server. The users are created there and assigned a name, a password and a group. After the users are in the Application Server we can simply uses forms authentication declaratively in the deployment descriptor (web.xml).
But the problem is that this doesn't work to me as I already have my own database with my users, so I want to use it instead of having to create the users on the Application Server.
So, I'm asking you how to do that. Of course I'm not expecting that you place the code here to me as I know that such a thing could be complicated. Instead, I'm asking if you know about some tutorial, article, book or something that teaches how to do what I want. But I would like to see theses examples using JSF and/or EJB3 because these are the technologies that I'm using to develop. It's a pity that the Java EE 5 Tutorial doesn't have an example using a custom database as I know that this situation is very common in the majority of web sites.
Thank you very much.
MarcosFrom memory, it goes like this... You just create a
raw jdbc connection on your user database using a
special "login" DB user account, which has
permissions only to an "authenticate" stored query,
which accepts two arguments: username & password, and
returns a boolean 0 or 1 rows found.When I implemented this in .NET's ASP.NET I had the same solution. I had an special user created in the database that I used to log in. When the real user entered his username and password I was already logged in and I had just to check his username and password agains the right table in my database.
But that was only possible bacause when I connected to the database using my hidden user, I used the rights APIs in ASP.NET that coordinate the authentication process. This means that before login in, no one could access any resources (pages, atc...). So what I'm saying is that I can't manager this manually in Java. Java has to have some API or whatever to allow me to control the login process programmatically, while letting the Application Server control the access to the resources. -
Hi All,
We are encountering numerous short dumps in our system caused by Table AUSPN_V1 does not exist in the database with ID R/3.
Can anyone advise how to solve the issue? Please find below portion of the short dumps.
Category ABAP Programming Error
Runtime Errors DBIF_RSQL_TABLE_UNKNOWN
ABAP Program SAPLCLVF
Application Component CA-CL-CL
Date and Time 11.06.2014 12:08:28
Short text
A table is unknown or does not exist.
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPLCLVF" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system
administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.
Error analysis
A table is referred to in an SAP Open SQL statement that either does not
exist or is unknown to the ABAP Data Dictionary.
The table involved is "AUSPN_V1" or another table accessed in the statement.
Source Code Extract
Line SourceCde
104 if dupl = kreuz.
105 insert auspc_v2 client specified from table auspcv2
106 accepting duplicate keys.
107 else.
108 insert auspc_v2 client specified from table auspcv2.
109 if syst-subrc ne 0.
110 message a585 with tabausp.
111 endif.
112 endif.
113 refresh auspcv2.
114 endif.
115 read table auspcv3 index 1.
116 if syst-subrc = 0.
117 if dupl = kreuz.
118 insert auspc_v3 client specified from table auspcv3
119 accepting duplicate keys.
120 else.
121 insert auspc_v3 client specified from table auspcv3.
122 if syst-subrc ne 0.
123 message a585 with tabausp.
124 endif.
125 endif.
126 refresh auspcv3.
127 endif.
128 read table auspnv1 index 1.
129 if syst-subrc = 0.
130 if dupl = kreuz.
131 insert auspn_v1 client specified from table auspnv1
132 accepting duplicate keys.
133 else.
>>>>> insert auspn_v1 client specified from table auspnv1.
135 if syst-subrc ne 0.
136 message a585 with tabausp.
137 endif.
138 endif.
139 refresh auspnv1.
140 endif.
141 read table auspnv2 index 1.
142 if syst-subrc = 0.
143 if dupl = kreuz.
144 insert auspn_v2 client specified from table auspnv2
145 accepting duplicate keys.
146 else.
147 insert auspn_v2 client specified from table auspnv2.
148 if syst-subrc ne 0.
149 message a585 with tabausp.
150 endif.
151 endif.
152 refresh auspnv2.
153 endif.Hello
Please check on transaction SE11 if this table exists and if it is active.
Also, it may be a database issue. What is your database?
BR
Caetano
Maybe you are looking for
-
How to compute current date/time?
Hi everybody, I have a page with form that is handled using Automatic Row Processing (DML). I need to put creation date and time into DB. So I created computation on my :P4_CREATION_DATE, type: SQL Query, source: CURRENT_DATE The problem is that I on
-
Adding attachments to an email
Does anyone know of any application or when Apple will allow attachments to be added to emails? I am starting to enjoy my iPhone but in order to use it for business I have to be able to attach documents to emails. Right now, as I know, we can only ad
-
How to connect iphone to a lap which has itunes
Culd sme one help me in syncing my 5s to lap itunes
-
Embed external HTML page in Flash
Does anybody know how to embed an external HTML page into Flash? I am envisioning something like an iFrame, but can't really figure how this would work. I've attempted using a scrollpane, but it didn't work at all. Any suggestions?
-
Halo1 on Win7 on MacBookPro doesn't work
Guys I have a question: I installed Windows 7 on my MacMini to play Halo1 PC, then I also installed it on my MacBook white and finally on my girlfriend's MacBookPro. I installed Win7 on 3 Macs to play Halo1 PC, but when I start Halo on MacBookPro, ju