How to check if remote host is alive
Hi,
i was wondering how you could implement a ICMP ping message in java so that a low priority thread can be written so as to ping remote host to verify if the host is still alive?
any links or help would be greatly appreciated. pls allow me to thank all of you in advance
rgds,
Javier
There is a sample for new nio packages at:
http://java.sun.com/j2se/1.4/docs/guide/nio/example/index.html
Please, see Ping.java
Similar Messages
-
How to check if remote phone locking in E5 is work...
how to check if remote phone locking in E5 is working
If the phone is off nothing can be done about it.
As is evident in the thread that aspergerguy linked you can check by sending the required sms to your phone but that guy was reporting what sounds like a bug if you do just send the message to test.
Honestly you have very little time to actually do something about a stolen phone. It's not like tracking a car which itself is not 100% effective. I don't bother with such software it's actually for the stupid thieves.
Show your appreciation. Hit that kudos button real hard -
How can I check a Remote Database is alive in a Stored Procedure
Hi
In a PL/SQL stored procedure, I do a select from a table on a remote database via the database link. There is a Loop around the select as it waits for a flag to be set on the remote table. However, on several occasions, while looping, the remote database has gone down and the procedure then fails with error:
'Details ORA-02068: following severe error from ORA-02068: following severe error from 'Remote Database ' ORA-01033: ORACLE initialization or shutdown in progress ORA-06512: at "Current Database.Stored Procedure", line'
Is it possible to trap this error and prevent the procedure from crashing?
My current code is like:-
LOOP
SELECT flag
INTO v_flag
FROM remote_table@remote_db;
IF v_flag= 'OK'
THEN
< Run Oracle Warehouse Builder Process Flow >
EXIT;
ELSE dbms_lock.sleep(600);
END IF;
END LOOP;
Any help with this would be appreciated.
Thanks
GBHi Bernd
Thanks for your help. If I do this, I think the procedure would continue onto the 'IF' statement. I am looking for a way of looping round and trying to run the select again before moving on.
If I did something like
LOOP --- Loop 1 ---
LOOP --- Loop 2---
BEGIN
SELECT flag
INTO v_flag
FROM remote_table@remote_db;
EXCEPTION WHEN OTHERS THEN NULL;
END;
-- Need to exit if no exception ---
END LOOP;
IF v_flag= 'OK'
THEN
< Run Oracle Warehouse Builder Process Flow >
EXIT;
ELSE dbms_lock.sleep(600);
END IF;
END LOOP;
Is there a way of going back to the start of Loop 2 if there was an exception, otherwise EXIT and continue onto the 'IF' statement. -
How to check the host name or rename the host name in Enterprise Manager
Hello,
How do i check the host name or rename the host name in Enterprise Manager for Oracle 11g?
Regards,
Ming Manthere is a shell script called chgip or something
like that is there . I used it for IAS. I beleive the
same is there for database too
Rajesh AlexIf there is, I have not been able to find it.
Off the top of my head, changing the host name involves at least the following (others feel free to add on):
For listener and connectivity
- listener.ora
- tnsnames.ora (on all clients as well)
- potentially ldap.ora (on all clients as well)
- init.ora parameter LOCAL_LISTENER
For admin using Enterprise Manager (starting 10g)
- the contents of the sysman schema
- the directory name of the OEM agent directory
- the directory name of the OEM OC4J config directory
- various config files in the OEM OC4J config directory
Oracle provides the emca to handle this last set.
In addition, the following refer to hosts that are [probably] not local
- init parameter REMOTE_LISTENER (usually just points to a tnsnames.ora entry naming remote hosts)
- init parm SMTP_OUT_SERVER
Again, adding to the list might be interesting. -
Is it possible and how to find out what host, if any, is connected to a remote PXI prior to switching execution target programmatically or in devlopment environment?
This functionality is not available in LabVIEW RT. If you attempt to switch execution target to an RT controller already targetted by someone else, it will tell you too many hosts are connected and fail. Of course if it allows you to switch, then no one was connected. By attempting to switch execution target you can use the message above to determine if anyone is targetted or not, but if someone is, there is no way to determine who.
If you are concerned about this sort of thing, you might check the RT target options in LabVIEW RT to change the IP access list for hosts that are allowed to switch execution target to it. -
How to display a file on remote host?
Hi, All,
I want to know how to display a text file on a remote host on APEX.
In my APEX application, I call a OS command which execute a shell script on a remote host. The shell script will run for 5mins, and send out its running status on the remote host every 10 seconds.
For APEX application, I want to display the output file on the remote host, and refresh the screen every 10 seconds. So the user can get the running status while the shell script is running.
Thanks in advance for any advice.
Sharon.NiI call a OS command which execute a shell script on a remote hostI am assuming that you are using a Java wrapper to execute the OS script.
<li>If so add another script that 'echo's or displays(cat) the file content in your OS
<li> Add another java wrapper that runs the script (PLSQL OS COMMAND library can return the unix output of a script to PLSQL and is feature rich)
<li> Have a PLSQL ondemand process that runs the Java code that returns the file content_(it can even return a clob) to JS ( using htp.p).
<li> In the page have a timer JS which calls the Ondemadn process and put the content into an HTML div(eg by using html() function) with the Ondemand processes return string. -
How to detect remote (client) host name or remote host address?
Hello!
I need to receive remote host name or remote IP address in the BSP controller DO_REQUEST method. How to do it?
In Java I can use getRemoteAddr() or getRemoteHost() methods of HttpServletRequest class. But in the BSP I can not find analogues of these methods.
Please help
Best regards,
EugenyHi,
I guess there is something "cleaner", but here is a solution:
DATA l_host TYPE string.
l_host = me->request->if_http_entity~get_header_field( '~remote_addr' ).
Regards,
Tanguy -
How to send the mail to remote host
I'm using sendmail as my default SMTP service, but when I was sending the mail to remote host, I got error from /var/log/syslog:
Feb 22 15:44:24 hostname sendmail[897]: [ID 801593 mail.info] g1M7fW800840: to=<[email protected]>, ctladdr=<user@hostname> (0/1), delay=00:02:18, xdelay=00:00:00, mailer=esmtp, pri=300344, relay=relay.us.mailserver.net. [200.100.100.1], dsn=4.0.0, stat=Deferred: Cannot assign requested address
How can I solve this problem?Hi,
please enter the tcode SBWP click on new message then enter the subject and description.
enter email id and select type as internet address or external address then click on send button.
Regards,
Arti -
How to check MAC address from host from local network
Hello,
I must save information about my network enviroment, at some periods of time (IP, Host Name, MAC Address, and later some information from SNMP). I have IP addresses of all devices. Could any one have an idea how to check MAC address. In java.net.* I didn't find anythink about my problem.
Please give my an answer, if you konow any solution.
Marcin Kowalskihi !
I've typed ipconfig on my PC which has windows2000 pro. as the OS!!
but i couldn't get th line you've mentioned "Physical Address" !!
what could be wrong .. ?!! hope you could help!!
thanks!!
C:\>ipconfig
Windows 2000 IP Configuration
Ethernet adapter
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.130.128.210
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.130.128.1 -
Connecting to remote host problems
Hi,
Can some please tel me how to setup security permissions in Java. I have probems with reading somethong from remote host.
Please provide an example if you can
Thanks a lot.
Jorg3Well, i don't know that much about CORBA but also for CORBA goes that the server you are connecting to should alow you to read local files (in certain directories). If the server is a java program the security setting can be done in the java.policy file or whithin the server program using the java.security package. Check out http://java.sun.com/j2se/1.3/docs/guide/security/permissions.html for info on that.
-
Dear All,
My Friend is facing a problem he is not able to send mails from outside for e.g yahoo.com his mx is natted on the firewall to my exchange server.
Sender gets a bounce back mail stating below: -
<XXX>:
203.X.X.X does not like recipient.
Remote host said: 550 5.2.1 Mail from 209.X.X.X refused: spam site.
Giving up on 203.X.X.X.
Sorry but i dont know whether this forum should answer my querries which are actually of my friends.
But if you could it would be really helpful.
Thanks in advance.
Regards,
RanjitHi Ranjit,
203.X.X.X does not like recipient.
Remote host said: 550 5.2.1 Mail from 209.X.X.X refused: spam site.
Giving up on 203.X.X.X.
implies that the recipient server is using antispam or blacklist software to refuse connections from certain IP addresses, including the 209.x.x.x address you cited.
I would consider using an RBL lookup tool such as
http://www.mxtoolbox.com/blacklists.aspx to check the 209.x.x.x address against different RBLs.
If it turns out that it is indeed listed, you would need to go to the respective listing site to see how to get off their list.
( I am not affiliated with mxtoolbox, they just have a convenient lookup tool on their site ) -
Sshd error while deploying agent to remote host
Hi,
Am getting the following error while deploying agent to remote host.
SSH Setup failed on nodes: localhost. SSH setup failed because of any of the following reasons:
sshd has gone down while doing SSH setup.
The platform of the provided hosts may be incorrect. Please verify it.
Fix above problems and Continue OR do manual ssh setup running command: "<OMS_HOME>/sysman/prov/resources/scripts/sshUserSetupNT.sh -hosts "user-pc" -user karthick -localPlatformGrp win -asUser SYSTEM [-asUserGrp root] -sshLocalDir \.ssh -homeDir $HOME". Check the log file at <OMS_HOME>\sysman\prov\agentpush\2011-08-18_10-45-16-AM\logs\sshSetup2011-08-18_11-19-21-AM.log for more information.
I tried the following from both the host and working fine.
ssh host1 date from host2
ssh host2 date from host1
When I try to do the manual ssh setup running the cmd
$ sh sshUserSetupNT.sh -hosts "user-pc" -user karthick -localPlatformGrp win -asUser SYSTEM [-asUserGrp root] -sshLocalDir \.ssh -homeDir $HOME
sshUserSetupNT.sh: line 17: $'\r': command not found
sshUserSetupNT.sh: line 20: $'\r': command not found
sshUserSetupNT.sh: line 27: $'\r': command not found
sshUserSetupNT.sh: line 231: syntax error near unexpected token `elif'
'shUserSetupNT.sh: line 231: ` elif ! test -f "$CLUSTER_CONFIGURATION_FILE"
Getting the above error.
Pls let me know how to fix this issue.
Thanks in advance,
-KarthicKHi KarthicK,
please have a look at the following forum discussion: How to install Oracle Grid Agent 11g into windows hosts ?
The post of hani430 appears to be what you are looking for.
Regards,
Frank -
Datapump process cannot connect to REMOTE HOST.
hi,
I am using ORACLE DATABASE 11g on 2 servers. Both have IBM AIX OS in it. I am trying to implement Golden Gate(GG) on it. The scenario is as follows :-
Server 1 :-
I have created 1 extract and 1 datapump processes.
GGSCI (JLFLXFC1) 228> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING R2B 00:00:00 00:00:03
EXTRACT ABENDED R2BDP 00:00:00 00:06:40The datapump process gets aborted after a few tries to connect to the remote host server. The log of datapump is as follows :-
GGSCI (JLFLXFC1) 230> view report r2bdp
Oracle GoldenGate Capture for Oracle
Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
AIX 5L, ppc, 64bit (optimized), Oracle 11g on Apr 22 2011 03:25:30
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
Starting at 2012-06-14 15:13:07
Operating System Version:
AIX
Version 5, Release 3
Node: JLFLXFC1
Machine: 00C576D24C00
soft limit hard limit
Address Space Size : unlimited unlimited
Heap Size : unlimited unlimited
File Size : unlimited unlimited
CPU Time : unlimited unlimited
Process id: 278676
Description:
** Running with the following parameters **
EXTRACT R2BDP
--setenv (ORACLE_SID=NGPR2B)
USERID ggs_owner, PASSWORD *********
RMTHOST FIFLX595,MGRPORT 7809
RMTTRAIL /data01/GoldenGate/dirdat/NGPR2B/rt
PASSTHRU
TABLE R2B.*;
CACHEMGR virtual memory values (may have been adjusted)
CACHEBUFFERSIZE: 64K
CACHESIZE: 8G
CACHEBUFFERSIZE (soft max): 4M
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 16G
CACHESIZEMAX (strict force to disk): 13.99G
Database Version:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Database Language and Character Set:
NLS_LANG environment variable specified has invalid format, default value will be used.
NLS_LANG environment variable not set, using default value AMERICAN_AMERICA.US7ASCII.
NLS_LANGUAGE = "AMERICAN"
NLS_TERRITORY = "AMERICA"
NLS_CHARACTERSET = "AL32UTF8"
Warning: your NLS_LANG setting does not match database server language setting.
Please refer to user manual for more information.
Opened trail file /data1/GoldenGate/dirdat/R2B/lt000000 at 2012-06-14 15:13:07
2012-06-14 15:13:07 WARNING OGG-01015 Positioning with begin time: Jun 14, 2012 3:13:04 PM, waiting for data: at extseqno 0, extrba 0.
2012-06-14 15:13:37 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:14:17 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:14:57 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:15:37 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:16:17 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:16:57 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:17:37 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:18:17 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:18:57 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:19:37 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
2012-06-14 15:20:17 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
Source Context :
SourceModule : [er.extrout]
SourceID : [/scratch/aime1/adestore/views/aime1_staxk09/oggcore/OpenSys/src/app/er/extrout.c]
SourceFunction : [tcp_send_data(extract_def *)]
SourceLine : [1257]
2012-06-14 15:20:57 ERROR OGG-01224 TCP/IP error 79 (Connection refused); retries exceeded.
2012-06-14 15:20:57 ERROR OGG-01668 PROCESS ABENDING.
GGSCI (JLFLXFC1) 231>I am able to ping the remote server but GG datapump is not able to connect it.
The manager at the remote server shows the following messages in report :-
2012-06-14 14:54:03 INFO OGG-00953 Purging log history from GGS_OWNER.GGS_DDL_HIST older than 2012-06-12 13:54:03.290718: 0 rows deleted from GGS_OWNER
.GGS_DDL_HIST.
2012-06-14 14:54:03 INFO OGG-00953 Purging log history from GGS_OWNER.GGS_DDL_HIST_ALT older than 2012-06-12 13:54:03.297951: 0 rows deleted from GGS_O
WNER.GGS_DDL_HIST_ALT.
2012-06-14 14:54:08 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:54:43 INFO OGG-00974 Manager started collector process (Port 7847).
2012-06-14 14:54:48 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:55:23 INFO OGG-00974 Manager started collector process (Port 7848).
2012-06-14 14:55:28 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:56:03 INFO OGG-00974 Manager started collector process (Port 7849).
2012-06-14 14:56:08 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:56:43 INFO OGG-00974 Manager started collector process (Port 7850).
2012-06-14 14:56:48 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:57:23 INFO OGG-00974 Manager started collector process (Port 7851).
2012-06-14 14:57:28 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 14:58:03 INFO OGG-00974 Manager started collector process (Port 7852).
2012-06-14 15:09:30 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:10:05 INFO OGG-00974 Manager started collector process (Port 7841).
2012-06-14 15:10:10 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:10:45 INFO OGG-00974 Manager started collector process (Port 7842).
2012-06-14 15:10:50 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:11:25 INFO OGG-00974 Manager started collector process (Port 7843).
2012-06-14 15:11:30 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:12:05 INFO OGG-00974 Manager started collector process (Port 7844).
2012-06-14 15:12:10 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:12:45 INFO OGG-00974 Manager started collector process (Port 7845).
2012-06-14 15:12:50 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:13:25 INFO OGG-00974 Manager started collector process (Port 7846).
2012-06-14 15:13:30 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:14:05 INFO OGG-00974 Manager started collector process (Port 7847).
2012-06-14 15:14:10 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:14:45 INFO OGG-00974 Manager started collector process (Port 7848).
2012-06-14 15:14:50 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:15:25 INFO OGG-00974 Manager started collector process (Port 7849).
2012-06-14 15:15:30 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:16:05 INFO OGG-00974 Manager started collector process (Port 7850).
2012-06-14 15:16:10 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:16:45 INFO OGG-00974 Manager started collector process (Port 7851).
2012-06-14 15:16:50 INFO OGG-00963 Command received from EXTRACT on host 10.180.22.246 (START SERVER CPU -1 PRI -1 TIMEOUT 300 PARAMS ).
2012-06-14 15:17:25 INFO OGG-00974 Manager started collector process (Port 7852).Can anyone suggest what could be the problem ?
Please guide me how to troubleshoot this problem.
Thanks in advance.Yes, I have changed that previously for testing purpose.
Now i have kept DATAPUMP port and TARGET MGR port to 7809 . Still i am getting the error.
I also checked with TELNET if the port is blocked but its not.
Below is the report of my DATAPUMP and the attempt of TELNET Command.
GGSCI (JLFLXFC1) 30> view report r2bdp
Oracle GoldenGate Capture for Oracle
Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
AIX 5L, ppc, 64bit (optimized), Oracle 11g on Apr 22 2011 03:25:30
Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
Starting at 2012-06-18 11:03:30
Operating System Version:
AIX
Version 5, Release 3
Node: JLFLXFC1
Machine: 00C576D24C00
soft limit hard limit
Address Space Size : unlimited unlimited
Heap Size : unlimited unlimited
File Size : unlimited unlimited
CPU Time : unlimited unlimited
Process id: 823546
Description:
** Running with the following parameters **
EXTRACT R2BDP
--setenv (ORACLE_SID=NGPR2B)
USERID ggs_owner, PASSWORD *********
RMTHOST FIFLX595,MGRPORT 7809
RMTTRAIL /data01/GoldenGate/dirdat/NGPR2B/rt
PASSTHRU
TABLE R2B.*;
CACHEMGR virtual memory values (may have been adjusted)
CACHEBUFFERSIZE: 64K
CACHESIZE: 8G
CACHEBUFFERSIZE (soft max): 4M
CACHEPAGEOUTSIZE (normal): 4M
PROCESS VM AVAIL FROM OS (min): 16G
CACHESIZEMAX (strict force to disk): 13.99G
Database Version:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for IBM/AIX RISC System/6000: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
Database Language and Character Set:
NLS_LANG environment variable specified has invalid format, default value will be used.
NLS_LANG environment variable not set, using default value AMERICAN_AMERICA.US7ASCII.
NLS_LANGUAGE = "AMERICAN"
NLS_TERRITORY = "AMERICA"
NLS_CHARACTERSET = "AL32UTF8"
Warning: your NLS_LANG setting does not match database server language setting.
Please refer to user manual for more information.
Opened trail file /data1/GoldenGate/dirdat/R2B/lt000000 at 2012-06-18 11:03:30
2012-06-18 11:03:30 INFO OGG-01014 Positioning with begin time: Jun 18, 2012 11:03:22 AM, starting record time: Jun 18, 2012 6:50:11 AM at extseqno 0, e
xtrba 4557.
2012-06-18 11:04:00 WARNING OGG-01223 TCP/IP error 79 (Connection refused).
GGSCI (JLFLXFC1) 31> shell telnet FIFLX595 7809
Trying...
Connected to FIFLX595.
Escape character is '^]'.
telnet>qMy MGR at target schema is as follows :-
PORT 7809
USERID ggs_owner, PASSWORD ggs_owner
PURGEOLDEXTRACTS /data01/GoldenGate/dirdat/ex, USECHECKPOINTS, MINKEEPDAYS 3
PURGEMARKERHISTORY MINKEEPDAYS 3, MAXKEEPDAYS 5, FREQUENCYMINUTES 30
PURGEDDLHISTORY MINKEEPDAYS 1, MAXKEEPDAYS 2, FREQUENCYMINUTES 30Please let me know if you find any mistake in this.
Thanks. -
A remote host refused an attempted connect operation
I have been tasked with putting together a demo of Adobe Interactive Forms on our development system, and I'm following the steps listed in the SAP How-To guide, "How To... Create Online and Offline Forms in Web Dynpro for Java."
The demo form (as described in the How-To) has been created and deployed from a NetWeaver 2004s to our Application Server 6.40 (with all the latest patches). When run, however, I get a 500 Internal Error:
<b>java.net.ConnectException: A remote host refused an attempted connect operation.</b>
Our BASIS team has confirmed that ADS is configured correctly on the server, per SAP Note 944221.
Any suggestions on the cause and possible fixes would be greatly appreciated.
<b>Addendum:</b>
Here is the exception chain:
com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: Failed to UPDATEDATAINPDF
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException.<init>(PDFDocumentRuntimeException.java:25)
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:392)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterApplicationModification(ClientApplication.java:1132)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.afterApplicationModification(ClientComponent.java:887)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRespond(WindowPhaseModel.java:573)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:152)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:174)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(AccessController.java:215)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException: PDFDocument Processor failed to process Render Request.
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRuntimeException.<init>(PDFDocumentRuntimeException.java:25)
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:55)
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:98)
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentInteractiveFormHandlingContext.execute(PDFDocumentInteractiveFormHandlingContext.java:121)
at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:336)
... 29 more
Caused by: com.sap.tc.webdynpro.pdfobject.core.PDFObjectRuntimeException: Service call exception; nested exception is:
java.net.ConnectException: A remote host refused an attempted connect operation.
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:408)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.render(PDFObject.java:3958)
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentRenderHandler.handle(PDFDocumentRenderHandler.java:148)
at com.sap.tc.webdynpro.clientserver.adobe.pdfdocument.base.core.PDFDocumentProcessor.process(PDFDocumentProcessor.java:52)
... 32 more
Caused by: java.rmi.RemoteException: Service call exception; nested exception is:
java.net.ConnectException: A remote host refused an attempted connect operation.
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:85)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:95)
at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:385)
... 35 more
Caused by: java.net.ConnectException: A remote host refused an attempted connect operation.
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:336)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:201)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188)
at java.net.Socket.connect(Socket.java:482)
at java.net.Socket.connect(Socket.java:432)
at java.net.Socket.<init>(Socket.java:339)
at java.net.Socket.<init>(Socket.java:150)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initStreamsFromSocket(HTTPSocket.java:648)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.initializeStreams(HTTPSocket.java:470)
at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.getOutputStream(HTTPSocket.java:427)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.HTTPTransport.getRequestStream(HTTPTransport.java:355)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.outputMessage(MimeHttpBinding.java:548)
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1425)
at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:78)
... 37 more
-- NickHi Nick,
Can you verify the ADS connection using the web service test tool? Go to http://myhost:50000/, choose web services, choose the 1st one (Adobe Document Services?), choose test, don't enter any values (leave the default values) and choose test (or something very similar, I don't have access to a server right now to verify it). You should get a login screen where you need to login with "ADSUser". Finally you should see the request and response where the response status code must be "200 OK" (and the response content-type should not be text/html; that's when a logon screen html page is returned, e.g. if the password is expired).
If it fails somewhere, try it again using the FQHN, e.g. http://myhost.mydomain.com:50000/ (I think we had a similar issue once).
If the web service test doesn't work, there's definitely a problem with the ADS configuration. If the web service does work, check the connection settings in Visual Administrator <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/43/f3fcf604777062e10000000a1553f6/frameset.htm">Setting Up Basic Authentication in a Java Environment</a> (or the ABAP and/or SSL version of the same document).
Kind regards,
Sigiswald -
Unable to delete file on the remote host
Hi,
I tried to delete a file on the remote host using File.delete method as well as using Runtime.getRuntime.exec("del filename")
But both of them failed to work. First one returned false, but the second one is throwing IOException always.
I am trying this through a java application in Windows NT environment. I am using jdk1.3. How can i solve this problem?.
IOException occured at DataLoadFromTxtToOra exeBatchForTWS: CreateProcess: del \\ERSWEB\DTemp\ERS\HEB_428\DATAFILES\ERSWEB\DLCOMMA.txt error=2
Regards,
Babuyou should be able to do that if you have rights on the file, try the following code and substitute the computer/share names:
File aFile = new File("\\\\COMPUTER\\share\\filename.ext");
System.out.println("Read: " + aFile.canRead());
System.out.println("Write: " + aFile.canWrite());
System.out.println("Exists: " + aFile.exists());
System.out.println("File: " + aFile.isFile());
aFile.delete();Mind the slashes: a single backslash is causing a escape character: \n for example is a (unix) return. A double \\ defeats it and results in a single \ in the filename
If everything returns true I think the file will be deleted. If isFile() returns false you've got the path/filename wrong.
Maybe you are looking for
-
Invoice Date Based on POD Date and Requested Delivery Date
Hello Experts, Could you please Help me How to get the Billing date in the invoice document based on POD date if the POD Report has been Posted , If not the system should pick up the requested delivery date. Thanks for your time
-
Hi When i playback a script with "test the frame" as enabled, one of my pages fail and when i get to the frame properties for the reason, it shows as "Link Not Reachable". What is the property that the tool is checking here that is the failing? Thank
-
I can't start Illustrator CC on Windows 8.1 64bit.
I can't start Illustrator CC on Windows 8.1 64bit.
-
dear all, once the depreciation rate is changed & we need to execute the depreciation run & also TC-AFAR to recalculate the depreciation..correct me if i am wrong.After this changes in the dep. amount we need to report in our financial statement also
-
ASDoc: Top Level Package
Hi folks, after searching around quite a while without success I am wondering if you could help me with a question. We have documented our code and used the "-package" parameter with asdoc for our package description. However, how can we add the desc