(Error due to database column of type Number)oracle.jbo.PiggybackException: JBO-28300

Hi,
I have deployed a BC4J component as an EJB on OC4J using JDeveloper. The database column of the table is of type Number, because of which I am encountering the eroor below. The application works fine if the database type is varchar or something else.
I even tried changing the attribute of entity object to an integer, but this doesn't work.
below is the error:
oracle.jbo.PiggybackException: JBO-28300: Piggyback read error
void oracle.jbo.JboException.<init>(java.lang.String)
void oracle.jbo.PiggybackException.<init>(java.lang.String)
void oracle.jbo.common.PiggybackInput.<init>(oracle.jbo.common.ObjectMarshaller, byte[])
void oracle.jbo.client.remote.ApplicationModuleImpl.processPiggyback(byte[])
void oracle.jbo.client.remote.ApplicationModuleImpl.executeQuery(int, boolean)
void oracle.jbo.client.remote.RowSetImpl.executeQuery()
void oracle.jbo.client.remote.ViewUsageImpl.executeQuery()
void oracle.jbo.uicli.binding.JUIteratorBinding.executeQueryIfNeeded()
void oracle.jbo.uicli.binding.JUFormBinding.executeIfNeeded()
void oracle.jbo.uicli.jui.JUPanelBinding.executeIfNeeded()
void fast.track.LYPanelUsermasterView.<init>(boolean)
void fast.track.LYPanelUsermasterView.<init>()
void fast.track.AppletUsermasterView.init()
void fast.track.AppletUsermasterView.main(java.lang.String[])
## Detail 0 ##
java.io.InvalidClassException: oracle.jbo.domain.Number; Local class not compatible: stream classdesc serialVersionUID=-7730629917230930297 local class serialVersionUID=-6507359405709672486
void java.io.ObjectStreamClass.validateLocalClass(java.lang.Class)
void java.io.ObjectStreamClass.setClass(java.lang.Class)
java.io.ObjectStreamClass java.io.ObjectInputStream.inputClassDescriptor()
java.lang.Object java.io.ObjectInputStream.readObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject()
int java.io.ObjectInputStream.inputObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject()
void oracle.jbo.common.PiggybackRowEntry.readObject(java.io.ObjectInputStream)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
boolean java.io.ObjectInputStream.invokeObjectReader(java.lang.Object)
int java.io.ObjectInputStream.inputObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject(boolean)
java.lang.Object java.io.ObjectInputStream.readObject()
void oracle.jbo.common.PiggybackInput.<init>(oracle.jbo.common.ObjectMarshaller, byte[])
void oracle.jbo.client.remote.ApplicationModuleImpl.processPiggyback(byte[])
void oracle.jbo.client.remote.ApplicationModuleImpl.executeQuery(int, boolean)
void oracle.jbo.client.remote.RowSetImpl.executeQuery()
void oracle.jbo.client.remote.ViewUsageImpl.executeQuery()
void oracle.jbo.uicli.binding.JUIteratorBinding.executeQueryIfNeeded()
void oracle.jbo.uicli.binding.JUFormBinding.executeIfNeeded()
void oracle.jbo.uicli.jui.JUPanelBinding.executeIfNeeded()
void fast.track.LYPanelUsermasterView.<init>(boolean)
void fast.track.LYPanelUsermasterView.<init>()
void fast.track.AppletUsermasterView.init()
void fast.track.AppletUsermasterView.main(java.lang.String[])
Please help me out
Thanks in advance
null

Hi Raman,
This error is normally occured when there is a attribute mismatch.When you added new field in OAF page, associate this field to the new view attribute of the extended VO. It is always recommended to add this new attribute at the end
Thanks
Sandeep

Similar Messages

  • [Eclipse/CR9] Unexpected error due to database connector

    Hi everyone,
    I'm currently facing a hard problem:
    I have to fetch a report (designed with CR 9) having an .xls file as datasource.
    While running the JSP, I continue getting this error (translated, as I receive it in French!! -don't know why):
    Unexpected error due to database connector (Erreur inattendue liée au connecteur de base de données)
    Any clue?
    Can I update the DatabaseController in some way to handle the .xls file as a datasource? and how, in that case?
    Many thanks,
    Gérald Van Huffelen

    Filed bug 5557838.
    Thanks for reporting..
    Sainath

  • PL/SQL Object Type - Java oracle.jbo.domain

    PL/SQL Object Type <-> Java oracle.jbo.domain
    can anybody help me, getting my domains to work?
    Following scenario:
    in pl/sql we have an object type called MULTI_LANGUAGE. This type is used for storing multilingual texts as nested table in one(!) column.
    So the object MULTI_LANGUAGE contains a member variable LANGUAGE_COLLECTION of type LANGUAGE_TABLE, which itself is a nested table of objects
    of the type LANGUAGE_FIELD (this again is only a language id and the corresponding content)
    Also the methods setContent(langID, langContent) and getContent(langId) are defined on Object MULTI_LANGUAGE.
    For example: Table having primary key, 2 other columns and one column of object type MULTI_LANGAGE (=nested table of objects)
    |ID|Column1|Column2|  multilingual Column  |
    |--|---------------------------------------|
    |  |       |       |  -------------------  |
    |  |       |       | | 1 | hello         | |
    |  |       |       |  -------------------  |
    |1 | foo   | bar   | | 2 | hallo         | |   <- Row Nr 1
    |  |       |       |  -------------------  |
    |  |       |       | | 3 | ola           | |
    |  |       |       |  -------------------  |
    |--|-------|-------|-----------------------|
    |  |       |       |  -------------------  |
    |  |       |       | | 1 | world         | |
    |  |       |       |  -------------------  |
    |2 | abc   | def   | | 2 | welt          | |   <- Row Nr 2
    |  |       |       |  -------------------  |
    |  |       |       | | 3 | ???  ;-)      | |
    |  |       |       |  -------------------  |
    |--|-------|-------|-----------------------|Now i've tried to modell this structure as an oracle.jbo.domain.
    class MultiLanguage extends Struct having this StructureDef:
    attrs[(0)] = new DomainAttributeDef("LanguageColl", "LANGUAGE_COLL", 0, oracle.jbo.domain.Array.class, 2003, "ARRAY", -127, 0, false, "campusonlinepkg.common.LanguageField");
    and
    class LanguageField extends Struct having this StructureDef:
    attrs[(0)] = new DomainAttributeDef("Id", "ID", 0, oracle.jbo.domain.Number.class, 2, "NUMERIC", -127, 0, false);
    attrs[(1)] = new DomainAttributeDef("Content", "CONTENT", 1, java.lang.String.class, 12, "VARCHAR", -127, 4000, false);
    Is there anything wrong with this StructureDef?
    When running the BC-Browser with -Djbo.debugoutput=console -Djbo.jdbc.driver.verbose=true parameters I get suspect warnings when browsing the records
    [196] Executing FAULT-IN...SELECT NR, NAME FROM B_THESAURI BThesauri WHERE NR=:1
    [197] SQLException: SQLState(null) vendor code(17074)
    [198] java.sql.SQLException: Ungültiges Namensmuster: XMLTEST.null
    ...snip: detail of stack...
    [240] SQLException: SQLState(null) vendor code(17060)
    [241] java.sql.SQLException: Deskriptor konnte nicht erstellt werden: Unable to resolve type "null"
    ...snip: detail of stack...
    [280] Warning:No element type set on this array. Assuming java.lang.Object.
    (XMLTEST is the name of the schema)
    Seems as if the framework can't read the TypeDescriptor or does not know which descriptor to read (XMLTEST.null??)
    Do I have to implement my own JboTypeMap?
    Please help, I'm stuck.
    Thanks in advance, Christian

    Thanks for your suggestion, but it seems to me as if there is one level missing.
    in pl/sql I have following structure:
    Struct MULTI_LANGUAGE (Object type) - outermost
      Array LANGUAGE_TABLE (nested table type)
        Struct LANGUAGE_FIELD (Object type simple) - innermostthe reason why i had to wrap another struct around the array was because it is not possible to define methods on a nested table. this is only possible on objects.
    on the outermost object type (which holds the array of language fields) I needed to define following 2 methods for direct access:
    getContent (langId in number) returns varchar2
    setContent (langId in number, langContent in varchar2)
    I would like to rebuild the same structure in java, because newly written java code should live in perfect harmony with legacy pl/sql code ;-)
    Both applications (Java and pl/sql) have to access the same data as long as migration to java goes on.
    Is this nested structure too much for a Domain?
    Any other suggestions?
    Thanks again, Christian

  • Problem with getLong for a column of type NUMBER

    When ever I am calling getLong on a column defined as NUMBER in the database, I get this error message. The number I am retreving is something like '320000000010'..
    What could be the problem? Has somebody encountered a
    similar problem?
    The database is 8.1.7.4 and the JDBC driver is a thin driver.
    java.lang.ArrayIndexOutOfBoundsException
    at oracle.sql.NUMBER._fromLnxFmt(NUMBER.java:3181)
    at oracle.sql.LnxLibThin.lnxsni(LnxLibThin.java:6571)
    at oracle.sql.NUMBER.toLong(NUMBER.java:373)
    at oracle.sql.NUMBER.longValue(NUMBER.java:2002)
    at oracle.jdbc.driver.ScrollableResultSet.getLong(ScrollableResultSet.java:807)
    at oracle.jdbc.driver.UpdatableResultSet.getLong(UpdatableResultSet.java:458)
    Thanks
    Ranga

    I had this problem after migrating to JDeveloper 10.1.3. Problem was with inconsistent DB column types. In our case, the DB column was CHAR containing only numbers, but VO defined it as NUMBER. This caused no problem in 9.0.3 we used before.
       <ViewAttribute
          Name="ParentFlagNew"
          IsPersistent="false"
          Precision="1"
          Type="oracle.jbo.domain.Number"
          ColumnType="NUMBER"
          AliasName="PARENT_FLAG_NEW"
          Expression="PARENT_FLAG_NEW"
          SQLType="NUMERIC" >
          <Properties>
             <Property Name ="DISPLAY_LIST" Value ="1=Yes,0=No" />
             <Property Name ="DISPLAY_LIST_sk" Value ="1=Áno,0=Nie" />
             <Property Name ="Renderer" Value ="sk.transacty.cm_iface.bc4j_common.ListFieldRenderer" />
          </Properties>
          <DesignTime>
             <Attr Name="_DisplaySize" Value="1" />
          </DesignTime>
       </ViewAttribute>

  • How to retrive value from column of type number

    Hi,
    I have a site column 'Sample' which is of type Number. Number of decimal places for the column is specified as 0.
    Consider the Sample column has a value '2'.
    When I retrieve the properties for Sample column, the value is displayed as 2.0000000
    I am retrieving the listitem properties using SPListItem.Properties in ItemCheckedin event.
    How to get value without the decimal places?
    Thanks in advance,
    dhijit

    Hi.
    You can cast this value as int.
    int myVal = (int)myItem["myField"];
    if cast crashes, try to use int.TryParse or Convert.ToInt32 Mehods
    Regards,
    Bubu
    http://zsvipullo.blogspot.it
    Please mark my answer if it helped you, I would greatly appreciate it.

  • ADF error at 10.1.3.1 Invalid class: oracle.jbo.ApplicationModule

    Hi,
    I need some help. I'm a novice jdeveloper user, but I have managed to build a small appilcation for a client, with use of ADF. When I try to run it at the applications server, it can't find the page, and have this error in the application.log:
    07/01/23 09:15:58.698 rtvview: Servlet error
    oracle.classloader.util.AnnotatedLinkageError: Class oracle/jbo/ApplicationModule violates loader constraints
    Invalid class: oracle.jbo.ApplicationModule
    Loader: adf.oracle.domain:10.1.3.1
    Code-Source: /t02dat/iast_r3/midtier/BC4J/lib/adfm.jar
    Configuration: <code-source> in /t02dat/iast_r3/midtier/j2ee/home/config/server.xml
    Dependent class: oracle.jbo.uicli.mom.JUApplicationDefImpl
    Loader: adf.oracle.domain:10.1.3.1
    Code-Source: /t02dat/iast_r3/midtier/BC4J/lib/adfm.jar
    Configuration: <code-source> in /t02dat/iast_r3/midtier/j2ee/home/config/server.xml
    Does anyone have an idea?
    Versions:
    Jdeveloper 10.1.3.1
    Application Server 10.1.3.1.0
    Thanks
    Jorn
    It worked when I tried to deploy the application thru jdeveloper server connection. Does anyone know why it's working now?
    Message was edited by:
    user527535

    I've managed to eliminate the JBO-35007 errors through the use of the Refresh and RefreshCondition tags. The problem I have now is that I do most of my testing in Firefox (latest release) and it seems to be caching pages even though I have caching turned off. For instance we have different menu options based on a user's privileges. If I log out and log in as someone else who has different privileges the previous user's options are still displayed. If I click on them it then refreshes the page and the new user's options are displayed. This is also fixed by manually refreshing the page. I do not encounter this problem at all with IE, only firefox. Any thoughts here?

  • Read Database Column According to Number of Rows

    Hi guys,
    I am currently stuck at the problem of retrieving data from my database (MS Access) according to the number of rows it has at any one time (without having to know how many rows there are going to be while programming this part).
    Firstly, I have to introduce how my program works. I am working on an automated food ordering system and after the customer has selected his/her food, information such as the food name, food price and quantity will be written to the database MS Access table. (for e.g. table name "Orderingtable" in MS Access) For my case, 1 order of food item will occupy 1 row of the database table. In other words, under the same customer, if he orders 3 different food items, 3 rows will be occupied in my database table.
    I would then like to retrieve the number of the "Quantity" part for each order from the database and sum up the quantity eventually to count the number of total orders in the database table at any point of time. This addition of result will then be shown on the Front Panel to inform the customer how many pending orders there are just before his order. In this case, he can back out if he wants to if the number of orders is too huge for his waiting time.
    However, I do not know how many rows my "Orderingtable" will have at any one time because the "Orderingtable" will accumulate rows and rows of data until being commanded to be deleted. Therefore, I cannot predict the number of rows as I program the part to sum up the number of quantity for each and every row.
    Is there a way that I can retrieve the "Quantity" part without having to know the number of rows in the database so that I can count the total number of current orders just by summing up the value of quantity for each row?
    I do not wish to "hardcode" my program by limiting the database tables to let's say, only 50 rows at any one time.
    Below attached is how my "Orderingtable" database table looks like, which is going to be used to retrieve the column "Quantity" so that it can count the total number of orders and be shown/indicated on the Front Panel of my Labview program.
    I hope you guys are able to help me!
    Thank you so much in advance.
    Cheers,
    Miu
    Solved!
    Go to Solution.
    Attachments:
    database table.JPG ‏320 KB
    Front Panel.JPG ‏78 KB

    >>I just want to copy everything from 1 table to another
    Absolutely.  But as far as I know, there is no "move" command.  So you will need to do this in two separate operations:  first copy, and then delete.
    To copy data:     SELECT * INTO target_table FROM source_table
    NOTE:  By specifying * you are copy all the columns.  And the columns must match up. If your source and target tables do not match, then you'll need to replace * with a list of columns.  See here for more info.
    To delete the data in the original table:     DELETE * FROM source_table
    NOTE:  This will delete the entire contents of the source table.  Which may not be ideal.  Depending on your application, it could potentially leave you with the possibility of data loss.  For example, what if "someone" manages to insert some data into the source_table inbetween your copy and delete operations?  That data would be lost (you'd delete it).  But that would only be a concern if there were multiple people accessing your database simultaneously.  If that could be a problem, let me know, and we can consider a different solution, or consider using locks/transactions to prevent that situtation. 

  • Set attribute to a Jfield to return type number from Lov

    in my lov , i need to return type number and put it in the Jfield . after doin some search , i found the method to set the attribute on that field. PLease and need to send me any URL of doing that method if there is one. (returning type number from LOV)
    i have tried this method but it didn't work!!!
    Return object from List of values page:
    FacesContext fctx = FacesContext.getCurrentInstance();
    Application app = fctx.getApplication();
    ValueBinding vb = app.createValueBinding("#{bindings}");
    DCBindingContainer dc = (DCBindingContainer) vb.getValue(fctx);
    DCIteratorBinding dciter = (DCIteratorBinding)dc.get("PrcPartiesLawer1Iterator");
    id = (Number)dciter.getCurrentRow().getAttribute("Id");
    Name = (String)dciter.getCurrentRow().getAttribute("FullNameN");
    setId(id);
    setName(Name); AdfFacesContext.getCurrentInstance().returnFromDialog(this,null);
    return listener to assign value to Number field:
    LawyerReturnOject b = (LawyerReturnOject)returnEvent.getReturnValue();
    if(b==null)return;
    Number i = b.getId();
    getIii().setSubmittedValue(null);
    getIii().setValue(i);
    String f = b.getName();
    getInputText1().setSubmittedValue(null);
    getInputText1().setValue(f);
    AdfFacesContext af = AdfFacesContext.getCurrentInstance();
    af.addPartialTarget(getLawyerLov());
    af.addPartialTarget(getInputText1());
    and the number type is oracle.jbo.domain.number

    Hi,
    its easier to set the returned value on the ADF binding then on the component directly (at least this is less error prone)
    FacesContext fctx = FacesContext.getCurrentInstance();
    Application app = fctx.getApplication();
    ValueBinding vb = app.createValueBinding("#{bindings}");
    DCBindingContainer dc = (DCBindingContainer) vb.getValue(fctx);
    FacesCtrlAttrsBinding the_attribute = (FacesCtrlAttrsBinding ) dc.get("nameOfAttributeToUpdate");
    the_attribute.set...
    Frank

  • Import error while full database import

    Hi,
    I am getting below error while import from one server to other server.
    oracle version from 10.2.0.1.0 to 10.2.0.5.0.
    IMP-00015: following statement failed because the object already exists: on full import
    Export file created by EXPORT:V10.02.01 via conventional path
    import done in US7ASCII character set and AL16UTF16 NCHAR character set
    import server uses WE8ISO8859P1 character set (possible charset conversion)
    . importing SYSTEM's objects into SYSTEM
    IMP-00017: following statement failed with ORACLE error 1119:
    "CREATE TABLESPACE "JISPREPCORBILLINGPRD501" BLOCKSIZE 8192 DATAFILE '/opt/"
    "u01/app/oracle/oradata/ora10g/jisprepcorbillingprd501.dbf' SIZE 52428800 "
    " AUTOEXTEND ON NEXT 8192 MAXSIZE 32767M EXTENT MANAGEMENT LOCAL AUTOAL"
    "LOCATE ONLINE PERMANENT SEGMENT SPACE MANAGEMENT AUTO"
    IMP-00003: ORACLE error 1119 encountered
    ORA-01119: error in creating database file '/opt/u01/app/oracle/oradata/ora10g/jisprepcorbillingprd501.dbf'
    ORA-27040: file create error, unable to create file
    Linux-x86_64 Error: 2: No such file or directory
    IMP-00017: following statement failed with ORACLE error 1119:
    "CREATE TABLESPACE "CYBEROAM" BLOCKSIZE 8192 DATAFILE '/opt/u01/app/oracle/"
    "oradata/ora10g/cyberoam.dbf' SIZE 70057984 AUTOEXTEND ON NEXT 8192 M"
    "AXSIZE 32767M EXTENT MANAGEMENT LOCAL AUTOALLOCATE ONLINE PERMANENT SEGM"
    "ENT SPACE MANAGEMENT AUTO"
    IMP-00003: ORACLE error 1119 encountered
    ORA-01119: error in creating database file '/opt/u01/app/oracle/oradata/ora10g/cyberoam.dbf'
    ORA-27040: file create error, unable to create file
    Linux-x86_64 Error: 2: No such file or directory
    IMP-00017: following statement failed with ORACLE error 1119:
    "CREATE TABLESPACE "CAPTIVEPORTAL" BLOCKSIZE 8192 DATAFILE '/opt/u01/app/or"
    "acle/oradata/ora10g/captiveportal.dbf' SIZE 52428800 AUTOEXTEND ON NE"
    "XT 8192 MAXSIZE 32767M EXTENT MANAGEMENT LOCAL AUTOALLOCATE ONLINE PERMA"
    "NENT SEGMENT SPACE MANAGEMENT AUTO"
    IMP-00003: ORACLE error 1119 encountered
    how to resolve it?
    Thanks in advance.

    "CREATE TABLESPACE "JISPREPCORBILLINGPRD501" BLOCKSIZE 8192 DATAFILE '/opt/"
    "u01/app/oracle/oradata/ora10g/jisprepcorbillingprd501.dbf' SIZE 52428800 "
    " AUTOEXTEND ON NEXT 8192 MAXSIZE 32767M EXTENT MANAGEMENT LOCAL AUTOAL"
    "LOCATE ONLINE PERMANENT SEGMENT SPACE MANAGEMENT AUTO"
    "CREATE TABLESPACE "CYBEROAM" BLOCKSIZE 8192 DATAFILE '/opt/u01/app/oracle/"
    "oradata/ora10g/cyberoam.dbf' SIZE 70057984 AUTOEXTEND ON NEXT 8192 M"
    "AXSIZE 32767M EXTENT MANAGEMENT LOCAL AUTOALLOCATE ONLINE PERMANENT SEGM"
    "ENT SPACE MANAGEMENT AUTO"
    "CREATE TABLESPACE "CAPTIVEPORTAL" BLOCKSIZE 8192 DATAFILE '/opt/u01/app/or"
    "acle/oradata/ora10g/captiveportal.dbf' SIZE 52428800 AUTOEXTEND ON NE"
    "XT 8192 MAXSIZE 32767M EXTENT MANAGEMENT LOCAL AUTOALLOCATE ONLINE PERMA"
    "NENT SEGMENT SPACE MANAGEMENT AUTO"
    IMP-00003: ORACLE error 1119 encounteredThree tablespaces.
    how to resolve it?Create those tablesspaces manually and then try to improt it.
    to take the DDL, you can use either SQLFILE option in impdp or use dbms_metadata.get_ddl

  • Custom Error Messages for Database Constraint Violations Problem

    Hi
    I have added a custom message bundle for the model project as explained in
    37.8.3 in the Fusion Developer's Guide - How to customize error messages for database constraint violations.
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcadvgen.htm#BABEFGCI
    Constraint Name : SYS_C0018574
    And I have following CustomErrorMessages class
    public class DBCustomErrorMessages extends ListResourceBundle {
        private static final Object[][] sMessageStrings =
            new String[][] { { "SYS_C0018574",
                               "Existing Record Found" } };
        protected Object[][] getContents() {
            return sMessageStrings;
    }This works fine when I run application model and adding records to vialate the constraint. So it gives me following message
    (oracle.jbo.DMLConstraintException) Existing Record FoundBut when run ui project it does not fire.
    Still it gives the message
    ORA-00001: unique constraint (CCBS2.SYS_C0018574) violatedCould you please shed some light?
    Edited by: deshan on Mar 15, 2011 11:28 AM

    Please see the image.
    http://4.bp.blogspot.com/-Fna66p-W5Jw/TX7uSQqqBtI/AAAAAAAAAH0/D1APg6oAIxI/s1600/1.JPG
    Error in Application Module ORA-00001: unique constraint (CCBS2.SYS_C0018574) violated exception is different from ui project.
    Any hint?
    Thanks
    deshan
    Edited by: deshan on Mar 15, 2011 10:16 AM

  • Cannot get the correct data type in Oracle JDBC

    Dear ALL:
    I used JDBC ResultSetMetaData to get the column data type for Oracle Database. I created a table including 2 columns AAA, which is NUMBER type, BBB which is FLOAT type.
    However, I found a problem that either NUMBER or FLOAT data types are reported as NUMBER type in JDBC.
    IN SQL 2000, it is okay. SMALLINT, INT, TINYINT, etc..can be reported correctly.
    Can anybody tell me that what's wrong here? I will be very appreciated.

    hi,
    i guess its a bug which is fixed with 10i.
    Elango.

  • Oracle.jbo.domain.Number; local class incompatible

    Hi Forum,
    Development Tool     : Jdeveloper 9.0.4 (part of Oracle 10g Suite)
    Target Application Summary:
    A simple application which displays the content of a database table and allows it to be modified both through a web interface as well as a Swing standalone client.
    A Workspace having three projects:
    1) A Business layer defined by using BC4J(Business Components For Java) provided with Jdeveloper 10g.
    2) A Swing/JClient application for BC4J which accesses the BCJ4 layer using a Business component client data model.
    3)A JSP application using JSP for business components which accesses the BC4j layer
    Target Deployment:
    1) Light-weight swing interface at machine 1
    2) Business components and JSP part in an application server on Machine 2
    3) Oracle DB on Machine3
    Problem Statement
    We deployed the BC4J Middle tier on OC4J standalone as a session bean. Then the client jar was deployed as a remote application(using Swing/JClient for business componments), the following error comes:
    (oracle.jbo.PiggybackException) JBO-28300: Piggyback read error
    ----- LEVEL 1: DETAIL 0 -----
    (java.io.InvalidClassException) oracle.jbo.domain.Number; local class incompatible: stream classdesc serialVersionUID = -6507359405709672486, local class serialVersionUID = -592084144037230518
    Can the forum help me with the problem (i am using the library BC4JOracleDomains which has oracle.jbo.domain.Number class)
    Thanking you in advance.

    Firstly, good job on describing your problem/situation. Some people just don't bother to be verbose.
    Secondly, I have to note that I don't do any development in this way so I have no 1st hand experience with this excpetion. But, it appears as though you are using different versions of the jar files (which in turn contain different versions of the classes). Maybe you should take a look at that?

  • How to sum hours which is varchar2 data type in oracle

    Hi My table is like this
    emp_ngtshthrs (empno number(10),nightshifthrs varchar2(20));
    now I want sum employee nightshifthrs how to do sum of hrs, this is my hours data 01:00,05:00,08:00,10:00,07:00 and 09:00
    I want sum the varchar2 type of hours how to do it? and I want to display even the sum is more than 24:00 hrs

    Well, first you have posted your question in the wrong forum. You should have posted your question in the PL/SQL forum.
    The second problem I see is that you are being too generic when you have your employees enter their night shift hours worked. If you are able, I recommend you modify your table to record hours seperately from minutes and make the columns of type NUMBER instead of type VARCHAR2(). Then you can use simply arithmatic to total the hours and minutes worked.
    If you are locked into your table and can't change it, then you can convert the characters to numbers and then perform your summary arithmatic on the values. For example:
      1  with tab1 as (
      2  select 10 as empno, '01:00' as nightshifthrs from dual union all
      3  select 10 as empno, '05:00' as nightshifthrs from dual union all
      4  select 10 as empno, '08:00' as nightshifthrs from dual union all
      5  select 10 as empno, '10:00' as nightshifthrs from dual union all
      6  select 10 as empno, '07:00' as nightshifthrs from dual union all
      7  select 10 as empno, '09:00' as nightshifthrs from dual)
      8  select sum(to_number(replace(nightshifthrs,':','.'))) AS hours_worked
      9* from tab1
    SQL> /
    HOURS_WORKED
              40
    SQL> Of course, if your users can and do enter minutes, then that complicates the example I provided. You will have to convert the minutes to decimal, sum the amount, then convert the decimal back to time and add this to your hours. For example:
      1  with tab1 as (
      2  select 10 as empno, '01:15' as nightshifthrs from dual union all
      3  select 10 as empno, '05:00' as nightshifthrs from dual union all
      4  select 10 as empno, '08:30' as nightshifthrs from dual union all
      5  select 10 as empno, '10:00' as nightshifthrs from dual union all
      6  select 10 as empno, '07:45' as nightshifthrs from dual union all
      7  select 10 as empno, '09:00' as nightshifthrs from dual)
      8  select sum(to_number(substr(nightshifthrs,1,2))) + SUM(to_number(SUBSTR(nightshifthrs,4,5)))/60
      9* from tab1
    SQL> /
    HOURS_WORKED
            41.5
    SQL> Hope this helps.
    Craig...

  • Too many objects match the primary key oracle.jbo.Key[2]. Error

    Hi
    I have to display a Read Only table and an Editable Form below it so that the user can select a row in the table and that row should be populated in the form below.
    The user should be able to update the row and save in the below form.
    Then the table above also should be refreshed with the updated values.
    For this I have created a VO based on EO.
    Using the same data control I have created a UI Readonly table and an Editable form in the same JSF page.
    When I run the page, the first row is populated in both the table and form.
    When I select the second row in the table, I am getting the following error in the Editable Form
    Error: Too many objects match the primary key oracle.jbo.Key[2 ].
    My EO has only one Primary key and I have not included the ROWID column in EO or VO.
    How can we fix this issue ?
    However, if I move the editable form to another page, It is working fine.
    But we need to have both the table and editable form in the same page for usability purposes.
    Thanks for any help.
    Sameer

    you can try refreshing your VO in various ways:
    1. try setting partialTrigger on table pointing to your commandbutton .. also make sure partialSubmit on your commandButton is set to true.
    2. Do bindings on the page def for Execute action of your read-only VO. Call this method from actions of your commandButton.
    If they dont work then you can try creating a method in your AMImpl which does calls vo.executeQuery and expose this to pageDef.. and call if from the actions of your button .. but this may not be best way
    Amit

  • LOV gives "Too many objects match the primary key oracle.jbo.Key" error.

    Hello,
    I'm using JDeveloper 11.1.1.3. I have created 2 VO's which are related to the same EO. In one of the views i added a list of value (combo box with list of values) to an attribute. In my page, i'm using the first view that doesn't have the LOV. Also in my page there is a button with a popup in which i'm using the second VO to list the values of the attributes and filter a table (which is also in the popup). Initially, when i press this button all rows are viewed in the table in the popup. However, when i try to filter the table using the LOV i'm getting an error:
    Too many objects match the primary key oracle.jbo.KeyAny ideas?
    Mohamed

    Hello again,
    Thank you all for your reply! I solved my problem. Apparently it wasn't a problem with duplicate data nor wrong primary key! I was implementing the LOV approach wrong. I was creating a 'List of Value' in my VO and dragging the attribute from data control as 'Select one Choice'. I was doing this because i thought i had to declare a type before i can use it in my data control. As i concluded, i should either create it in my VO and not use the default SOC option. Or, i could not create a LOV and use the default JDeveloper SOC option.
    Thanks again for your help.
    Mohamed.

Maybe you are looking for

  • How to import  my own class in jsp file

    I have a jsp file in jsp\ directory and a class in web-inf\classes\ directory. How do I import the class in jsp so i can use it in my jsp file. Thanks,

  • IBooks file problems

    I am having problems with a collection of exported ibooks that have all originated from one template. When exporting the ibooks into the ibooks application only one file from that collection is visible. When I try to import one of the files in again

  • How do I find @ empty rubbish bin on ipad

    How do I find @ empty rubbish bin on ipad

  • User Contributed Tips in the AirPort AirPort Express Forum

    *The following User Contributed Tips are located in the AirPort > AirPort Express Forum:* adsfushi72 - Can an AirPort Express work with my 3rd-party wireless router? http://discussions.apple.com/thread.jspa?threadID=2629540 Publish date: October 28,

  • AppleScript / saving file to a relative path

    Hello everybody, I would like to make a script that saves current file to a relative path. For example: I have a psd opened file (that is in pictures/01/image01.psd) and I need to save it one level up as a JPEG ( pictures/image01.psd). This is what I