Exception when using weblogic datasource in app ADF - BC
HelloI want to use the data source for weblogic [JNDI name] as the source of data for my ADF BC application.
I'm following the "your Application Module connection database configuration" in the link
http://download.Oracle.com/docs/CD/E14571_01/Web.1111/b31974/bcservices.htm#CHDJDBJB.
I did the following steps.
1 started weblogic server and configured a data source [ex: testbcDS]
2. in JDeveloper, sailed to the 'Configuration' Panel, under the direction of the ' * ModuleLocal' and changed the connection type "JDBC Data Source.
and the name of the data source to the java: comp/env/jdbc/testbcDS '.
3. in JDeveloper, wrote a client Java stand alone with the following code snippet.
Public Shared Sub main (String [] args) {}
try {}
String amDef = "oracle.communications.platform.bcapp.poc.app.AppModule";
Config = "AppModuleLocal";
ApplicationModule m = Configuration.createRootApplicationModule (amDef, config);
ViewObject rscGroupVo = am.findViewObject("IfwRscGroupView1");
rscGroupVo.executeQuery ();
}
}
4. on the implementation of the present the following exception is displayed in the console
oracle.jbo.DMLException: Houston-27200: failure JNDI. Unable to search data in the context of jdbc/testbcDS Source
at oracle.jbo.server.DBTransactionImpl.lookupDataSource(DBTransactionImpl.java:1418)
at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:309)
Please let me know if I followed the correct steps and let me know the missing steps / wrongs I've done.
The same works very well when the connection type is "JDBC URL".
Please suggest.
Thank you
Praveen
The stand-alone client runs as a J2SE application, so there is no container for application server and therefore no data sources. If you want to use a stand-alone client for testing purposes, then use a JDBC URL in the local configuration of the AOS and set another configuration of AM who will use data sources and which will be used when deploying to an application server.
Dimitar
Tags: Java
Similar Questions
-
make exception when using BUlk collect
Hi all
version of DB 10 g
I've written a procedure as below
now, I tried to perform the procedure belowcreate or replace procedure test_proc2 is type v_emp_rec is record (empno number, ename varchar2 (200)); type v_emp_tab is table of v_emp_rec index by binary_integer; v_tab v_emp_tab; begin select empno,ename into v_tab(0) from emp where empno = 7369; dbms_output.put_line (v_tab(0).ename); exception when no_data_found then dbms_output.put_line ('I am in no data found exception'); end;
the foregoing is works well, but I want to use the functionality of collection in bulk so I use as belowbegin test_proc2; end;
the foregoing gives me exception, please someone can explain why it is not in the exception block.create or replace procedure test_proc2 is type v_emp_rec is record (empno number, ename varchar2 (200)); type v_emp_tab is table of v_emp_rec index by binary_integer; v_tab v_emp_tab; begin select empno,ename bulk collect into v_tab from emp where empno = 7369; dbms_output.put_line (v_tab(0).ename); exception when no_data_found then dbms_output.put_line ('I am in no data found exception'); end;
Thanks in advance.The obvious answer is because an exception no_data_found is raised.
The question is there.It's either select it because there is no data where empno = 7369.
Or is the .ename of v_tab (0), because there is no element 0. Automatic collection of indexing starts at 1.
for example
SQL> declare 2 type t1 is table of pls_integer index by pls_integer; 3 v1 t1; 4 begin 5 v1(1) := 1; 6 dbms_output.put_line(v1(0)); 7 end; 8 / declare * ERROR at line 1: ORA-01403: no data found ORA-06512: at line 6 SQL>
If you catch the exceptions and do not spread them properly, then hide you all information kind of useful as a line number, etc..
-
exceptions when using dynamic instructions
Friends
In my monthly script, I need to drop 24 months old partitions and create the new partition for the coming months. I wrote the following procedure for the same thing:
In this script, how can I add exception given for each EXECUTE IMMEDIATE statement?DECLARE v_msg_type VARCHAR2 (100); v_msg_desc VARCHAR2 (100); v_sql1 VARCHAR2 (1000); v_sql2 VARCHAR2 (1000); except_acct EXCEPTION; except_vntg EXCEPTION; BEGIN /* Remove 24 months old partition */ SELECT 'alter table table1 drop partition p_acct_' || TO_CHAR (ADD_MONTHS (SYSDATE, -24), 'mmyyyy') || ' update global indexes' INTO v_sql1 FROM DUAL; EXECUTE IMMEDIATE v_sql1; v_msg_desc := 'SUCCESS: Old partitions removed from table1'; package.procedure('information',v_msg_desc); /* Add new partition */ SELECT 'alter table table1 add partition p_acct_' || TO_CHAR (ADD_MONTHS (SYSDATE, 1), 'mmyyyy') || CHR (10) || ' values less than (to_date(''' || TO_CHAR (LAST_DAY (ADD_MONTHS (SYSDATE, 1)) + 1, 'yyyy-mm-dd') || ''' ,''' || 'YYYY-MM-DD' || ''')) ' INTO v_sql2 FROM DUAL; EXECUTE IMMEDIATE v_sql2; v_msg_desc := 'SUCCESS: New parition added in table1'; package.procedure('information',v_msg_desc); EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.put_line (SQLERRM); END;
You wrap them with begin / end
BEGIN EXECUTE IMMEDIATE --stuff and or things EXCEPTION WHEN --something THEN --more stuff END;
-
Hello
I have an application that processes data from bluetooth and send it to the web service. Recently, there was a request to add sounds to the request. Now when the application processes lots of data and the player plays constantly after a few seconds I get exception "Application is not responding. And then the treatment is finished. In the newspapers, I see many connected after this exception ForcedStackTrace exception.
The sounds are played in the separate thread. If the app is not play sounds or short sounds - everything works fine. Is it possible to avoid what happens an exception? Why this is happening?
Thanks in advance,
Viktor.
Solved by implementing my own PlayerManager, which running in a separate thread would point the way to the queue rather then the number of threads by using the internal player application.
-
We are looking at upgrading to a web service to connect to Oracle using the unmanaged to the ODP ODP managed (12 c module 3).
We use tnsnames and have the following configuration in the sqlnet.ora file: NAMES. DIRECTORY_PATH = (TNSNAMES, EZConnect).
The resolver EZConnect is necessary because we use an OracleDependency object for database update notifications.
When moving to the managed driver, a SocketException exception is thrown when you try to open a new connection. Looking at the call stack, I can see that the managed Oracle driver, actually a 'OracleInternal.Network.EZConnect' object, calls System.Net.Dns.GetAddrInfo to get an IP address, but with the alias tns as a parameter. Of course, it fails with this exception "unknown host".
So it seems to me that there is a problem combining tnsnames, ezconnect manned ODP managed!
Someone else who has experienced this and found a solution, or it could be an error in the driver?
This problem seems to have been fixed in the version of 12 c 4.
-
Exception when using setWhereClause()
Hello
I use JDeveloper 11.1.2.3
I need to get a row in the Dattabse table.
To do this, I put the WHERE clause in the VO using the setWhereClause (String) method.
Where clause looks almost like
setWhereClause("Companyid = '"+getCompanyId()+"' and CustomerGroupName like 'Elite' ");
while I try to run the application, his throw and error as:
oracle.jbo.SQLStmtException: Houston-29114 ADFContext is not configured to process this exception messages. Use the code of exception stack trace and error to investigate the root cause of this exception. Root cause error code is Houston-27122. Are parameters of error message {0 = SELECT * FROM (SELECT * FROM OFFERRULE) QRSLT WHERE (Companyid = "01616C8F-4430-4F11-9257-B23626C50E99") and CustomerGroupName as 'élite'}
Why is this happening?
Kind regards
Nigel.
Nigel,
the error you got is only the analytical error. There is an error detailed in the journal a place that tells you exactly what the problem is (for example table or view does not exist). The summary shows you the statement sql has a problem, so an action you should do is copy the statement and run it from a sql inside jdev worksheet. See is the instruction
SELECT * FROM (SELECT * FROM OFFERRULE) QRSLT WHERE (Companyid = "01616C8F-4430-4F11-9257-B23626C50E99") and CustomerGroupName as 'élite'
runs without problem.
Next step is that you must not build your own where clause. To do this, you must use a ViewCriteria and apply the criteria of the vo, when you need to get the data.
Timo
-
getting exception when using JavaFX SDK/JRE bundled in Netbeans
When I try to put my JavaFX SDK/JRE to use Java SE and run my application I get an exception ClassLoader (java.lang.NoClassDefFoundError: javafx/application/application).
I still have to get my Netbeans to use properly the bundled JavaFX SDK/JRE that come with JRE/SDK to the Java SE. I am referring to Java for JavaFX platform properties (in a project-> properties-> library-> manage-> tab JavaFX platforms).
Here's what I have my JavaFX platform settings the value:
JavaFX SDK--> C:\Program Files (x86)\Java\jdk1.7.0_10
JRE JavaFX--> C:\Program Files (x86)\Java\jdk1.7.0_10\jre
I am currently using 7u10 7.2 Netbeans and Java (the problem also occurs with 7u7 and 7u6).
For those who using Java7u6 and later, can you tell me what your platform setting manage is the JavaFX tab?
Thank you
JoseOK its fixed. I noticed that the word hellow JavaFX netbeans 7.2 contains the following pots as part of its compilation libraries, jfxrt, deploy, plugin and javaws. In my project of problem I just add them to my library of compilation and it worked.
Thanks for the help Igor.
Jose -
Exception when using JAX - RPC
Hi all!
I'm developing a web service client for society (pearls running 4.3) BB devices. Got the file from the server (generated gSOAP) WSDL, generated high heels using Sun WTK s 2.5.1' wscompile, started the MDS Simulator, wrote a main program, an input screen (for input parameters) and an output screen (for results), began the JDE 4.3 debugger and obtained
javax.xml.rpc.JAXRPCException - java.lang.StringIndexOutOfBoundsException: Index 0 > = 0
from the line of calling the operation.Using NetBeans, I created then a midlet to Web Services client using the WSDL file which worked immediately. Taking the source (essentially generated) files and pushing them into the JDE gave the same exception as shown above.
Someone at - he seen this before?
TIA,
MartinOK, so never mind...
I've implemented my Web Service client using kSOAP.
-
Error when using webLogic utilities
Hi guys,.
Whenever I try to use the webLogic as weblogic utilities. WLST, utils.dbping or weblogic. The Deployment Manager etc.
every time I get an error message
Error: could not find or load the main class < name of utility >
For info: I'm using WLS 12.1.2
with the java version "1.7.0_67".
on 6 OEL
I exported my JAVA_HOME and CLASSPATH in .bashrc and .bash_profile for root and the current user.
Please let me know how to get rid of it.
Thank you
Punishes
Hello
Because for the execution of such a utility, you need the environment to define, more precisely in this case the classpath is not defined. And as explained above, you need the script setWLSEnv.sh to run the script in the context of the shell running and have the actual environment of the shell to be.
You need to run as '... " ' / setWLSEnv.sh ' or 'source. "/ setWLSEnv.sh" and then you can check the CLASSPATH variable is defined with the "env" command
Just run the script./setWLSEnv.sh will only display the values on the screen.
Or take a look at this to understand: linux - what is the difference between running a script bash and sourcing a bash script?-Super User
Concerning
-
Manage data source except when starting server in weblogic
Hello
I have weblogic 10.3.6, and I set datasource and deploy the application, the problem is when the datasource will not connect to the database, for example if the weblogic Server DB will be status "ADMIN" rather that "RUN", how do I manipulate datasource exception when start weblogic server
Thank you
OK, try this:
'Set the InitialCapacity from the DataSource to 0 (zero) so that weblogic will not try to create any object of JDBC connection initially towards up so time like this that we can avoid the connection failed to create the conditions and prevent any movement of our State of the ADMIN server'
WebLogic Server is in the ADMIN? "Middleware Magic."
Kind regards
White
-
reception of exception when I add <>servlet-descriptor in weblogic.xml
When I add a session in weblogic.xml descriptor tag I get the following exception when I try to deploy it.
My weblogic.xml file:
<? XML version = "1.0" encoding = "UTF - 8"? >
< weblogic-web-app xmlns = "http://www.bea.com/ns/weblogic/90."
xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
< security-role-assignment >
Admin > role name < < / role name >
< externally defined / >
< / security role assignment >
<>context-root / appA < / context root >
* < descriptor of a session - > *.
* < session-param > *.
* < param-name > TimeoutSecs < / param-name > *.
* < param-value > 3600 < / param-value > *.
* < / session-param > *.
* < / session descriptor > *.
< / weblogic-web-app >
Exceptions that occur:
Cannot access the selected application.
-Icon of Exception error message in the progress of AppMerge flow
-Icon of Exception error message in the progress of AppMerge flow
Message - problem error VALIDATION PROBLEMS FOUND icon: cvc-complex - type. 2.4: expected elements ' timeout-dry @http://xmlns.oracle.com/weblogic/weblogic-web-app invalidation-interval-dry @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app debug-enabled-length of id @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app tracking-enabled size cache @http://xmlns.oracle.com/weblogic/weblogic-web-app max-in-memory-sessions @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app cookies @http://xmlns.oracle.com/weblogic/weblogic-web-app cookie-path the @http://xmlns.oracle.com/weblogic/ cookie @http://xmlns.oracle.com/weblogic/weblogic-web-app-domaine cookie-name WebLogic-web-app cookie-comment @http://xmlns.oracle.com/weblogic/weblogic-web-app cookie secure @http://xmlns.oracle.com/weblogic/weblogic-web-app cookie-max-age-dry @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app cookie-http-only persistent-store-type @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent-store-cookie-name @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent-store-dir @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent-store-pool @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent data-source-jndi-name-@http://xmlns.oracle.com/weblogic/weblogic-web-app persistent session flush interval @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent session flush threshold @http://xmlns.oracle.com/ WebLogic / WebLogic-web-app persistent-async-queue - timeout @http://xmlns.oracle.com/weblogic/weblogic-web-app persistent-store-table @http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app jdbc-column-name-max-inactive-interval@ jdbc-connection-timeout-dry @http://xmlns.oracle.com/weblogic/weblogic-web-app @http://xmlns.oracle.com/weblogic/weblogic-web-app url rewriting compatible http-proxy-cache-of-cookies @http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app encode-session-id-in-query-params@ surveillance-attribute-name @http://xmlns.oracle.com/weblogic/weblogic-web-app-sharing @http://xmlns.oracle.com/weblogic/weblogic-web-app' instead of ' session-param @http://xmlns.oracle.com/weblogic/weblogic-web-app» here in the @http://xmlns.oracle.com/weblogic/weblogic-web-app session descriptor element: < null >
I think I understand:
This error is due to the session-descriptor tag... I don't know why he is not accepted instead that it is completely correct.
Any suggestions will be much appreciated.
Published by: krathod11 on March 13, 2010 03:41
Published by: krathod11 on March 13, 2010 03:42Hello
Change the tag as follows
3601
2
true
-----------------------tag, we used in WLS8.1 weblogic.xml DTD... The schema that you use to weblogic.xml... is new .
.
.
Thank you
Jay SenSharma
http://jaysensharma.WordPress.com (WebLogic wonders are here) -
Orb iTunes turns when you try to sort Apps on Iphone s 6 using Mac and PC at different times. Applications do not appear to the right of the applications that are registered in the ITunes applications library. How can I solve this problem?
Hi leon4444,
Welcome to the communities of Apple Support! I'm sorry to hear that you are having these problems with your iPhone. I'm kinda not clear on the exact nature and scope of the issue you describe, but if you are having problems sorting or organize your apps using iTunes, you can verify that you follow the procedure described in the following article:
12 iTunes for Windows: Sync and organize iOS apps
Concerning
-
Single line vertical when using the ADF to Scan or copy on HP Officejet Pro 8600
Printer HP Officejet Pro 8600 Premium (CN577A)
OS: MS 7 64-bit
When you use the ADF for my printer HP CN577A Officejet Pro 8600 Premium, I get a single vertical line on the document which is produced. This occurs when copying or scanning, both black and white and in color. If I scan or copy using the glass, I do not get the vertical line.
I already tried troubleshooting. I unplugged the printer, left without electricity for several minutes; that didn't fix the problem. Then, I cleaned the rollers and glass; I always get the vertical line, but only when using the ADF.
My firmware version is up to date (CLP1CN1150CR).
What should I check next?
The only difference between the ADF and scanning flat, from a point of view of the scanner is there on the glass, it happens. I suggest you get a bright flashlight and examine the corresponsing area hence is the line, it's almost certainly a spot on the strip of thin glass which is being just in the right place.
I've seen some people suggest that put a flashlight almost parallel to the Strip, it shines from the bottom can highlight the area problem.
-
I am signed up to the CC, when I look in my apps old versions of the bridge appears, this means I use double space and can empty one in the trash?
Hi louisew,
If you have installed the latest version of creative cloud Applications, then Yes, we can go ahead and uninstall the previous version of computer Applications.
Kind regards
Tanuj
-
Get the error when using the UTL_SMTP function in Oracle 11 g
Hello
I get the error when executing a trigger e-mail code in oracle 11 g:
I have following trigger on the temporary table:
CREATE OR REPLACE TRIGGER temp_temp_message AFTER
INSERT OR UPDATE ON temp_message FOR EACH LINE
declare
Conn UTL_SMTP . CONNECTION ;
msg VARCHAR2 (2000);
Start
Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );
UTL_SMTP . HELO ( conn, '10.250.1.149');
UTL_SMTP . mail ( conn, '[email protected]');
UTL_SMTP . RCPT () conn ' [email protected]');
msg := "Hello, this is test mail." ;
UTL_SMTP .data( conn, msg);
UTL_SMTP . quit smoking ( conn );
exception when others then
dbms_output.put_line (sqlerrm);
raise_application_error (-20000,
"Failed to send because of the following error messages: ' " || sqlerrm);
end;
Insert in temp_message values ()1
);
When I insert the record in the table there are given the following error.
ORA-20000: failed to send messages because of the following error: ORA-24247: access denied by access control (ACL) of network list
ORA-06512: at the 'APPS '. TEMP_TEMP_MESSAGE', line 14
ORA-04088: error during execution of trigger ' APPS. TEMP_TEMP_MESSAGE'
But if I run the next plsql through sqlplus send mail successfully:
declare
Conn UTL_SMTP . CONNECTION ;
MSG VARCHAR2 (2000);
Start
Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );
UTL_SMTP . HELO ( conn, '10.250.1.149');
UTL_SMTP . mail ( conn, '[email protected]');
UTL_SMTP . RCPT () conn ' [email protected]');
msg := "Hello, this is test mail." ;
UTL_SMTP .data( conn, msg);
UTL_SMTP . quit smoking ( conn );
exception when others then
dbms_output.put_line (sqlerrm);
raise_application_error (-20000,
"Failed to send because of the following error messages: ' " || sqlerrm);
end;
Thanks in advance.
Yoann
To resolve ORA-24247 you must:
(1) create an acl (if it is not already created)
(2) add the user privileges using the resources of the network
(3) to use the ACL to a specific address
This might be useful
How to fix an ORA-24247: access denied by access control (ACL) of network list | DB tips
Maybe you are looking for
-
Utility protection of HARD drive seems to be corupt
Hello file of the utility of HARD drive protection seems to be corupt for Qosmio laptops - have tried to download a few times with the same answer corupt (for file hddprot) all other drivers to do the same thing?
-
Is the advanced program of RegClean Pro of Systweak (e Cleverbridge) safe? I bought this program, struggled to save, got help from systweak, always had hurt, and since installing I can not change the browser and get a lot unwanted ads. I wonder if th
-
I forgot my password in the windows vista operating system how to recover it?
Mr President, I forgot the password to my windows vista. Now I need to change the operating system, but she asked how to change this password password I don't know what password I kept it. Please help me solve this.Thanks in advance.
-
devices &; software update
Try to update/upgrade my CPU, a Media center PC m7780n desktop PC, but PC drivers software product of verity, but finds the same product when scaning. Choose the discovered product, I'm back in the "Scan Now" that brings back me to the 'Cannot check
-
You will need "Privieges Administrative" to install Adobe Flash Player.
I'm trying to install 'Adobe Flash Player' and received a note that I have to have "Privilèges" and then log in again. How can I do this? I'm the only person using this computer.