Sending data from applet to jsp

hi all....
i m very new in java so please and please spend ur few movement for this topic.
i want to run a jsp page from within an applet and evantually want to send data to jsp.
the data is an array of string object or may be a properties object,
say String[] strarry={stringdata},or Properties props={setofkeysandvalues}
the url of the jsp is http://8084/UASProject/Registrationform.jsp
i have copied a code snippet from a topic posted in this forum.
now please where should i formate in the code below to achieve this?
    try{
        URL appletURL = getCodeBase();
        String strHost = appletURL.getHost();
        String strPort = String.valueOf(appletURL.getPort());
        String strProtocol = appletURL.getProtocol();
        int portNumber = Integer.parseInt(strPort);
        String strwp ="/UASProject/Registrationform.jsp";
        //TCP port;
        URL jspURL = new URL(strProtocol,strHost,portNumber,strwp);
        URLConnection jspCon = jspURL.openConnection();
        jspCon.setUseCaches(false);
        jspCon.setDoOutput(true);
        jspCon.setDoInput(true);
        //jspCon.set
        ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
        PrintWriter out = new PrintWriter(byteStream,true);
       // String postData= "?xmlText=" + URLEncoder.encode(genXml(),"UTF-8");
        //out.print(postData);
        out.flush();
        String strLength = String.valueOf(byteStream);
        jspCon.setRequestProperty("Content-Length",strLength);
        jspCon.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
        byteStream.writeTo(jspCon.getOutputStream());
        URL tempURL = new URL(String.valueOf(jspURL));
        getAppletContext().showDocument(tempURL);
    }catch(Exception e)   {}please explain the line String postData= "?xmlText=" URLEncoder.encode(genXml(),"UTF-8");+ why it is written for??

angilna_loves_java wrote:
hi all....
i m very new in java so please and please spend ur few movement for this topic.Huh?
i want to run a jsp page from within an applet and evantually want to send data to jsp.Oh good lord, why?!
the data is an array of string object or may be a properties object,
say String[] strarry={stringdata},or Properties props={setofkeysandvalues}
the url of the jsp is http://8084/UASProject/Registrationform.jsp
i have copied a code snippet from a topic posted in this forum.
now please where should i formate in the code below to achieve this?I recommend you get a better grasp on Java and JSP before you go any further. I'm not clear on what problem you're having or what error your getting either.
>
try{
URL appletURL = getCodeBase();
String strHost = appletURL.getHost();
String strPort = String.valueOf(appletURL.getPort());
String strProtocol = appletURL.getProtocol();
int portNumber = Integer.parseInt(strPort);
String strwp ="/UASProject/Registrationform.jsp";
//TCP port;
URL jspURL = new URL(strProtocol,strHost,portNumber,strwp);
URLConnection jspCon = jspURL.openConnection();
jspCon.setUseCaches(false);
jspCon.setDoOutput(true);
jspCon.setDoInput(true);
//jspCon.set
ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
PrintWriter out = new PrintWriter(byteStream,true);
// String postData= "?xmlText=" + URLEncoder.encode(genXml(),"UTF-8");
//out.print(postData);
out.flush();
String strLength = String.valueOf(byteStream);
jspCon.setRequestProperty("Content-Length",strLength);
jspCon.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
byteStream.writeTo(jspCon.getOutputStream());
URL tempURL = new URL(String.valueOf(jspURL));
getAppletContext().showDocument(tempURL);
}catch(Exception e)   {}please explain the line String postData= "?xmlText=" URLEncoder.encode(genXml(),"UTF-8");+ why it is written for??Please read the API docs if you don't know what a particular method in Java does.

Similar Messages

  • Passing data from Applet to JSP and back

    What is the best way for me to communicate between an Applet and a jsp page? I want to be able to call Applet methods from the JSP and be able to send data to the JSP from the Applet. Thanks.

    Can't do this
    JSP lives on the server. When it's done, the code is sent to the client
    So, in terms of lifespan...
    JSP -> Internet -> Client -> Applet
    JSP is dead before applet starts

  • Send data from applet to web server

    Hi,
    I want to send data(event notification) to resource through web server using url.
    Like,As long as perticular action or event is occuring I am sending that message to url.
    I reffered Sevlet theory uses HTTPMessage,but I am confused how should start and what would be feasible?
    Even when I run my code I am not finding browser.How should I place an applet in web server page?
    Regards,
    Palak
    Message was edited by:
    palak_shah

    Hi
    I agree usage of HttpClient is a better and a simple method.
    But If your Application Requirements are Simple you may go by using URL & URLconnection Objects in java.net package.
    Just to Add In You Can Checkout the links given below to have a better understanding of how the communication works...
    The Example APPLET code:
    http://mindy.cs.bham.ac.uk/AppletServletExample/EgApplet.java.txt
    The Example SERVLET code:
    http://mindy.cs.bham.ac.uk/AppletServletExample/EgServlet.java.txt
    and the Example AppletDemo Class
    http://mindy.cs.bham.ac.uk/AppletServletExample/EgApplet.class
    Hope this helps :)
    REGARDS,
    RaHuL

  • Send Data from Applet to Application

    Hi,
    can anybody give me a hint on how to exchange data between a java-applet and a java-application running on the same machine?
    thanx

    Microsoft IIS and SQL Server 2000 can be made to handle HTTP-based SQL queries and return results in XML format.
    Personally, I would far rather a solution (unless specifically developed for a single client bent on Microsoft technology) require some form of Java-database interaction on the server side, which ultimately can be made to work with MS-SQL, mySQL, Oracle or whatever, than be tied into Microsoft technologies and hence require an existing MS infrastructure or budget to create one.
    But that's just me!

  • Problem with Runtime Workbench and with sending data from XI to SLD

    Hello<br>
    <br>
    Could I have a little help, a hint in the two following topics:<br>
    <br>
    1. I run Runtime Workbench -> Component Monitoring -> Display All and I get this error:<br>
    <br>
    Error during communication with System Landscape Directory: User credentials are invalid or user is denied access<br>
    <br>
    In filesystem log I can find like this:<br>
    <br>
    XIRWB.com.sap.aii.mdt.frames.jsp_error [SAPEngine_Application_Thread[impl:3]_40] Fatal: Error during communication with System Landscape Directory: User credentials are invalid or user is denied access<br>
    Thrown:<br>
    MESSAGE ID: com.sap.aii.rwb.agent.server.rb_LCRAgent.landscapeCommunicationError<br>
    com.sap.aii.rwb.exceptions.BuildLandscapeException: Error during communication with System Landscape Directory: User <br>credentials are invalid or user is denied access
            at com.sap.aii.rwb.agent.server.SLDAgentBean.convertException(SLDAgentBean.java:1472)
            at com.sap.aii.rwb.agent.server.SLDAgentBean.buildSLD(SLDAgentBean.java:773)
            at com.sap.aii.rwb.agent.server.SLDAgentBean.provideSld(SLDAgentBean.java:269)
            at com.sap.aii.rwb.agent.server.SLDAgentBean.getXIDomain(SLDAgentBean.java:711)
            at com.sap.aii.rwb.agent.api.SLDAgentObjectImpl0_0.getXIDomain(SLDAgentObjectImpl0_0.java:375)
            at com.sap.aii.rwb.agent.api.SLDAgent_Stub.getXIDomain(SLDAgent_Stub.java:436)
            at com.sap.aii.rwb.agent.client.EJBAgent.getXIDomain(EJBAgent.java:255)
            at com.sap.aii.rwb.util.web.model.AppMainModel.getSelectedDomain(AppMainModel.java:138)
            at com.sap.aii.rwb.util.web.model.DomainRep.build(DomainRep.java:121)
            at com.sap.aii.rwb.web.componentmonitoring.model.ObjectIdentificationTree.getComponentTree(ObjectIdentificationTree.java:117)<br>
            at jsp_component_monitoring1321125174985._jspService(jsp_component_monitoring1321125174985.java:217)
            at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
            at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
            at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
            at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
            at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmPageProcessor.doGet(CmPageProcessor.java:27)
            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.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
            at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
            at jsp_FC_Secure1321125169379._jspService(jsp_FC_Secure1321125169379.java:24)
            at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
            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:160)
            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:219)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)<br>
    Root cause:<br>
    com.sap.lcr.api.cimclient.UnauthorizedUserException: User credentials are invalid or user is denied access<br>
            at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:577)
            at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:341)
            at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:280)
            at com.sap.lcr.api.cimclient.CIMOMClient.performBatchOperation(CIMOMClient.java:1251)
            at com.sap.lcr.api.cimclient.CIMClient.performBatchOperation(CIMClient.java:2268)
            at com.sap.aii.utilxi.sld.MRSldProxy.stage1(MRSldProxy.java:989)
            at com.sap.aii.utilxi.sld.MRSldProxy.loadComponents(MRSldProxy.java:918)
            at com.sap.aii.utilxi.sld.MRSldProxy.loadSld(MRSldProxy.java:907)
            at com.sap.aii.utilxi.sld.SubSystemFactory.createSldFromSld(SubSystemFactory.java:373)
            at com.sap.aii.utilxi.sld.SubSystemFactory.createSldFromSld(SubSystemFactory.java:434)
            at com.sap.aii.rwb.agent.server.SLDAgentBean.buildSLD(SLDAgentBean.java:764)
            at com.sap.aii.rwb.agent.server.SLDAgentBean.provideSld(SLDAgentBean.java:269)
            at com.sap.aii.rwb.agent.server.SLDAgentBean.getXIDomain(SLDAgentBean.java:711)
            at com.sap.aii.rwb.agent.api.SLDAgentObjectImpl0_0.getXIDomain(SLDAgentObjectImpl0_0.java:375)
            at com.sap.aii.rwb.agent.api.SLDAgent_Stub.getXIDomain(SLDAgent_Stub.java:436)
            at com.sap.aii.rwb.agent.client.EJBAgent.getXIDomain(EJBAgent.java:255)
            at com.sap.aii.rwb.util.web.model.AppMainModel.getSelectedDomain(AppMainModel.java:138)
            at com.sap.aii.rwb.util.web.model.DomainRep.build(DomainRep.java:121)
            at <br>com.sap.aii.rwb.web.componentmonitoring.model.ObjectIdentificationTree.getComponentTree(ObjectIdentificationTree.java:117)
            at jsp_component_monitoring1321125174985._jspService(jsp_component_monitoring1321125174985.java:217)
            at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
            at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
            at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
            at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
            at com.sap.aii.rwb.web.componentmonitoring.viewcontroller.CmPageProcessor.doGet(CmPageProcessor.java:27)
            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.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
            at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
            at jsp_FC_Secure1321125169379._jspService(jsp_FC_Secure1321125169379.java:24)
            at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
            at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
            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:160)
            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:219)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    <br>
    <br>
    <br>
    I don't know what is wrong.<br>
    I have configured:<br>
    - SLDCHECK work properly,<br>
    - none of the users PI* type not lock,<br>
    - password to the PI* users in exchangeProfile entered correctly,<br>
    - In VA in the JCo RFC Provider I have properly configure: AI_RUNTIME_JCOSERVER, LCRSAPRFC, SAPSLDAPI_SID - from the ABAP I can connect to this programs ID<br>
    - In VA in SLD Data Supplier I have properly configure bookmarks HTTP Settings and CIM Client Generation Settings. CIMClient Test is OK<br>
    <br>
    I do not know what else I can see, what else I have properly configured ... I looked at the notes:: 936093 jak i 721548...<br>
    <br>
    <br>
    2. I can't send data from XI to SLD, ie makes me a system definition in Web As Abap and Web as Java but nothing appear to me in Exchange Infrastructure. Exchange Infrastructure is empty - what is wrong??<br>
    I carried out the recommendation by 764176 and 1031321 notes<br>
    <br>
    I restart below applications (no effect)...<br>
    com.sap.xi.directory (Integration Builder/Configuration)<br>
    com.sap.aii.af.app (Adapter Engine)<br>
    com.sap.xi.rwb (Runtime Workbench)<br>
    com.sap.xi.repository (Integration Builder/Design)<br>
    <br>
    Can I ask for help and guidance in these topics?<br>
    <br>
    Regards<br>
    RP<br>

    I increased logging in the NWA (Configuration -> Log Configuration) - and increased the some things here to log ALL. So that from the NWA (Monitoring -> Logs and Traces) I see a little more information (but does not follow that with which the user is a problem).<br>
    <br>
    Here are some interesting logs ...<br>
    I was most rash or irritation of those that say about the lack of credentials u2013 I must use Viusal Administrator and set good service ...<br>
    <br>
    What do I have done:<br>
    In the Visual Administrator -> Cluster -> Server -> Services -> SLD Data Supplier<br>
    I have set in the HTTP Settings tab the host and port SLD, the user name and password is also entered as it is in the SLD. To be sure, already have set for the user entered here such roles as:<br>
    SAP_SLD_ADMINISTRATOR<br>
    SAP_SLD_CONFIGURATOR<br>
    SAP_SLD_DEVELOPER<br>
    SAP_SLD_GUEST<br>
    SAP_SLD_ORGANIZER<br>
    Maybe we are talking in this place about a different user?<br>
    <br>
    Similarly, when it comes to tab CIM Client Generation Settings - here's all the same thing done. CIMClient test shows that everything is OK.<br>
    When I click the button: This trigger the transfer of data to the SLD gets the message that everything was shipped correctly. Indeed, I received an instance of JAVA in SLD<br>
    Also clicked on this icon: Assign application roles to user group - got information that everything is attached properly.<br>
    <br>
    By ABAP side, the connections: INTEGRATION_DIRECTORY_HMI, SAPSLDAPI, LCRSAPRFC, AI_RUNTIME_JCOSERVER and AI_DIRECTORY_JCOSERVER work correctly, ie I can perform the test - which means that programs ID are properly positioned in JCO Provider in VA.<br>
    <br>
    Puzzling is this message:<br>
    The SLD data is inconsistent.<br>
    <br>
    Strange also that the message (from the ABAP everything is available in SMGW no errors):<br>
    Connect to SAP gateway failed<br>
    <br>
    And what is this error:<br>
    <br>
    could not sync ExchangeProfile: <br>
    Thrown:<br>
    com.sap.rprof.dbprofiles.DBException: Connect to SAP gateway failed<br>
    Connect_PM  TYPE=A ASHOST=saptest2 SYSNR=60 GWHOST=saptest2 GWSERV=sapgw60 PCS=1<br>
    <br>
    LOCATION    CPIC (TCP/IP) on local host with Unicode<br>
    ERROR       partner 'saptest2:sapgw60' not reached<br>
    TIME        Thu Feb 23 07:28:07 201<br>
    RELEASE     700<br>
    COMPONENT   NI (network interface)<br>
    VERSION     38<br>
    RC          -10<br>
    MODULE      nixxi.cpp<br>
    LINE        2513<br>
    DETAIL      NiPConnect<br>
    SYSTEM CALL connect<br>
    ERRNO       79<br>
    ERRNO TEXT  A remote host refused an attempted connect operation.<br>
    COUNTER     2<br>
    <br>
    <br>
    Below is a list of some interesting logs ...<br>
    <br>
    ###########<br>
    <br>
    Insufficient permissions for getting SLD access information. You can add permissions for your application via the SLD service in the 'Visual Administrator'.<br>
    <br>
    #############<br>
    <br>
    SLD is not accessible. Check SLD Data Supplier service settings.<br>
    <br>
    ###########<br>
    <br>
    "Warning","2012-02-22","07:53:50:986","Data get on com.sap.sldserv.data.GetSAPBCCentralServiceInstance class processing failed. htThe SLD data is inconsistent. This is an internal processing problem.","/System/Server/SLDService","com.sap.sldserv.DataCollector","n/a","saptest2","Server 0 60_36694",<br>
    <br>
    #########<br>
    <br>
    com.sap.lcr.api.cimclient.UnauthorizedUserException: User credentials are invalid or user is denied access<br>
    <br>
    ################<br>
    <br>
    Full Message Text
    CPA Cache not updated with directory data, due to: Couldn't open Directory URL (http://saptest2.unx.era.pl:56000/dir/hmi_cache_refresh_service/ext?method=CacheRefresh&mode=C&consumer=af.xit.saptest2), due to: HTTP 503: Service Unavailable
    <br>
    ##################<br>
    <br>
    Full Message Text <br>
    <br>
    could not sync ExchangeProfile: <br>
    Thrown:<br>
    com.sap.rprof.dbprofiles.DBException: Connect to SAP gateway failed<br>
    Connect_PM  TYPE=A ASHOST=saptest2 SYSNR=60 GWHOST=saptest2 GWSERV=sapgw60 PCS=1<br>
    <br>
    LOCATION    CPIC (TCP/IP) on local host with Unicode<br>
    ERROR       partner 'saptest2:sapgw60' not reached<br>
    TIME        Thu Feb 23 07:28:07 201<br>
    RELEASE     700<br>
    COMPONENT   NI (network interface)<br>
    VERSION     38<br>
    RC          -10<br>
    MODULE      nixxi.cpp<br>
    LINE        2513<br>
    DETAIL      NiPConnect<br>
    SYSTEM CALL connect<br>
    ERRNO       79<br>
    ERRNO TEXT  A remote host refused an attempted connect operation.<br>
    COUNTER     2<br>
    <br>
    Connect_PM  TYPE=A ASHOST=saptest2 SYSNR=60 GWHOST=saptest2 GWSERV=sapgw60 PCS=1<br>
    <br>
    LOCATION    CPIC (TCP/IP) on local host with Unicode<br>
    ERROR       partner 'saptest2:sapgw60' not reached<br>
    TIME        Thu Feb 23 07:28:07 201<br>
    RELEASE     700<br>
    COMPONENT   NI (network interface)<br>
    VERSION     38<br>
    RC          -10<br>
    MODULE      nixxi.cpp<br>
    LINE        2513<br>
    DETAIL      NiPConnect<br>
    SYSTEM CALL connect<br>
    ERRNO       79<br>
    ERRNO TEXT  A remote host refused an attempted connect operation.<br>
    COUNTER     2<br>
    <br>
    at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:457)<br>
    at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:1015)<br>
    at com.sap.mw.jco.JCO$Client.connect(JCO.java:3238)<br>
    at com.sap.rprof.dbprofiles.DBProfiles.getProfile(DBProfiles.java:101)<br>
    at com.sap.rprof.dbprofiles.RemoteProfile.readRemoteProfileFromMedia(RemoteProfile.java:1288)<br>
    at com.sap.rprof.dbprofiles.RemoteProfile.getRemoteProfileFromFactory(RemoteProfile.java:195)<br>
    at com.sap.aii.utilxi.prop.rprof.ExchangeProfilePropertySource.readProfile(ExchangeProfilePropertySource.java:177)<br>
    at com.sap.aii.utilxi.prop.rprof.ExchangeProfilePropertySource.sync(ExchangeProfilePropertySource.java:165)<br>
    at com.sap.aii.utilxi.misc.api.AIIProperties.sync(AIIProperties.java:582)<br>
    at com.sap.aii.af.service.sld.SLDAccess.syncExchangeProfile(SLDAccess.java:43)<br>
    at com.sap.aii.adapter.xi.ms.SLDReader.fire(SLDReader.java:52)<br>
    at com.sap.aii.adapter.xi.ms.SLDReader.run(SLDReader.java:167)<br>
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)<br>
    at java.security.AccessController.doPrivileged(AccessController.java:219)<br>
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)<br>
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)<br>
    <br>
    ##############<br>
    <br>
    Full Message Text <br>
    <br>
    Import of software component version list from component repository  failed<br>
    Thrown:<br>
    com.sap.lcr.api.cimclient.LcrException: User credentials are invalid or user is denied access<br>
    at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:577)<br>
    at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:341)<br>
    at com.sap.lcr.api.cimclient.CIMOMClient.sendImpl(CIMOMClient.java:198)<br>
    at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:146)<br>
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstancesImpl(CIMOMClient.java:443)<br>
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstances(CIMOMClient.java:747)<br>
    at com.sap.lcr.api.cimclient.CIMClient.enumerateInstances(CIMClient.java:980)<br>
    at com.sap.lcr.api.sapmodel.JavaCIMObjectAccessor.enumerateInstances(JavaCIMObjectAccessor.java:211)<br>
    at com.sap.lcr.api.sapmodel.SAP_SoftwareComponentAccessor.enumerateInstances(SAP_SoftwareComponentAccessor.java:204)<br>
    at com.sap.lcr.api.sapmodel.SAP_SoftwareComponentAccessor.enumerateSAP_SoftwareComponentInstances(SAP_SoftwareComponentAccessor.java:239)<br>
    at com.sap.aii.ibrep.server.sldaccess.interfaces.CRAccess.getSwcLinks(CRAccess.java:82)<br>
    at com.sap.aii.ibrep.server.extobjects.SwcAccessor.getEoLinks(SwcAccessor.java:59)<br>
    at com.sap.aii.ib.server.extobjects.EOAServiceImpl.getEoLinks(EOAServiceImpl.java:75)<br>
    at com.sap.aii.ib.sbeans.extobjects.EOAServiceBean.getEoLinks(EOAServiceBean.java:66)<br>
    at com.sap.aii.ib.sbeans.extobjects.EOAServiceRemoteObjectImpl1_0.getEoLinks(EOAServiceRemoteObjectImpl1_0.java:527)<br>
    at com.sap.aii.ib.sbeans.extobjects.EOAServiceRemoteObjectImpl1_0p4_Skel.dispatch(EOAServiceRemoteObjectImpl1_0p4_Skel.java:232)<br>
    at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)<br>
    at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)<br>
    at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)<br>
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)<br>
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)<br>
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)<br>
    at java.security.AccessController.doPrivileged(AccessController.java:219)<br>
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)<br>
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)<br>
    <br>
    ##############<br>
    <br>
    Full Message Text <br>
    <br>
    An exception was thrown in the UME/ABAP user management connector. Message: Connect to SAP gateway failed<br>
    Connect_PM  TYPE=A ASHOST=localhost SYSNR=60 GWHOST=localhost GWSERV=sapgw60 PCS=1<br>
    <br>
    LOCATION    CPIC (TCP/IP) on local host with Unicode<br>
    ERROR       partner '127.0.0.1:sapgw60' not reached<br>
    TIME        Thu Feb 23 07:28:06 201<br>
    RELEASE     700<br>
    COMPONENT   NI (network interface)<br>
    VERSION     38<br>
    RC          -10<br>
    MODULE      nixxi.cpp<br>
    LINE        2513<br>
    DETAIL      NiPConnect<br>
    SYSTEM CALL connect<br>
    ERRNO       79<br>
    ERRNO TEXT  A remote host refused an attempted connect operation.<br>
    COUNTER     16<br>
    <br>

  • Pass data from servlet to jsp using sendRedirect

    Hi,
    I am passing data from servlet to jsp using forward method of request dispatcher but as it doesn't change the url it is creating problems. When ever user refreshes the screen(browser refresh) it's re-loading both servlet and jsp, which i don't want to happen. I want only the jsp to be reloaded.
    Can I pass data from servlet to jsp using sendRedirect in this case. I also want to pass some values from servlet to jsp but without using query string. I want to set some attributes and send to jsp just like we do for forward method of request dispatcher.
    Is there any way i can send data using attributes(without using query string) using sendRedirect? Please let me know

    sendRedirect is meant as a true redirect. meaning
    you can use it to redirect to urls not in your
    context....with forward you couldn't pass information
    to jsps/servlets outside your own context.Actually, you can:
    getServletContext().getContext("/other").getRequestDispatcher("/path/to/servlet").forward(request, response)I think the issue here is that the OP would like to have RequestDispatcher.forward() also update the address in the client's browser. That's not possible, AFAIK. By the time the request is forwarded, the browser has already determined the URL of the servlet, and the only I know of way to have the browser change the URL to the forwarded Servlet/JSP is to send a Location: header (i.e. sendRedirect()). Remember that server-side dispatching is transparent to the client. Maybe there's some tricky stuff you can do with JavaScript to change the address in the address bar without reloading the page?
    Brian

  • Send data from producer to consumer

    Hi,
    I am trying on a sampe project with weblogic as both producer and consumer. I could send the data from consumer to producer to using Interceptors. Now, my requirement is to send data from producer back to consumer. I can do this using SimpleStateHolder, but I want a generic way like passing information in cookies/HTTP Request Headers from producer...etc and to retrieve them at consumer. This is because in my actual implementation the producer will be websphere.
    So, please can anyone tell me how to send data from producer to consumer ???
    Thanks,
    Anu

    Hello Anu,
    I believe WLP 10.2 requires some patches to get the consumer
    interceptor to properly access cookies coming from the producer, so
    that is probably why you aren't seeing the cookies. After reading your
    use-case, I don't think you will need to get these patches to get your
    use-case to work, but if you are still interested in the patches, I can
    find out the details for you.
    The reason the redirect code you posted isn't working is because the
    response has already been committed during the getMarkup operations and
    it is too late to redirect the page to a different URL, so the redirect
    is being ignored.
    The good news is that the functionality you want should all be fairly simple to implement.
    When the user opens the remote portlet, makes a selection and then
    submits it, the first thing that will happen is a WSRP
    BlockingInteraction call to the producer, to let the remote portlet
    know that a user has interacted with it. This happens before the
    GetMarkup operation, during a time when it is still legal to redirect
    to a different URL. In fact, the portlet on the producer is allowed to
    send a response indicating that the page should be redirected to a
    different URL.
    So in your remote portlet, you can have it look at the form values that
    were submitted during the BlockingInteraction call, and if the user
    selected the particular value that should be redirected to another
    portlet, the remote portlet can request a redirect. The only problem
    here is that your remote portlet doesn't know the URL to the portlet it
    wants to redirect to on the consumer side, but you can handle that in
    an interceptor on the consumer.
    So, rather than implement the IGerMarkupInterceptor, use the IBlockingInteractionInterceptor. For example:
    public sampleInterceptor implements IBlockingInteractionInterceptor
    // Other methods need to be implemented to do nothing...
    public Status.PostInvoke postInvoke(<code>IBlockingInteractionRequestContext requestContext,
    IBlockingInteractionResponseContext responseContext)</code>
    String redirectUrl = responseContext.getRedirectURL();
    if(redirectUrl != null)
    // The producer portlet wants to redirect- substitute the right consumer URL
    PageURL pageUrl =
    PageURL.createPageURL(requestContext.getHttpServletRequest(),
    requestContext.getHttpServletResponse),
    "voipTrunk_portal_page_11_page_12_page_13");
    responseContext.setRedirectURL(pageUrl.toString());
    This should be all that you need to do on the consumer side. It will
    automatically redirect for you to the URL you set in the interceptor,
    since the producer portlet requested a redirect.
    On the producer side, you will need to have the portlet send the
    redirect request during the BlockingInteraction operation. How you do
    this depends on what portlet type you are using and what producer you
    are using. For example, in WLP using a JSP portlet, you would need to
    use a backing file on the portlet, and have that class implement the
    JspBacking class:
    http://edocs.beasys.com/wlp/docs102/javadoc/com/bea/netuix/servlets/controls/content/backing/JspBacking.html
    Then, in the handlePostbackData method you would look for the special value and redirect if it exists, such as:
    public boolean handlePostbackData(HttpServletRequest request, HttpServletResponse response)
    String paramValue = request.getParameter("paramName");
    if((paramValue != null) && (paramValue.equals("specialValue"))
    // Need to send a redirect request
    PortletBackingContext pbc = PortletBackingContext.getPortletBackingContext(request);
    pbc.sendRedirect("http://anyUrlWillWork");
    return(true);
    return(false);
    Since the consumer interceptor is changing the redirect URL, any
    redirect URL the producer sends will work- it just needs to look like a
    valid, absolute URL to pass some simple checks on the producer.
    Backing files are documented here: http://e-docs.bea.com/wlp/docs102/portlets/building.html#wp1077130
    As I mentioned before, different portlet types and producers would do
    this differently. For example, I don't think WebSphere has backing
    files, and in JSR168 portlets a backing file is not needed- you would
    do the equivalent code in the JSR168 portlet's processAction() method
    (using javax.portlet.ActionResponse.sendRedirect(String URL) to send
    the redirect request). JSR168 portlets should work in both WLP and
    WebSphere, but I don't know the details of the portlet type you want to
    use on the WebSphere producer; if it isn't a JSR168 portlet, WebSphere
    must have some way equivalent to the backing file's handlePostbackData
    method to participate in a WSRP BlockingInteraction operation and
    request a redirect.
    No cookies or headers are required though, so I don't think you would
    need the patches to WLP 10.2 for the interceptor dealing with cookies.
    Hope this helps,
    Kevin

  • How to send data from internal table to the shared folder in ABAP

    Hi experts,
             My requirement is to transfer data from a file to shared folder. i just did reading data from a file to a internal table. Now i want to send this internal table data into a shared folder which is  "
    xxx\y\z....".
    I do not have any idea on how to send data from internal table to the shared folder path.
    can anybody please help me out how to do this?
    Thanks & Regards
    Sireesha.

    Where that folder is located, its on presentation server i.e. desktop or application server.
    If its on presentation server, use FM GUI_UPLOAD.
    If its on application server, then use DATASET functions. Have a look at below link.
    [File Handling in ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/frameset.htm]
    I hope it helps.
    Thanks,
    Vibha
    Please mark all the useful answers

  • How is the best way to send data from local database into remote database ?

    Hi all,
    I need to send data from local Oracle database into remote oracle database. Both sites connected via 128 kbps frame relay connection.
    The sending need to be done once a week, can be done nightly.
    How is the best way to do this ?
    Thank you very much,
    xtanto

    How is the best way to do this ?How much are you planning to send?
    You can use COPY command. Ensure that you have valid database link between two databases.
    Available options are:
    create - creates a new table. errors out if the destination table exists.
    replace - drop the destination table and re-creates with data.
    insert - inserts data if the destination table exists.
    append– appends data into an existing table.
    use set arraysize 5000 -The arraysize specifies the number of rows that SQL*Plus will retrieve from the database at one time.
    copy from scott/tiger@ORCL to scott/tiger@ORCL92 create new_emp using select * from emp;

  • I would like to use DDE to send data from a Lookout Server to an Excel

    Hello National Instruments,
    I would like to use DDE to send data from a Lookout Server to an Excel
    Spreadsheet.
    I have Lookout 6.1 on a server connected to 4 client workstations
    The operating system on the server is Windows Server 2003 R2; Standard Edition;
    Service Pack 2
    I have opened DDE Share but after filing in Share Name; Static Application
    Name; Static Topic Name
    I get a message, "Can't bind to DSDM service"
    I also get this message when I press add a Share
    What are the steps to setting up this type of communications link?
    Thanks,
    David Lopez
    Scada Functional Analyst

    Ryan,
    I have followed the steps on the Knowledge Base "How do I use DDE To Send Data Across the Network To Excel From Lookout?" but what I am seeing is that the computer with excel (Computer B)hangs up displaying an hour glass continuously leaving me no option but to go into task manager to stop excel.  It appears to me that the dde share is not working properly on my windows xp where lookout resides or I do not have a certain service turned on.  I do have the DDE services turned on both computers.  I have my computer set up as computer A with Lookout and Process1 as the process with a pot set up as pot1.  On my computer (Computer A) I also have the dde share set up per the KB example.
    On computer B I have the dde services turned on and I am typing the following into an excel worksheet Cell  ='\\TAG23232\NDDE$'|'Process1$'!Pot1
    TAG 23232 is Computer A's Name
    Do you have any suggestions???

  • Error while sending data from XI to BI System

    Hello Friends,
    I m facing an error while sending data from XI to BI. XI is successfully recived data from FTP.
    Given error i faced out in communication channel monitoring:-
    Receiver channel 'POSDMLog_Receiver' for party '', service 'Busys_POSDM'
    Error can not instantiate RfcPool caused by:
    com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed
    Connect_PM TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1
    LOCATION CPIC (TCP/IP) on local host with Unicode
    ERROR partner '10.1.45.35:sapgw01' not reached
    TIME Fri Apr 16 08:15:18 2010
    RELEASE 700
    COMPONENT NI (network interface)
    VERSION 38
    RC -10
    MODULE nixxi.cpp
    LINE 2823
    DETAIL NiPConnect2
    SYSTEM CALL connect
    ERRNO 10061
    ERRNO TEXT WSAECONNREFUSED: Connection refused
    COUNTER 2
    Error displaying in message monitoring:-
    Exception caught by adapter framework: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '10.1.45.35:sapgw01' not reached TIME        Fri Apr 16 08:15:18 2010 RELEASE     70
    Delivery of the message to the application using connection RFC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION    CPIC (TCP/IP) on local host with Unicode ERROR       partner '10.1.45.35:sapgw01' not reached TIME.
    Kindly suggest me & provide details of error.
    Regards,
    Narendra

    Hi Narendra,
    Message is clearly showing that your system is not reachable
    102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=10.1.45.35 SYSNR=01 GWHOST=10.1.45.35 GWSERV=sapgw01 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.1.45.35:sapgw01' not reached
    Please check to ping the BI server  IP 10.1.45.35 from your XI server , in case its working you can check telnet to SAP standard port like 3201/3601/3301/3901 etc.
    It seems to be connectivity issue only.
    Make sure your both the systems are up and running.
    Revert back after checking above stuff.
    Regards,
    Gagan Deep Kaushal

  • Error when sending data from Cube to ODS

    HI,
    I am extracting data from 2lis_02_itm & I stored the data in 0pur_o01(ODS) tha data is fine in ODS but when I am trying to send data from ODS to Cube 0pur_c07 it is giving the above error
    InfoSource 80PUR_O01 is not defined in the source system
    Errors in source system     
    InfoSource 80PUR_O01 is not defined in the source system.
    Message no. R3005
    Diagnosis
    The InfoSource 80PUR_O01 specified in the data request, is not defined in the source system.
    System response
    The data transfer is terminated.
    Procedure
    In the Administrator Workbench of the Business Information Warehouse, update the metadata for this source system, and delete the InfoPackages belonging to InfoSources that no longer existing
    Thanks
    Priya

    Hi A Priya
    First check if infosource 80PUR_O01 is present in datasource list of your BW system. Check this in RSA1-> Infosources-> here do Settings -> display generated objects and then do search on 80PUR_O01.
    if it not present there go to ODS 0PUR_O01-> right click
    -> generate export datasource.
    If it is present there then replicate the datasource by right click on transfer rules and then go to SE38-> Enter program name as RS_TRANSTRU_ACTIVATE_ALL -> Enter Infosource name as 80PUR_O01 and BW System as source system-> Execute. This will activate the transfer rules.
    Then try reloading from ODS to cube
    Regards
    Pradip

  • Sending Data from R/3 to Java and Java to SAP

    Dear All,
    I am working on a scenario in which I have to send data from sap system to Non-SAP system (Java System).
    Now one way is that I made a RFC in my SAP system and Java can call it using JCO adapter. But In this case I am not able to understand how to go another way,means how to capture data or messages from Java.
    Secondly I have searched and found that IDOC can help me lot in this process ,I am new to IDOCS but through R & D , I have made the IDOC and done the following steps:-
    1. Segment Creation (WE31)
    2. IDOC Types          (WE30)
    3. Message Type     (WE81)
    4. Linking Message type and IDOC type (WE82)
    5. Create Distribution Model (BD64)
    Now I am struck on 5th step , I am not able to distribute model when I distribute it I get the following Error
    Target system AII_00_800                  RFC destination for synchronous communication (message type SYNCH)
                                                                 Partner profile LS AII_00_800 SYNCH does not exist
                                                                 Generate partner profile
                                                                  or specify outbound partner profiles for message type SYNCH
    Target system JAVASYS                    RFC destination for synchronous communication (message type SYNCH)
                                                                  Partner profile LS JAVASYS SYNCH does not exist
                                                                 Generate partner profile
                                                                 or specify outbound partner profiles for message type SYNCH
    JAVASYS is the logical system I created using SALE and ALL_00_800 is already there in LS.
    I am not able to understand that my receiver system is NON SAP system so do I have to create logical system for it , and I have IDES system as sender system with only one client 800, what are all the configuration I have to do on SAP side.
    I am also not able to understand where I will write my code to fetch data based on the input provided by NON SAP system as I will have to design IDOC for both Inbound and Outbound processes.
    Kindly help me out, thanks in advance

    Hi Kanagaraja L,
    Thanks for you response.
    No I haven't created Created RFC Destination , this RFC destination will be of my JAVA system ???.
    I have tried creating the partner logical system in WE20 and dine the following steps:
    1. Partner No.   IDES800     Ides 800 System - Sender System
        Partn.Type    LS          Logical system
    2. The tab Post processing : permitted agent is filled with default parameters.
    3. Then in the outbound parameter table control I have pressed the add record button and got a new screen in
        which I have made the following entry :-
      Partner No.           IDES800        Ides 800 System - Sender System
      Partn.Type            LS             Logical system
      Partner Role          LS             Logical system
        Message Type      SYNCH                            ALE:Dummy Message Type for De
        Message code
        Message function
    Under tab Outbound options :
    Receiver Port  = A000000008  (This I have selected from F4 help)
    Basic type = SYNCHRON
    Saved it with the above data.
    Now I am not able to understand how to do the things you have mentioned in 3rd step in your reply.
    What are all the things I have to do kindly tell , as I am very new to Idocs so don't have much knowledge.
    Edited by: Rachit Khanna on Dec 7, 2009 1:49 PM

  • How do I convert or send data from a MacBook Pro to an s-video device???

    How do I convert or send data from a MacBook Pro to an s-video device??

    Use a Mini-Displayport-to-VGA adapter and a conversion box like this:
    http://www.amazon.com/PC-To-TV-Video-Converter/dp/B001CJOLBW/ref=pd_cp_e_2
    MBP

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

Maybe you are looking for