Unresolved runtime error - simple algorithm

Ok, the specification for this code is:
1) Create a simple calculator program. The program will ask the user to first enter the two operands. Then the program will ask the user what operation they want to perform. The operation options are addition, subtraction, multiplication and division. After the user indicates the operation to be perform, the program will provide the answer in an appropriate message.
2) All operands will be floating point numbers.
3) Do not permit the user to divide by 0.
4) The program should allow the user to enter either a UPPER CASE LETTER or a lower case letter to indicate the operation.
The code I have thus far created:
public class calculator {          
    public static void main(String[] args) {
    EasyReader console = new EasyReader();
    System.out.print("Enter first operand:  ");
    double first = console.readDouble();
    System.out.print("Enter second operand: ");
    double second = console.readDouble();
    char selection = ' ';
    if (second == 0)
         System.out.println(" Enter A for Addition ");
         System.out.println(" Enter S for Subtraction ");
         System.out.println(" Enter M for Multiplication ");
         System.out.println("Enter operator: ");
         selection = console.readChar();
    else
         System.out.println(" Enter A for Addition ");
         System.out.println(" Enter S for Subtraction ");
         System.out.println(" Enter M for Multiplication ");
         System.out.println(" Enter D for Division ");
         System.out.println("Enter operator: ");
         selection = console.readChar();
    switch (selection)
         case 'A':
         case 'a':
              System.out.println(first + second);
              break;
         case 'B':
         case 'b':
              System.out.println(first - second);
              break;
         case 'C':
         case 'c':
              System.out.println(first * second);
              break;
         case 'D':
         case 'd':
              if (second == 0)
                   System.out.println("Cannot divide by zero.");
              else
                   System.out.println(first / second);
              break;
         default:
              System.out.println("Invalid operator choice.");
}The problem:
The program will compile and run. After entering in the two operands, the program displays the print lines in either the if or else branch, but then basically ignores the line "selection = console.readChar();" and moves straight to the switch statement. Since the user has not discerned which operator to use, the switch statement goes straight to default and returns "Invalid operator choice."
Any ideas?

Played around with it a bit more, changed a few things. Eventually it worked, too many small changes to be bothered to list them.

Similar Messages

  • Runtime error: Creating a simple resource in a CM repository

    Hi All,
         I am trying to create a simple Resource & a collection in a CM repository without properties.
         <b>The list of my imports is as follows:</b>
    import com.sapportals.htmlb.event.Event;
    import com.sapportals.htmlb.page.DynPage;
    import com.sapportals.htmlb.page.PageException;
    import com.sapportals.portal.htmlb.page.JSPDynPage;
    import com.sapportals.portal.htmlb.page.PageProcessorComponent;
    import com.sapportals.portal.prt.component.IPortalComponentProfile;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.wcm.repository.ICollection;
    import com.sapportals.wcm.repository.IResource;
    import com.sapportals.wcm.repository.IResourceContext;
    import com.sapportals.wcm.repository.ResourceContext;
    import com.sapportals.wcm.repository.ResourceFactory;
    import com.sapportals.wcm.util.uri.RID;
         <b>I have written the following code:</b>
         IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
         com.sapportals.portal.security.usermanagement.IUser user =
                   (com.sapportals.portal.security.usermanagement.IUser) request.getUser().getUser();
                   <b>/* This is as per KM - Java iView - User Authentication */</b>
         try {
              IResourceContext context = new ResourceContext(user);
              RID rid = RID.getRID("/documents/test");
              ICollection parent = (ICollection) ResourceFactory.getInstance().getResource(rid, context);
              IResource resource = parent.createResource("file", null, null);
               } catch (Exception e1) {
              // problem while retrieving the resource
         <b>I am getting a portal Runtime error. The following is its error log:</b>
    Exception ID:07:49_28/06/05_0002_3055650
    [EXCEPTION]
    #1#com.sapportals.portal.prt.runtime.PortalRuntimeException: PortalRuntimeException
         at com.sapportals.portal.prt.core.PortalRequestManager.handleRequestException(PortalRequestManager.java:921)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:803)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:232)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:153)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         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:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    <i><b>Caused by: java.lang.NoClassDefFoundError: com/sapportals/wcm/repository/IResourceContext</b></i>
         at com.satyam.dynpage.MyDynpage.getPage(MyDynpage.java:23)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.getPage(PageProcessorComponent.java:193)
         at com.sapportals.portal.htmlb.page.PageProcessorComponent.doOnNodeReady(PageProcessorComponent.java:62)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:388)
         at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:252)
         at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:369)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:642)
         ... 21 more
    I don't know why am i getting an exception.
    Please help me in this regard.
    Thanks in advance.
    <b>Regards,
    Sai Krishna.</b>

    You need to put a sharing reference for "com.sap.km.application" in your portalapp.xml. Check out the following portalapp.xml. You can either put
    "com.sap.km.application" or "knowledgemanagement".
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.km.application"/>
      </application-config>
      <components>
        <component name="links_tree">
          <component-config>
            <property name="ClassName" value="com.ust.kmtree.display"/>
            <property name="SecurityZone" value="com.ust.kmtree/high_safety"/>
          </component-config>
          <component-profile>
            <property name="path" value="/documents/prakash"/>
            <property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>

  • Simple transformation XML to ABAP, runtime error: CX_ST_REF_ACCESS

    Hi, all experts,
    I got a runtime error CX_ST_REF_ACCESS, while I tried to use Simple Transformation to transfer XML-String to ABAP internal table.
    Can anybody help me to fix the problem? Thanks very much. It's urgent.
    The code of transformation like this:
    <tt:root name="DATA"/>
      <tt:template>
        <node>
          <tt:deserialize>
            <tt:loop ref=".DATA" name="mdr_data">
              <tt:attribute name="type">
                <tt:value ref="$mdr_data.lf_type"/>
              </tt:attribute>
              <tt:attribute name="objid">
                <tt:value ref="$mdr_data.lf_objid"/>
              </tt:attribute>
              <tt:attribute name="name" value-ref="$mdr_data.lf_name"/>
              <tt:attribute name="short" value-ref="$mdr_data.lf_short"/>
            </tt:loop>
          </tt:deserialize>
        </node>
      </tt:template>
    The Data-structure in my Report:
    DATA: BEGIN OF ls_mdr_data,
            lf_type TYPE /ehr/ct_dt_bo_type,
            lf_objid TYPE realo,
            lf_name TYPE stext,
            lf_short TYPE short_d,
          END OF ls_mdr_data,
         lt_result_data like TABLE OF ls_mdr_data.
    If I call the transformation use the XML-String like:
    <node type="MDRFOLDER" objid="50016122" name="MDR Root Folder" short="MDR Root"/>
    I got the  error  CX_ST_REF_ACCESS:
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_ST_REF_ACCESS', was not  caught and
        therefore caused a runtime error.
        The reason for the exception is:
        The goal was to access variable "LF_TYPE". However, this access was not
        possible.

    Hi, all experts,
    I got a runtime error CX_ST_REF_ACCESS, while I tried to use Simple Transformation to transfer XML-String to ABAP internal table.
    Can anybody help me to fix the problem? Thanks very much. It's urgent.
    The code of transformation like this:
    <tt:root name="DATA"/>
      <tt:template>
        <node>
          <tt:deserialize>
            <tt:loop ref=".DATA" name="mdr_data">
              <tt:attribute name="type">
                <tt:value ref="$mdr_data.lf_type"/>
              </tt:attribute>
              <tt:attribute name="objid">
                <tt:value ref="$mdr_data.lf_objid"/>
              </tt:attribute>
              <tt:attribute name="name" value-ref="$mdr_data.lf_name"/>
              <tt:attribute name="short" value-ref="$mdr_data.lf_short"/>
            </tt:loop>
          </tt:deserialize>
        </node>
      </tt:template>
    The Data-structure in my Report:
    DATA: BEGIN OF ls_mdr_data,
            lf_type TYPE /ehr/ct_dt_bo_type,
            lf_objid TYPE realo,
            lf_name TYPE stext,
            lf_short TYPE short_d,
          END OF ls_mdr_data,
         lt_result_data like TABLE OF ls_mdr_data.
    If I call the transformation use the XML-String like:
    <node type="MDRFOLDER" objid="50016122" name="MDR Root Folder" short="MDR Root"/>
    I got the  error  CX_ST_REF_ACCESS:
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_ST_REF_ACCESS', was not  caught and
        therefore caused a runtime error.
        The reason for the exception is:
        The goal was to access variable "LF_TYPE". However, this access was not
        possible.

  • Getting Runtime error when using HP Simple Pass

    Getting Runtime Error and Firefox shutdown when using HP Simple Pass on new HP dm 1165

    Try HP support. <br />
    http://h30434.www3.hp.com/t5/Operating-systems-and-software/HP-Simple-Pass-Not-working-in-Firefox/m-p/348876

  • Getting runtime error while running HTTPS client

    hi
    i have return https client in java,which does not give error while compiling but its giving runtime error as shown below.
    java.security.NoSuchAlgorithmException: Algorithm RSA not available
    at javax.net.ssl.SunJSSE_b.a(DashoA6275)
    at javax.net.ssl.KeyManagerFactory.getInstance(DashoA6275)
    at SSLSocketClientWithClientAuth.main(SSLSocketClientWithClientAuth.java
    :65)
    java.lang.NullPointerException
    at SSLSocketClientWithClientAuth.main(SSLSocketClientWithClientAuth.java
    :78)
    and this is the code
    import java.net.*;
    import java.io.*;
    import javax.net.ssl.*;
    //import javax.security.cert.X509Certificate;
    import java.security.KeyStore;
    import java.security.*;
    * This example shows how to set up a key manager to do client
    * authentication if required by server.
    * This program assumes that the client is not inside a firewall.
    * The application can be modified to connect to a server outside
    * the firewall by following SSLSocketClientWithTunneling.java.
    public class SSLSocketClientWithClientAuth {
    public static void main(String[] args) throws Exception {
         //String host = null;
         //int port = -1;
         String host="10.11.25.251";
         int port = 443;
         SSLSocket socket;
         String path = null;
         for (int i = 0; i < args.length; i++)
         System.out.println(args);
         /*if (args.length < 3) {
         System.out.println(
              "USAGE: java SSLSocketClientWithClientAuth " +
              "host port requestedfilepath");
         System.exit(-1);
         /*try {
         host = args[0];
         port = Integer.parseInt(args[1]);
         //path = args[2];
         } catch (IllegalArgumentException e) {
         System.out.println("USAGE: java SSLSocketClientWithClientAuth " +
              "host port requestedfilepath");
         System.exit(-1);
         try {
         * Set up a key manager for client authentication
         * if asked by the server. Use the implementation's
         * default TrustStore and secureRandom routines.
         SSLSocketFactory factory = null;
         try {
              SSLContext ctx;
              KeyManagerFactory kmf;
              KeyStore ks;
              char[] keystorepass = "123456".toCharArray();
              char[] keypassword ="13051983".toCharArray();
              ctx = SSLContext.getInstance("TLS");
              //kmf = KeyManagerFactory.getInstance("RSA");
              ks = KeyStore.getInstance("JKS");
              ks.load(new FileInputStream("testkeys"), keystorepass);
    kmf = KeyManagerFactory.getInstance("RSA");
              kmf.init(ks, keypassword);
              ctx.init(kmf.getKeyManagers(), null, null);
              factory = ctx.getSocketFactory();
         } catch (Exception e) {
              //throw new IOException(e.getMessage());
         e.printStackTrace();
              socket = (SSLSocket)factory.createSocket(host, port);
              socket.startHandshake();
         * send http request
         * See SSLSocketClient.java for more information about why
         * there is a forced handshake here when using PrintWriters.
    PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));
         // out.println("GET " + path + " HTTP/1.1");
         out.println();
         out.flush();
         * Make sure there were no surprises
         if (out.checkError())
              System.out.println(
              "SSLSocketClient: java.io.PrintWriter error");
         /* read response */
         BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        socket.getInputStream()));
         String inputLine;
         while ((inputLine = in.readLine()) != null)
              System.out.println(inputLine);
         in.close();
         out.close();
    socket.close();
         } catch (Exception e) {
         e.printStackTrace();
    please help me out .
    regards,
    sunil

    Hi
    Please do a fetch from the database and then change the information in DRM console for the CSS parameter. This error I received only due to the CSS details in DRM 11.1.2.
    Thanks
    Rupak
    Mantra to Win | WinMantras.com | http://hyperion.winmantras.com

  • Runtime error in web dynpro java

    Hi friends,
    i have designed and run the project for adobe pdf form,compliation is ok...but it produce runtime error please tel me what is error how to rectify that...
    The error is
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"https://<name>.us:443/AdobeDocumentServices/Config?style=document"
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage(MimeHttpBinding.java:980)
        at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call(MimeHttpBinding.java:1430)
        at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:78)
        at com.sap.tc.webdynpro.adsproxy.ConfigBindingStub.rpData(ConfigBindingStub.java:95)
        at com.sap.tc.webdynpro.pdfobject.core.PDFObject.doSoapCall(PDFObject.java:385)
        ... 35 more
    Thanks in advance
    Manee R

    Hi Mani,
    To be able to use PDF forms in Web Dynproapplications:
    &#56256;&#56442;SAPNetWeaverDeveloper Studio(minimum SPS 11) is installed
    &#56256;&#56442;Adobe LiveCycleDesigner7.0 is installed
    &#56256;&#56442;Adobe Reader7.0.x is installed
    &#56256;&#56442;SAP NetWeaverWeb AS Javacompatible with the DevStudiois installed
    &#56256;&#56442;The Adobe Document Servicesare deployed and configured on the SAP J2EE Engine.
    &#56256;&#56442;The Active Component Framework(ACF) of the Interactive Forms integration is installed. (not mandatory)
    Check this.
    reg errors in webdynpro runtime
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2b6db1c4-0801-0010-faa5-ff4b4df55b45
    Regards,
    Mithu

  • Runtime error in print program of a smartform

    Hi,
    While trying to execute the print program of a smartform I am getting the following runtime error.
    The reason for the exception is:
    The call to the function module "/1BCDWB/SF00000288" is incorrect:
    In the function module interface, you can specify only
    fields of a specific type and length under "IT_BOOKINGS".
    Although the currently specified field
    "IT_BOOKINGS" is the correct type, its length is incorrect.
    In the form interface of the smartform under tables parameters I have declared like this.
    IT_BOOKINGS      LIKE      SBOOK
    IT_SCHEDULE      LIKE      SPFLI
    Can anyone tell me why do we get this error?
    Regards,
    Hema

    Hello,
    program to call smartform is really simple :
    -> function SSF_FUNCTION_MODULE_NAME give you the name of the function link to your sapscript.
    -> function WFMC_PREPARE_SMART_FORM help your to prepare your options to your smartform.
    -> function xxx  to call your smartform (find with the first function).
    Sometimes you have to play with values of NAST (for ex) to find the language (set in control_parameters) or for example if you want to print without display (when it ask you for print / print preview  and the name of the print device) .....
    Frédéric

  • Runtime Errors         ASSIGN_TYPE_CONFLICT.

    Hi,
    Can any one help me on the below error.
    Runtime Errors         ASSIGN_TYPE_CONFLICT.
    I am trying to load Master data text for 0CUSTOMER and the DTP fails.I am in BI 7.0 environment.
    Thanks
    Raj

    This is for 0CUSTOMER Text master data load.
    I did a transport from DEV to QAS.It worked fine in DEV but not in QAS.
    The transformation is pretty simple
    KUNNR(customer) -
    > 0CUSTOMER
    TXTMD(Name)       -
    > 0TXTMD(Medium Description)
    The info package works fine but the DTP fails.
    Runtime Errors         ASSIGN_TYPE_CONFLICT
    Date and Time          19.11.2007 13:48:33
    The detailed error message :
    Short text
         Type conflict with ASSIGN in program "GPCFUGFSZVTSH2ZBSQO537K7P2W".
    What happened?
         Error in the ABAP Application Program
         The current ABAP program "GPCFUGFSZVTSH2ZBSQO537K7P2W" had to be terminated
          because it has
         come across a statement that unfortunately cannot be executed.
    What can you do?
         Note down which actions and inputs caused the error.
         To process the problem further, contact you SAP system
         administrator.
         Using Transaction ST22 for ABAP Dump Analysis, you can look
         at and manage termination messages, and you can also
         keep them for a long time.
    Error analysis
         You attempted to assign a field to a typed field symbol,
         but the field does not have the required type.
    How to correct the error
         Adapt the type of the field symbol to the type of the field or use an
         untyped field symbol or use the "CASTING" addition.
         If the error occures in a non-modified SAP program, you may be able to
         find an interim solution in an SAP Note.
         If you have access to SAP Notes, carry out a search with the following
         keywords:
         "ASSIGN_TYPE_CONFLICT" " "
         "GPCFUGFSZVTSH2ZBSQO537K7P2W" or "GPCFUGFSZVTSH2ZBSQO537K7P2W"
         "EXECUTE"
         If you cannot solve the problem yourself and want to send an error
         notification to SAP, include the following information:
    1. The description of the current problem (short dump)
       To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
       Display the system log by calling transaction SM21.
       Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
       In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    Thanks
    Raj

  • B2B-50029:  B2B runtime error

    Hello All,
    In Order to better understand the channal concept in 11g , I tried creating a simple OutBound case wherein a file will be picked up from c:\temp2 folder and will be written to c:\temp1 folder.
    1. Created One Generic File 1.0 Listening Channal and selected 'Internal' checkbox. Folder name = c:\temp2
    2. Defined Custom--->1.0---->PurchaseOrder----->PurchaseOrderDef
    And in the PurchaseOrder (Document Type) tab, in the ebMS Section, I have filled the following values...
    Action Name : PurchaseOrder
    Service Name : PurchaseOrder
    From Role : OracleServices
    To Role: MarketInc
    And in the definition tab, i have given the following values...
    xsd : po.xsd
    Identification xpath expression : /*[local-name()='PurchaseOrder']
    3. For Trading Partner 'MarketInc' i have created a channel with Generic File 1.0 protocol. Folder name= c:\temp1
    4. Created an agreement for MarketInc, selected the File channel for MarketInc , selected the document definition and deployed the code. Sender is OracleServices and Receiver is MarketInc.
    When I kept a file OracleServices_1234.txt in c:\temp2, it is getting picked up but B2B report is not showing anything, neither this file has been written to c:\temp1. I also could not see any message in IP_OUT_QUEUE. I also tried with MarketInc_1234.txt withot luck.
    In 'Application Messgae' TAB of report section , I see record with Direction 'OUTBOUND' and State as 'MSG_COMPLETE'.
    I am seeign below error message in command prompt
    <Feb 13, 2012 6:40:04 PM IST> <Error> <oracle.soa.b2b.engine> <BEA-000000> <Erro
    r -: B2B-50029: B2B runtime error
    at oracle.tip.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:365)
    at oracle.tip.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:
    198)
    at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1
    415)
    at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:800)
    at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3785)
    at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3127)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecu
    tor.java:619)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:
    220)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:183)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Error -: B2B-50029: B2B runtime error
    at oracle.tip.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:365)
    at oracle.tip.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:
    198)
    at oracle.tip.b2b.engine.Engine.processOutgoingMessageImpl(Engine.java:1
    415)
    at oracle.tip.b2b.engine.Engine.processOutgoingMessage(Engine.java:800)
    at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3785)
    at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3127)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecu
    tor.java:619)
    at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:
    220)
    at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run
    (WorkManagerExecutor.java:120)
    at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManag
    er.java:183)
    at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    >
    Transaction rollback 094FB17613576D33C9A0000020C70000
    Please help me to fix and understand this.
    Thanks a lot in advance...
    Naveen

    When I kept a file OracleServices_1234.txt in c:\temp2, it is getting picked up but B2B report is not showing anything, neither this file has been written to c:\temp1. I also could not see any message in IP_OUT_QUEUE. I also tried with MarketInc_1234.txt withot luck.Filename is incorrect. By default Oracle B2B expects, filename in below format for outbound case -
    <RemoteTPname>_<DocType>_<DocTypeRevision>_<MsgType>_<MsgID>.<AnyFileExtn>
    So in your case, filename should be -
    MarketInc_PurchaseOrder_1.0_1_12345.xml
    You may refer -
    http://www.oracle.com/technetwork/middleware/b2b-integrations/learnmore/tnb2b11g002-326857.pdf
    Regards,
    Anuj

  • Runtime error during opening a process chain in rspcm

    Hello,
    i created a process chain just a simple one which loads Data from the DataSource into a DSO and then into a InfoCube.
    I executed this processchain without activiating my Initial-Request in the DSO.
    So i got a hanging Request there, i deleted all Requests from all objects in this processchain. Still had this hanging Request, so i deleted this one Request from the RSEQDONE. Now my processchain is working, but it takes very long to open it when i am in the RSPCM or i even get a runtime error.
    Any suggestions?

    Regarding RSPCM you better to check the oss notes which are shared by Michael devine.
    Coming to your issue, if you have loading huge data then better to increase your wait time of your info pack load.
    go to your info pack --> menu scheduler-->Time out time, increase as you need.
    if your doing full loads, please use proper selections and split your load as small chunks.
    increase packet sizes and parallel settings to speed up your load.

  • Can't find answer to Query Of Queries runtime error

    Not only I browsed this forum but also googled this problem but unfortunnately I have no luck in finding the answer.
    All I did was writing this simple query:
    <cfquery name="test" dbtype="query">
    select SSN,BirthDate from myquery where SSN <> '' OR BirthDate <> ''
    </cfquery>
    and I got this error:
    Query Of Queries runtime error.
    Comparison exception while executing <>.
    Unsupported Type Comparison Exception: The <> operator does not support comparison between the following types:
    Left hand side expression type = "DOUBLE".
    Right hand side expression type = "STRING".
    I tried the following and did not work either, still got the same error.
    <cfquery name="test" dbtype="query"> 
    select SSN,BirthDate from myquery
    where SSN <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/>  
    OR BirthDate <> <cfqueryparam cfsqltype="CF_SQL_VARCHAR" value=""/></cfquery>
    Has someone ever encountered the same problem and know how to solve it?

    HELP ! ! !  Going into testing soon. I need this to work to get correct report results ! ! ! !
    My issue seems similar to the one under discussion and the reply from lawhite01 caught my eye. Can you roll my issue into this discussion?
    This is a 2 parter. The second part is the QoQ part, but the 1st part has a line in the query that is similar to the QoQ one and it uses the same data. Part 1 also throws an error.
    PART # 1.
    I'm trying to use a query table created through QueryNew and then query it.
    I need multiple columns in the query table I create:
    <cfscript>
            tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
        </cfscript>
    Then I populate all the cells of the query table.
    Then I set up to use the created query table.
    I do this first:
        <cfquery name="qAltPostID" datasource="#at_datasource#">
             SELECT AltPoster, fk_Job_AnnounceNum
             from JOB_JPContacts
             Where AltJPContactType = 'AltPosterID'
             and AltPoster = '#session.IHSUID#'
             </cfquery>
    Then, in my first query using the created query, I expect to need to choose from multiple values, so I'm using this line in the query (this is NOT a QoQ query):
                and AnnounceNum IN (<cfqueryparam cfsqltype="CF_SQL_varchar" value="#ValueList(qAltPostID.fk_Job_AnnounceNum)#">)
    I've also tried:
                   and AnnounceNum IN (#ValueList(qAltPostID.fk_Job_AnnounceNum)#)   
    and:
                   and JOB_AnnounceNum IN
                    SELECT fk_Job_AnnounceNum
                    from JOB_JPContacts
                    Where AltJPContactType = 'AltPosterID'
                    and AltPoster = '#session.IHSUID#'
    ERROR is: one record should return. I get 0.
    PART # 2: Here's the QoQ part.
    I get the error:
    Query Of Queries runtime error.
    Comparison exception while executing IN.
    Unsupported Type Comparison Exception: The IN operator does not support comparison between the following types:
    Left hand side expression type = "LONG".
    Right hand side expression type = "STRING".
    A tutorial I found gave an example using only one column for this part of the fix:
         tot_AllCurrentDraftListing = QueryNew("AnnounceNum", "CF_SQL_VARCHAR")
    How would I set up the query with the datatype when I'm using multiple columns:
    <cfscript>
            tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
        </cfscript>
    I used this code after all the cells contained values and before running my QoQ query:
            <cfloop index="intID" from="1" to="#tot_AllCurrentDraftListing.recordcount#" step="1">
                <cfset tot_AllCurrentDraftListing["AnnounceNum"] [intID] = JavaCast("string", intID) />
            </cfloop>
              Is that correct?
    Thanks.
    Whoever can help me with this should be awarded extra points ! ! ! !

  • Persistent but Inconsistent iTunes Runtime Error Message...

    A while ago, I started getting a runtime error message when I'd open iTunes.
    "Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program: C:\Program Files\iTunes\iTunes.exe
    This application has requested the Runtime to terminate in an unusual way."
    The odd thing is sometimes it doesn't happen. Or, if it does, I found by opening the application a few times I'd be able to get back into iTunes without the error message popping up.
    I am running Windows XP with service pack 2 which is up to date.
    Additionally, I have Norton System Works which scans the hard drive once a week and cleans up files.
    Is there a simple and painless way I solve this problem?
    Can anyone help?

    followed the excellent instructions from turingtest2, london, uk message of 1-31-2014.  everything is working perfectly.  .

  • Portal Runtime Error - Access Denied

    Hi Gurus,
        I have developed a simple model using two BAPIs in the VC.
    Once I save and deplay the model, I am getting a message 'Deployed Successfully'. But when i click on the Run <My model> link, i am not getting the Portal screen with the layout i have designed. I am getting an empty screen.
    When i do a preview for my model in the portal, I get the following error:
    "  Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    Access denied (Object(s): portal_content/com.sap.gm.cnt/vcmodels/com.myComp.myProduct.2L.USER_LIST/com.myComp.myProduct.iviews/com.myComp.myProduct.2M.Userlist).
    Exception id: 10:04_23/12/06_0005_83777250
    See the details for the exception ID in the log file "
    can somebody tell me what am i doing wrong? Or what should I do to correct this?
    Regards,
    Ravi

    hi Ravi,
         Check whether you have connected to a portal server. In the right hand top corner you get a small button to connect to portal server. If it says it have deployed successfully then in the contentadmin->portalcontent->visualcomposer folder you can see your iView created there.
    Regards,
    Gopi

  • IDoc to File, SM58 shows error, ST22 short dump - Runtime error

    Hi friends,
    I am doing a simple IDoc to file scenario using the EVMSTA01 IDoc. My XI is running on client 100 and I am trying to send the IDoc from the client 200 on the same machine. I have completed the design and configuration steps required and also performed the required steps in Sender client (Sm59, we21 and BD54) and receiver client (Sm59, IDX1 and IDX2).
    When I tried sending the IDoc from WE19, status meesage says that, the IDoc has been successfully sent to the receiver but SM58 shows error "IDOC_ERROR_WORKFLOW_START_R". When I looked in to ST22, there was a short dump with the below message -
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          18.10.2008 23:24:29
    ShrtText
         The current application triggered a termination with a short dump.
    What happened?
         The current application program detected a situation which really
         should not occur. Therefore, a termination with a short dump was
         triggered on purpose by the key word MESSAGE (type X).
    Error analysis
         Short text of error message:
         Unable to read RFC destination WORKFLOW_LOCAL_200
         Technical information about the message:
         Message classe...... "SWF_RUN"
         Number.............. 617
         Variable 1.......... "WORKFLOW_LOCAL_200"
         Variable 2.......... "RFC_READ_DESTINATION_TYPE"
         Variable 3.......... "DESTINATION_NOT_EXIST"
         Variable 4.......... " "
         Variable 3.......... "DESTINATION_NOT_EXIST"
         Variable 4.......... " "
    Trigger Location of Runtime Error
         Program                                 CL_SWF_RUN_WIM_LOCAL==========CP
         Include                                 CL_SWF_RUN_WIM_LOCAL==========CM07Z
         Row                                     10
    Module type                             (METHOD)
    Module Name                             IF_SWF_RUN_WIM_UTL_INTERNAL~GET_SYSTEM_USER
    rce Code Extract
    e  SourceCde
    1 METHOD if_swf_run_wim_utl_internal~get_system_user .
    2   DATA: l_excp TYPE REF TO cx_swf_run_wim.
    3
    4   TRY.
    5       IF me->m_int_state-system_user IS INITIAL.
    6         me->m_int_state-system_user = cl_swf_run_workflow_properties=>get_rfc_destination_us
    7       ENDIF.
    8       re_user = me->m_int_state-system_user.
    9     CATCH cx_swf_run_wim INTO l_excp.
    >>       MESSAGE ID     l_excp->t100_msg-msgid
    11               TYPE   'X'
    12               NUMBER l_excp->t100_msg-msgno
    13               WITH   l_excp->t100_msg-msgv1 l_excp->t100_msg-msgv2
    14                      l_excp->t100_msg-msgv3 l_excp->t100_msg-msgv4.
    15   ENDTRY.
    16
    17 ENDMETHOD.                    "
    Any help would be appreciated..!!
    PS: Points would be assigned to all the helpful replys without fail

    Hi,
    See check for RFC destination and it is working as per your configuration or not , i mean , it is trying to locate remote server.. , so try to check in sm59, remote login and the respective result is going to your required client or not ??
    Also see the further errors while doing Idoc related scenarios..
    IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
    /people/sravya.talanki2/blog/2005/10/27/idoc146s-not-reaching-xi133-not-posted-in-the-receiver-sap-systems133 - Idoc’s not reaching XI…. Not posted in the receiver SAP
    idoc settings /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    idoc erros - http://help.sap.com/saphelp_nw04s/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm
    idoc mapping - /people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping
    IDoc erros troubleshooting - /people/raja.thangamani/blog/2007/07/19/troubleshooting-of-ale-process
    Regards
    Chilla

  • Dynamic table runtime error

    Hi everyone.
    We are working on upgrading from 4.6c to ECC 6.0 and I've run into a programming problem.
    I have a class that I use to convert any internal table based on a dictionary structure to a comma-separated text file.  For the most part, I use the dynamic table techniques that are easy to find here and in other code forums.
    In 6.0 I can not get it to work.  The value assignment of the input table to the field-symbol for the dynamic table causes a "OBJECTS_TABLES_NOT_COMPATIBLE" runtime error.  So far what I can find on this error specific to dynamic tables is related to BW and/or PI.  And I can't seem to find any alternative ways of dealing with dynamic tables.  In debug I can see that decimal number fields in the dynamic table have a different length than what's in the dictionary.
    Any help or ideas would be greately appreciated.
    Here is part of the method that converts the itab to an dynamic internal table, then creates a csv record for each record (I've hilighted the line that causes the dump) :
    Get the structure of the table.
      ref_table_des ?=
          cl_abap_typedescr=>describe_by_name( i_structure ).
      idetails[] = ref_table_des->components[].
      loop at idetails into xdetails.
        clear xfc.
        xfc-fieldname = xdetails-name .
        xfc-datatype = xdetails-type_kind.
        xfc-inttype = xdetails-type_kind.
        xfc-intlen = xdetails-length.
        xfc-decimals = xdetails-decimals.
        append xfc to ifc.
      endloop.
    Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
                   exporting
                      it_fieldcatalog = ifc
                   importing
                      ep_table        = dy_table.
      assign dy_table->* to <dyn_table>.
    Create dynamic work area and assign to FS
      create data dy_line like line of <dyn_table>.
      assign dy_line->* to <dyn_wa>.
    put data into the dynamic table
    <dyn_table> = it_data[].    "<<==the runtime error happens on this line
      loop at <dyn_table> into <dyn_wa>.
        clear: l_fdata, l_data.
        do.
          l_index = sy-index.
          assign component l_index
             of structure <dyn_wa> to <dyn_field>.
          if sy-subrc <> 0.
            exit.
          endif.
          read table ifc into xfc index l_index.
          if xfc-inttype = 'D'.
    *etc...
    Thank you,
    - George

    Hi,
    For Dynamic internal table.u check SM30 Transaction.ther is one simple way to find the code in debugging.
    if not possible i will send code which is relatd to dynamic table .
    *&      Form  get_table_structure
    *       Get structure of an SAP table
    form get_table_structure.
      data : it_tabdescr type abap_compdescr_tab,
             wa_tabdescr type abap_compdescr.
      data : ref_table_descr type ref to cl_abap_structdescr.
    * Return structure of the table.
      ref_table_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
      it_tabdescr[] = ref_table_descr->components[].
      loop at it_tabdescr into wa_tabdescr.
        clear wa_fieldcat.
        wa_fieldcat-fieldname = wa_tabdescr-name .
        wa_fieldcat-datatype  = wa_tabdescr-type_kind.
        wa_fieldcat-inttype   = wa_tabdescr-type_kind.
        wa_fieldcat-intlen    = wa_tabdescr-length.
        wa_fieldcat-decimals  = wa_tabdescr-decimals.
        append wa_fieldcat to it_fieldcat.
      endloop.
    endform.                    "get_table_structure
    *&      Form  create_itab_dynamically
    *   Create internal table dynamically
    form create_itab_dynamically.
    * Create dynamic internal table and assign to Field-Symbol
      call method cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = it_fieldcat
        IMPORTING
          ep_table        = dyn_table.
      assign dyn_table->* to <fs_table>.
    * Create dynamic work area and assign to Field Symbol
      create data dyn_line like line of <fs_table>.
      assign dyn_line->* to <fs_wa>.
    endform.                    "create_itab_dynamically
    Edited by: subrahmanyam24 on Nov 18, 2010 5:12 AM
    Edited by: subrahmanyam24 on Nov 18, 2010 5:15 AM

Maybe you are looking for