Remote Hosting SAP
Hi
We currently run SAP internally but there is a project to host SAP externally. Has anyone got any advice on doing this or any contacts that offer hosting.
One area we need to look at is the network bandwidth, I have read the SAP documentation about this but would like some real life examples of bandwidth to the hosting site to our site with about 400 users, running EEC6 and plans to run BI as well.
Any advice would be helpful.
Thanks
Barry
Barry,
Similar topic was discussed in this thread.
Here is the link
Remote Hosting Business One
Suda
Similar Messages
-
Sap J2ee is instaled on remot host
Hi,
I'm work in a proyect with a page web in html,in Sap netweaver developer studio(eclipse) and i like insert date in a database that it is on remot host. How I can to make?
Thanks.
excuse me for my englishok, it depends
of what?
of where is the database?, in case of the database is in the same web server then you can use the timestamp of the server in your sql Statement, or in the case if your Database server resides in another server then y suggest you the posibility to create an Java RMI class that lives on the database server and then call it.
(or a servlet if you wisht to use a web container).
Greetings -
Connection to remote host in NWDS preferences (SAP Instance not reachable)
Hi Experts
I am trying to connect to a SAP Web AS running CE 7.1 with Netweaver Developer Studio as described [here|http://help.sap.com/saphelp_nwce10/helpdata/en/46/9ca4cf4e8b0487e10000000a1553f6/frameset.htm].
The u201Cinstance hostu201D is a remote host. When I try to connect with NWDS 7.1 SPS 5, I get the error message:
SAP Instance is currently not reachable. Check if the SAP Instance number is correct.
However, with NWDS 2004s SPS 13 (installed on the same machine) and message server port 3901, I can see the host in the J2EE view with two green dots (icm, server 0) and one grey dot (debugproxy). NWDS seems to connect (in spite of the grey dot).
Do I have to configure anything else in NWDS (message server port)? Does the debugproxy have to be started?
Thanks for helping!
Kind regards
BettinaI had the same issue and resolved by adding:
(1) Windows server firewall exception to include "D:\usr\sap\CE1\SYS\exe\uc\NTI386\sapstartsrv.exe" EXE.
Basically, the windows server on which SAP NetWeaver CE 7.1 was installed, by default, BLOCKS all relevant ports:
50000-50020 & 50100-50120. By add the above (a) rule, the serrver allows any incoming TCP connections used by "D:\usr\sap\CE1\SYS\exe\uc\NTI386\sapstartsrv.exe."
~/Reddy Gurram -
RFC Error: A remote host refused an attempted connect operation
Hi I received strange kind of error..
Have anyone of you seen something like this before?
<SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (**) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=logon*.*.com GROUP=SPACE R3NAME=2 MSSERV=sapms2 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '.*..*:sapms*8' not reached TIME Sat Feb 11 20:37:58 201 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 3147 DETAIL NiPConnect2: *.*..*:*** SYSTEM CALL connect ERRNO 79 ERRNO TEXT A remote host refused an attempted connect operation. COUNTER 8</SAP:AdditionalText>
<SAP:Stack />Hi,
MSHOST=logon**.*.com is name server, but it can be recognized as in message is also part "on local host with Unicode ERROR partner '.*..**:" where *.*... is IP address..
That problem occurred after some patches were implemented.
@2.) I can't change it to ABAP proxy
M. -
Remote host supports the use of SSL ciphers that offer weak encryption
Dear All,
Our Internal security audit suggests to avoid the use of Week SSL ciphers for our SAP PI 7.0 servers.
We have followed the SAP note 510007 - Setting up SSL on Web Application Server ABAP
as mentioned in the point 6 we have added below parameter in the instance profile of application server and restarted our server but still the issue is not resoved.
ssl/ciphersuites=MEDIUM:HIGH:EXPORT:!LOW:!eNULL
Clients are accessing our PI server through SAP Web dispatcher.
Kindly suggest the action to be taken to resolve the issue.
Please find the below comment from Audit.
The remote host supports the use of SSL ciphers that offer weak encryption.
Note: This is considerably easier to exploit if the attacker is on the same physical network
Regards,
Lalitha.Hi Jim,
The remote host is the PI(7.0) server.
PI server profile
FN_JSTART = jcontrol$(FT_EXE)
ssl/ciphersuites = HIGH:MEDIUM:!mMD5
jstartup/recorder = java -classpath ../j2ee/cluster/bootstrap/launcher.jar com.sap.engine.offline.OfflineToolStart com.sap.engine.flightrecorder.core.Collector ../j2ee/
cluster/bootstrap -node %nodeID% %startTime% -bz $(DIR_GLOBAL) âexitcode %exitcode%
login/accept_sso2_ticket = 1
SAPSYSTEMNAME = APQ
SAPSYSTEM = 00
INSTANCE_NAME = DVEBMGS00
DIR_CT_RUN = $(DIR_EXE_ROOT)/run
DIR_EXECUTABLE = $(DIR_INSTANCE)/exe
jstartup/trimming_properties = off
jstartup/protocol = on
jstartup/vm/home = /opt/IBMJava2-amd64-142
jstartup/max_caches = 500
jstartup/release = 700
jstartup/instance_properties = $(jstartup/j2ee_properties):$(jstartup/sdm_properties)
j2ee/dbdriver = /oracle/client/10x_64/instantclient/ojdbc14.jar
PHYS_MEMSIZE = 512
exe/saposcol = $(DIR_CT_RUN)/saposcol
rdisp/wp_no_dia = 10
rdisp/wp_no_btc = 3
exe/icmbnd = $(DIR_CT_RUN)/icmbnd
rdisp/j2ee_start_control = 1
rdisp/j2ee_start = 1
rdisp/j2ee_libpath = $(DIR_EXECUTABLE)
exe/j2ee = $(DIR_EXECUTABLE)/jcontrol$(FT_EXE)
rdisp/j2ee_timeout = 1800
rdisp/frfc_fallback = on
icm/HTTP/j2ee_0 = PREFIX=/,HOST=localhost,CONN=0-500,PORT=5$$00
icm/server_port_0 = PROT=HTTP,PORT=80$$
# SAP Messaging Service parameters are set in the DEFAULT.PFL
ms/server_port_0 = PROT=HTTP,PORT=81$$
rdisp/wp_no_enq = 1
rdisp/wp_no_vb = 1
rdisp/wp_no_vb2 = 1
rdisp/wp_no_spo = 1
# Jcontrol: Migrated Profile Parameter
# create at Wed Mar 25 20:20:02 2009
j2ee/instance_id = ID0079698
Web dispatcher profile
SAPSYSTEMNAME = WD0
SAPSYSTEM = 00
INSTANCE_NAME = W00
DIR_CT_RUN = $(DIR_EXE_ROOT)/run
DIR_EXECUTABLE = $(DIR_CT_RUN)
wdisp/shm_attach_mode = 6
# Accesssability of Message Server
#rdisp/mshost = asapq00.b.com
#ms/http_port = 8100
#ms/https_port = 8101
wdisp/system_0 = MSHOST=asapq00.b.com, MSPORT=8100, SID=APQ
# Configuration for medium scenario
icm/max_conn = 16350
icm/max_sockets = 32768
wdisp/HTTPS/max_pooled_con = 16350
icm/req_queue_len = 8000
icm/min_threads = 100
icm/max_threads = 500
mpi/total_size_MB = 700
mpi/buffer_size = 32768
mpi/max_pipes = 21000
wdisp/HTTP/max_pooled_con = 8192
wdisp/HTTPS/max_pooled_con = 8192
# SAP Web Dispatcher Ports
icm/server_port_0 = PROT=HTTP,PORT=80,EXTBIND=1
icm/server_port_1 = PROT=ROUTER,PORT=443,EXTBIND=1
#icm/host_name_full= asapq00.b.com
icm/host_name_full= qtyh2h.k.co.in
icm/HTTP/admin_0 = PREFIX=/sap/wdisp/admin,DOCROOT=./admin,AUTHFILE=/sapmnt/WD0/global/security/data/icmauth.txt
ssl/ssl_lib=/usr/sap/WD0/W00/sec/libsapcrypto.so
wdisp/HTTPS/dest_logon_group = PUBLIC
wdisp/HTTPS/max_client_ip_entries = 100000
wdisp/HTTPS/sticky_mask = 255.255.255.0
#Additional Parameters
wdisp/add_client_protocol_header = true
wdisp/auto_refresh = 120
wdisp/max_servers = 100
wdisp/handle_webdisp_ap_header = 1
#Registering SAP Web Dispatcher in the SLD
#wdisp/system_0 = HOST=asapq00.b.com, PORT=8100, SID=APQ, NR=00
#Parameter to avoid week SSL ciphers
ssl/ciphersuites=HIGH:MEDIUM:!mMD5
Regards,
Lalitha -
Connection closed by the remote host
Hello everyone.
I'm getting this problem in XI:
When a NON-SAP system is sending messages to XI via HTTP protocol (SOAP adapter), we are getting this error:
"An existing connection was forcibly closed by the remote host"
The guy from the non-sap system (Real Estate) got this error when he is sending a big amount of data.
When the amount data is reduced, this problem is not happening, so all messages passed ok.
In the other case, he needs to send them in batches.
We are trying to find out where the problem is.
Has anybody any idea of this?Hi
Check this out, a similar issue due to data size
400 Bad HTTP request : when calling proxy from SAP
Regards
Vishnu -
Hi folks,
my friday crusher:
We have a sync RFC-PI-SOAP scenario.
All is working fine in Dev system.
After moving into Test following error is displayed as the SOAP response message:
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.EOFException: Connection closed by remote host.</SAP:AdditionalText>
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Also Channel Monitoring says:
Message-Verarbeitung fehlgeschlagen. Grund: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.EOFException: Connection closed by remote host.
Couldn´t find any hints in SDN and the web to this issue.
Does anyone of you has made experiences with that problem?
Maybe it´s a system parameter for time out SOAP connections....?
Many thanks for your help
-and-
have a great weekend!
Cheers
AndréVery strange!
But I have the solution:
I have looked into channel monitoring / RWB again.
There I saw, this PI is using two clusters on two application servers.
Everytime the SOAP call is executed through the frist cluster, all was fine.
But no SOAP call was successfully executed by the second cluster.
Fortuity? No!
The second cluster node / app server wasn´t registered for internet access in the used proxy server.
So it wasn´t an PI issue.
Now, all is fine & I´m happy!
Thanks @all for helping!
Cheers,
André -
Seeburger SFTP is not able connect to remote host
Hi,
I have configured seeburger adapter (STPF) on XI 3.0 SP19 as per the seeburger installation document,
but when we are trying to send the data to a file server using SFTP, we are getting below error in
reciver communication channel, please help me
"Unable to forward message to JCA adapter. Reason: Fatal exception: com.sap.aii.af.ra.cci.XIRecoverableException: >> Description: putFile: Could not connect to remote host; Reason: com.maverick.ssh.SshException>> Details: putFile: Could not connect to remote host; Reason: com.maverick.ssh.SshException>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: true>>Fatal: true, >> Description: putFile: Could not connect to remote host; Reason: com.maverick.ssh.SshException>> Details: putFile: Could not connect to remote host; Reason: com.maverick.ssh.SshException>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATIO "
Thanking you in advance.
SonaliHi,
In similar condition , we also getting below errors:
Message processing failed. Cause: javax.resource.ResourceException: Fatal exception:
com.sap.aii.af.ra.cci.XIDeliveryException: >> Description: putFile: Could not connect
to remote host; Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.
ConfigurationException: Could not initialize SSH transport layer, reason : Connection timed out:
could be due to invalid address>> Details: putFile: Could not connect to remote host;
Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.ConfigurationException:
Could not initialize SSH transport layer, reason : Connection timed out:could be due to invalid
address>>SendingStatus: NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>
Retryable: false>>Fatal: false, >> Description: putFile: Could not connect to remote host;
Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.ConfigurationException:
Could not initialize SSH transport layer, reason : Connection timed out:could be due to invalid
address>> Details: putFile: Could not connect to remote host; Reason: SFTP client was not able
to connect: com.seeburger.sftp.exception.ConfigurationException: Could not initialize SSH
transport layer, reason : Connection timed out:could be due to invalid address>>SendingStatus:
NOT_TRANSMITTED>>FaultCategory: COMMUNICATION_ERROR>>Retryable: false>>Fatal: false
Can you share , how you have resolved the errors?
You mentioned to change the owner to seeburger , please give details , where to do this.?
Thanks,
Anit -
SMD Issue: A remote host refused an attempted connect operation
Hi all,
I am installing SMD agent 7.2 on managed system which is ABAP+JAVA 7.0. I Have successfully installed SMD agent 7.2 on Managemd system. Now, i need to configure its Introcope agent for JAVA system in sOlution manager. when i go to RCA->MAnaged system->setup wizard, it successfully configures it in further screens.
However, wehn i go to RCA->MAnaged system->INtroscope agent and select the respective JAVA SID for which I installed sMD agent, it does not display the server node of jAVA for that system. Also when I check in the logs of sMG agent in the managed system, I get the below error;
location:/usr/sap/sMD/SMDA97/log/SMDAgentApplication.0.log
Error: A remote host refused an attempted connect operation
Can anyone help me solving this issue?
REgards,
FAisalHi Guilherme,
Thanks for your reply.
I have checked in agent administration screen. The agent is successfully assigned. I only see a problem while solman talking to the managed system on P4 port. I believe I have to open or do some administration of this P4 port. But where I am not sure.
I mean while installed another SMD Agent on another J2EE server and it worked instantly!
Can you help?
Regards,
Faisal -
Java Proxy Runtime Error - A remote host refused an attempted connection
I am able to register my Java server proxy with no errors. However when I message is sent through I get the following error in Xi Adapter:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method someJavaProxyCallIB of proxy bean com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4LocalObjectImpl0_0: A remote host refused an attempted connect operation.: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method someJavaProxyCallIB of proxy bean com.sap.aii.proxy.xiruntime.core.AbstractProxyInboundLocal4LocalObjectImpl0_0: A remote host refused an attempted connect operation.</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Doea anyone know why this is happening?I guess, that you have Java proxy libraries in the EAR file. Remove them before deploying.
Regards
Stefan -
IAIK: java.io.EOFException: Connection closed by remote host
Hi Experts,
I'm having a performance issue during login and I found in Trace log the logs below.
Can you please tell me what things I should look at or where maybe my issue?
com.sap.engine.core.manipulator.TCPRunnableConnection
com.sap.engine.core.manipulator.TCPRunnableConnection.init()
OrderedChannel for http service
Warning: System/Network
Java: Cannot get input and output streams from socket. ConnectionsManipulator is not initialized.
[EXCEPTION]
{0}#1#java.io.EOFException: Connection closed by remote host.
at iaik.security.ssl.Utils.a(Unknown Source)
at iaik.security.ssl.o.c(Unknown Source)
at iaik.security.ssl.r.f(Unknown Source)
at iaik.security.ssl.f.c(Unknown Source)
at iaik.security.ssl.f.a(Unknown Source)
at iaik.security.ssl.r.d(Unknown Source)
at iaik.security.ssl.SSLTransport.startHandshake(Unknown Source)
at iaik.security.ssl.SSLSocket.startHandshake(Unknown Source)
at com.sap.engine.services.ssl.factory.SSLSocket.startHandshake(SSLSocket.java:162)
at com.sap.engine.services.ssl.factory.SSLSocket.getInputStream(SSLSocket.java:280)
at com.sap.engine.core.manipulator.TCPRunnableConnection.init(TCPRunnableConnection.java:351)
at com.sap.engine.core.manipulator.TCPRunnableConnection.run(TCPRunnableConnection.java:554)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl6.SingleThread.execute(SingleThread.java:80)
at com.sap.engine.core.thread.impl6.SingleThread.run(SingleThread.java:150)
Thank you very much,
JemaruHello Jemaru,
Don't you have some more information. This is the error in the Java stack what does the R3/Abap stack returns on this message?
Kind regards,
JK -
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 -
Hi Everybody,
i'm playing a little bit with Windows Azure and I'm blocked with a really simple issue (or maybe not).
I've created a Cloud Service containing one simple Worker Role. I've configured an EndPoint in the WorkerRole configuration, which allows Input connections via tcp on port 10100.
Here the ServiceDefinition.csdef file content:
<?xml version="1.0" encoding="utf-8"?>
<ServiceDefinition name="EmacCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2014-01.2.3">
<WorkerRole name="TcpListenerWorkerRole" vmsize="Small">
<Imports>
<Import moduleName="Diagnostics" />
<Import moduleName="RemoteAccess" />
<Import moduleName="RemoteForwarder" />
</Imports>
<Endpoints>
<InputEndpoint name="Endpoint1" protocol="tcp" port="10100" />
</Endpoints>
</WorkerRole>
</ServiceDefinition>
This WorkerRole is just creating a TcpListener object listening to the configured port (using the RoleEnvironment instance) and waits for an incoming connection. It receives a message and returns a hardcoded message (see code snippet below).
namespace TcpListenerWorkerRole
using System;
using System.Net;
using Microsoft.WindowsAzure.ServiceRuntime;
using System.Net.Sockets;
using System.Text;
using Roche.Emac.Infrastructure;
using System.IO;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Diagnostics;
using System.Linq;
public class WorkerRole : RoleEntryPoint
public override void Run()
// This is a sample worker implementation. Replace with your logic.
LoggingProvider.Logger.Info("TcpListenerWorkerRole entry point called");
TcpListener listener = null;
try
listener = new TcpListener(RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint);
listener.ExclusiveAddressUse = false;
listener.Start();
LoggingProvider.Logger.Info(string.Format("TcpListener started at '{0}:{1}'", RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Address, RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint1"].IPEndpoint.Port));
catch (SocketException ex)
LoggingProvider.Logger.Exception("Unexpected exception while creating the TcpListener", ex);
return;
while (true)
Task.Run(async () =>
TcpClient client = await listener.AcceptTcpClientAsync();
LoggingProvider.Logger.Info(string.Format("Client connected. Address='{0}'", client.Client.RemoteEndPoint.ToString()));
NetworkStream networkStream = client.GetStream();
StreamReader reader = new StreamReader(networkStream);
StreamWriter writer = new StreamWriter(networkStream);
writer.AutoFlush = true;
string input = string.Empty;
while (true)
try
char[] receivedChars = new char[client.ReceiveBufferSize];
LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
char[] validChars = new char[readedChars];
Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
input = new string(validChars);
LoggingProvider.Logger.Info("This is what the host sent to you: " + input+". Readed chars=" + readedChars);
try
string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
writer.Write(orderResultFormat);
catch (Exception e)
LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
client.Close();
break;
catch (Exception ex)
LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
client.Close();
break;
}).Wait();
public override bool OnStart()
// Set the maximum number of concurrent connections
ServicePointManager.DefaultConnectionLimit = 12;
DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
RoleEnvironment.Changing += RoleEnvironment_Changing;
return base.OnStart();
private void RoleEnvironment_Changing(object sender, RoleEnvironmentChangingEventArgs e)
// If a configuration setting is changing
LoggingProvider.Logger.Info("RoleEnvironment is changing....");
if (e.Changes.Any(change => change is RoleEnvironmentConfigurationSettingChange))
// Set e.Cancel to true to restart this role instance
e.Cancel = true;
As you can see, nothing special is being done. I've used the RoleEnvironment.CurrentRoleInstance.InstanceEndpoints to retrieve the current IPEndpoint.
Running the Cloud Service in the Windows Azure Compute Emulator everything works fine, but when I deploy it in Azure, then I receive the following Exception:
2014-08-06 14:55:23,816 [Role Start Thread] INFO EMAC Log - TcpListenerWorkerRole entry point called
2014-08-06 14:55:24,145 [Role Start Thread] INFO EMAC Log - TcpListener started at '100.74.10.55:10100'
2014-08-06 15:06:19,375 [9] INFO EMAC Log - Client connected. Address='196.3.50.254:51934'
2014-08-06 15:06:19,375 [9] INFO EMAC Log - Buffer size: 65536
2014-08-06 15:06:45,491 [9] FATAL EMAC Log - Unexpected exception while Reading the request
System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.StreamReader.ReadBuffer(Char[] userBuffer, Int32 userOffset, Int32 desiredChars, Boolean& readToUserBuffer)
at System.IO.StreamReader.Read(Char[] buffer, Int32 index, Int32 count)
at TcpListenerWorkerRole.WorkerRole.<>c__DisplayClass0.<<Run>b__2>d__0.MoveNext() in C:\Work\Own projects\EMAC\AzureCloudEmac\TcpListenerWorkerRole\WorkerRole.cs:line 60
I've already tried to configure an internal port in the ServiceDefinition.csdef file, but I get the same exception there.
As you can see, the client can connect to the service (the log shows the message: Client connected with the address) but when it tries to read the bytes from the stream, it throws the exception.
For me it seems like Azure is preventing the retrieval of the message. I've tried to disable the Firewall in the VM in Azure and the same continues happening.
I'm using Windows Azure SDK 2.3
Any help will be very very welcome!
Thanks in advance!
Javier
En caso de que la respuesta te sirva, porfavor, márcala como válida
Muchas gracias y suerte!
Javier Jiménez Roda
Blog: http://jimenezroda.wordpress.comhi Javier,
I changed your code like this:
private AutoResetEvent connectionWaitHandle = new AutoResetEvent(false);
public override void Run()
TcpListener listener = null;
try
listener = new TcpListener(
RoleEnvironment.CurrentRoleInstance.InstanceEndpoints["Endpoint"].IPEndpoint);
listener.ExclusiveAddressUse = false;
listener.Start();
catch (SocketException se)
return;
while (true)
IAsyncResult result = listener.BeginAcceptTcpClient(HandleAsyncConnection, listener);
connectionWaitHandle.WaitOne();
The HandleAsync method is your "While (true)" code:
private void HandleAsyncConnection(IAsyncResult result)
TcpListener listener = (TcpListener)result.AsyncState;
TcpClient client = listener.EndAcceptTcpClient(result);
connectionWaitHandle.Set();
NetworkStream netStream = client.GetStream();
StreamReader reader = new StreamReader(netStream);
StreamWriter writer = new StreamWriter(netStream);
writer.AutoFlush = true;
string input = string.Empty;
try
char[] receivedChars = new char[client.ReceiveBufferSize];
// LoggingProvider.Logger.Info("Buffer size: " + client.ReceiveBufferSize);
int readedChars = reader.Read(receivedChars, 0, client.ReceiveBufferSize);
char[] validChars = new char[readedChars];
Array.ConstrainedCopy(receivedChars, 0, validChars, 0, readedChars);
input = new string(validChars);
// LoggingProvider.Logger.Info("This is what the host sent to you: " + input + ". Readed chars=" + readedChars);
try
string orderResultFormat = Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\xB")) + @"MSH|^~\&|Instrument|Laboratory|LIS|LIS Facility|20120427123212+0100||ORL^O34^ORL_O34| 11|P|2.5.1||||||UNICODE UTF-8|||LAB-28^IHE" + Environment.NewLine + "MSA|AA|10" + Environment.NewLine + @"PID|||patientId||""""||19700101|M" + Environment.NewLine + "SPM|1|sampleId&ROCHE||ORH^^HL70487|||||||P^^HL70369" + Environment.NewLine + "SAC|||sampleId" + Environment.NewLine + "ORC|OK|orderId|||SC||||20120427123212" + Encoding.ASCII.GetString(Encoding.ASCII.GetBytes("\x1c\x0d"));
writer.Write(orderResultFormat);
catch (Exception e)
// LoggingProvider.Logger.Exception("Unexpected exception while writting the response", e);
client.Close();
catch (Exception ex)
//LoggingProvider.Logger.Exception("Unexpected exception while Reading the request", ex);
client.Close();
Please try it. For this error message, I suggest you could refer to this thread (http://stackoverflow.com/questions/6173763/using-windows-azure-to-use-as-a-tcp-server
) and this post (http://stackoverflow.com/a/5420788).
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
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. -
Hey there all.
I am wondering if there is something wrong with my embedded form or if it is simply because
I have not uploaded my site to remote host yet? I am only getting a broken part of the header with
no actual form, with a warning "!local host" in top left hand corner. If anyone could enlighten
me on this problem it would be greatly appreciated, it is my first time making formsCheers, I noticed some browsers were treating the form differently. I am uploading to a test server tomorrow, hopefully all goes well, thanks for your reply
Maybe you are looking for
-
HT201210 when i want to restre the iphone so i can see an error 3194 how i can solve this problem
i am trying to restore the iphone through itunes and i can an error which is 3194 so how i can solve this problem
-
Configuring Database for Webutil
Hi All, I am having problem in creating the webutil_file_transfer package through the script provided in webuitl 1.0.6. - I am using DSuite10g (9.0.4) and Database 10g (10.1.0) - I am not creating a new user for webutil as recomanded - Have provided
-
Embedded swf not playing in Captivate 4
Hi - I have embedded a flash authored swf into CP4, it is published from flash as a ver 9 swf. I am using Flash Player 10 on the PC. It's a single frame swf and contains AS3 code to make a simple rollover image popup (further development is planned
-
I am currently using Outlook 2007 and found problem with its email managment in folders. I have kept doing email cleansing regularly but the folder pst is still full and found any deleted and infected emails are still found in the pst folder. Pleas
-
Mac: Lightroom 5 installation problem - CSSMERR_TP_NOT_TRUSTED
This happens on Mac. I am trying to install LR5 (full version, I paid for it), but the installation quits and tells me that an error occured. The following appears in /var/log/install.log. ul 19 19:20:07 tw-mbp13-nmahendran-2 Installer[2575]: Choices