SAP Sybase ESP - Error: Invalid URI at Example: Using a Simple Web Services (SOAP) Input Adapter

Hello all,
we need our help regarding the StockTrader example project that is delivered with SAP Sybase Event Stream Processor (Sybase ESP 5.1).
we want to build a simple Web Service and follow the instructions as described in the Sybase Infocenter. We have attached a screenshot ("Sybase InfoCenter") that contains the described steps (as copying the URL always lead to a wrong page).
We have problems with Step 10 ("Start the ESP project by running the start_project.bat or start_project.sh script."). We get the error message "Invalid URI" as you can see in screenshot "[error] Invalid Uri". Previously we started the "start_node.bat" (Step 9) - see also screenshot "[error] Invalid Uri".
Like in steps 6 and 7 mentioned, we have changed the parameters "USER" and "PASSWORD" of the adapter_config.xml files and the parameters "ADAPTER_EXAMPLE_USERNAME"and "ADAPTER_EXAMPLE_PASSWORD" of the
set_example_env.bat files. Here, we were a bit confused wether we should change these parameters in all those files as there are 4 adapter_config.xml and 4 set_example_env.bat files. Please refer to the attached screenshot ("changed files").
Does anyone know why this error occurs and how to continue to complete the Web Service?
Later we want to push data with this Web Service into a SAP HANA database table.
We are thankful for any input and help.
Regards, Andreas

Hello Neal,
thanks a lot for your help.
The solution for us was to change the column names inside Sybase ESP Studio to the column names in StockTraderMappings.xml.
After compiling and running the project we could see the data and were also able to push it to SAP HANA.
This is the CCL Code that worked for us:
CREATE SCHEMA tradesSchema (
    transaction_buyerId INTEGER,
    transaction_sellerId INTEGER,
    transaction_supervisorIds INTEGER,
    transaction_tradeTime LONG,
    transaction_trades_amount INTEGER,
    transaction_trades_price FLOAT,
    transaction_trades_symbol STRING
CREATE INPUT STREAM tradesIn SCHEMA tradesSchema;
CREATE OUTPUT STREAM tradesOut SCHEMA tradesSchema
     AS  SELECT * FROM tradesIn;
* mapFilePath is currently ignored and must be set via the mappingFile configuration parameter
* in the given adapter configuration file (configFilePath).
ATTACH INPUT ADAPTER Web_Services_SOAP_Input_Adapter TYPE soapinput TO tradesIn PROPERTIES configFilePath =
'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/adapter_config.xml' ,
mapFilePath = 'C:/Sybase/ESP-5_1/adapters/webservices/examples/input/stockTraderMappings.xml' ,
jdkHome = 'C:/Software/Java/jdk' ,
discoveryWsdl = 'http://localhost:8080/axis2/services/StockTraderService?wsdl' ,
discoveryWorkingDir = 'C:/tmp/adapter/soap' ,
discoveryServiceName = 'StockTraderService' ;
Regards, Andreas and Maik

Similar Messages

  • SharePoint returned the following error: Invalid URI: The URI is empty.

    When I try to add Site Feed (News Feed) in the SharePoint 2013, I get
    “SharePoint returned the following error: Invalid URI: The URI is empty. Contact your system administrator for help in resolving
    this problem” error message. Could you please provide me a solution or cause of this issue?
    Many Thanks.

    Hi Aruna
    To resolve this, You have to create and configure my site i.e.
    Created a new web app for my site
    Created the my site host site collection as the root
    Provisioned the User Profile Service App
    Configured the My Site URL in Setup My Site in User Profile Service App
    IISRESET
    Each environment is different and unique, ULS Log viewer is the key to identify and troubleshoot this.
    For more details follow the link
    SharePoint 2013 Invalid URI: The URI is empty
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • WebPart is raising the following error "Invalid data has been used to update the list item.The field you are trying to update may be read only"

    I have created a farm solution and then i deploy it to SharePoint server, the code looks as follow, and i use it to update a page info values (as the current page values represents old info):-
    [ToolboxItemAttribute(false)]
    public partial class VisualWebPart1 : WebPart
    // Uncomment the following SecurityPermission attribute only when doing Performance Profiling using
    // the Instrumentation method, and then remove the SecurityPermission attribute when the code is ready
    // for production. Because the SecurityPermission attribute bypasses the security check for callers of
    // your constructor, it's not recommended for production purposes.
    // [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Assert, UnmanagedCode = true)]
    public VisualWebPart1()
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    SPList list = web.Lists["Pages"];
    web.AllowUnsafeUpdates = true;
    foreach (SPListItem items in list.Items)
    items["Author"] = "SharePoint";
    items["Created"] = "01/08/2014 01:44 PM";
    items.Update();
    list.Update();
    web.AllowUnsafeUpdates = false;
    protected void Page_Load(object sender, EventArgs e)
    but when i try adding this web part to a page i got the following error:-
    Invalid data has been used to update the list item.The field you are trying to update may be read only
    so can anyone advice?

    i only changed lines bitween 
    web.AllowUnsafeUpdates = true;
    and
    web.AllowUnsafeUpdates = false;
    and other parts of code remains without change
    so it will updates all pages in current web
    yaşamak bir eylemdir

  • At&t +1 (1) (216)116-11 error invalid number please resend using 10 digit mobile number

    tried all the method proposed for former similar questions. None works. Even more confused about whether it is the problem of AT&T or apple or both? How can I solve it. It's really annoying!

    Are you in the US? If you are in the US, you don't need to call or text the full number unless it is a toll free number.
    You can just use the 10 digit number XXX-XXX-XXXX
    It seems the number is invalid so AT&T respond back saying that "at&t +1 (1) (216)116-11 error invalid number please resend using 10 digit mobile number"
    If you are using the right number and you know for sure it is a working number, try delete the number in question that you try to text to like call history or text history of that number and just delete it. Do not delete the number in your contacts though. Delete history pertaining to it in calls and text.
    Then try it again to text to the number.

  • Web Service SOAP Adapter Error

    Hi all
    We just upgraded from PI7.0SP13 to SP18. We have a couple of Web Services running that worked fine in SP13. Now, after the upgrade they don't work anymore, and we get the following error when trying to execute the SOAP request:
    com.sap.aii.af.service.cpa.impl.exception.CPALookupException: Couldn't retrieve binding for the given channelId: Binding:CID=a1a08d8558de39c691a8c80a4f524b1c;
         at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBindingByChannelId(AbstractLookupManager.java:361)
         at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:424)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         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:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         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(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    I've tried all the things that I have found in the forum, e.g. CPA cache refresh, restart the system, make channel inactive and active again in ID, stop and start in channel monitoring, but nothing appears to be helping.
    Can anybody help?
    Thank you,
    Daniel

    Hi Prateek
    We do not use HTTPS. It is a simple Web Service that is called via HTTP with a request that calls a BAPI using the RFC adapter and returns the answer from the BAPI via the Web Service.
    <wsdl:service name="MI_GETACCOUNTADDRTOWRITE_OU_SYService">
         <wsdl:port name="MI_GETACCOUNTADDRTOWRITE_OU_SYPort" binding="p1:MI_GETACCOUNTADDRTOWRITE_OU_SYBinding" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
                   <soap:address location="http://<domain.name>:50000/XISOAPAdapter/MessageServlet?channel=:BS_GETACCOUNTADDRTOWRITE:CC_S_SOAP_GETACCOUNTADDRTOWRITE&amp;version=3.0&amp;Sender.Service=BS_GETACCOUNTADDRTOWRITE&amp;Interface=http%3A%2F%2Fxxxxxx.com%2Fxi%2Faccount%5EMI_GETACCOUNTADDRTOWRITE_OU_SY" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"/>
              </wsdl:port>
         </wsdl:service>
    Thank you,
    Daniel

  • Runtime error in "Stream XML/HTML into J2EE and Web Services Applications"

    javax.naming.NameNotFoundException: oraclestoreejb not found
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:130
    After following step by step a least 2 times the documentation :
    http://otn.oracle.com/tech/webservices/htdocs/series/streams/content.html
    At the point "23" when I run the application I receive the following error:
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void oraclestoreClient.main(java.lang.String[])
              oraclestoreClient.java:54
    Process exited with exit code 0.
    What is wrong with the installation?

    After installing the example 2 times reading the documentation, I decided to see the Real player film that should be the same. Astonished I found out that the runtime error came as expectec from 2 missing libraries that are only presented at the video and not at the HTML version (ITEM 21).
    Quite all the example I tryed from Web Services does not work like described. Is it on purpose?

  • An error occurred while trying to connect to a Web service, when InfoPath web enabled form loads.

    Hi Everyone,
    I am getting an error message: An error occurred while trying to connect to a web service, when my InfoPath form tries to load.  The last few days, it only spits this error message in the morning and around 12pm-1pm it resolves itself and the form loads
    fine the rest of the day, oddly enough. 
    A few things about my form:
    1). It is web enabled
    2). The form submits to a form library on the SP server
    3). I use the UserProfileService data connection in the form to auto-populate a few fields
    4). I use a udcx file with correct language stored in the root of the site collection in the data connection library
    5). The form has been working fine until a few days ago
    I noticed while in Central Administration, that the User Profile Service Synchronization is Stopped.  Not sure if this is causing some or all of the problem. If I need to start it I will need to contact my farm administrator to do this, since I do not
    have the service account information.
    Also, I looked thru the log files on the SharePoint server and found the following by searching for the Correlation ID shown when the error comes up, I won't put in everything just the important messages.
    Schema file was already loaded: BuiltInActiveXControls.xsd
    FormServer Partial Trust - Proxy operation invoked in the SHIM process.
    FormServer Partial Trust - Invoking proxy operation for Web service adapter failed with exception Operation is not valid due to the current state of the object. for Url=https://<SP URL>/_vti_bin/UserProfileService.asmx
    Data adapter failed during OnLoad: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.
    The following query failed: GetUserProfileByName (User: , Form Name: Expense Report, IP: , Connection Target: <SP URL>/Data Connections/GetUserProfileByName.udcx, Request: , Form ID: urn:schemas-microsoft-com:office:infopath:Expense-Report:-myXSD-2014-04-11T21-06-32
    Type: DataAdapterException, Exception Message: The custom code in the form cannot be run. This functionality may be deactivated on the server.

    Hi B.,
    You are on the right track. I recommend that you first get the User Profile Synchronization Service started because that itself could be the root cause of the issue.
    If that doesn't fix it then focus your attention on the GetUserprofileByName data connection. I always use my secure store ID for this connection. I add the ID by editing the udcx file and then publishing it again.
    Hope this helps.
    Daniel Christian (MCTS)

  • Error Message "No logical port exists to call web services" installing SM7

    I am trying to use SLM to download a service stack.  However, the option is not available in step 2.5.  There is an error message "No logical port exists to call web services".  I have performed the Wizard install, but the Wizard seems to have left out this step.  I have looked around for documentation on how to configure the port, but cannot find anything more useful than comments to the effect that I should configure the port.

    I found the problem, I think, although I am now on to the next problem.  "Web Services for software lifecycle manager not available'.
    The documentation is lacking.  When the RFC connection is set up, the user id is j2ee_admin, using the install password.  This is not specified anywhere in the install instructions that I could find, there is only a reference to a 'user id and password'.
    The LPCONFIG is used to create a logical port, that ties the RFC to the LP.  However, no name is specified that is to be used for the LP.

  • Cannot submit sharepoint form due to error. An error occurred while trying to connect to a Web service. Please Help!

    An error occurred while trying to connect to a Web service.
    An entry has been added to the Windows event log of the server.
    Log ID:5567
    Correlation ID:4db21044-cbc4-4f2f-8653-d73e5496b891

    check the log file first to get detailed information, go to ULS log file, find the related Correlation ID, you will get the error message, the information you provided is less helpful to know this issue.
    Qiao Wei
    My blog:http://blog.goobol.com

  • An error occurred while trying to connect to a Web service

    In infopath 2013 getting current user through web service getting this error in the browser
    "An error occurred while trying to connect to a Web service"

    Hi Jithendar,
    If you can send the ULS log entries which has that Correlation ID, it would be more helpful.
    The text you send is only the ID of the entries and dont give any clue to us about your problem.
    Best regards,
    Mustafa Yılmaz
    Best Regards, Mustafa Yılmaz MCITP, MCPD | www.mustafa-yilmaz.org | www.sharepointciyiz.biz

  • Error in ejbCreate using a Test Web Service

    Hi,
    I'm new to the Bea and j2ee worlds and I'm following the steps of "Getting Started: Enterprise JavaBeans" in "Tutorials".
    I've done "Step 4: Test the EJBs" but during the test (with a Test Web Service) these exceptions raised:
    Exception in hello
    javax.transaction.TransactionRolledbackException: Error in ejbCreate:: javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    ; nested exception is:
    javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    Caused by: javax.ejb.EJBException: nested exception is: javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/MyVisitBean in /app/ejb/MyEJBProject.jar#Hello.; remaining name 'comp/env/ejb/MyVisitBean'
    ... 46 more
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:897)
    at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:150)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:256)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:359)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at hello.HelloBean.ejbCreate(HelloBean.java:27)
    at hello.Hello_oztp1s_Impl.ejbCreate(Hello_oztp1s_Impl.java:135)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:172)
    at weblogic.ejb20.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:110)
    at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:140)
    at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:137)
    at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:69)
    at hello.Hello_oztp1s_EOImpl.hello(Hello_oztp1s_EOImpl.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.bea.wlw.runtime.core.control.EJBControlImpl.invoke(EJBControlImpl.jcs:665)
    at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:377)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
    at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
    at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:388)
    at helloControl.helloBeanCtrl.hello(helloBeanCtrl.ctrl)
    at helloControl.helloBeanCtrlTest.hello(helloBeanCtrlTest.jws:22)
    Everything has gone well until Step 3. I've done everything tutorial has said (ejb-local-ref, etc..) but it doesn't work.
    Probably it's a stupid error, but I don't know where I have to look for.
    Thank you and sorry, but I've never seen Bea Workshop!
    m

    Hi
    You can use a java web service to publish a Web service from a Java class.
    A wizard creates the WSDL document and deployment files needed to publish your code as a Web service. After you select the class and methods you want to publish, the wizard generates deployment descriptors, a JAX-RPC mapping file, and a WSDL document that can be deployed to an application server.
    You can refer : \bpel\samples\tutorials\102.InvokingProcesses\ws sample to invoke a WS using JAX-RPC Call.
    Hope that helps!
    Cheers
    A

  • Helpme I have error when I try connect from struts  to web service

    helpme I have error when I try connect from struts to web service using basic authentication . the error message is
    [SOAP Exception: fault code= SOAP-ENV Protocol; msg=Unsupported response content type "text/html" must be "text/xml"; ] Response was <html><body> 401 Unauthorized </body></html>
    I'm not using ldap for authentication only xml (jazx-data.xml) ... I already create user with jazn.jar for that user , and I dont know why it still error like that ..
    Please helpme I don't have anytime more to find the mistake , ??
    I'm using Jdeveloper 9i , and oc4j 9.0.4 Server (Not embedded with Jdev)
    But when I use with sample java client it success .....
    then I try with Struts the response is unsupported response content type text/html must be text/xml response was 401 Unauthorized

    1.The reason why this error occurs is, we are getting non SOAP response when the program is expecting a SOAP response. Did you set the proxy server correctly? Try to handle the exception and see the content type of the response in your program.
    2. While creating the client stub u must check an option for authentication for webservice .should solve ur problem.
    thanks
    sirisha

  • Could not run the bookstore1 example from the Java Web Services Tutorial

    The bookstore1 servlets example from the Java Web Services Tutorial (issue Aug 1, 2002) was built and deployed successfully by using the deploytool (following the steps described on pages 498ff of the tutorial).
    After deploying the application the Tomcat Web Application Manager shows the entry:
    /bookstore1:stopped:0:D:\Programme\Java\tomcat\jakarta-tomcat-4.1.8\work\Standalone\localhost\manager\bookstore1.war
    when entering the command: http://localhost:8080/manager/list.
    After entering the command: http://localhost:8080/manager/start?path=/bookstore1, the (uncomplete) message appears:
    FAIL - Application at context path /bookstore1 could not
    It should be noted that I was able to build and deploy the application GSApp (chapter 3 of the tutorial) successfully.

    Did you set up the database as described in
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868

  • Error "Invalid Column Name tp_level" when open restored web app

    Hi,
    I have a web application in development environment and it works fine when I try to restore the web application to the staging or production environment it is restored successfully but when I open the web application I got an error "Invalid column name
    tp_level"
    I don't know why this issue occurred. Do anyone knows what is the reason and how to solve it.
    Thank you.
    Ehab

    tp_level is an internal column of a content database. Can you check permissions on a restored content database for an account used for web app pool running?
    If it will not help, I offer you to create web application in staging/production and then make a copy of a content database from development enviroment and attach it to a newly created web app.

  • Error :Invalid TLV Record when using with VC++ UI Thread

    Post Author: divya prakash
    CA Forum: Other
    Hello
    I am using Crystal Report XI with VC++ 6.0 .When I am trying to print report directly on button click event all goes well.But as soon as i try to print report calling that function in a UI Thread it gives two error :
    This document could not be opened. It does not appear to be a Crystal Report document.    This document has the expected file extension (.RPT) but it seems to be corrupt. If the report use to work, try opening it with a different version of    Crystal Reports and if that still does not work, please contact your administrator.
    after pressing OK it gives another error : Invalid TLV record.
    I dont know what is going wrong ...same code works well if I dont call in UI Thread and the moment I try to do the same by calling that function in UI Thread it gives above errors.
    I have registered :craxdrt.dll as well as crqe.dll .... than also ..
    Please help me I am totally stuck ...
    Thanks in advance
    - Divya Prakash

    Post Author: divya prakash
    CA Forum: Other
    Hello
    I am using Crystal Report XI with VC++ 6.0 .When I am trying to print report directly on button click event all goes well.But as soon as i try to print report calling that function in a UI Thread it gives two error :
    This document could not be opened. It does not appear to be a Crystal Report document.    This document has the expected file extension (.RPT) but it seems to be corrupt. If the report use to work, try opening it with a different version of    Crystal Reports and if that still does not work, please contact your administrator.
    after pressing OK it gives another error : Invalid TLV record.
    I dont know what is going wrong ...same code works well if I dont call in UI Thread and the moment I try to do the same by calling that function in UI Thread it gives above errors.
    I have registered :craxdrt.dll as well as crqe.dll .... than also ..
    Please help me I am totally stuck ...
    Thanks in advance
    - Divya Prakash

Maybe you are looking for