Handling connection errors
Hi,
I'm working in a client/server application. The server side is EJB 3.0 based and the client side is a simple GUI with connection properties, everyone working in a different computer.
Because of this, I want to handle all connection problems and report it to the user, by the moment I use to "throw" all errors up and then catch them and pop-up a message.
For example, at the begining it builds a tree -using a treeviewer-, and if the program couldn't connect, it prints a message and asks to try again or cancel. Later there is a menu option where you can refresh this view.
The problem is when I have been connected and I disconnect -manually- the network connection of the server, then I try to delete one of the tree objects -it needs to connect to the server for removing the entity- but in front of throwing a exception, it hangs and I have to kill the application and execute it again.
The code that hangs:
------------------------------------- Start of code ----------------------------------------
public class ComunicacioEJB {
private static facadeEJB.RedFacadeRemote redfacade;
public ComunicacioEJB() throws javax.naming.NamingException {
c = Context();
lookupRedFacade();
private void lookupRedFacade() throws javax.naming.NamingException{
/* exacly hangs here --> */ redfacade = (facadeEJB.RedFacadeRemote) c.lookup("RedFacade/remote");
-------------------------------- End of code ------------------------------------------
The context is loaded in another function.
Do you have any idea of why is this happening? Why it throws if the connection problem is at the start of the program but hangs if the connection problem is once you have been connected before?
Also it happens if I try to refresh the view or wharever I try.
Thanks for reading.
Miquel
Hi again,
I haven't found solution yet, but I'm thinking on having a timer or similar for the connection, once this timer ends the funcion throws an exception for timeout.
I will try and I say to you
Similar Messages
-
ADF: Gracefully handling JDBC connection errors? Part II
Hi gang
I while back I posted a forum post to find a solution to "display a specific web page when the JDBC connection drops out on our ADF application, specifically the following error: oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection"
...you can see the original post here:
Re: ADF: Gracefully handling JDBC connection errors?
For the life of me I can't get this to work now. It appears I can't redirect to another page during the call to reportException. I've had a play with different methods of redirecting, as seen in the following code sample:
public class ErrorHandlerImpl extends DCErrorHandlerImpl {
public ErrorHandlerImpl() {
super(true);
@Override
public void reportException(DCBindingContainer dCBindingContainer, Exception exception) {
// try {
String message = exception.getMessage();
if (message.indexOf("JBO-26061") >= 0) {
// Method 1
FacesContext fc = FacesContext.getCurrentInstance();
UIViewRoot viewRoot =
fc.getApplication().getViewHandler().createView(fc, "faces/errorPage.jspx");
fc.setViewRoot(viewRoot);
fc.renderResponse();
// Method 2
// FacesContext fc = FacesContext.getCurrentInstance();
// fc.getApplication().getNavigationHandler().handleNavigation(fc, null, "goError");
// fc.responseComplete();
// Method 3 - required IOExcepition handler
// FacesContext.getCurrentInstance().getExternalContext().redirect("faces/errorPage.jspx");
} else
super.reportException(dCBindingContainer, exception);
// } catch (IOException e) {
}... with no success.
Has anyobody any other solutions or advice on getting this to work?
Your help appreciated.
Thanks & regads,
CM.
PS. JDev 11gR1 ADF BC + ADF Faces RCHi Frank
Yep, I' tried redirect, that was method 3 (you can see all 3 methods I've attempted, last 2 are commented out).
With the declarative ADFc exception handler, problem is it's a catch all, not specifically for JBO-26061. Can you think of a way I can tailor fit it for JBO-26061 with a custom message "Database down"?
In addition the exception handler is not consistently called. As example, if you're moving between pages rather than operating on 1 page, the standard af:messages error dialog is shown if the db connection has been dropped, rather than navigating to the exception handler page. As such it seems the DCErrorHandlerImpl.reportExceptions is the better chokepoint to work from.
Cheers,
CM. -
Handle the Network Connection Error ...
The main purpose is to handle the Network Connection Error,
when there is a Network Connection Error or pc loss the
connection (remove the ETH cable),
and it work in IE but not with firefox.
When there isn't connection during play of sound1, Flash call
"sound1.onSoundComplete" that point to an other frame, where i load
an other es:Sound2.mp3, BUt there isn't connection and Flash call
"sound1.onLoad" with "success=false" and that's OK because i handle
the error for example retry to load every 10 Seconds.
With Firefox when it happens the player call load sound2.mp3
but there isn't connection and it can't find the file (OK) BUT is
NOT CALL the "sound2.onLoad" and STOPS it in this frame mute and
nothing more happens.
This is the sample Code:
//on frame (1)
sound1 = new Sound();
sound2 = new Sound();
//on frame (2)
sound1.onLoad = function(success) {
if (success) {
//on load OK...
trace("Sound1 loading ok...");
} else {
//on load FAIL...
trace("Sound1 error ...");
//call error function. (es: goto frame 1 and reload all.)
_root.sounderror();
sound1.loadSound("sound1.mp3", true);
sound1.setVolume(100);
sound1.onSoundComplete = function() {
//goto next frame and load the Second sound
gotoAndStop(3);
//on the Frame-3
//there is the same code but with sound2 and
"onSoundComplete" -> gotoAndStop(2); for a loop of the two
sounds.
Thanks in advance for HELP ME.
PLAEASE READ and Comment!!!
This is my work! Sorry for the Bad English.Thanks for your support, i have modify like your suggest but
the problem continue.
I've notice that in local work very fine also with Firefox. i
try during play to remove in one shot all mp3 file, and it call the
error handler function correctly, But if i put it on the web, when
i unplug the eth cable, it stop after sound2 or 3.loadsond and
write me back it in a text box, stop! it NOT Call the onload
triger, and do not call the error function.
WHY ?!? in local work whit all browser, and on web only with
IE?
HELP ME PLEASE!
Post the new code:
//Frame#1
soundintro = new Sound();
sounda = new Sound();
soundb = new Sound();
soundintro.onLoad = function(success) {
if (success) {
//find soundi - wait for onsoundcomplete...
} else {
//Sound error
//Lunch error hander function.
_root.sounderror();
soundintro.onSoundComplete = function() {
debug1 = debug1+("Trace-> soundintro Complete
goto2..."+chr(13));
gotoAndStop(2);
d = new Date();
soundintro.loadSound("soundintro.mp3?r="+d.getTime(), true);
soundintro.setVolume(100);
stop;
//Frame#2
sound2.onLoad = function(success) {
if (success) {
//find sound2 - wait for onsoundcomplete...
} else {
//Sound error
//Lunch error hander function.
_root.sounderror();
sound2.onSoundComplete = function() {
debug1 = debug1+("Trace-> sound2 Complete
goto3..."+chr(13));
gotoAndStop(3);
d = new Date();
sounda.loadSound("sound2.mp3?r="+d.getTime(), true);
sounda.setVolume(100);
stop;
//Frame#3
sound3.onLoad = function(success) {
if (success) {
//find sound3 - wait for onsoundcomplete...
} else {
//Sound error
//Lunch error hander function.
_root.sounderror();
sound3.onSoundComplete = function() {
debug1 = debug1+("Trace-> sound3 Complete goto back
to2..."+chr(13));
//Back to 2 for loop
gotoAndStop(2);
d = new Date();
sound3.loadSound("sound3.mp3?r="+d.getTime(), true);
sound3.setVolume(100);
stop; -
Handling of Connection error with database
hi, my application is using oracle 9i as database (connection via jdbc).
I understand that we can capture the exact connection errors to database, in event that the database is down or not available. This will allow a more meaningful errors message to be thrown, like "Database is not available" when the user try to login to the system. Is that a particular sql exception that i can catch for such connection errors? or if there is not, what is the best practise for handlng such situation?Yes, java.sql.SQLException is designed for that. It has two methods, getSQLState and getErrorCode, that will help you get the state of the RDBMS if something goes wrong. - MOD
-
Fatal NI connect error 12547/12170
Hi,
I am stakk with connection problem on customer Oracle server. Oracle database is installed on Microsoft Windows Server 2012 Standard. Version of Oracle DB is 11.2.0.4 Standard One Edition.
Oracle database works fine on server. I had no problems/errors while installing (as admin). My user is memer of Local Admin Group. I am also able to connect to it with sqlplus (sqlplus username/password@tns_alias) and SQL Developer.
Content of tnsnames, listener og sqlnet files are following:
tnsnames.ora
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) )
(CONNECT_DATA = (SID = CLRExtProc) (PRESENTATION = RO) ) )
SALES =
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.9)(PORT = 1521))
(CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = sales.company.se)))
listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc) (ORACLE_HOME = D:\oracle\product\11.2.0\dbhome_1)
(PROGRAM = extproc) (ENVS = "EXTPROC_DLLS=ONLY:D:\oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll") ) )
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = servername.company.se)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))))
ADR_BASE_LISTENER = D:\oracle
INBOUND_CONNECTION_TIMEOUT_LISTENER=180
sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= (NONE)
SQLNET.INBOUND_CONNECT_TIMEOUT = 180
ADR_BASE = D:\oracle\product\11.2.0\dbhome_1\log
I am using VPN tunnel to connect to database from my client. I can ping server successfully. TNSPING to database works fine, but I am not able to connect to database. I get an error on client:
ORA-12537 connection closed error.
Alert log content is following:
Fatal NI connect error 12547, connecting to:
(LOCAL=NO)
VERSION INFORMATION:
TNS for 64-bit Windows: Version 11.2.0.4.0 - Production
Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.4.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.4.0 - Production
Time: 19-DEC-2013 13:01:47
Tracing not turned on.
Tns error struct:
ns main err code: 12547
TNS-12547: TNS:lost contact
ns secondary err code: 12560
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
opiodr aborting process unknown ospid (88) as a result of ORA-609
2013-12-19 13:05:28.990000 +01:00
Fatal NI connect error 12170.
VERSION INFORMATION:
TNS for 64-bit Windows: Version 11.2.0.4.0 - Production
Oracle Bequeath NT Protocol Adapter for 64-bit Windows: Version 11.2.0.4.0 - Production
Windows NT TCP/IP NT Protocol Adapter for 64-bit Windows: Version 11.2.0.4.0 - Production
Time: 19-DEC-2013 13:05:28
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12606
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0
Client address: <unknown>
opiodr aborting process unknown ospid (2384) as a result of ORA-609
2013-12-19 13:44:44.855000 +01:00
opiodr aborting process unknown ospid (1292) as a result of ORA-609
2013-12-19 14:30:34.351000 +01:00
I supposed that connection could use some more time so I set inbound_connection to 180 (3 minutes). Same error.
Then I turn on support trace. Here is analyzed content:
server_4424.trc
Trying to get IP client address results in error. Host IP is not correct.
[19-DEC-2013 13:42:35:692] nsgetclientaddress: Client address: "(ADDRESS=(PROTOCOL=tcp)(HOST=::1)(PORT=53749))"
[19-DEC-2013 13:42:35:692] nsgetclientaddress: exit
[19-DEC-2013 13:42:35:692] nszgclient: entry
[19-DEC-2013 13:42:35:692] nszgclient: using dedicated context
[19-DEC-2013 13:42:35:692] nazsgsnm: entry
[19-DEC-2013 13:42:35:692] nau_genm: entry
[19-DEC-2013 13:42:35:692] nau_genm: exit
[19-DEC-2013 13:42:35:692] nazsgsnm: failed with error 12630
[19-DEC-2013 13:42:35:692] nazsgsnm: exit
[19-DEC-2013 13:42:35:692] nszgclient: returning no username
[19-DEC-2013 13:42:35:692] nszgclient: returning no username
[19-DEC-2013 13:42:35:692] nszgclient: exit
[19-DEC-2013 13:42:35:692] nszgetuser: entry
[19-DEC-2013 13:42:35:692] nszgetuser: using dedicated context
[19-DEC-2013 13:42:35:692] nazsgunm: entry
[19-DEC-2013 13:42:35:692] nau_gnm: entry
[19-DEC-2013 13:42:35:692] nau_gnm: exit
[19-DEC-2013 13:42:35:692] nazsgunm: failed with error 12630
Getting package from client. And when reached to @ we get EOF (daflag=64)
[19-DEC-2013 13:42:35:724] nttfprd: exit
[19-DEC-2013 13:42:35:724] nsbasic_brc: type=6, plen=10
[19-DEC-2013 13:42:35:724] nsbasic_brc: what=1, tot =10
[19-DEC-2013 13:42:35:724] nsbasic_brc: packet dump
[19-DEC-2013 13:42:35:724] nsbasic_brc: 00 0A 00 00 06 00 00 00 |........|
[19-DEC-2013 13:42:35:724] nsbasic_brc: 00 40 |.@ |
[19-DEC-2013 13:42:35:724] nsbasic_brc: Got EOF (daflag=64).
[19-DEC-2013 13:42:35:724] nserror: entry
[19-DEC-2013 13:42:35:724] nsbasic_brc: exit: oln=0, dln=0, tot=10, rc=-1
[19-DEC-2013 13:42:35:724] nioqer: entry
[19-DEC-2013 13:42:35:724] nioqer: incoming err = 12151
[19-DEC-2013 13:42:35:724] nioqce: entry
[19-DEC-2013 13:42:35:724] nioqce: exit
[19-DEC-2013 13:42:35:724] nioqer: returning err = 3113
[19-DEC-2013 13:42:35:724] nioqer: exit
[19-DEC-2013 13:42:35:724] nioqrc: exit
[19-DEC-2013 13:42:35:724] nioqds: entry
[19-DEC-2013 13:42:35:724] nioqds: disconnecting...
Handshake never succeded. Client was trying to read from transport but never succeeded. I assume it is because of wrong or non Client address: "(ADDRESS=(PROTOCOL=tcp)(HOST=::1)(PORT=53749))"
[19-DEC-2013 13:41:43:803] nscon: doing connect handshake...
[19-DEC-2013 13:41:43:803] nscon: recving a packet
[19-DEC-2013 13:41:43:803] nsprecv: entry
[19-DEC-2013 13:41:43:803] nsprecv: reading from transport...
[19-DEC-2013 13:41:43:803] nttrd: entry
[19-DEC-2013 13:44:44:855] nttrd: exit
[19-DEC-2013 13:44:44:855] ntt2err: entry
[19-DEC-2013 13:44:44:855] ntt2err: Read unexpected EOF ERROR on 2648
[19-DEC-2013 13:44:44:855] ntt2err: exit
[19-DEC-2013 13:44:44:855] nsprecv: error exit
[19-DEC-2013 13:44:44:855] nserror: entry
[19-DEC-2013 13:44:44:855] nserror: nsres: id=0, op=68, ns=12535, ns2=12606; nt[0]=0, nt[1]=0, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
[19-DEC-2013 13:44:44:855] nscon: error exit
[19-DEC-2013 13:44:44:855] nsdo: nsctxrnk=0
[19-DEC-2013 13:44:44:855] nsdo: error exit
[19-DEC-2013 13:44:44:855] nsinh_hoff: error recving request
[19-DEC-2013 13:44:44:855] nsclose: entry
[19-DEC-2013 13:44:44:855] nsvntx_dei: entry
[19-DEC-2013 13:44:44:855] nsvntx_dei: exit
[19-DEC-2013 13:44:44:855] nstimarmed: entry
[19-DEC-2013 13:44:44:855] nstimarmed: no timer allocated
[19-DEC-2013 13:44:44:855] nstimarmed: normal exit
[19-DEC-2013 13:44:44:855] nstoClearTimeout: entry
[19-DEC-2013 13:44:44:855] nstoClearTimeout: ATO disabled for ctx=0x000000001812ED30
[19-DEC-2013 13:44:44:855] nstoClearTimeout: STO disabled for ctx=0x000000001812ED30
[19-DEC-2013 13:44:44:855] nstoClearTimeout: RTO disabled for ctx=0x000000001812ED30
[19-DEC-2013 13:44:44:855] nstoClearTimeout: PITO disabled for ctx=0x000000001812ED30
[19-DEC-2013 13:44:44:855] nstoUpdateActive: entry
[19-DEC-2013 13:44:44:855] nstoUpdateActive: Active timeout is -1 (see nstotyp)
[19-DEC-2013 13:44:44:855] nstoDestroyAlarm: entry
[19-DEC-2013 13:44:44:855] nstoDestroyAlarm: exit (0)
[19-DEC-2013 13:44:44:855] nttctl: entry
[19-DEC-2013 13:44:44:855] ntt2err: entry
[19-DEC-2013 13:44:44:855] ntt2err: soc -1 error - operation=7, ntresnt[0]=530, ntresnt[1]=38, ntresnt[2]=0
[19-DEC-2013 13:44:44:855] ntt2err: exit
[19-DEC-2013 13:44:44:855] nttctl: entry
[19-DEC-2013 13:44:44:855] ntt2err: entry
[19-DEC-2013 13:44:44:855] ntt2err: soc -1 error - operation=7, ntresnt[0]=530, ntresnt[1]=38, ntresnt[2]=0
[19-DEC-2013 13:44:44:855] ntt2err: exit
[19-DEC-2013 13:44:44:855] nsfull_cls: entry
[19-DEC-2013 13:44:44:855] nsfull_cls: cid=0, opcode=65, *bl=0, *what=0, uflgs=0x0, cflgs=0x40
[19-DEC-2013 13:44:44:855] nsfull_cls: nsctx: state=1, flg=0x4000, mvd=0
[19-DEC-2013 13:44:44:855] nsbfr: entry
After 180 sec Oracle net sends following message:
[19-DEC-2013 13:44:44:855] nsclose: normal exit
[19-DEC-2013 13:44:44:855] nserror: entry
[19-DEC-2013 13:44:44:855] nserror: nsres: id=0, op=73, ns=12535, ns2=12606; nt[0]=0, nt[1]=0, nt[2]=0; ora[0]=0, ora[1]=0, ora[2]=0
[19-DEC-2013 13:44:44:855] nsinherit: error exit
[19-DEC-2013 13:44:44:855] nioqper: error from nsinherit: failed...
[19-DEC-2013 13:44:44:855] nioqper: ns main err code: 12535
[19-DEC-2013 13:44:44:855] nioqper: ns (2) err code: 12606
[19-DEC-2013 13:44:44:855] nioqper: nt main err code: 0
[19-DEC-2013 13:44:44:855] nioqper: nt (2) err code: 0
[19-DEC-2013 13:44:44:855] nioqper: nt OS err code: 0
[19-DEC-2013 13:44:44:855] niotns: No broken-connection function available.
[19-DEC-2013 13:44:44:855] niomapnserror: entry
[19-DEC-2013 13:44:44:855] niqme: entry
[19-DEC-2013 13:44:44:855] niqme: reporting NS-12535 error as ORA-12535
[19-DEC-2013 13:44:44:855] niqme: exit
[19-DEC-2013 13:44:44:855] niomapnserror: exit
[19-DEC-2013 13:44:44:855] niotns: Couldn't connect, returning 12170
[19-DEC-2013 13:44:44:855] nioqer: entry
[19-DEC-2013 13:44:44:855] nioqer: incoming err = 12170
[19-DEC-2013 13:44:44:855] nioqce: entry
[19-DEC-2013 13:44:44:855] nioqce: exit
[19-DEC-2013 13:44:44:855] nioqer: returning err = 3136
Firewall is off on Server. Network administrator says that there is no rules which could compromise communication/traffic on port 1521. I tried trcroute too and I get following conntent
1 27ms 22 ms 17ms 192.168.97.1
2 * * * request aborted
3 20 ms 18 ms 18 ms server.company.se (192.168.1.9)
Any suggestion, help or comments would be appriciated. I am running out of ideas.
Tnx a lot,
adiThe error could be due to a port change/reconnect/redirect that fails.
The problem: Listener.exe is a separate physical process image in the kernel as the Oracle.exe process. The Listener needs to start an Oracle dedicated server process (created by the Listener as a remote thread in the oracle.exe process). Then it needs to pass the socket handle (created when the Listener accepted the tcp connection of the client) to this thread in another physical process - in order for that thread to continue tcp comms with the client.
This is not by default supported in Windows as I understand (always wrote a single threaded exe myself with the main thread acting as listener and child threads as dealing with client sessions, when developing Win32 tcp servers).
On Unix/Linux it is fairly common to pass the socket handle as stdin and stdout to a forked child process (a separate physical process).
If the socket handle cannot be passed from the listener.exe to oracle.exe, then the oracle.exe thread could open a private port as tcp listening end-point and inform, via the Listener, the client to reconnect to that tcp port (i.e. SQL*Net on client gets a redirect).
You will need to determine whether this is happening - as it would explain the initial successful tcp connect from client to Listener, followed by the tcp connection failing to the Oracle dedicated server process.
Not sure how one checks on Windows - have last done Oracle on Windows back with Oracle 7.1. But I think there are support notes on this.
I would use netstat myself on Linux/Unix - and list the ports used by client and server for the connection, and determine if a private/dynamic port was used to continue the client-server tcp communication as a renegotiated tcp session. netstat is also available on Windows and can be used in a similar fashion too. -
TCP active open: Failed connect() Error: Connection timed out
Hi,
There is one message which can't be delieved to the recepient with error " TCP active open: Failed connect() Error: Connection timed out" This is the error that we found in the mail.log_current file.
I have no problem sending email to the same address from my hotmail account.
any suggestion ?
Thanks,
JoeThe message can only mean one thing. Your server cannot connect to that host.
It's possible that the remote system is lying to your Messaging Server, and that's gotten it confused. Some firewalls do this by repeating the entire capability string from the server behind them, but can't actually handle all the capabilities.
PIX firewalls do this.
When you connect, they pretend to be able to "startls", but if you try, they hang up. They appear to handle "EHLO", but when you try, they hang up.
You can put debugging on the tcp_local channel, and see the actual conversation, if you like.
master_debug and slave_debug go into the imta.cnf definition line. MM_DEBUG=5 goes at the end of your option.dat file.
then
imsimta cnbuild
imsimta restart
will attempt to send the message. You will want to back the changes out, as you'll get lots of extra log files you really don't need.
Post the log file, and we can see what's happening. -
Syncing MBP to iCal on .Me gets connection errors
I sync iCal to .me via G4, a G5 an iPhone 4 and this MBP with lion. I now get a variety of connection errors with mbp like this server at cal.me.com is currently unable to handle the connection for account.
right now what should eb calendar entries syncing with .me show a lighing bolt error logo indicating failure connection .My other machines seem to be connecting quite happily to ical at .MeIf you have selected the Address Book and iCal under the Info tab for your iPhone 3G sync preferences to sync contact info and calendars with and this is not working, try resetting the sync history on your Mac, which is done via iSync preferences with the iSync application located in your Applications folder.
Quit iTunes, the Address Book, and iCal first. Launch iSync and to to iSync preferences. After selecting reset sync history, restart your Mac and try syncing this data again.
When creating a new calendar event, there is a selection for which calendar you want to place the new event in if you have multiple calendars.
If you have multiple calendars, you can select the calendar you want to create the new event in. After launching Calendar, there is a Calendars selection at the top to view all calendars. You can select a calendar to view all entries for that calendar only and for entering a new event for that calendar. Or select All Calendars to view the events for all calendars. When creating a new event with All Calendars selected, you can choose which calendar with the new event entry. -
How to handle write errors in non blocking sockets
Hi,
I'm using sockets registered with a Selector for read operations. I've seen code examples that put the SocketChannel in non blocking mode before registering it with the selector, and in fact not doing so would cause an IllegalBlockingModeException to be thrown.
My problem is that I can't handle write errors. The call to write() returns inmediately without throwing any exception. Even worse, when the network timeout expires the selector wakes up and I get an exception on read(). So I can't tell the difference between a real read error and a write error.
What can I do? Is there a magic method I haven't heard about?
Thanksejp wrote:
OK, so what happens is this: you write from your ByteBuffer; if there is room in the socket send buffer, the data is transferred and the transfer count is returned. (If there isn''t, the write returns zero and nothing has happened.) Your application code then continues. Meanwhile TCP is trying to send the data in the send buffer and get an ACK from the peer. If the peer is down as per your test, eventually those write attempts will time out. You will then get a connection reset exception on the next read or write.
Even worse, when the network timeout expires the selector wakes upCorrect, to tell you there is an error condition pending. This is good, not bad.You're right. This way my program can know that something happened.
But I still don't understand what the difference between a failed write() and a failed read() is. I mean, the error condition may appear during a send attempt, or it may appear after sending. In both cases I get an error when trying to read. How can my program know if data have been received by the other end?
Do I have to implement ACK messages in the application level protocol??? It'd be nice if TCP could do this for me... -
Hi,
I changed DB users password using brtools and tried to UP the sap , unable to connect to DB
Listener is UP and running:
please help ASAP
R3trans log:
4 ETW000 R3trans version 6.24 (release 720 - 08.07.13 - 20:13:05 ).
4 ETW000 unicode enabled version
4 ETW000 ===============================================
4 ETW000
4 ETW000 date&time : 07.04.2014 - 12:27:05
4 ETW000 control file: <no ctrlfile>
4 ETW000 R3trans was called as follows: R3trans -d
4 ETW000 trace at level 2 opened for a given file pointer
4 ETW000 [ dev trc,00000] Mon Apr 07 12:27:05 2014 235 0.000235
4 ETW000 [ dev trc,00000] db_con_init called 68 0.000303
4 ETW000 [ dev trc,00000] set_use_ext_con_info(): rsdb/ssfs_connect not set => ssfs not used 65 0.000368
4 ETW000 [ dev trc,00000] determine_block_commit: no con_hdl found as blocked for con_name = R/3
4 ETW000 57 0.000425
4 ETW000 [ dev trc,00000] create_con (con_name=R/3) 33 0.000458
4 ETW000 [ dev trc,00000] Loading DB library 'dboraslib.dll' ... 54 0.000512
4 ETW000 [ dev trc,00000] DlLoadLib success: LoadLibrary("dboraslib.dll"), hdl 0, addr 000007FEE7E30000
4 ETW000 1151 0.001663
4 ETW000 [ dev trc,00000] using "E:\usr\sap\W09\SYS\exe\uc\NTAMD64\dboraslib.dll" 32 0.001695
4 ETW000 [ dev trc,00000] Library 'dboraslib.dll' loaded 34 0.001729
4 ETW000 [ dev trc,00000] function DbSlExpFuns loaded from library dboraslib.dll 33 0.001762
4 ETW000 [ dev trc,00000] Version of 'dboraslib.dll' is "720.00", patchlevel (0.425) 227 0.001989
4 ETW000 [ dev trc,00000] function dsql_db_init loaded from library dboraslib.dll 34 0.002023
4 ETW000 [ dev trc,00000] function dbdd_exp_funs loaded from library dboraslib.dll 53 0.002076
4 ETW000 [ dev trc,00000] -->DbSlControl(con=-1,cmd=47=DBSL_CMD_IMP_FUNS_SET) -> changed=30, tagset=1
4 ETW000 709 0.002785
4 ETW000 [ dev trc,00000] -->DbSlControl(con=-1,cmd=39=DBSL_CMD_SET_SINGLETASK) 36 0.002821
4 ETW000 [ dev trc,00000] -->DbSlControl(con=-1,cmd=10=DBSL_CMD_DBCA_PTR_GET) 35 0.002856
4 ETW000 [ dev trc,00000] New connection 0 created 30 0.002886
4 ETW000 [ dev trc,00000] 0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =
4 ETW000 65 0.002951
4 ETW000 [ dev trc,00000] -->DbSlControl(con=-1,cmd=10=DBSL_CMD_DBCA_PTR_GET) 47 0.002998
4 ETW000 [ dev trc,00000] db_con_connect (con_name=R/3) 28 0.003026
4 ETW000 [ dev trc,00000] determine_block_commit: no con_hdl found as blocked for con_name = R/3
4 ETW000 49 0.003075
4 ETW000 [ dev trc,00000] find_con_by_name found the following connection: 29 0.003104
4 ETW000 [ dev trc,00000] 0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =
4 ETW000 71 0.003175
4 ETW000 [ dev trc,00000] -->DbSlConnect(vers=-1, type=0, env='[default env]', usr='[default usr]', kernel dbsl='720')
4 ETW000 134 0.003309
4 ETW000 [ dev trc,00000] DIR_CLIENT_ORAHOME is not set as profile nor env. parameter. 335 0.003644
4 ETW000 Assuming using instant client with unspecified location.
4 ETW000 [ dev trc,00000] Register application info. 109 0.003753
4 ETW000 [ dev trc,00000] Oracle client version: 10.2.0.5.0, (dbsl 720 090813, UNICODE[2]) 9733 0.013486
4 ETW000 [ dev trc,00000] Detailed Oracle client (patch) info not available. 73 0.013559
4 ETW000 [ dev trc,00000] Default connection: tnsname ='W09' 34 0.013593
4 ETW000 [ dev trc,00000] -->oci_initialize(con=0, char='UTF16', nchar='AL16UTF16', nls=-1),uc_ln=2
4 ETW000 68 0.013661
4 ETW000 [ dev trc,00000] OCIEnvCreate(mode=16384=OCI_UTF16) returned 0 (for default NLS handle)
4 ETW000 7941 0.021602
4 ETW000 [ dev trc,00000] OCIHandleAlloc(OCI_HTYPE_ERROR, con=0, ErrHp=03C28760) 167 0.021769
4 ETW000 [ dev trc,00000] OCIHandleAlloc(OCI_HTYPE_ERROR, con=0, ErrBt=03C2A338) 118 0.021887
4 ETW000 [ dev trc,00000] NLS env. settings: lang=41004D00450052004900430041004E00 473 0.022360
4 ETW000 [ dev trc,00000] terr=41004D0045005200490043004100 95 0.022455
4 ETW000 [ dev trc,00000] char=55005400460031003600 46 0.022501
4 ETW000 [ dev trc,00000] Client NLS setting (by OCINlsGetInfo(con=0)): 'AMERICAN_AMERICA.UTF16'
4 ETW000 82 0.022583
4 ETW000 [ dev trc,00000] charset='UTF16', ncharset='AL16UTF16', UNI_ASC=FALSE 43 0.022626
4 ETW000 [ dev trc,00000] Logon as OPS$-user to get SAPSR3's password 301 0.022927
4 ETW000 [ dev trc,00000] Connecting as /@W09 on connection 0 (nls 0) ... (dbsl 720 090813, UNICODE[2])
4 ETW000 109 0.023036
4 ETW000 [ dev trc,00000] OCIHandleAlloc(OCI_HTYPE_SVCCTX, con=0, svchp=03C2A1F8) 87 0.023123
4 ETW000 [ dev trc,00000] Allocating server context handle 50 0.023173
4 ETW000 [ dev trc,00000] Attaching to database server W09 (con=0, svchp=03C2A1F8, srvhp=03C2EA68)
4 ETW000 130 0.023303
4 ETW000 [ dev trc,00000] Mon Apr 07 12:27:06 2014 1184022 1.207325
4 ETW000 [ dev trc,00000] OCIServerAttach(OCI_DEFAULT) failed with -1=OCI_ERROR 74 1.207399
4 ETW000 [ dev trc,00000] OCIServerAttach(OCI_DEFAULT) failed with SQL error 12541: 142 1.207541
4 ETW000 [ dev trc,00000] ORA-12541: TNS:no listener
4 ETW000 61 1.207602
4 ETW000 [ dbsloci.,00000] *** ERROR => CONNECT failed with sql error '12541' 53 1.207655
4 ETW000 [ dev trc,00000] set_ocica() -> SQL error code 12541 37 1.207692
4 ETW000 [ dev trc,00000] -->oci_get_errmsg (con=0, rc=12541) 35 1.207727
4 ETW000 [ dev trc,00000] OCIErrorGet -> SQL error code: 12541 73 1.207800
4 ETW000 [ dev trc,00000] ORA-12541: TNS:no listener
4 ETW000 68 1.207868
4 ETW000 [ dev trc,00000] SAPUSER error or connect error 99=DBSL_ERR_DB, oerr=12541. 40 1.207908
4 ETW000 [ dev trc,00000] DbSlConnect(con=0) -> orc=0, 99=DBSL_ERR_DB 33 1.207941
4 ETW000 [ dblink ,00000] ***LOG BY2=>sql error 12541 performing CON 79 1.208020
4 ETW000 [ dblink ,00000] ***LOG BY0=>ORA-12541: TNS:no listener 36 1.208056
4 ETW000 [ dev trc,00000] -->DbSlControl(con=-1,cmd=41=DBSL_CMD_RELINFO_GET) 55 1.208111
4 ETW000 [ dev trc,00000] -->DbSlControl(con=-1,cmd=14=DBSL_CMD_VERSION_GET) 64 1.208175
4 ETW000 [ dev trc,00000] -->DbSlControl(con=-1,cmd=50=DBSL_CMD_GET_PATCH_INFO) 47 1.208222
4 ETW000 [ dev trc,00000] -->DbSlControl(con=-1,cmd=13=DBSL_CMD_VENDOR_NAME_GET) 97 1.208319
4 ETW000 [ dev trc,00000] -->DbSlControl(con=-1,cmd=52=DBSL_CMD_GET_DBLIB_VERSION) 33 1.208352
4 ETW000 [ dev trc,00000] -> 'OCI_10201_SHARE, 10.2.0.5.0' 33 1.208385
2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'W09'"
regrds,
SivaHi Sivakoti,
From the logs
4 ETW000 [ dev trc,00000] ORA-12541: TNS:no listener
4 ETW000 68 1.207868
4 ETW000 [ dev trc,00000] SAPUSER error or connect error 99=DBSL_ERR_DB, oerr=12541. 40 1.207908
4 ETW000 [ dev trc,00000] DbSlConnect(con=0) -> orc=0, 99=DBSL_ERR_DB 33 1.207941
4 ETW000 [ dblink ,00000] ***LOG BY2=>sql error 12541 performing CON 79 1.208020
4 ETW000 [ dblink ,00000] ***LOG BY0=>ORA-12541: TNS:no listener
There is no Listener service running.
As you are on windows you may start the listener from Windows services or
Open command prompt and execute lsnrctl start.
Hope this helps.
Regards,
Deepak Kori -
How to handle runtime error in PreUUT step when running in Parallel mode
I would like to run Test UUTS in parallel mode, and some actions are done in PreUUT such like read serial number and fixture control.
The process model won't goto PostUUT Step when runtime error occurs in PreUUT step, so i would like to add some actions to check if sequence error in cleanup and go back to setup in PreUUT step, but i find it skip all the actions in setup and main step?
What should i do if i want to go back to run PreUUT again as the first time to run when runtime error occurs?
Or, is there any good way to handle this kind of error withour restart program?
Solved!
Go to Solution.This question does not depend on PreUUT or ParallelModel at all.
First of all:
A Runtime Error is a situation where TestStand encounters a problem which makes further testing either impossible or senseless. So a Runtime Error always indicates a situation where proceeding the test sequence is not recommended.
Nevertheless, there are situation where you want to handle those errors without stopping the execution. A "traditional example" for this is initialising serial/GPIB devices. If the device does not reply, there might be different issues the operator can easily resolve and (if corrected) the sequence can proceed properly. The operators action could be:
- Check if device is switched on
- Check connection between PC and device
So the error state is used to inform the operator about the malfunctioning device and regarding of the actions the operator takes, the execution will either proceed or terminate.
When TestStand encounters a Runtime Error, it initially reacts with displaying a dialog. This behavior can be modified in the Station Options >> Preferences >> On Runtime Error.
Furthermore, you can install callback sequences which are called if an error occurs. Those would be either SequenceFilePostStepRuntimeError or ProcessModelPostStepRuntimeError (depending on the fact if you are changing the process model or simply working with client sequence file callback overrides). These are "normal" sequences you can use in order to get system information, loop on the step or....essentially do whatever you want. If you want to proceed though, you must not forget to reset the error flag.
hope this helps,
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Db2-connect error - dboraslib.dll - specified module could not be found
While I am trying to START SAP server, its giving the db2-connect error . showing the following error, can anybody throw some light.
Thanks
trc file: "dev_w1", trc level: 1, release: "620"
ACTIVE TRACE LEVEL 1
ACTIVE TRACE COMPONENTS all, M
B
B Sat Sep 30 19:06:25 2006
B create_con (con_name=R/3)
B Loading DB library 'D:\usr\sap\DWK\SYS\exe\run\dboraslib.dll' ...
M
M Sat Sep 30 19:06:45 2006
M *** ERROR => DlLoadLib: LoadLibrary(D:\usr\sap\DWK\SYS\exe\run\dboraslib.dll) Error 126 [dlnt.c 226]
M Error 126 Error 126 = "The specified module could not be found."
B *** ERROR => Couldn't load library 'D:\usr\sap\DWK\SYS\exe\run\dboraslib.dll'
[dbcon.c 3789]
M systemid 560 (PC with Windows NT)
M relno 6200
M patchlevel 0
M patchno 251
M intno 20020600
M pid 1580
M
M ***LOG Q0Q=> tskh_init, WPStart (Workproc 1 1580) [dpxxdisp.c 1016]
I MtxInit: -2 0 0
X
X Sat Sep 30 19:06:46 2006
X EmInit: MmSetImplementation( 2 ).
X <ES> client 1 initializing ....
X Using implementation std
M <EsNT> Memory Reset enabled as NT default
X ES initialized.
M
M Sat Sep 30 19:06:48 2006
M calling db_connect ...
B create_con (con_name=R/3)
B Loading DB library 'D:\usr\sap\DWK\SYS\exe\run\dboraslib.dll' ...
M *** ERROR => DlLoadLib: LoadLibrary(D:\usr\sap\DWK\SYS\exe\run\dboraslib.dll) Error 126 [dlnt.c 226]
M Error 126 = "The specified module could not be found."
B *** ERROR => Couldn't load library 'D:\usr\sap\DWK\SYS\exe\run\dboraslib.dll'
[dbcon.c 3789]
M ***LOG R19=> tskh_init, db_connect ( DB-Connect 008192) [thxxhead.c 1098]
M in_ThErrHandle: 1
M *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 8277]
M
M Info for wp 1
M
M stat = 4
M reqtype = 1
M act_reqtype = -1
M tid = -1
M mode = 255
M len = -1
M rq_id = -1
M rq_source = 255
M last_tid = 0
M last_mode = 0
M rfc_req = 0
M report = > <
M action = 0
M tab_name = > <
M
M *****************************************************************************
M *
M * LOCATION SAP-Server star47e_DWK_00 on host star47e (wp 1)
M * ERROR tskh_init: db_connect
M *
M * TIME Sat Sep 30 19:06:48 2006
M * RELEASE 620
M * COMPONENT Taskhandler
M * VERSION 1
M * RC 13
M * MODULE thxxhead.c
M * LINE 8408
M * COUNTER 1
M *
M *****************************************************************************
M
M
M Sat Sep 30 19:06:49 2006
M Entering TH_CALLHOOKS
M ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_DUMP
M ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
M *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c 672]
M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c 235]
M Entering ThSetStatError
M Entering ThReadDetachMode
M call ThrShutDown (1)...
B dbtbxbuf: Buffer TBX_SINGLE not available
M ***LOG Q02=> wp_halt, WPStop (Workproc 1 1580) [dpnttool.c 345]thanks cyrus.
I just updated the kernel and it got me passed the error but now it stops somewhere else.
Previous error OK:
B Library 'C:\usr\sap\DRS\SYS\exe\run\dboraslib.dll' loaded
B Version of 'C:\usr\sap\DRS\SYS\exe\run\dboraslib.dll' is "640.00", patchlevel (0.79)
B New connection 0 created
M sysno 00
M sid DRS
M systemid 560 (PC with Windows NT)
M relno 6400
M patchlevel 0
M patchno 87
M intno 20020600
M make: multithreaded, ASCII
M pid 3360
New error:
X ES initialized.
M
M Mon Oct 23 16:42:37 2006
M calling db_connect ...
C Prepending C:\oracle\ora81 to Path.
C got NLS_LANG='AMERICAN_AMERICA.WE8DEC' from environment
C *** ERROR => Couldn't initialize Oracle client library,
please check your installation!
[dbsloci.c 1935]
M ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c 1273]
M in_ThErrHandle: 1
M *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c 9530]
M
This look familiar?
Thanks again. -
Error Hospital to handle Functional Errors
Hi,
In my implementation I'm consuming external Web Services from BPEL.
Some of those webservices may return errors in a controlled fashion, returning a numeric field that indicates failure due to whatever reasons.
My question is: Can a BPEL process receive the response from such a web service and thwow an error to the error hospital, so that all errors(connectivity errors and functional errors) are handled in the same console?
Thanks,
Alexcan you give a description of "the error hospital"
is this something you created yourself..or do you use the bpelconsole for this together with the faultpolicyframework ? -
Handling an error of redeploy command of WLST
Hello.
I use WLST 6.4 on WebLogic 8.1sp5.
I have a problem about redeploy command.
In normal situation, it works very well.
In error situation, e.g. there is no J2EE package file
for redeploying, I expected WLST to catch an exception
as a result of failure of redeploying, but I could not
catch an exception.
I know that WLSTProgress is not supported in WebLogic 8.1.
So I tried to handle an exception.
How can I handle an error of redeploy command ?
Thanks!
Katsuya, dev2dev Osaka, JapanPlease attach the script. I would expect you would do soemthing like,Yes, my script for prototype is as follows:
START--------------------------------------------------------------------------
def redeployTest(appname):
try:
connect("weblogic", "weblogic", "t3://localhost:7001")
redeploy(appname)
print "$$$$$ Successfully done ! $$$$$"
disconnect()
except WLSTException, er:
print "### Caught WLSTException"
dumpStack()
END---------------------------------------------------------------------------
Under the situation like that there is no ear-package file for redeploying,
this script printed messages as follows:
START---------------------------------------------------------------------------
Connecting to weblogic server instance running at t3://localhost:7001 as usernam
e weblogic ...
Successfully connected to Admin Server 'myserver' that belongs to domain 'wlst'.
Redeploying 'myapp' ...
Redeployment Failed:
Exception:weblogic.management.ApplicationException: Cannot create JarFile forE:\
home\katuya\work\myapp.ear
$$$$$ Successfully done ! $$$$$
END-----------------------------------------------------------------------------
I also tried deploy command.
It works very well. This script caught an exception under the same situation.
Script is as follows:
START---------------------------------------------------------------------------
def deployTest(appname, path):
try:
connect("weblogic", "weblogic", "t3://localhost:7001")
deploy(appname, path)
print "$$$$$ Successfully done ! $$$$$"
disconnect()
except WLSTException,er:
print "### Caught WLSTException"
dumpStack()
END-----------------------------------------------------------------------------
Messages are:
START---------------------------------------------------------------------------
Connecting to weblogic server instance running at t3://localhost:7001 as usernam
e weblogic ...
Successfully connected to Admin Server 'myserver' that belongs to domain 'wlst'.
### Caught WLSTException
weblogic.management.ManagementRuntimeException: weblogic.management.ApplicationE
xception: Failed to parse application descriptors: java.io.FileNotFoundException
: File not found
END-----------------------------------------------------------------------------
Are there any faults in my script?
Thanks!
Katsuya, dev2dev Osaka, Japan -
JDBC connection error -- unknown SID
Hello,
I am trying to run my first JDBC application (using the thin driver) -- the Oracle DMLSample example. But I am getting a connection error related to SID:
"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:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(PORT=1521)(HOST=127.0.0.1))(CONNECT_DATA=(SID=dmsdm)))"
Here is my setup:
I have started the listener -- here is the result of "lsnctl start" command:
Starting /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 10.2.0.1.0 - Production
System parameter file is /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
Log messages written to /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qella.array.ca)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Here is the listener.ora file content
Alias LISTENER
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 25-MAY-2007 09:46:36
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=qella.array.ca)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
The application is built with JDevloper and tries to connect to the DB (located on the same Linux machine where the Oracle installed) with the following parameters:
HostName = qella.array.ca
SID = dmsdm
Port = 1521
UserName = hr
Password = hr
Here is the listener.ora file contents:
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
(PROGRAM = extproc)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = qella.array.ca)(PORT = 1521))
DEFAULT_SERVICE_LISTENER = (XE)
Here is the listener.ora file contents:
# tnsnames.ora Network Configuration File:
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = qella.array.ca)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
My questions:
1. What is wrong/missing in my setup?
2. In case I don't remember the SID -- how can I find it?
Thanks very much!
Mark.Mark,
You asked:
What is wrong/missing in my setup?Possibly nothing. My guess is the problem is with your code. Excuse me, but I couldn't find that in your post.
You also asked:
In case I don't remember the SID -- how can I find it?In one of the data dictionary views. The Oracle documentation will tell you which one.
(I don't remember right now.)
Note, however, that the connection URL you use in JDBC may contain either the SID or the service name and you have posted the service name, namely:
(SERVICE_NAME = XE)For your information I have Oracle database express edition (XE) installed on my Windows machine. The connection URL I use to connect to the sample HR schema is:
jdbc:oracle:thin:HR/hr@//localhost:1521/XEIf you haven't already done so, I recommend reading the Oracle documentation first, in particular the JDBC User's Guide and Reference.
Good Luck,
Avi. -
Data Federator data source not available causes Universe Connection error
I created a Data Federator project that connects to 20 servers across US and Canada. All data sources are SQL Server 2005. The DF project maps 40 source objects into 4 target objects. I created a universe based on the DF project and we have been quite pleased with Webi query response. Today one of the source servers was taken off line and this generated a connection error when trying to access the universe (not trying to access the data source that failed). We do not want the universe connection to error when one source server is not available u2013 is that possible?
If the answer is no then I see us abandoning what appears to be a great solution for real time distributed reporting and resorting to ETL and moving data.Hi Chapman,
Can you be little elobrate on what you have done to solve the issue.
Thanks,
Dayanand
Maybe you are looking for
-
I have add-block+ extension also. I dont know it has any problem with streaming by media player.
-
HP Officejet Pro 8500A Plus power problem
My HP 8500A Plus just stopped working. The power light is one but the control pad is off and the printer doesn't work. I unplugged the printer from my surge protector and plugged it directly into a wall outlet but nothing changed. I cannot turn the
-
Hello Folks and Expert, I am Certified Ora DBA and am stuck, thats a shame I am going to install and Test Oracle 10g on Vista as my future client will use Just Vista and no othr OS, so there is no OTHER OS options, I ready all the documentaiotn and r
-
Request and Response Scenario for JMS adapter
Hi, I am working on IDOC-XI-JMS, JMS(sender)- XI - JMS (receiver)scenario and this is going to be real time. If any record is update in customer master then that record will be sent to JMS provider MQ series and lock the record in the legacy system a
-
Having problem with playing audiobook .mp3 files
I have downloaded some audiobook mp3 files. I can transfer them fine to the Ipod, but when I choose the file to play, it goes through all the steps right up to the playing of the mp3 file, then the backlight shuts off, the screen wipes out and the wh