Simple Encryption Code help. Why this error?

Why does the implements Command pharse error this program out
I am a beginner here so please take it easy. I know it's probably a stupid mistake.
Also how would I limit the ASCII character conversion to be between 32 and 126.
public class Caesar {
implements Command //This line errors out the entire code
// Inv: true
private int shift;
public Caesar(int shift)
this.shift = shift;
public String encrypt(String text)
return shiftCharacterValues(text, shift);
public String decrypt(String text)
return shiftCharacterValues(text, -shift);
private String shiftCharacterValues(String text, int shift)
StringBuffer encrypted;
encrypted = new StringBuffer(text);
for (int i = 0; i < encrypted.length(); i++)
encrypted.setCharAt(i, (char)(encrypted.charAt(i) + shift));
return encrypted.toString();
public static void main(String[] args)
Caesar caesar;
String original, encrypted, decrypted;
caesar = new Caesar(7);
original = "hello"'
encrypted = caesar.encrypt(original);
decrypted = caesar.decrypt(encrypted);
System.out.println("Original = " + original);
System.out.println("Encrypted = " + encrypted);
System.out.println("Decrypted = " + decrypted);
}

might be?
public class Caesar {
  private int shift;
  public Caesar(int shift) {
    this.shift = shift;
  public String encrypt(String text) {
    return shiftCharacterValues(text, shift);
  public String decrypt(String text) {
    return shiftCharacterValues(text, -shift);
  private String shiftCharacterValues(String text, int shift) {
    StringBuffer encrypted;
    encrypted = new StringBuffer(text);
    for (int i = 0; i < encrypted.length(); i++)
         encrypted.setCharAt(i, (char)(encrypted.charAt(i) + shift > 126 ? (encrypted.charAt(i) + shift -95) : (encrypted.charAt(i)+shift < 32 ? (encrypted.charAt(i) + shift + 95) : encrypted.charAt(i) + shift)));
    return encrypted.toString();
  public static void main(String[] args) {
    Caesar caesar;
    String original, encrypted, decrypted;
    caesar = new Caesar(-7);
    original = " hello";
    encrypted = caesar.encrypt(original);
    decrypted = caesar.decrypt(encrypted);
    System.out.println("Original = " + original);
    System.out.println("Encrypted = " + encrypted);
    System.out.println("Decrypted = " + decrypted);
}

Similar Messages

  • HT204406 I have received an error message when i try to start iTunes Match, "We coulnd not complete your iTunes Store request.  An unknown error occurred (4001).  Can you help with this error?

    I subscribed to iTunes Match, but after the information is gathered about my iTunes library, i get an error message :  "We could not complete your iTunes Store request.  An unknown error occurred (4001).  Try again later." 
    Can you help fix this error?

    Yesterday I went to settings in my iPhone, Music, turned iTunes Match to "Off".  I then updated Match in iTunes and it worked!  I don't know why, but it worked.

  • Can anyone help with this error? ;At line 102 of file"C:/Program files (x86)/Macromedia/Dreamweaver

    Can anyone help with this error please?;At line 102 of file"C:/Program files (x86)/Macromedia/Dreamweaver 8/Configuration/Objects/Common/Images.js"; TypeError: cmdDOM.parentWindow.setFormItem is not a function

    If Dreamweaver shows a message saying "the following JavaScript error(s) occurred",  it's usually a sign of a corrupt cache file. The first thing you should always be to delete the file cache. If that doesn't work, delete your personal Configuration folder. Please go through the steps mentioned in thread Deleting a corrupted cache file.

  • Could not complete your request because it is not a valid photoshop document why this error coming p

    could not complete your request because it is not a valid photoshop document why this error coming photoshop cs5

    Thanks for clarifying. 
    My bad. I thought you had an even older Mac Pro1,1 like mine, which will not run Mountain Lion.  I should have payed closer attention to your RAM specs.

  • I am facing an issue " Denied connection per minute from one ip address" why this error occur and how to resolve it? is it really harmful for my TMG Server or not??

    I am facing an issue " Denied connection per minute from one ip address" why this error occur and how to resolve it? is it really harmful for my TMG Server or not??
    Error Description:
    The number of denied connections from the source IP address 10.0.0.X exceeded the configured limit. This may indicate that the host is infected or is attempting an attack on the Forefront TMG computer. 
    electrifying

    Hi,
    this may be a false/positive log record.
    First check the services and applications on the effecting machine (NETSTAT -ANO) to see which connections the machine has established or tries to establish.
    Check the machine against viruses and spyware.
    if you don't find any viruses / spyware or "mysterious" connections, create a connection exception limit in the flood mitigation settings on your TMG Server:
    http://www.isaserver.org/articles-tutorials/configuration-security/TMG-Firewall-Flood-Mitigation-Part1.html
    regards Marc Grote aka Jens Baier - www.it-training-grote.de - www.forefront-tmg.de - www.galileocomputing.de/3276?GPP=MarcGrote

  • Why this error display "Adobe Flash Player has stopped potentially unsafe operation"

    why this error display "Adobe Flash Player has stopped potentially unsafe operation"
    In message box following message display:
    The following local application on your computer or network: null
    is trying to communicate with this internet-enabled location : www.ajaxcdn.org

    I get the same message and I already have the latest version (20.0.1) installed. Any other suggestions? Please and thank you!

  • Hi there can you help with this error code Oxc5d1281

    I refilled the HP cartridges in my Photosmart C 7250 All-in-One and put them in and got this error.  I have D/C power,etc and it still comes up with this error code.  Now what?
    Cheers,
    British_eh

    Hi british_eh
    You could try resetting the printer, details here
    Note though that the reliability of refills tends not be as good as originals, links below FYI.....
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00853819&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    http://www.qualitylogic.com/2009HPinktest.pdf
    Kind Regards, Ciara
    Although I am an HP employee, I am speaking for myself and not for HP.
    Twitter: @Ciara_B_HP

  • Why this error on  import sentence in jsp ???

    my jsp import some bean(system's and myself).
              but wl60 report this error:
              probably occurred due to an error in /site/updatesite.jsp line 3:
              <%@ page import="site.sitemangage.*,stat.toolBeans.StringTools" %>
              so,the class StringTools can not be parse by server.
              but why??
              my code is:
              <%@ page language="java" contentType="text/html;charset=gb2312" %>
              <%@ page import="java.util.*"%>
              <%@ page import="site.sitemangage.*,stat.toolBeans.StringTools" %>
              please help me!!!
              thank you.
              

              Have you tried using two import statements ?
              <%@ page import="site.sitemangage.*" %>
              <%@ page import="stat.toolBeans.StringTools" %>
              "sharetop" <[email protected]> wrote:
              >my jsp import some bean(system's and myself).
              >but wl60 report this error:
              >
              >probably occurred due to an error in /site/updatesite.jsp
              >line 3:
              ><%@ page import="site.sitemangage.*,stat.toolBeans.StringTools"
              >%>
              >
              >so,the class StringTools can not be parse by server.
              >
              >but why??
              >
              >my code is:
              >
              ><%@ page language="java" contentType="text/html;charset=gb2312"
              >%>
              ><%@ page import="java.util.*"%>
              ><%@ page import="site.sitemangage.*,stat.toolBeans.StringTools"
              >%>
              >
              >please help me!!!
              >
              >thank you.
              >
              >
              

  • Why this Error comes "ORA-01461: can bind a LONG value only for insert into

    I'm using Oracle 9.2 with Weblogic 8 server. After Googling i got to resolve this issue "ORA-01461: can bind a LONG value only for insert into a LONG column" by adding : oracle.jdbc.RetainV9LongBindBehavior=true in server properties for the datasource.
    But why did this error come and after keeping the above property why did this error go away ?
    Can anyone help me on this.....

    You have an error in the code:
    1. you don't provide a value for 'what' - you have to tell Oracle what it should execute when it submits the job.
    And remember - with ISUBMIT the next_date parameter has datatype VARCHAR2 - SUBMIT uses datatype DATE. So make sure you provide a VARCHAR2 value and do not rely on implicit conversion.
    >
    PROCEDURE DBMS_JOB.ISUBMIT
    (job IN BINARY_INTEGER
    ,what IN VARCHAR2
    ,next_date IN VARCHAR2
    ,interval IN VARCHAR2 DEFAULT 'null'
    ,no_parse IN BOOLEAN DEFAULT FALSE);
    PROCEDURE DBMS_JOB.SUBMIT
    (job OUT BINARY_INTEGER
    ,what IN VARCHAR2
    ,next_date IN DATE DEFAULT SYSDATE
    ,interval IN VARCHAR2 DEFAULT 'null'
    ,no_parse IN BOOLEAN DEFAULT FALSE);

  • Does anyone know why this error message appears?.

    I have added some new fields within the BT111H_OPPT component, view 'Details', and they are visible in the BTADMINH context node when in the component browser.  I now need to perform some calculations based on the PROBABILITY field of the BTOPPORTH context node and place the value in one of the newly created fields in the BTADMINH context node. Therefore to me it would seem wise to place this code in the DO_PREPARE_OUTPUT method of the ZCL... controller class.,
    My code looks like so:
    * First, lets get the Probability value held in the BTOPPORTH context node
      lr_ent ?= me->typed_context->btopporth->collection_wrapper->get_current( ).
      IF lr_ent IS BOUND.
        lv_probability = lr_ent->get_property_as_string( iv_attr_name = 'PROBABILITY' ).
      ENDIF.
    * Now get the Potential volume field from the BTADMINH context node and calculate value
      lr_ent ?= me->typed_context->btadminh->collection_wrapper->get_current( ).
      IF lr_ent IS BOUND.
        lv_potvol = lr_ent->get_property_as_string( iv_attr_name = 'EXT.ZZAFL00001X' ).
    The eror message given is:
    CX_CRM_CIC_PARAMETER_ERROR - Entry parameter of method CL_CRM_BOL_ENTITY->GET_PROPERTY contains value EXT.ZZAFL00001X, which is not allowed
    The line pointed to (19)  is actually '  lr_ent ?= me->typed_context->btadminh->collection_wrapper->get_current( ).' .
    Can anyone see what might be causing this issue, because to me it looks okay.
    I added the 'EXT.' to 'ZZAFL00001X' to see if that would make a difference, which it did not and the same error message appears, which is odd. 
    My sanity is in your hands.
    Jason

    I have found the solution at long last!!!.
    When creating the new field(s) using the AET we had been accepting the default field names, like ZZALF0000nn, which we had always done in the past. However this is the first time we've had to manipulate their data via the component workbench. Anyway, as suggested by previous posts I created new fields in the AET (in expert mode) but this time gave the fields my own names, like ZZPOTENTIALVOL, then changed the code in the DO_PREPARE_OUTPUT to use these new fields/attributes and that's it, it all then worked fine. How petty is that?.
    By the way, I removed/deleted the old fields in the AET tool by clicking on the Bin icon and they are now marked as deleted, but there was a message saying that I needed to manual delete these fields. I've done this before but can't recall the transaction that is needed, can anyone help in this matter?.
    Many thanks to all.
    Jason

  • Need urgent help on this error "oracle.jbo.AttrValException: JBO-27019"

    This is regarding Print Quote eror.
    "oracle.jbo.AttrValException: JBO-27019"
    I am facing the above error .(I am new to OA Framework) whenever i tried to add a new column to the select query 'Comp_info' .
    My development has come to an Halt really :(
    The code is :
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!-- $Header: LinesVO.xml 115.3 2003/12/30 07:01:46 asetti noship $-->
    <ViewObject
    Name="LinesVO"
    BindingStyle="Oracle"
    CustomQuery="true"
    RowClass="oracle.apps.aso.print.server.LinesVORowImpl"
    ComponentClass="oracle.apps.aso.print.server.LinesVOImpl"
    MsgBundleClass="oracle.jbo.common.JboResourceBundle"
    FetchMode="FETCH_AS_NEEDED"
    Passivate="None"
    UseGlueCode="false" >
    <SQLQuery><![CDATA[
    SELECT
    qte.ui_line_number line_number
    ,qte.padded_concatenated_segments item_number
    ,qte.item_description item_description
    ,qte.uom_code Order_Quantity_Uom
    ,DECODE(qte.line_category_code, 'RETURN', qte.quantity*(-1), qte.quantity) Ordered_Quantity
    ,qte.line_category_code
    ,qte.service_ref_line_id
    ,UPPER(qte.service_ref_type_code) srv_ref_type_code
    ,DECODE(qte.line_category_code, 'RETURN', qte.line_list_price*(-1), qte.line_list_price) unit_list_price
    ,DECODE(qte.line_category_code, 'RETURN', qte.line_adjusted_amount*(-1), qte.line_adjusted_amount) line_adj_price
    ,DECODE(qte.line_category_code, 'RETURN', qte.line_quote_price*(-1), qte.line_quote_price) unit_selling_price
    ,DECODE(qte.line_category_code, 'RETURN', qte.extended_list_price*(-1), qte.extended_list_price) line_total_list_price
    ,DECODE(qte.line_category_code, 'RETURN', qte.extended_adjusted_amount*(-1), qte.extended_adjusted_amount) line_total_adj_amt
    ,DECODE(qte.line_category_code, 'RETURN', qte.extended_selling_price*(-1), qte.extended_selling_price) line_total
    ,line_number old_line_number
    ,to_char(qte.start_date_active,nvl(FND_PROFILE.VALUE('ICX_DATE_FORMAT_MASK'), 'DD-MON-RRRR')) start_date_active
    ,to_char(qte.end_date_active,nvl(FND_PROFILE.VALUE('ICX_DATE_FORMAT_MASK'), 'DD-MON-RRRR')) end_date_active
    ,qte.service_duration
    ,qte.service_period
    ,qte.item_type_code
    ,decode(qte.item_type_code, 'MDL', NVL(qte.complete_configuration_flag, 'N'), 'Z') Model_Status
    ,qte.quote_line_id qlid
    ,qte.quote_header_id
    ,DECODE(qte.line_category_code,
    'RETURN',
    (select qte.quantity * (nvl(sum(decode(apav.applied_flag,'Y',decode(apav.charge_type_code,NULL,0,apav.adjusted_amount),0) ), 0))
    FROM aso_price_adjustments_v apav
    where qte.quote_line_id = apav.quote_line_id )*(-1),
    (select qte.quantity * (nvl(sum(decode(apav.applied_flag,'Y',decode(apav.charge_type_code,NULL,0,apav.adjusted_amount),0) ), 0))
    FROM aso_price_adjustments_v apav
    where qte.quote_line_id = apav.quote_line_id )) line_charges
    ,DECODE(qte.line_category_code,
    'RETURN',
    (decode(qte.item_type_code,
    'MDL',
    decode (qte.config_header_id,
    NULL,
    qte.extended_selling_price,
    (select sum(QUOTE_LINES.LINE_QUOTE_PRICE * QUOTE_LINES.QUANTITY)
    from ASO_QUOTE_LINES_ALL QUOTE_LINES,
    ASO_QUOTE_LINE_DETAILS QUOTE_LINE_DETAILS
    where quote_line_details.config_header_id=qte.config_header_id
    and quote_line_details.quote_line_id =quote_lines.quote_line_id)),
    qte.extended_selling_price))*(-1),
    (decode(qte.item_type_code,
    'MDL',
    decode (qte.config_header_id,
    NULL,
    qte.extended_selling_price,
    (select sum(QUOTE_LINES.LINE_QUOTE_PRICE * QUOTE_LINES.QUANTITY)
    from ASO_QUOTE_LINES_ALL QUOTE_LINES,
    ASO_QUOTE_LINE_DETAILS QUOTE_LINE_DETAILS
    where quote_line_details.config_header_id=qte.config_header_id
    and quote_line_details.quote_line_id =quote_lines.quote_line_id)),
    qte.extended_selling_price))) model_total
    ,qte.attribute3 Comp_Info
    FROM
    aso_pvt_quote_lines_bali_v qte
    ]]></SQLQuery>
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="9.0.3.11.21" />
    <Attr Name="_CodeGenFlagNew" Value="36" />
    </DesignTime>
    <ViewAttribute
    Name="LineNumber"
    IsQueriable="false"
    IsPersistent="false"
    Precision="4000"
    Type="java.lang.String"
    AliasName="UI_LINE_NUMBER"
    ColumnType="VARCHAR2"
    Expression="UI_LINE_NUMBER"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="4000" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="ItemNumber"
    IsQueriable="false"
    IsPersistent="false"
    Precision="30"
    Type="java.lang.String"
    AliasName="LINE_SEGMENT"
    ColumnType="VARCHAR2"
    Expression="LINE_SEGMENT"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="comp_product"
    IsQueriable="false"
    IsPersistent="false"
    Precision="30"
    Type="java.lang.String"
    AliasName="comp_product"
    ColumnType="VARCHAR2"
    Expression="comp_product"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="ItemDescription"
    IsQueriable="false"
    IsPersistent="false"
    Precision="240"
    Type="java.lang.String"
    AliasName="LINE_DESC"
    ColumnType="VARCHAR2"
    Expression="LINE_DESC"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="240" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="OrderQuantityUom"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="3"
    Type="java.lang.String"
    AliasName="LINE_UOM_CODE"
    ColumnType="VARCHAR2"
    Expression="LINE_UOM_CODE"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="3" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="OrderedQuantity"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="255"
    Type="oracle.jbo.domain.Number"
    AliasName="LINE_QTY"
    ColumnType="VARCHAR2"
    Expression="LINE_QTY"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="LineCategoryCode"
    IsQueriable="false"
    IsPersistent="false"
    Precision="30"
    Type="java.lang.String"
    AliasName="LINE_CATEGORY_CODE"
    ColumnType="VARCHAR2"
    Expression="LINE_CATEGORY_CODE"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="ServiceRefLineId"
    IsQueriable="false"
    IsPersistent="false"
    Type="oracle.jbo.domain.Number"
    AliasName="SERVICE_REF_LINE_ID"
    ColumnType="VARCHAR2"
    Expression="SERVICE_REF_LINE_ID"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="SrvRefTypeCode"
    IsQueriable="false"
    IsPersistent="false"
    Precision="30"
    Type="java.lang.String"
    AliasName="SRV_REF_TYPE_CODE"
    ColumnType="VARCHAR2"
    Expression="SRV_REF_TYPE_CODE"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="UnitListPrice"
    IsQueriable="false"
    IsPersistent="false"
    Precision="255"
    Type="oracle.jbo.domain.Number"
    AliasName="LINELIST_PRICE"
    ColumnType="VARCHAR2"
    Expression="LINELIST_PRICE"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="LineAdjPrice"
    IsQueriable="false"
    IsPersistent="false"
    Type="oracle.jbo.domain.Number"
    AliasName="LINE_ADJ_PRICE"
    ColumnType="VARCHAR2"
    Expression="LINE_ADJ_PRICE"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="UnitSellingPrice"
    IsQueriable="false"
    IsPersistent="false"
    Precision="255"
    Type="oracle.jbo.domain.Number"
    AliasName="LINE_NET_PRICE"
    ColumnType="VARCHAR2"
    Expression="LINE_NET_PRICE"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="LineTotalListPrice"
    IsQueriable="false"
    IsPersistent="false"
    Type="oracle.jbo.domain.Number"
    AliasName="LINE_TOTAL_LIST_PRICE"
    ColumnType="VARCHAR2"
    Expression="LINE_TOTAL_LIST_PRICE"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="LineTotalAdjAmt"
    IsQueriable="false"
    IsPersistent="false"
    Type="oracle.jbo.domain.Number"
    AliasName="LINE_TOTAL_ADJ_AMT"
    ColumnType="VARCHAR2"
    Expression="LINE_TOTAL_ADJ_AMT"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="LineTotal"
    IsQueriable="false"
    IsPersistent="false"
    Precision="255"
    Type="oracle.jbo.domain.Number"
    AliasName="LINE_TOTAL_NET_PRICE"
    ColumnType="VARCHAR2"
    Expression="LINE_TOTAL_NET_PRICE"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="OldLineNumber"
    IsQueriable="false"
    IsPersistent="false"
    Precision="255"
    Type="oracle.jbo.domain.Number"
    AliasName="LINE_NUMBER"
    ColumnType="VARCHAR2"
    Expression="LINE_NUMBER"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="StartDateActive"
    IsQueriable="false"
    IsPersistent="false"
    DiscrColumn="true"
    Precision="255"
    Type="java.lang.String"
    AliasName="START_DATE_ACTIVE"
    ColumnType="VARCHAR2"
    Expression="START_DATE_ACTIVE"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="7" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="EndDateActive"
    IsQueriable="false"
    IsPersistent="false"
    Precision="255"
    Type="java.lang.String"
    AliasName="END_DATE_ACTIVE"
    ColumnType="VARCHAR2"
    Expression="END_DATE_ACTIVE"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="7" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="ServiceDuration"
    IsQueriable="false"
    IsPersistent="false"
    Type="oracle.jbo.domain.Number"
    AliasName="SERVICE_DURATION"
    ColumnType="VARCHAR2"
    Expression="SERVICE_DURATION"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="ServicePeriod"
    IsQueriable="false"
    IsPersistent="false"
    Precision="3"
    Type="java.lang.String"
    AliasName="SERVICE_PERIOD"
    ColumnType="VARCHAR2"
    Expression="SERVICE_PERIOD"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="3" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="ItemTypeCode"
    IsQueriable="false"
    IsPersistent="false"
    Precision="30"
    Type="java.lang.String"
    AliasName="ITEM_TYPE_CODE"
    ColumnType="VARCHAR2"
    Expression="ITEM_TYPE_CODE"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="ModelStatus"
    IsUpdateable="false"
    IsQueriable="false"
    IsPersistent="false"
    Precision="1"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    Expression="ModelStatus"
    SQLType="VARCHAR" >
    </ViewAttribute>
    <ViewAttribute
    Name="Qlid"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="1"
    Type="oracle.jbo.domain.Number"
    AliasName="QLID"
    ColumnType="VARCHAR2"
    Expression="QLID"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="QuoteHeaderId"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Type="oracle.jbo.domain.Number"
    AliasName="QUOTE_HEADER_ID"
    ColumnType="VARCHAR2"
    Expression="QUOTE_HEADER_ID"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="LineCharges"
    IsQueriable="false"
    IsPersistent="false"
    Precision="255"
    Type="oracle.jbo.domain.Number"
    AliasName="LINE_TOTAL_CHARGES"
    ColumnType="VARCHAR2"
    Expression="LINE_TOTAL_CHARGES"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="ModelTotal"
    IsQueriable="false"
    IsPersistent="false"
    Precision="255"
    Type="oracle.jbo.domain.Number"
    AliasName="MODEL_TOTAL"
    ColumnType="VARCHAR2"
    Expression="MODEL_TOTAL"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="Comp_Info"
    IsQueriable="false"
    IsPersistent="false"
    Precision="30"
    Type="java.lang.String"
    AliasName="Comp_Info"
    ColumnType="VARCHAR2"
    Expression="Comp_Info"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30" />
    </DesignTime>
    </ViewAttribute>
    <ViewLinkAccessor
    Name="ServiceToOrderLineVO"
    ViewLink="oracle.apps.aso.print.server.ServiceToOrderLineVL"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    <ViewLinkAccessor
    Name="ServiceToInstBaseVO"
    ViewLink="oracle.apps.aso.print.server.ServiceToInstBaseVL"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    <ViewLinkAccessor
    Name="QuoteLineChargesVO"
    ViewLink="oracle.apps.aso.print.server.QuoteLineChargesVL"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    <ViewLinkAccessor
    Name="QuoteLineTaxesVO"
    ViewLink="oracle.apps.aso.print.server.QuoteLineTaxesVL"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    <ViewLinkAccessor
    Name="LineTemplateVO"
    ViewLink="oracle.apps.aso.print.server.LineTemplateVL"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    <ViewLinkAccessor
    Name="LineAttachmentVO"
    ViewLink="oracle.apps.aso.print.server.LineAttachmentVL"
    Type="oracle.jbo.RowIterator"
    IsUpdateable="false" >
    </ViewLinkAccessor>
    </ViewObject>
    It gives me an error as "oracle.jbo.AttrValException: JBO-27019: Get method for attribute "comp_info" in LinesVO_HeaderLinesVL_LinesVO could not be resolved.
    I have added the getter and setter as well in the RowImpl.java file but still its givn this error.
    I need to add many more columns after this error is solved.
    I tried all permutation n combination but all in vain.
    Any help on this would be highly appreciated.
    Thanks,
    Ajit

    Ajit,
    Writing getter/setter methods manually is not a good idea, when jdev provides u that facility. Moreover in ur case i m getting a feeling as if ur VO mappings are corrupted. Can u try one thing ,assuming this is a custom VO,Delete the VO from the project and delete all related files in myclasses and my projects.Recreate the VO with all the attributes and try if same error is coming.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help Regarding this error message

    Hi Gurus,
    I had this error this morning saying that"State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 16001] ODBC error state: 22003 code: 248 message: [Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of the varchar value '1101000002736342' overflowed an int column. Maximum integer value exceeded.. [nQSError: 16015] SQL statement execution failed. (HY000)
    The logic is that I need to create a new logical column in fact named by " indicator1" which has this logical formula
    CASE WHEN "fact"."store indicator" > 0 THEN 'Y' ELSE 'N' END
    The column name "store indicator" which is of varchar type.
    How to solve this issue.I had even tried to to use cast function changing the data type to varchar(20) but no help with that....
    help me gurus...

    user13001889 wrote:
    Hi Gurus,
    I had this error this morning saying that"State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 16001] ODBC error state: 22003 code: 248 message: [Microsoft][ODBC SQL Server Driver][SQL Server]The conversion of the varchar value '1101000002736342' overflowed an int column. Maximum integer value exceeded.. [nQSError: 16015] SQL statement execution failed. (HY000)
    The logic is that I need to create a new logical column in fact named by " indicator1" which has this logical formula
    CASE WHEN "fact"."store indicator" > 0 THEN 'Y' ELSE 'N' END
    The column name "store indicator" which is of varchar type.
    How to solve this issue.I had even tried to to use cast function changing the data type to varchar(20) but no help with that....
    help me gurus...If the logic you are trying to achieve is to simply have a column with a "Y" if the fact."store indicator" is "greater than 0" on an integer column, than what you imply is one of several things:
    1) Some values are NULL, or...
    2) Some values are 0 (or less than zero, though this is highly doubtful and would be weird to have a negative sign)
    3) Both 1) and 2)
    So really, all you care about is whether the value in the column is +not+ NULL or 0.
    The ASCII code for NULL is 00 and the ASCII code for 0 is 48, so try writing this:
    CASE WHEN ASCII(fact."store indicator") IN (00, 48) THEN 'N' ELSE 'Y' END
    This avoids trying to perform an "integer" function on a huge number.

  • Can anyone help with this error message (The operation couldn't be completed. (NSURLErrorDomain error -(1012.) (-1012)

    The most recent update I have in the App Store is an OSX update but I receive this error message when I select the update button. (The operation couldn’t be completed. NSURLErrorDomain error -1012. -1012.  Can anyone tell me why or how to delete this update in the que from the app center and try again? Any help would be greatly appreciated.  Thanks.

    http://www.apple.com/support/mac/app-store/contact.html?form=account

  • Why this error message with certain texts?

    Why do i get this error message only with certain texts?  I have entered only a ten digit number, have deleted conversations and resent messages and still?

    Oh, the error message is "
    error invalid number please re-send using valid 10 digit mobile number or valid short code."

  • Help Resolve this ERROR please!!!!!!

    I have had an iweb site, however today I have started to receive this error message when I try and view images in the photo gallery. The rest of the site works fine the blog etc. The Error message is
    SORRY
    but we can't find the iWeb page you've requested. It's possible that:
    · The address was entered incorrectly. Check your spelling and try again.
    · The .Mac member of this name has either created a page and removed it or has never published an iWeb site.
    · There is no .Mac member of this name. If you'd like this member name for yourself, sign up for a .Mac account right now and have your own iWeb site in minutes
    Can anyone help me resolve this issue? Is it a fault at Apples end or is it on my system?
    Regards
    madie

    For the past couple of weeks, I've had a similar problem. I've been trying to add a photo page to my iweb site (I already have several photo pages in existence on the site). When I try to publish the new photo page, it gets to the point where it says "publishing will now take place in the background, etc.", but that step never finishes. The folders revert to red, and it looks as though nothing has published. But, when I check the site from outside, the pages with the new link to the new photo page are published, but the link themselves don't work and I get that same message about "Sorry, but we can't find the iweb page......blah, blah, blah. Can anyone help? Why would the existing pages update with the new link, but the actual photo page doesn't seem to publish. Help!

Maybe you are looking for