Getting an ABAP error while using innerjoins.

Hi,
Please find out the error in the following script.
I have two tables VBAK and VBAP and i am considering these fields.
VBAK -- ERDAT,HANDLE.
VBAP -- ERDAT.
Since ERDAT is been compared from 2 tables i.e.VBAK and VBAP, and if the dates are same then print the values of 'HANDLE' field
I have written the following program using innerjoin between 2 tables and i am geting an error saying that
""ITEM_TABLE-HANDLE" cannot be converted to a character-type field."
Please correct my program.and tell me the error.
and one more thing HANDLE field is there nly in VBAK not in VBAP.
REPORT  Z_TEST4                                 .
TYPES: BEGIN of STRUCT,
       ERDAT TYPE VBAP,
      VBAP,
      ERDAT TYPE VBAP,
       HANDLE TYPE VBAK,
END OF STRUCT.
DATA: item_table TYPE STANDARD TABLE OF STRUCT WITH HEADER LINE.
SELECT AERDAT BERDAT B~HANDLE INTO TABLE ITEM_TABLE FROM VBAP AS A
INNER JOIN VBAK AS B ON AERDAT = BERDAT.
*WHERE AERDAT = BERDAT.
IF SY-SUBRC NE 0.
WRITE: /'No Entries Found'.
ENDIF.
LOOP AT ITEM_TABLE.
       WRITE: / ITEM_TABLE-HANDLE.
       ENDLOOP.

Hi
Kindly check the following code:
DATA: BEGIN OF item_table OCCURS 0,
        erdat LIKE vbak-erdat,
        handle LIKE vbak-handle,
      END OF item_table.
SELECT a~erdat a~handle INTO TABLE item_table
FROM vbak AS a INNER JOIN vbap AS b
ON  b~vbeln = a~vbeln
AND b~erdat = a~erdat.
IF sy-subrc NE 0.
  WRITE: /'No Entries Found'.
ENDIF.
LOOP AT item_table.
  WRITE: / item_table-handle.
ENDLOOP.
<b>Declaration</b>
You can do the declaration of the internal table this way too...
In your declaration of the structure, you have given the whole table as a single field.
<b>Query</b>
Try the above inner join query...
Hope this helps!
best regards,
Thangesh

Similar Messages

  • Getting an ntvdm error while using single sign-on

    HI!
    When I run GssExample from the tutorial, I get an ntvdm error in a requester, saying "Error while setting up environment for the application. Choose 'Close' to terminate the application.".
    Then I can klick on "Close" or "Ignore". Either way, it takes some seconds and then GssExample is working as expected. But this requester is of course annoying. I get it every time I start GssExample.
    This only happens with single sign-on (useTicketCache=true).
    Using JDK 1.4.0 on Windows 2000 SP2.
    Any ideas?
    Thanks!
    Regards,
    Thomas

    OK.. the error goes away when using jdk1.4.1 but still the system is unable to get the user credentials from the cache :-(

  • Getting the below error while using the JMS server.

    <Sep 20, 2010 9:27:43 AM EDT> <Warning> <J2EE> <BEA-160064> <There was an error while making the initial connection to the JMS resource named EMSTopicFactoryNonXA from within an EJB or a servlet. The server will attempt the connection again later. The error was javax.jms.JMSException: [J2EE:160048]JNDI lookup of the JMS connection factory EMSTopicFactoryNonXA failed: javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException: invalid name or password]>
    <Sep 20, 2010 9:27:43 AM EDT> <Warning> <J2EE> <BEA-160082> <There was an error while making the initial connection to the JMS resource named com/lehman/fit/ice/agg2/TopicConnectionFactory from the EJB "Agg2BatchBean" inside application "Agg2". The server will attempt the connection again later. The error was javax.jms.JMSException: [J2EE:160048]JNDI lookup of the JMS connection factory com/lehman/fit/ice/agg2/TopicConnectionFactory failed: javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException: invalid name or password]>
    Note:-weblogic version 9.1sp0
    Please suggest me how to resolve the above exception.

    <Sep 20, 2010 9:27:43 AM EDT> <Warning> <J2EE> <BEA-160064> <There was an error while making the initial connection to the JMS resource named EMSTopicFactoryNonXA from within an EJB or a servlet. The server will attempt the connection again later. The error was javax.jms.JMSException: [J2EE:160048]JNDI lookup of the JMS connection factory EMSTopicFactoryNonXA failed: javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException: invalid name or password]>
    <Sep 20, 2010 9:27:43 AM EDT> <Warning> <J2EE> <BEA-160082> <There was an error while making the initial connection to the JMS resource named com/lehman/fit/ice/agg2/TopicConnectionFactory from the EJB "Agg2BatchBean" inside application "Agg2". The server will attempt the connection again later. The error was javax.jms.JMSException: [J2EE:160048]JNDI lookup of the JMS connection factory com/lehman/fit/ice/agg2/TopicConnectionFactory failed: javax.naming.AuthenticationException: Not permitted: invalid name or password [Root exception is javax.jms.JMSSecurityException: invalid name or password]>
    Note:-weblogic version 9.1sp0
    Please suggest me how to resolve the above exception.

  • Getting Internal Server Error while using SSPR in IDM 7.1

    Hi All,
    We have implemented SSPR functionality in our IDM 7.1 system and everything was working fine as expected.
    However since last few days we are getting below error, once users is trying to change his password using SSPR.
    He is entering his unique id, then answering the authentication questions correctly, but when he specifies the password and clicks on finis, below error comes up.
    Could anyone please advise.
    500 Internal Server Error
    java.lang.NullPointerException
    at com.sap.idm.wd.wf.task.PwdRecoverComp.SaveData(PwdRecoverComp.java:255)
    at com.sap.idm.wd.wf.task.PwdRecoverComp.MoveNext(PwdRecoverComp.java:293)
    at com.sap.idm.wd.wf.task.wdp.InternalPwdRecoverComp.MoveNext(InternalPwdRecoverComp.java:192)
    at com.sap.idm.wd.wf.task.PwdRecoverCompView.onActionNext(PwdRecoverCompView.java:165)
    at com.sap.idm.wd.wf.task.wdp.InternalPwdRecoverCompView.wdInvokeEventHandler(InternalPwdRecoverCompView.java:193)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
    at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
    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:333)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    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)
    Thanks
    Aditi

    Hi Matt,
    Thanks for you answer.
    Yes, I agree error log is not that helpful.
    There are no errors or any log for that matter in IDM Console side, so I am guessing that error is occurring entirely in Java side.
    I am trying to reset password for ABAP and IDM UI.
    Backend is IDM UME.
    Thanks
    Aditi

  • I am Getting the classcast error while using the webservice client

    Hi ,
    Iam getting classcast exception while trying to get the connection Object throurh the webservice client.
    The details are:
    the ra.xml
    &lt;resourceadapter-version&gt;1.6&lt;/resourceadapter-version&gt;
    &lt;resourceadapter&gt;
    &lt;resourceadapter-class&gt;oracle.apps.contactCenter.mct.model.connector.CCAResAdapterImpl&lt;/resourceadapter-class&gt;
    &lt;outbound-resourceadapter&gt;
    &lt;connection-definition&gt;
    &lt;managedconnectionfactory-class&gt;oracle.apps.contactCenter.mct.model.connector.CCAMangConnFactImpl&lt;/managedconnectionfactory-class&gt;
    &lt;connectionfactory-interface&gt;oracle.apps.contactCenter.mct.publicModel.connector.MCTConnectionFactIF&lt;/connectionfactory-interface&gt;
    &lt;connectionfactory-impl-class&gt;oracle.apps.contactCenter.mct.model.connector.CCAConnectionFactImpl&lt;/connectionfactory-impl-class&gt;
    &lt;connection-interface&gt;oracle.apps.contactCenter.mct.publicModel.connector.MCTConnectionIF&lt;/connection-interface&gt;
    &lt;connection-impl-class&gt;oracle.apps.contactCenter.mct.model.connector.CCAConnectionImpl&lt;/connection-impl-class&gt;
    &lt;/connection-definition&gt;
    &lt;transaction-support&gt;NoTransaction&lt;/transaction-support&gt;
    &lt;reauthentication-support&gt;false&lt;/reauthentication-support&gt;
    &lt;/outbound-resourceadapter&gt;
    &lt;/resourceadapter&gt;
    The weblogic-ra.xml
    &lt;enable-access-outside-app&gt;true&lt;/enable-access-outside-app&gt;
    &lt;outbound-resource-adapter&gt;
    &lt;connection-definition-group&gt;
    &lt;connection-factory-interface&gt;oracle.apps.contactCenter.mct.publicModel.connector.MCTConnectionFactIF&lt;/connection-factory-interface&gt;
    &lt;connection-instance&gt;
    &lt;jndi-name&gt;MctEIS11/connFctryCCA&lt;/jndi-name&gt;
    &lt;connection-properties&gt;
    &lt;pool-params&gt;
    &lt;initial-capacity&gt;5&lt;/initial-capacity&gt;
    &lt;max-capacity&gt;10&lt;/max-capacity&gt;
    &lt;capacity-increment&gt;1&lt;/capacity-increment&gt;
    &lt;/pool-params&gt;
    &lt;/connection-properties&gt;
    &lt;/connection-instance&gt;
    &lt;/connection-definition-group&gt;
    &lt;/outbound-resource-adapter&gt;
    &lt;/weblogic-connector&gt;
    The web.xml
    &lt;servlet&gt;
    &lt;servlet-name&gt;MyWebService1SoapHttpPort&lt;/servlet-name&gt;
    &lt;servlet-class&gt;myapp.Class1JCA&lt;/servlet-class&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
    &lt;/servlet&gt;
    &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;MyWebService1SoapHttpPort&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/MyWebService1SoapHttpPort&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;session-config&gt;
    &lt;session-timeout&gt;35&lt;/session-timeout&gt;
    &lt;/session-config&gt;
    &lt;mime-mapping&gt;
    &lt;extension&gt;html&lt;/extension&gt;
    &lt;mime-type&gt;text/html&lt;/mime-type&gt;
    &lt;/mime-mapping&gt;
    &lt;mime-mapping&gt;
    &lt;extension&gt;txt&lt;/extension&gt;
    &lt;mime-type&gt;text/plain&lt;/mime-type&gt;
    &lt;/mime-mapping&gt;
    &lt;/web-app&gt;
    The client is
    Context m_context;
    MCTConnectionIF m_connection = null;
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
    env.put(Context.PROVIDER_URL, "t3://localhost:7101");
    try {
    m_context = new InitialContext(env);
    System.out.println("Got the context objNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN");
    MCTConnectionFactIF m_cxFactory = null;
    Object objFactory = null;
    objFactory = m_context.lookup("MctEIS11/connFctryCCA");
    System.out.println(objFactory.toString());
    m_cxFactory = (MCTConnectionFactIF)objFactory;
    System.out.println(m_cxFactory.toString());
    m_connection = (MCTConnectionIF)m_cxFactory.getConnection(); //
    When i run this i am getting the exception as
    Entering!!!!!!!!!!!!!!!!!!!!!
    Got the context objNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN
    [oracle.apps.contactCenter.mct.model.connector.CCAConnectionFactImpl@14bc17f|mailto:oracle.apps.contactCenter.mct.model.connector.CCAConnectionFactImpl@14bc17f]
    java.lang.ClassCastException: oracle.apps.contactCenter.mct.model.connector.CCAConnectionFactImpl cannot be cast to oracle.apps.contactCenter.mct.publicModel.connector.MCTConnectionFactIF
    at myapp.Class1JCA.GetConnection(Class1JCA.java:47)
    I have checked that the jar files are matching in both client an connector side
    Please help me on this

    Is that ever running ? Where/how did you installed tuxedo ? Which OS user was used for tuxedo install ?
    Nicolas.

  • Getting error while using Callouts

    Hi Gurus,
    I am getting the below error while using callouts.
    Error -: AIP-51806: Error during callout invocation: Error -: AIP-10606: Domain exception in callout execution. Error -: AIP-10606: Domain exception in callout execution. Callout/Usage property not found for key password.
         at oracle.tip.adapter.b2b.callout.CalloutUtil.raiseIPCalloutDomainException(CalloutUtil.java:88)
         at oracle.tip.adapter.b2b.callout.CalloutContextImpl.getMapValue(CalloutContextImpl.java:100)
         at oracle.tip.adapter.b2b.callout.CalloutContextImpl.getStringProperty(CalloutContextImpl.java:149)
         at com.tm.EncryptMessage.execute(EncryptMessage.java:25)
         at oracle.tip.adapter.b2b.callout.CalloutExecuteWorker.doWork(CalloutExecuteWorker.java:424)
         at oracle.tip.adapter.b2b.callout.CalloutExecuteWorker.run(CalloutExecuteWorker.java:333)
         at java.lang.Thread.run(Thread.java:534)
         at oracle.tip.adapter.b2b.callout.B2BCalloutHandler.handleOutgoingCallout(B2BCalloutHandler.java:344)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1606)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:975)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1167)
         at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:141)
         at oracle.tip.transport.basic.FileSourceMonitor.processMessages(FileSourceMonitor.java:903)
         at oracle.tip.transport.basic.FileSourceMonitor.run(FileSourceMonitor.java:317)
    Caused by: Error -: AIP-10606: Domain exception in callout execution. Error -: AIP-10606: Domain exception in callout execution. Callout/Usage property not found for key password.
         at oracle.tip.adapter.b2b.callout.CalloutUtil.raiseIPCalloutDomainException(CalloutUtil.java:88)
         at oracle.tip.adapter.b2b.callout.CalloutContextImpl.getMapValue(CalloutContextImpl.java:100)
         at oracle.tip.adapter.b2b.callout.CalloutContextImpl.getStringProperty(CalloutContextImpl.java:149)
         at com.tm.EncryptMessage.execute(EncryptMessage.java:25)
         at oracle.tip.adapter.b2b.callout.CalloutExecuteWorker.doWork(CalloutExecuteWorker.java:424)
         at oracle.tip.adapter.b2b.callout.CalloutExecuteWorker.run(CalloutExecuteWorker.java:333)
         at java.lang.Thread.run(Thread.java:534)
         at com.tm.EncryptMessage.execute(EncryptMessage.java:47)
         at oracle.tip.adapter.b2b.callout.CalloutExecuteWorker.doWork(CalloutExecuteWorker.java:424)
         at oracle.tip.adapter.b2b.callout.CalloutExecuteWorker.run(CalloutExecuteWorker.java:333)
         at java.lang.Thread.run(Thread.java:534)
    I have configured the property "password" in the "Callout Properties" & "Callout Usage". I think no properties reaching the "CalloutContext" in the callout class.
    Please help me in this.
    Regards,
    Vithal
    Edited by: Vithal R on 03-Jun-2009 08:07

    Hi Vithal,
    Did you try with sample callouts -
    http://download-uk.oracle.com/docs/cd/B14099_19/integrate.1012/b19370/callouts.htm
    For your case, make sure -
    You are following below steps to create the property -
    http://download.oracle.com/docs/cd/B14099_19/integrate.1012/b19370/callouts.htm#BEIFDECJ
    You have selected the appropriate callout usage while creating the agreement.
    Callout Directory : Just mention the folder and not the jar.
    Mention the appropriate jar file in the Libray name section of the "create call out"
    Let us know the result please.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi on Jun 4, 2009 11:39 AM

  • How to get ALL validate-errors while insert xml-file into xml_schema_table

    How to get all validate-errors while using insert into xml_schema when having a xml-instance with more then one error inside ?
    Hi,
    I can validate a xml-file by using isSchemaValid() - function to get the validate-status 0 or 1 .
    To get a error-output about the reason I do validate
    the xml-file against xdb-schema, by insert it into schema_table.
    When more than one validate-errors inside the xml-file,
    the exception shows me the first error only.
    How to get all errors at one time ?
    regards
    Norbert
    ... for example like this matter:
    declare
         xmldoc CLOB;
         vStatus varchar
    begin     
    -- ... create xmldoc by using DBMS_XMLGEN ...
    -- validate by using insert ( I do not need insert ;-) )      
         begin
         -- there is the xml_schema in xdb with defaultTable XML_SCHEMA_DEFAULT_TABLE     
         insert into XML_SCHEMA_DEFAULT_TABLE values (xmltype(xmldoc) ) ;
         vStatus := 'XML-Instance is valid ' ;
         exception
         when others then
         -- it's only the first error while parsing the xml-file :     
              vStatus := 'Instance is NOT valid: '||sqlerrm ;
              dbms_output.put_line( vStatus );      
         end ;
    end ;

    If I am not mistaken, the you probably could google this one while using "Steven Feuerstein Validation" or such. I know I have seen a very decent validation / error handling from Steven about this.

  • Error while using UTL_FILE

    I am getting the following error while using UTL_FILE procedure while using UTL_FILE.FOPEN procedure
    from system account. I am using Windows XP with NTFS.
    SQL> create or replace directory FILE_DIR as 'C:\'
    2 /
    Directory created.
    SQL> grant read on directory FILE_DIR to public;
    Grant succeeded.
    1 create or replace PROCEDURE file_upload IS
    2 v_file_name VARCHAR2(200);
    3 v_file_type UTL_FILE.FILE_TYPE;
    4 v_line VARCHAR2(1000);
    5 BEGIN
    6 v_file_name := 'customers_'||TO_CHAR(SYSDATE,'dd')||TO_CHAR(SYSDATE,'MON')||TO_CHAR(SYSDATE,'YYYY')||'.txt';
    7 v_file_type := UTL_FILE.FOPEN('FILE_DIR','V_FILE_NAME','r',1000);
    8 UTL_FILE.GET_LINE(v_file_type,V_LINE,1000);
    9 UTL_FILE.FCLOSE(v_file_type);
    10 DBMS_OUTPUT.PUT_LINE(V_LINE);
    11* END;
    SQL> exec file_upload;
    BEGIN file_upload; END;
    ERROR at line 1:
    ORA-29283: invalid file operation
    ORA-06512: at "SYS.UTL_FILE", line 475
    ORA-29283: invalid file operation
    ORA-06512: at "SYSTEM.FILE_UPLOAD", line 7
    ORA-06512: at line 1
    I appreciate if someone can help me in this regard.
    Thanks in Advance.
    Regards
    Muhammad ALi

    Hello,
    What exactly are you trying to do? Here I got 2 examples for you , replace with your directory name and pick right option for 'a' (append) or 'w' (write) or 'R' (read).
    To read from a directory_ . This will read an existing file 'customer.txt" from the directory
    {code}
    CREATE OR REPLACE PROCEDURE .file_upload
    IS
    v_file_name VARCHAR2 (200);
    v_file_type UTL_FILE.file_type;
    v_line VARCHAR2 (1000);
    BEGIN
    v_file_name := 'customers.txt';
    v_file_type := UTL_FILE.fopen ('EXT_TABLES', v_file_name, 'R');
    UTL_FILE.get_line (v_file_type, v_line); -- Error was here
    DBMS_OUTPUT.put_line (v_line);
    UTL_FILE.fclose (v_file_type);
    END;
    {code}
    _*To open a file*_ This will create customer_XXXXX file under the directory
    {code}
    CREATE OR REPLACE PROCEDURE testme.file_upload
    IS
    v_file_name VARCHAR2 (200);
    v_file_type UTL_FILE.file_type;
    v_line VARCHAR2 (1000);
    BEGIN
    v_file_name := 'customers_'
    || TO_CHAR (SYSDATE, 'dd')
    || TO_CHAR (SYSDATE, 'MON')
    || TO_CHAR (SYSDATE, 'YYYY')
    || '.txt';
    v_file_type := UTL_FILE.fopen ('EXT_TABLES', v_file_name, 'a');
    UTL_FILE.put_line (v_file_type, v_line);
    DBMS_OUTPUT.put_line (v_line);
    UTL_FILE.fclose (v_file_type);
    END;
    {code}
    Regards
    Edited by: OrionNet on Jan 29, 2009 12:30 AM

  • Error while using the export utility

    Dear all of
    I am getting the following error while using the export utility in the Oracle database 9i
    I have run the catexp.sql and catrm.sql suggested by the experts in this forum. But it did not help me. Kindly help me in solving this issue.
    FOLLOWING ARE THE ERROR ----------------------------
    EXP-00008: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    EXP-00024: Export views not installed, please notify your DBA
    EXP-00000: Export terminated unsuccessfully
    -----------------------------------------------------------------------------------------------------------------------------------

    Can you go to this discussion please.
    Re: Getting a strange error for Exp
    -aijaz

  • "llegal character in path at index" Error While Using wsimport from ant.

    Hi,
    I am getting the following error, while using wsimport from ant build script. you have the details below. I dont have a clue on this error.
    Error :
    wsimport:
    [echo] Generating the client stubs
    [wsimport] error: Unable to parse "HelloService_schema1.xsd" : Illegal character in path at index 25: file:/D:/Study/WebService Eclipse Project/examples/jaxws/helloservice/service/server/wsdl/HelloService.wsdl#types?schema1
    [wsimport] line 0 of file:/D:/Study/WebService Eclipse Project/examples/jaxws/helloservice/service/server/wsdl/HelloService.wsdl#types?schema1
    [wsimport] error: Unable to parse "HelloService_schema1.xsd" : Illegal character in path at index 25: file:/D:/Study/WebService Eclipse Project/examples/jaxws/helloservice/service/server/wsdl/HelloService.wsdl#types?schema1
    [wsimport] line ? of file:/D:/Study/WebService Eclipse Project/examples/jaxws/helloservice/service/server/wsdl/HelloService.wsdl#types?schema1
    [wsimport] error: Element "{http://endpoint.helloservice/}sayHello" not found.
    Java WebService :
    package helloservice.endpoint;
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    @WebService()
    public class Hello {
    private String message = new String("Hello, ");
    @WebMethod()
    public String sayHello(String name) {
    return message + name + ".";
    Ant Build.xml
    <project name="${project.name}" basedir="." default="ear">
         <property file="WS_build.properties"/>
         <target name="init">
              <!-- Path Setting-->
              <echo description="Setting the path for the project"/>
              <path id="classpath">
                   <fileset dir="${lib.dir}" includes="*.jar"/>          
                   <fileset dir="${commonWSLib.dir}" includes="*.jar"/>
              </path>
              <!-- WSGen -->
              <echo description="WSGEN Definition"/>
              <taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
                   <classpath>
                        <path refid="classpath"/>
                   </classpath>
              </taskdef>
              <!-- WS Import-->
              <echo description="WSImport Definition" />
              <taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
                   <classpath>
                        <path refid="classpath"/>
                   </classpath>
              </taskdef>
         </target>
         <target name="Compile" depends="init">
              <echo description="Compiling the project"/>
              <mkdir dir="${build.dir}"/>
              <mkdir dir="${build.dir}/classes"/>
              <javac destdir="${build.dir}/classes" srcdir="${java.base}">
                   <classpath>
                        <path refid="classpath"/>
                   </classpath>
              </javac>
              <copy todir="${build.dir}/classes">
                   <fileset dir="${java.base}" excludes="**/*.java"/>
              </copy>
         </target>
         <target name="wsgen" depends="Compile">
                   <echo message="Generating the wsdl file[${project.name}Service.wsdl]" />
                   <mkdir dir="${service.dir}"/>
                   <mkdir dir="${service.dir}/server"/>
                   <mkdir dir="${service.dir}/server/classes"/>
                   <mkdir dir="${service.dir}/server/src"/>          
                   <mkdir dir="${service.dir}/server/wsdl"/>                    
                   <wsgen sei="${sei.class}" destdir="${service.dir}/server/classes" genwsdl="true"
                   sourcedestdir="${service.dir}/server/src" resourcedestdir="${service.dir}/server/wsdl">
                        <classpath>
                             <path refid="classpath" />
                             <pathelement location="${build.dir}/classes" />
                        </classpath>
                   </wsgen>
         </target>
         <target name="copy" depends="wsgen">
                   <echo message="Copying class and config files into ${web-inf.dir} folder" />
                   <copy todir="${web-inf.dir}">
                        <fileset dir="${build.dir}"/>
                        <fileset dir="${service.dir}/server" includes="**/*.class"/>
                        <fileset dir="." includes="${lib.dir}/*.jar"/>
                   </copy>
                   <copy todir="${web-inf.dir}/${lib.dir}">
                        <fileset dir="${commonWSLib.dir}" includes="*.jar"/>
                   </copy>
                   <copy todir="${web-inf.dir}">
                        <fileset dir="${web-inf.dir}" includes="**/*.xml"/>
                   </copy>
         </target>
         <!-- Create the WAR file     -->
         <target name="war" depends="copy">
              <echo message="Creating the war file [${project.name}.war]" />     
              <mkdir dir="${dist.dir}"/>
              <mkdir dir="${dist.dir}/server"/>
              <war destfile="${dist.dir}/server/${project.name}.war" webxml="${web-inf.dir}/web.xml" basedir="${web.dir}"/>
         </target>
         <target name="wsimport" depends="war">
              <echo message="Generating the client stubs" />          
              <mkdir dir="${service.dir}"/>
              <mkdir dir="${service.dir}/client"/>
              <mkdir dir="${service.dir}/client/classes"/>
              <mkdir dir="${service.dir}/client/src"/>     
              <wsimport wsdl="${basedir}/${service.dir}/server/wsdl/${project.name}.wsdl"
                   destdir="${service.dir}/client/classes"
                   package="${wsimport.package}"
                   sourcedestdir="${service.dir}/client/src">
              </wsimport>
         </target>
         <target name="clientjar" depends="wsimport">
    <echo message="Creating the client jar file [${project.name}Client.jar] " />
    <copy todir="${service.dir}/client/classes">
    <fileset dir="${service.dir}/client/src"/>
    </copy>
    <mkdir dir="${dist.dir}/client"/>
                   <tstamp>
                   <format property="TODAY" pattern="yyyy-MM-dd hh:mm:ss" />
                   </tstamp>
    <jar destfile="${dist.dir}/client/${project.name}Client.jar"
    basedir="${service.dir}/client/classes">
                   <manifest>
                   <attribute name="Built-By" value="${user.name}"/>
                   <attribute name="Built-Date" value="${TODAY}"/>
                   <attribute name="Implementation-Version" value="${version}-b${build.number}"/>
              </manifest>
              </jar>          
    <mkdir dir="${dist.dir}/client"/>
         </target>
         <!-- JAR THE ENGINE -->
         <target name="enginejar" depends="clientjar">
         <echo message="Creating the engine jar file for local call [${project.name}.jar] " />
              <!-- <copy todir="${build.dir}/classes">
                        <fileset dir="." includes="${config.dir}/hibernate.cfg.xml"/>           
         </copy> -->
              <tstamp>
                   <format property="TODAY" pattern="yyyy-MM-dd hh:mm:ss" />
              </tstamp>
         <jar destfile="${dist.dir}/server/${project.name}.jar"
         basedir="${build.dir}/classes">
                   <manifest>
                        <attribute name="Built-By" value="${user.name}"/>
                        <attribute name="Built-Date" value="${TODAY}"/>
                        <attribute name="Implementation-Version" value="${version}-b${build.number}"/>
              </manifest>
              </jar>          
              </target>
              <!-- GENERATE EAR FOR THE ENGINE -->
              <target name="ear" depends="enginejar" >
                   <echo message="Creating the ear file [${project.name}.ear]" />
                   <ear destfile="${dist.dir}/server/${project.name}.ear" appxml="META-INF/application.xml">
                   <fileset dir="${dist.dir}/server" includes="${project.name}.war"/>
              </ear>
                   <antcall target="clean"></antcall>
              </target>
              <!-- CLEAN UP THE FOLDERS     -->
              <target name="clean">
                   <echo message="Cleaning up folders " />          
                   <delete dir="${build.dir}"/>
                   <delete dir="${service.dir}"/>
                   <delete dir="${web-inf.dir}/classes"/>
                   <delete dir="${web-inf.dir}/lib"/>
                   <echo message="${project.name}.ear, ${project.name}.war, ${project.name}.jar and ${project.name}Client.jar is available in project's ${dist.dir} folder"/>
              </target>
    </project>
    Generated wsdl(HelloService.wsdl) :
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <definitions targetNamespace="http://endpoint.helloservice/" name="HelloService" xmlns:tns="http://endpoint.helloservice/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
    <types>
    <xsd:schema>
    <xsd:import namespace="http://endpoint.helloservice/" schemaLocation="HelloService_schema1.xsd"/>
    </xsd:schema>
    </types>
    <message name="sayHello">
    <part name="parameters" element="tns:sayHello"/>
    </message>
    <message name="sayHelloResponse">
    <part name="parameters" element="tns:sayHelloResponse"/>
    </message>
    <portType name="Hello">
    <operation name="sayHello">
    <input message="tns:sayHello"/>
    <output message="tns:sayHelloResponse"/>
    </operation>
    </portType>
    <binding name="HelloPortBinding" type="tns:Hello">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="sayHello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <service name="HelloService">
    <port name="HelloPort" binding="tns:HelloPortBinding">
    <soap:address location="REPLACE_WITH_ACTUAL_URL"/>
    </port>
    </service>
    </definitions>
    Generated : HelloService_schema1.xsd
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <xs:schema version="1.0" targetNamespace="http://endpoint.helloservice/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="sayHello" type="ns1:sayHello" xmlns:ns1="http://endpoint.helloservice/"/>
    <xs:complexType name="sayHello">
    <xs:sequence>
    <xs:element name="arg0" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    <xs:element name="sayHelloResponse" type="ns2:sayHelloResponse" xmlns:ns2="http://endpoint.helloservice/"/>
    <xs:complexType name="sayHelloResponse">
    <xs:sequence>
    <xs:element name="return" type="xs:string" minOccurs="0"/>
    </xs:sequence>
    </xs:complexType>
    </xs:schema>
    If u need any other information let me know.

    This has been resolved by uploading relevant jar file

  • Run time error while using Class gcl_error

    Hi All,
    I am getting run time error while using class gcl_error
                                          type REF to zsreport_error_handling:
    '' Attempt to access a component using 'NULL' object reference (points to nothing).
    An object reference must point to an object ( an instance of a class) before you can use it to access components ( variable : ''GCL_ERROR'').
    Either the reference point has not yet been set or it has been reset to 'NULL' by a clear statement."
    Can you please suggest any solution for this ?
    Thanks in advance.

    Dear All
    Its Resolved Thanks For your Valuable time Support
    INCLUDE LV03VFB4 inside below code trigger error.
    PERFORM VVBBD_AUFBAUEN USING WA_AVBBD
                                        WA_AVBBD-APOMOBILE
                                        DA_SUBRC
                                        DA_UPDKZ
                                        DA_VVBBD_TABIX
                                        0.
    This Was the Error some how 0 was there we are removed the 0 now it is working fine
    Rgds
    Thomson

  • Inconsistent FOTY0001: type error while  using translateFromNative

    I am getting FOTY0001: type error while using translateFromNative function in assign activity.
    This error happens only in the below scenarios:
    1. Create a BPEL process with file input adapter that accepts simple xml string as input and accepts files like input*.txt.
    2. Create a simple XSD(Fixed Length native XSD) and convert the simple string to XML using translateFromNative function and copy it into a variable.
    3. Switch off the process
    4. Put atleast 10 input*.txt files in the folder and switch on the process.
    This error doesn't happen when I put one file at time.. Even when I put multiple files, the error happens for few instances inconsitently.
    Here is our assign activity
    <assign name="Assign_1">
    <copy>
    <from variable="PlantChemMsg" part="Chemistry"
    query="/ns2:Chemistry/ns2:chemistryString"/>
    <to variable="tempChemistryString"/>
    </copy>
    <copy>
    <from expression="ora:translateFromNative(bpws:getVariableData('tempChemistryString'), 'ChemistryLegacy1.xsd', 'Root-Element')"/>
    <to variable="ChemistryOut" part="Root-Element"
    query="/ns8:Root-Element"/>
    </copy>
    </assign>
    Here is the error in group log:
    ORABPEL-09500
    XPath expression failed to execute.
    Error while processing xpath expression, the expression is "ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'ChemistryLegacy1.xsd', 'Root-Element')", the reason is FOTY0001: type error.
    Please verify the xpath query.
         at com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate(BPELXPathUtil.java:206)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.evalFromValue(BPELAssignWMP.java:679)
         at com.collaxa.cube.engine.ext.wmp.BPELAssignWMP.__executeStatements(BPELAssignWMP.java:143)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:195)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3705)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1654)
    Any help would be appreciated. Thanks.
    -Sridhar

    James,
    Thanks & Sorry for the late reply.
    I used assign activity just because I have only one source and target element.
    This error happens even with transform activity.
    Also, all the input messages are same. So It is definitely not the issue with the input message.
    One observation I did is:
    The error doesn't occur when I use like below(Full Http url):
    ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'http://psc-d674943.hdq.uss.com:7777/orabpel/default/TestTranslateFromNativeError/1.0/ChemistryLegacy1.xsd
    ', 'Root-Element')
    But occurs when I use like below.
    ora:translateFromNative(string(bpws:getVariableData('tempChemistryString')), 'ChemistryLegacy1.xsd', 'Root-Element')

  • Runtime Error while using Dynamic Selection

    Hi,
      We are getting a runtime error while using a dynamic selection. One of the fields has got an apostrophe in the middle of the text and so the condition is returning an error SAPSQL_WHERE_PARANTHESES.
      Let's say the value in the field is SCV's. So the WHERETAB is filled as 'SCV's' or `SCV's`. An exception is caught in this case as there is no closing apostrophe.
    Let us know if anyone has come across a similar issue and any help is appreciated.
    Regards,
    Sarves

    Hi Sarves,
    as Rob said.
    check also the [ORACLE FAQS|http://www.orafaq.com/faq/how_does_one_escape_special_characters_when_writing_sql_queries] or [SQL SERVER u2013 How to Escape Single Quotes|http://blog.sqlauthority.com/2008/02/17/sql-server-how-to-escape-single-quotes-fix-error-105-unclosed-quotation-mark-after-the-character-string/]
    Honestly: Before posting here and getting a whole lot of more or less useless comments just use your favorite search engine.
    Regards,
    Clemens

  • Error while using JARToolkit3D

    Hello All,
    I am getting the following error while using JARToolkit for a tracking application......In fact I am trying out the DemoJava3D example given by the JARToolkit itself, but still I am not able to run the program.....The error is as follows:
    Exception occurred during Behavior execution:
    java.lang.ClassCastException: java.awt.image.DataBufferInt cannot be cast to java.awt.image.DataBufferByte
         at javax.media.j3d.ImageComponentRetained.copyImageByBlock(ImageComponentRetained.java:1140)
         at javax.media.j3d.ImageComponentRetained.copySupportedImageToImageData(ImageComponentRetained.java:1168)
         at javax.media.j3d.ImageComponentRetained.updateImageDataPowerOfTwo(ImageComponentRetained.java:840)
         at javax.media.j3d.ImageComponentRetained.copyUnsupportedImageToImageData(ImageComponentRetained.java:1342)
         at javax.media.j3d.ImageComponent2DRetained.updateData(ImageComponent2DRetained.java:286)
         at javax.media.j3d.ImageComponent2D.updateData(ImageComponent2D.java:622)
         at net.sourceforge.jartoolkit.java3d.Behavior.ARBehavior.processStimulus(ARBehavior.java:126)
         at javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:173)
         at javax.media.j3d.J3dThread.run(J3dThread.java:256)
    Any idea why this could be happening?
    Thanks in advance,
    Girish.

    user10310678 wrote:
    I am using beta version. Oracle VM Manager 2.2.0If you have a beta version of 2.2, then you should be an Oracle employee. Please ask this question on an internal mailing list. If you are not an Oracle employee, please ask the employee that gave you this beta. As this is a beta, some functionality may not be operational yet, so I can't answer why this particular feature seems not to work.

  • Error while using substring function

    Hi,
    I am getting the below error while using this query.
    Substr("Fin Account".ASSET_NUM, instr(Fin Account".ASSET_NUM, ':')+1)
    (nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    Please help me..
    Edited by: user10441472 on Jun 24, 2009 12:49 PM

    Substr("Fin Account".ASSET_NUM, 1, instr(Fin Account".ASSET_NUM, ':')+1)
    or
    Substr("Fin Account".ASSET_NUM, instr(Fin Account".ASSET_NUM, ':')+1,50)
    i think you should use 3 parameters, did you try that if it would work?
    additionally check what is the default format of your data: go to column properties -> data format; if its text then ok; otherwise you will have to cast the number to char; in such a case the above could be:
    Substr(cast("Fin Account".ASSET_NUM as char(20)), 1, instr(cast(Fin Account".ASSET_NUM as char(20)), ':')+1)
    or
    Substr(cast("Fin Account".ASSET_NUM as char(20)), instr(cast(Fin Account".ASSET_NUM as char(20)), ':')+1,50)
    Edited by: UserMB on Jun 25, 2009 6:17 AM

Maybe you are looking for

  • Urgent Confused!!!

    Ok A few days ago I asked about moving the SLD from Dev Box to Prod Box. NO I noticed that in all the answers nothing was mentioned aboput the SLD itself... There was alot said about what had to be done indifferent systems but not the SLD itself... I

  • [svn] 3677: Chipping away at the size of pure Flex 4 SWFs.

    Revision: 3677 Author: [email protected] Date: 2008-10-16 07:21:15 -0700 (Thu, 16 Oct 2008) Log Message: Chipping away at the size of pure Flex 4 SWFs. We no longer inadvertedly link in the legacy Halo Container, Button, and Scrollbar, for pure Flex

  • Adding Pages Document which includes a table to Iweb.

    Hello All, Im creating a website on Iweb and would like to add a "pages document" which includes a table to it. Doesnt seem to be all that easy? Would appreciate any help. Thank you.

  • Unload swf in Flash Pro

    I publish a swf from a Catalyst Project and then load it in Flash Pro using the prebuild code snippet: myButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF); var fl_Loader:Loader; function fl_ClickToLoadUnloadSWF(event:MouseEvent):void

  • I installed the trial version of Creative Cloud and when I open it's blank.  How can I sort this??

    I have tried a few times now to install the trail version of Creative Cloud to get the new PS2014 - but it's blank as below.  I'm on Windows 7 and this is the first time it's happened (have used this software on this PC before to install other trials