Different field type error

plz solve this query:
SELECT ERDAT KUNNR NAME1 NAME2 LAND1 REGIO ORT01 PSTLZ SORTL STRAS TELF1 MCOD1 MCOD2 MCOD3 FROM KNA1
INTO CORRESPONDING FIELDS
OF TABLE IKNA1 .
SELECT CHANGENR CHANGE_IND FROM CDHDR INTO CORRESPONDING FIELDS
OF TABLE ICDHDR for all entries in ikna1  WHERE OBJECTCLAS = 'DEBI' AND
<b>OBJECTID = IKNA1-KUNNR</b> AND UDATE IN S_UDATE.
here the bolded field are showing error as one is of length 90 and other of 10.
please help how to check this.
<b>error</b> - when using "for all entries in itab" the fields OBJECTID and IKNA-KUNNR must have same type and length

then create one more table ikna1_temp, which will have KUNNR length as 90.
LOOP AT IKNA1.
MOVE-CORRESPONDING IKNA1 TO IKNA1_TEMP.
APPEND IKNA1_TEMP.
ENDLOOP.
and use the other table in second query.
Because the field type and length has to be same otherwise it will give an error
SELECT CHANGENR CHANGE_IND FROM CDHDR INTO CORRESPONDING FIELDS
OF TABLE ICDHDR for all entries in ikna1 WHERE OBJECTCLAS = 'DEBI' AND
OBJECTID = <b>IKNA1_TEMP-KUNNR</b> AND UDATE IN S_UDATE.
I had to take similar steps in order to get data from CDHDR table.
Message was edited by:
        Darshil Shah

Similar Messages

  • 'Join' two different field types together into a String - possible in Java?

    Not entirely certain whether this is a straightforward Java or more of a JDBC question:
    I have two fields, one is a String and one an integer. I need to concatenate these fields together to form one String, prior to performing an insert on a table. ie:
    String s = dbRS.getString("partition_name");    //get full string
    String partstr = s.substring(0, 14);      // get first 14 (alpha) characters
    int new_partition_number = max_partition_number + 1;      //create new unique partition number, incremented by 1Now I have
    - a String (partstr - i.e. "TN1234567890_")
    - an integer (i.e. 50)
    (NB. The number has to be an integer because it is subject to calculation elsewhere.)
    I wish to join these together into a String ("TN1234567890_50") and use the field in an inserted row. I've tried using
    String partition_string = new StringBuffer(partstr).append(new_partition_number ).toString();... but this doesn't work.
    I read on a forum that it's impossible to cast an integer to a String in this way in Java, which sounds pretty incredulous from where I am! However my Osborne Java 2 Complete Reference doesn't mention it at all.
    Any assistance will be very gratefully received!
    Thanks.

    wonder why he thinks you can't append an int to a StringBuilder.
    Works fine. Might of course not yield the expected result depending on expectations, but it works just fine.
    But then, the coding conventions reminiscent of C don't bode well.

  • Reason for Error "Unknown field type (28) encountered."

    Hello,
    I'm from Germany, so sorry for my English first.
    I got the error "Unknown field type (28) encountered." when I run
    a simple "SELECT * FROM system.functions" on my ADD-Database.
    The solution for this problem is found in the KBA 2145730.
    If I use the ADS DLLs v. 11.10.0.22 I got the error, but if I use the
    ADS DLLs v. 9.10.0.35 everything is fine.
    For solving other problems I think it would be better to use the newest
    version, but in this case I can't. At this time it is not a problem, because
    I can't find any real reason so that I must update for now, but nevertheless
    I'd like to know, why this error occurs. What is type 28? Or (what real
    would be great) can I make changes to my software, so that I can
    avoid this problem? I hope you can help me with this "riddle" and wish
    all of you a great day.
    Greetings from Germany,
    Gerit Freericks

    For backwards compatibility the server will send different field types (i.e. char vs varchar, ansi vs unicode, etc).
    The server determines this based on the ACE (Advantage Client Version).  By swapping in new DLLs you are telling the server that you are running a newer client and it can send the newer field types etc for the system tables.
    In addition to swapping the DLLs re-build the application with the new TDataSet (re-compile) and this should resolve your issue.
    For the field types look at ACE.pas  (or ACE.h) in the TDataSet (on the latest).  It looks like 28 is an NMEMO (Unicode Memo field)

  • Store values of different data types into single database field

    Hi Friends,
      I  have to store values of different data types(character, numeric, date, time,  text, etc) into a single database field(Char 80). Then read the same values and display it into ABAP Webdynpro report. 
    Appreciate any ideas, examples, suggestions.
    Thanks
    JB

    Hi,
    Try like this:
    data: txt1 type string,
          var1(1) type c,
          var2(1) type n,
          var3 like sy-datum,
          var4 like sy-uzeit.
    parameters: a type c,
                b type n,
                c like sy-datum,
                d like sy-uzeit.
    concatenate a b c d into txt1.
    write txt1.
    var1 = txt1+0(1).
    var2 = txt1+1(1).
    var3 = txt1+2(8).
    var4 = txt1+8(8).
    write: / var1,
           / var2,
           / var3,
           / var4.
    Regards,
    Bhaskar

  • Field Selection error for movement type and G/L account

    I am currently experiencing a field selection error between movement type 601 and G/L account 7140000.  The problem field is 'Segment'.  This field is set to required for the G/L account, but it is hidden for the movement type 601. This inconsistency causes an error when posting the goods movement. According to business requirement the field must be required for the G/L account, therefore we must make this field optional for the movement type.
    However, in configuration the field segment does not appear for the movement type 601. Therefore it can not be changed to optional.
    Does anyone know a workaround other than making this field optional for the G/L account because the business requirement is to have this field as required?????
    Many Thanks

    Hi,
    On the Error message detail, system will guide you to the Configuration details for Field settings for Movement type & Account, please get in touch with your FI consultant, to make the Field selection for the account similr to that of your movement type, this is a very common issue.
    Regards
    Chandra Shekhar

  • "Schema validation found non-data type errors" error when passing a string value to date field in infopath

    Hi,
    I have an infopath web brower enabled form. In the form i have a date field.
    I am passing the data from the database to that field using the C# code.
    But, as the field from database is coming as string, i am getting an error, and i am not able to assign the value.
    I get the date value from database as "3/25/2011 12:00:00 AM"
    I used the below code:
    [CODE]
    if (objInfopathFormcData.myRecievedDate != null)
      myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager).SetValue(objInfopathFormcData.myRecievedDate);
    [/CODE]
    I am getting the error as "Schema validation found non-data type errors".
    How to set the value for a date field in Infopath.
    Thank you

    HI,
    I fixed it:
    Below code is used to fix:
    [CODE]
    XPathNavigator xfield = null;
    DateTime dtmyRecievedDate;
    dtmyRecievedDate = Convert.ToDateTime(objInfopathFormcData.myRecievedDate);
    if (objFormcData.FcCompletionDate != null)
    xfield = myRoot.SelectSingleNode("/my:myFields/my:field97", NamespaceManager);
    DeleteNil(xfield);
    xfield.SetValue(dtmyRecievedDate.GetDateTimeFormats().GetValue(5).ToString());
    // method to delete xsi:nil
    private void DeleteNil(XPathNavigator nav1)
    if (nav1.MoveToAttribute("nil", "http://www.w3.org/2001/XMLSchema-instance"))
       nav1.DeleteSelf();
    [/CODE]
    Thank you

  • Table View : Sort='server' : Error=Invalid sort field type in "SORT ... AS

    Hi ,
    The Sort button does not work for GUID and it shows the error,
    <b>Invalid sort field type in "SORT ... AS TEXT"</b>
    How do I solve this problem?
    Thanks and Best Regards,
    Bindiya

    Hi ,
    Below is the code :
    IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS
    ==================================================
            ls_coldef-columnname              = 'PBI_C_VALUE_ID1'.
            ls_coldef-width                         = '150'.
            ls_coldef-title                           = 'Category I '.
            ls_coldef-tooltipheader              = 'Category I '.
            ls_coldef-wrapping                   = zcl_zsc_co=>sc_true.
            ls_coldef-edit                          = zcl_zsc_co=>sc_true.
            ls_coldef-sort                          = zcl_zsc_co=>sc_true.
            APPEND ls_coldef TO p_column_definitions.
            CLEAR ls_coldef.
    ==================================================
    IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START
    ==================================================
        WHEN 'PBI_C_VALUE_ID1'.
          CREATE OBJECT lr_dropdown.
          lr_dropdown->id                 =  p_cell_id.
          lr_dropdown->nameofkeycolumn    = 'PBI_C_VALUE_ID'.
          lr_dropdown->nameofvaluecolumn  = 'SHORT_NAME'.
          lr_dropdown->selection          = <fs_row>-pbi_c_value_id1.
          lr_dropdown->disabled           = lv_disable.
          lr_dropdown->width              = '170'.
          GET REFERENCE OF mr_model_assign_sb_list->mr_model_pb_item_list->mr_model_def_category->mt_dropdown_cat_1_val INTO lr_dropdown->table.
          p_replacement_bee = lr_dropdown.
    ==================================================
    NOTE: the data element of 'PBI_C_VALUE_ID' is RAW 16.
    Thanks and Best Regards,
    Bindiya

  • Error the entered value does not match the specified field type

    Hi,
    When I try to insert a null value to a field of the User Defined Table I am getting the error "The entered value does not match the specified field type" in SAP Business One version 2007 PL 42.
    Any help would be appreciated.
    Thanks in advance.
    Sudha.

    Hi Sudha,
    It probably have to do with how you defined the field.
    Is Null value allowed?
    What are the field definitions?
    Thanks,
    Jesper

  • I get error message DB745 with EDIT ALV on a field type DEC?

    Hi,
    I have an ALV which has a field type DEC.
    The ALV is open for edit.
    Once I put negative number in, I get the error message DB745.
    This error is retrieved from SAP code and I do not see any reason why.
    I checked the field cat and it looks fine (ref to a field type DEC).
    I am using lcl_grid_event_receiver with method: handle_data_changed FOR
    EVENT data_changed OF cl_gui_alv_grid.
    In that method I get the error in er_data_changed->mt_protocol.
    There is no problem to show negative data if it is saved in the database
    as negative.
    Can anyone throw ideas how to fix that?
    Thanks,
    Itay

    If you simply check the domain WERT7, you'll see that the checkbox for "Sign" is <b>not</b> checked. Therefore negative numbers are <b>not</b> allowed.
    Just because a field is decimal or currency does <b>not</b> mean that negatives are allowed.
    Many times, the sign is handled by a separate debit/credit indicator field such as a field with a domain of SHKZG.
    Rob
    Message was edited by:
            Rob Burbank

  • "One or more field types are not installed properly" when I try to add a second discussion board web part to a page

    I have a SharePoint 2010 site with two discussion boards. I added one additional field to each of the boards: a lookup to another list to link the discussions to individual projects. I need 2 different boards because they have different posting permissions
    (one is open to all for comments, and one is open only to the project team to post but everyone can read).
    When I go to the pages for each of the discussion boards, they work fine.
    But I'm putting together a page for individual projects, and want to have web parts for both discussion boards on the same page, showing the discussions related to the selected project.
    I am able to add one of the discussion boards to a web part in the page, but when I add the second discussion board to the page, the new web part contains:
    One or more field types are not installed properly. Go to the list settings page to delete these fields.
    Correlation ID: blah blah blah
    I've searched for similar postings, but mostly I see this error message related to migration from 2007 to 2010 -- this is not the case here: I created both discussion boards, and the whole site, in SP 2010. I've also found this message related
    to coding errors using SPQuery. I am not doing any coding here, just using the built-in SharePoint 2010 Edit Page -> add a web part -> select the discussion list.  I tried doing it from SPD with the same result. 

    I figured it out. I was using ?FilterField1=fieldname&FilterValue1=value on the URL to the page to pick out one project number. The web part I was trying to add was for a list that did not have that particular fieldname. I didn't realize that would matter
    since I was using the Connections -> Get Filter Values From to get my filter values from the main web part, which does have that fieldname.
    I added a field with that fieldname to the other list and set a workflow to copy the lookup value of the project number lookup field into the new field. Now all is working fine.  Sorry for the wild geese in my original question.

  • "One or more field types are not installed properly. Go to the list settings page to delete these fields" while accessing website pages

    We have a publishing website in SharePoint 2010. There are total 4 environments - Development, Test, Stage and Production. For some enhancements, we had to create some new lists and libraries. When we moved changes from Development to Test environment, everything
    worked fine. Relevant lists and libraries in lower environments were saved as templates (in .stp format) including content, imported to higher environment, lists/libraries were created in higher environment using imported templates. 
    Things worked fine from Development to Test. We did similar exercise from Test to Stage environment. Now in Stage, when we access some pages, we get error message - "One or more field types are not installed
    properly. Go to the list settings page to delete these fields.". ULS logs don't tell which exact list has got problems. 
    On searching for this error, I got many articles that explain how this could happen when we migrate from SharePoint 2007 (MOSS) to 2010. Though our case different (as all our environments are in 2010), we still tried following steps. 
    De-activate 'SharePoint Server Publishing Infrastructure' Site Collection feature
    Go to https://site-name/relationships%20list/allitems.aspx. This is a hidden list. Delete this list. 
    Re-activate 'SharePoint Server Publishing Infrastructure' Site Collection feature.
    Make sure that new hidden list with one item is created at https://site-name/relationships%20list/allitems.aspx
    However, this didn't help as we are still getting same error message. Appreciate if someone can suggest how this issue can be resolved. 
    Following are ULS logs:
    Unable to execute query: Error 0x81020014
    One or more field types are not installed properly. Go to the list settings page to delete these fields.
    System.Runtime.InteropServices.COMException: One or more field types are not installed properly. Go to the list settings page to delete these fields.   
     at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback,
    ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)    
     at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback
    pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
    Thanks!

    Hi Shrishail ,
    Some time this issue occurs if you have any custom filed types in the list or library and that field type is not installed on server .
    Can you please check that if you are having any custom field types column on the list and library and if that is the case you need to install that field type on the server. sometimes it happens if field types are not properly deployed / Installed then
    you have to uninstall that field types (retract solution) and deploy it again.
    Thanks,
    Ujjwal

  • Putaway Strategy P - Managing different SU types

    Hi gurus,
    I'm experiencing the following problem.
    Using the putaway strategy Pallet, the system processes different storage unit types and allocates them to the appropriate section, but only the same storage unit types can be placed into a storage bin at one time.
    My need is to place at the same time different SU types into a storage bin. Is it possible?
    Thank for your help!
    Francesca

    Hi
    The storage unit is compatible with the current block when the 'maximum
    storage units' which can be stored in the bin are the same. The
    'maximum storage units' depends on the storage unit type of the first
    storage unit you put it the bin. If the values of T337B-MAXLE are
    different then the system will not allow the placement. This is the
    is the standard behaviour.
    Field LAGP-MAXLE indicates the maximum number of Storage Units that are
    allowed to be placed into a bin and this is set during the first
    placement into an empty bin in accordance with the block stucture
    definition in transaction OMM4.
    This does not mean that it is not possible to place different Storage
    Unit Types in to the bin. This is possible but only when the block
    structure definition in OMM4 has an identical value for the maximum
    number of storage units in the block (T337B-MAXLE). If one has a value
    of 20 and the other has a value of 10 then the system correctly issues
    error L3 425.
    regards,
    Ramana

  • DescriptorException: field type mismatch

    We are facing a typical exception when trying to fetch a XMLType field.
    We are using toplink 9.0.4 version on Websphere 5.0
    We have defined a model class with one variable of the class defined as XMLType and mapped that field to the underlying db field which is of XMLType type.
    When we test the code to fetch the persistent objects with XMLType variables on JBuilder it works fine without giving any issues.
    But when we deploy the application on to Websphere we get an error shown below:
    In the below exception "m_defaultExpression" is the variable of type XMLType.
    Can you please let us know what can be the possible difference running on JBuilder and Websphere??
    One and only one difference which we could see was the JVM version. On JBuilder its 1.4.1 and websphere is on 1.3.1 JVM version. Not sure if this brings any difference in the working of toplink 9.0.4 runtime API.
    Exception [TOPLINK-32] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.DescriptorException
    Exception Description: Trying to set value [<?xml version="1.0"?><Condition></Condition>] for instance variable [m_defaultExpression] of type [oracle.xdb.XMLType] in the object. The specified object is not an instance of the class or interface declaring the underlying field, or an unwrapping conversion has failed.
    Internal Exception: java.lang.IllegalArgumentException: field type mismatch
    Mapping: oracle.toplink.mappings.DirectToFieldMapping[m_defaultExpression-->SOURCE_OBJECT_ATTRIBUTE_MAP.DEFAULT_EXPRESSION]
    Descriptor: Descriptor(com.fmrco.ios.gppas.metadata.model.SourceAttribute --> [DatabaseTable(SOURCE_OBJECT_ATTRIBUTE_MAP)])
    at oracle.toplink.exceptions.DescriptorException.illegalArgumentWhileSettingValueThruInstanceVariableAccessor(DescriptorException.java:532)
    at oracle.toplink.internal.descriptors.InstanceVariableAttributeAccessor.setAttributeValueInObject(InstanceVariableAttributeAccessor.java:125)
    at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:950)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:861)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:164)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:331)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:387)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:146)
    at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:422)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:498)
    at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1968)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1096)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1048)
    at com.fmrco.ios.gppas.metadata.model.MetadataSession.findAttributeDefinitions(MetadataSession.java:537)
    at com.fmrco.ios.gppas.metadata.MetadataDAOImpl.fetchAttributeDefinitions(MetadataDAOImpl.java:488)
    at com.fmrco.ios.gppas.entity.etcdao.EntityEtcDAO.fetchAllAttributeDefinitions(EntityEtcDAO.java:156)
    at com.fmrco.ios.gppas.entity.engine.EntityEngine.fetchAllAttributeDefinitions(EntityEngine.java:125)
    at com.fmrco.ios.gppas.manager.EntityManagerEJB.fetchAllAttributeDefinitions(EntityManagerEJB.java:231)
    at com.fmrco.ios.gppas.manager.EJSLocalStatelessEntityManager_ee7411f8.fetchAllAttributeDefinitions(Unknown Source)
    at com.fmrco.ios.gppas.gems.request.RequestSFEJB.getRequestSearchAttributes(RequestSFEJB.java:433)
    at com.fmrco.ios.gppas.gems.request.EJSRemoteStatelessRequestSF_5518517c.getRequestSearchAttributes(Unknown Source)
    at com.fmrco.ios.gppas.gems.request._RequestSFRemote_Stub.getRequestSearchAttributes(Unknown Source)
    at com.fmrco.ios.gppas.gems.request.RequestBD.getRequestSearchAttributes(RequestBD.java:217)
    at com.fmrco.ios.gppas.gems.action.SearchAction.execute(SearchAction.java:139)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:923)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:528)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:516)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:366)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
    Internal Exception Stack:
    java.lang.IllegalArgumentException: field type mismatch
    at java.lang.reflect.Field.set(Native Method)
    at oracle.toplink.internal.descriptors.InstanceVariableAttributeAccessor.setAttributeValueInObject(InstanceVariableAttributeAccessor.java:106)
    at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java:950)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java:861)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:164)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:331)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:387)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(DatabaseQueryMechanism.java:146)
    at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:422)
    at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:498)
    at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1968)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1096)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1048)
    at com.fmrco.ios.gppas.metadata.model.MetadataSession.findAttributeDefinitions(MetadataSession.java:537)
    at com.fmrco.ios.gppas.metadata.MetadataDAOImpl.fetchAttributeDefinitions(MetadataDAOImpl.java:488)
    at com.fmrco.ios.gppas.entity.etcdao.EntityEtcDAO.fetchAllAttributeDefinitions(EntityEtcDAO.java:156)
    at com.fmrco.ios.gppas.entity.engine.EntityEngine.fetchAllAttributeDefinitions(EntityEngine.java:125)
    at com.fmrco.ios.gppas.manager.EntityManagerEJB.fetchAllAttributeDefinitions(EntityManagerEJB.java:231)
    at com.fmrco.ios.gppas.manager.EJSLocalStatelessEntityManager_ee7411f8.fetchAllAttributeDefinitions(Unknown Source)
    at com.fmrco.ios.gppas.gems.request.RequestSFEJB.getRequestSearchAttributes(RequestSFEJB.java:433)
    at com.fmrco.ios.gppas.gems.request.EJSRemoteStatelessRequestSF_5518517c.getRequestSearchAttributes(Unknown Source)
    at com.fmrco.ios.gppas.gems.request._RequestSFRemote_Stub.getRequestSearchAttributes(Unknown Source)
    at com.fmrco.ios.gppas.gems.request.RequestBD.getRequestSearchAttributes(RequestBD.java:217)
    at com.fmrco.ios.gppas.gems.action.SearchAction.execute(SearchAction.java:139)
    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:923)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:528)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:516)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:366)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

    Are you using the same database and JDBC drivers in WebSphere? This seems to me to be the likely problem -- in JDeveloper you've coded for the JDBC driver to return the oracle.xdb.XMLType, and in WebSphere you have a different JDBC driver and it's somehow returning something different.
    One note is that in developer preview 2 for 10.0.3 on OTN we actually have better and more explicit mapping control to the XMLType (i.e., you make it a Document in your object model). You might want to play with that at some point.
    As for your current situation, all I can suggest is to open your source.zip file for TopLink (it's in the jlib director with your other jars), and handle the situation in the ConversionManager.java class (in other words, you will need to experiement and check what types are coming back from each of the drivers and then write code to behave how you'd like).
    - Don

  • JAX-RPC: restrictions on service exception field types?

    When I define a service-specific exception type that has String fields only, it works fine. But if the exception class has an int field, xrpcc complains. It also fails if I change the field to Integer.
    Since JAX-RPC supports both int and Integer as operation argument and return types, I expected exceptions to be able to use these types as well. Are there restrictions on exception fields types?
    Here is the class with the int fields and the xrpcc errors it generates:
    public class InvalidRecordingIdException extends Exception {
         private int id;
         public InvalidRecordingIdException() {
              super();
         public InvalidRecordingIdException(int id) {
              this.id = id;
         public int getId() {
              return id;
    xrpcc-server:
         [echo] Running xrpcc for the server:
         [exec] rain\RainOrder_orderRecording_Fault_SOAPSerializer.java:69:
           Method serialize(int, javax.xml.namespace.QName,
           null, com.sun.xml.rpc.streaming.XMLWriter,
           com.sun.xml.rpc.encoding.SOAPSerializationContext)
           not found in interface com.sun.xml.rpc.encoding.CombinedSerializer.
         [exec] myns2__int__int_Int_Serializer_Serializer.serialize(((
           rain.InvalidRecordingIdException)detail).getId(),
           ns1_InvalidRecordingIdException_QNAME, null, writer, context);
         [exec]                                                                ^
         [exec] rain\RainOrder_orderRecording_Fault_SOAPBuilder.java:32:
         Invalid cast from java.lang.Object to int.
         [exec] instance.setDetail(new rain.InvalidRecordingIdException((int)detail));
         [exec]                                                                         ^
         [exec] 2 errors
         ...Here's the error for the Integer field in an exception:
    xrpcc-server:
         [echo] Running xrpcc for the server:
         [exec] error: generator error: generator error: java.lang.ClassCastException:
         com.sun.xml.rpc.processor.model.soap.SOAPSimpleType
         [exec] 1 error

    You have run into a bug that will be fixed in the next release of the JWSDP dealing with Exceptions with only one member that is a primitive type. However, changing that member to a boxed (Integer) representation should work, what version of JAXRPC are you using? As a work around you should be able to eliminate the problem by adding one more member to the Exception using a different type.
    Thank you for your interest in JAXRPC

  • ALV field Catalog error

    I tried to build the field catalog as below but it is erroring saying it_fieldcat allows certain data types and ls_fieldcatalog uses a different data type
    TYPE-POOLS: slis.
    data ls_fieldcatalog type SLIS_T_FIELDCAT_ALV
                  with header line.
    DATA: i_repid type sy-repid.
    i_repid = sy-repid.
    ls_fieldcatalog-fieldname = 'Co Code'.
    ls_fieldcatalog-inttype = 'C'.
    ls_fieldcatalog-col_pos = '0'.
    APPEND ls_fieldcatalog to ls_fieldcatalog.
    clear ls_fieldcatalog.
    ls_fieldcatalog-fieldname = 'Document No'.
    ls_fieldcatalog-inttype = 'N'.
    ls_fieldcatalog-col_pos = '1'.
    APPEND ls_fieldcatalog to ls_fieldcatalog.
    clear ls_fieldcatalog.
    ls_fieldcatalog-fieldname = 'GL Account'.
    ls_fieldcatalog-inttype = 'N'.
    ls_fieldcatalog-col_pos = '2'.
    APPEND ls_fieldcatalog to ls_fieldcatalog.
    clear ls_fieldcatalog.
    ls_fieldcatalog-fieldname = 'Posting Date'.
    ls_fieldcatalog-inttype = 'D'.
    ls_fieldcatalog-col_pos = '3'.
    APPEND ls_fieldcatalog to ls_fieldcatalog.
    clear ls_fieldcatalog.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM             =  i_repid
        IT_FIELDCAT                    = ls_fieldcatalog
       I_SAVE                         = 'A'
      TABLES
        t_outtab                       = it_tab
    EXCEPTIONS
       PROGRAM_ERROR                  = 1
       OTHERS                         = 2

    Please fined the below code
    data ls_fieldcatalog type SLIS_FIELDCAT_ALV
           lt_fieldcatlog type SLIS_T_FIELDCAT_ALV
    DATA: i_repid type sy-repid.
    i_repid = sy-repid.
    ls_fieldcatalog-fieldname = 'Co Code'.
    ls_fieldcatalog-inttype = 'C'.
    ls_fieldcatalog-col_pos = '0'.
    APPEND ls_fieldcatalog to lt_fieldcatalog.
    clear ls_fieldcatalog.
    ls_fieldcatalog-fieldname = 'Document No'.
    ls_fieldcatalog-inttype = 'N'.
    ls_fieldcatalog-col_pos = '1'.
    APPEND ls_fieldcatalog to lt_fieldcatalog.
    clear ls_fieldcatalog.
    ls_fieldcatalog-fieldname = 'GL Account'.
    ls_fieldcatalog-inttype = 'N'.
    ls_fieldcatalog-col_pos = '2'.
    APPEND ls_fieldcatalog to lt_fieldcatalog.
    clear ls_fieldcatalog.
    ls_fieldcatalog-fieldname = 'Posting Date'.
    ls_fieldcatalog-inttype = 'D'.
    ls_fieldcatalog-col_pos = '3'.
    APPEND ls_fieldcatalog to lt_fieldcatalog.
    clear ls_fieldcatalog.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = i_repid
    IT_FIELDCAT = lt_fieldcatalog
    I_SAVE = 'A'
    TABLES
    t_outtab = it_tab
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2

Maybe you are looking for

  • Can't install adobe flash player

    i am not a techie, so the previous threads dont help me much -- not basic enough, i guess.   anyway, i cant seem to install adobe flash player.   i often click on a website or something, and it wont run because it says i need adobe flash player (had

  • Help needed In developing project in Java

    Hi guys I am Developing a project in Java. This program test processor performance. Of system. Please tell me which packages to use and what will be basic logic required. basically Test, counter, and help will be used I think.

  • 16mm 4:3 to Adobe timeline without turning Anamorphic

    I have a movie that was filmed in 16mm in 4:3 format. I have a copy of the finished work on a disc, I want to redit in a timeline for a demo reel. Because of its size all the presets put it into a anamorphic format instead of 4:3. Ideally I want to b

  • Proxy error

    Hi SDN,   While executing one program I got out put and in that I got one error message like <b>Error occured during proxy call to send data to XI Application Integration system error.</b> I have check in the program. It was used the classes. I am ne

  • Min to Max Search Web App

    Little Help.  Need to add a search function that will look for a minimum number up to a maximum number from a search form. Already looked up and found some info in bcguru but this only shows a date min and max. Couldn't locate anything else within BC