Operation attempted on non-PersistenceCapable type

I have a Drawing object which contains Shape objects and I want to persist
the drawing:
public class DrawTx extends JdoTx{
Drawing dwg = new Drawing();
public void action() {
pm.makePersistent(dwg);
dwg.add( new Circle(3,3,10) );
dwg.add( new Square(10,10,10) );
System.out.println(dwg.getArea());
Problem is, it fails when I run it:
Operation attempted on non-PersistenceCapable type: "class
smartsoft.shapes.Drawing"
But Drawing IS PC, it's declared as such in the meta data and the schema
tool built the appropriate tables. Any guesses as to why I'm receiving this
error?
Thanks
Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com

Dave,
Could you please post the full stack trace, the location of your metadata
files, and your classpath?
Also, are you certain that you enhanced the DrawTx class? The schematool
will operate on your class even if it has not been enhanced. The best way
to tell for sure if your class has been enhanced is to run 'javap
my.class.Name' from the command line and see if it includes
PersistenceCapable as an implemented interface.
-Patrick
On Mon, 13 Jan 2003 11:24:42 -0500, Dave Ford wrote:
I have a Drawing object which contains Shape objects and I want to
persist the drawing:
public class DrawTx extends JdoTx{
Drawing dwg = new Drawing();
public void action() {
pm.makePersistent(dwg);
dwg.add( new Circle(3,3,10) );
dwg.add( new Square(10,10,10) );
System.out.println(dwg.getArea());
Problem is, it fails when I run it:
Operation attempted on non-PersistenceCapable type: "class
smartsoft.shapes.Drawing"
But Drawing IS PC, it's declared as such in the meta data and the schema
tool built the appropriate tables. Any guesses as to why I'm receiving
this error?
Thanks
Dave Ford
Smart Soft - The Developer Training Company http://www.smart-soft.com
Patrick Linskey
SolarMetric Inc.

Similar Messages

  • An expression of non-boolean type specified in a context where a condition is expected, near ','

    I am getting the error message, "An expression of non-boolean type specified in a context where a condition is expected, near ',' " when running an ssrs 2008 r2 report.
    The sql embedded in the dataset is:
    IF @reportID <> 0
    BEGIN
      SELECT 'Students report 1' AS selectRptName, 1 AS rptNumValue
      UNION
      SELECT 'Students report 2', 2 
      UNION
      SELECT 'Students report 3', 3
      UNION
      SELECT 'Students report 4', 4
      UNION
      SELECT 'Students report 5', 5
      ORDER BY selectRptName
    END
    The sql runs fine in managment studio when I declare @reportID.
    The sql runs fine with I comment out  'IF @reportID <> 0'.
    The @reportID is a parmeter value that is passed to the applicable dataset.
    The @reportID can have more than one value.
    Thus can you show me sql and/or tell me what I need to do to solve the issue for me?

    Hi wendy,
    After testing the issue in my environment, I can reproduce it when I select more than one values in the @reportID parameter drop-down list. As per my understanding, it seems that you are trying to filter the dataset with the @reportID parameter. When it
    doesn’t contain value ‘0’, the dataset returns values. Otherwise, no value is returned in the dataset.
    If in this scenario, we can achieve this requirement with filters in the dataset. For more details, please refer to the following steps:
    Modify the dataset with the below query:
    SELECT 'Students report 1' AS selectRptName, 1 AS rptNumValue
    UNION
    SELECT 'Students report 2', 2 
    UNION
    SELECT 'Students report 3', 3
    UNION
    SELECT 'Students report 4', 4 
    UNION
    SELECT 'Students report 5', 5
    ORDER BY selectRptName
    Click the Filters in the left pane of Dataset Properties dialog box.
    Add a filter as below:
    Expression: =INSTR(JOIN(Parameters!reportID.Value,","),"0")>0
    Type: Boolean
    Operator: =
    Value: false
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • An expression of non boolean type specified in context near id

    Hi
    Sorry for duplicate posting. I am desperately looking to solve the issue for  display image tif format using datawindow inkpict. I am little bit going progress .
    My Sqlserver  table  <mpdoc>
    id <int>, empdoc  <image>
    In datawindow object I have given id as id and large binary column as empdoc. But after when I retrieve the datawindow it is showing the error
    'an expression of non Boolean type specified in context near id' how can I fix this error.Please help
    dw_1.settransobject(sqlca)
    dw_1.retrieve()
    I am very desperate at the moment with the powerbuilder to display tif image   and also I can only get the help from this site.
    if it is not working in PB, I have to use C#.
    With Many Thanks
    Pol

    Hi wendy,
    After testing the issue in my environment, I can reproduce it when I select more than one values in the @reportID parameter drop-down list. As per my understanding, it seems that you are trying to filter the dataset with the @reportID parameter. When it
    doesn’t contain value ‘0’, the dataset returns values. Otherwise, no value is returned in the dataset.
    If in this scenario, we can achieve this requirement with filters in the dataset. For more details, please refer to the following steps:
    Modify the dataset with the below query:
    SELECT 'Students report 1' AS selectRptName, 1 AS rptNumValue
    UNION
    SELECT 'Students report 2', 2 
    UNION
    SELECT 'Students report 3', 3
    UNION
    SELECT 'Students report 4', 4 
    UNION
    SELECT 'Students report 5', 5
    ORDER BY selectRptName
    Click the Filters in the left pane of Dataset Properties dialog box.
    Add a filter as below:
    Expression: =INSTR(JOIN(Parameters!reportID.Value,","),"0")>0
    Type: Boolean
    Operator: =
    Value: false
    The following screenshot is for your reference:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to edit the ACS Report Password Change Attempts by Non-Owner

    Hi,
    The scenario is the following: 1 SCOM 2007 R2 CU5 Server. ACS Installed.
    I need to add a column to the report "Password Change Attempts by Non-Owner"
    But, using SQL Server Reporting Services Report Builder 1.0, I get the following error:
    The question is:
    How to add a column in the report "Password Change Attempts by Non-Owner"?
    Thanks!

    Based on my understanding, this report could not be edited. You may need to try creating another report to achieve this:
    Some Custom ACS Reports
    http://blogs.technet.com/b/jimmyharper/archive/2009/12/10/some-custom-acs-reports.aspx
    Audit Report Scenarios: How to create custom reports with System Center Operations Manager 2007 R2 and Audit Collection Services (ACS)
    http://blogs.technet.com/b/nzdse/archive/2009/11/06/audit-scenarios-system-center-operations-manager-2007-r2-and-audit-collection-services-acs.aspx
    Hope this helps.
    Thanks.
    Nicholas Li
    TechNet Community Support

  • TT5121 error - Non standard type mapping?

    Hi all,
    I'm creating cache groups on the TT database, but for some tables I'm getting the following error:
    TT5121: Non standard type mapping for column [Schema].[Table].[Column], cache operations are restricted.
    I'm creating the tables on TT using the Oracle tables DDL, so I quite don't understand where's the problem. I found another thread here on OTN with a similar problem, but it didn't help me. Both TT and Oracle have the UTF8 Character Set.
    Can anyone help?
    Thanks,
    André

    Hi Chris,
    The DDL for the 11g source table:
    CREATE TABLE DMTCMT_AT.DIM_ADDRESS
      ADDRESS_ID                      NUMBER(19)    NOT NULL,
      ADDRESS_CODE                    VARCHAR2(40 CHAR),
      ADDRESS_TYPE                    VARCHAR2(32 CHAR),
      STREETNAME                      VARCHAR2(64 CHAR),
      HOUSE_NUMBER                    VARCHAR2(16 CHAR),
      HOUSE_NUMBER_EXTENSION          VARCHAR2(8 CHAR),
      HOUSE_NAME                      VARCHAR2(64 CHAR),
      FLAT_NUMBER                     VARCHAR2(16 CHAR),
      FLOOR_NUMBER                    VARCHAR2(16 CHAR),
      STAIR_CASE                      VARCHAR2(16 CHAR),
      ZIP_CODE                        VARCHAR2(8 CHAR),
      ZIP_CODE_WITHOUT_EXTENSION      VARCHAR2(8 CHAR),
      ZIP_CODE_EXTENSION              VARCHAR2(8 CHAR),
      DISTRICT_NAME                   VARCHAR2(64 CHAR),
      CITY_NAME                       VARCHAR2(64 CHAR),
      COMMUNITY_NAME                  VARCHAR2(64 CHAR),
      REGION_NAME                     VARCHAR2(64 CHAR),
      COUNTRY_NAME                    VARCHAR2(64 CHAR),
      PO_BOX_NUMBER                   VARCHAR2(16 CHAR),
      PO_BOX_TYPE                     VARCHAR2(16 CHAR),
      X_COORDINATE                    VARCHAR2(16 CHAR),
      Y_COORDINATE                    VARCHAR2(16 CHAR),
      IS_COMPLETE                     VARCHAR2(1 CHAR),
      DSL_FRANCHISE_ID                NUMBER(19),
      CABLE_FRANCHISE_ID              NUMBER(19),
      OBJECT_SCD1_WID                 NUMBER(19),
      OBJECT_WID                      NUMBER,
      EXTERNAL_ID                     VARCHAR2(255 BYTE),
      VALID_FOR_START_DATE_TIME       DATE,
      VALID_FOR_END_DATE_TIME         DATE,
      META_VALID_FOR_START_DATE_TIME  DATE,
      META_VALID_FOR_END_DATE_TIME    DATE,
      META_DATASOURCE_ID              NUMBER(19),
      META_CREATION_DATE              DATE,
      META_IS_CURRENT                 VARCHAR2(1 BYTE),
      META_IS_VALID                   VARCHAR2(1 BYTE),
      META_IS_ACTIVE                  VARCHAR2(1 BYTE),
      META_BUSINESS_UNIT_ID           NUMBER(19),
      META_COUNTRY_CODE               VARCHAR2(3 BYTE) NOT NULL,
      META_PROCESS_ID                 NUMBER(19),
      META_MODIFICATION_DATE          DATE,
      MD5_CRC                         VARCHAR2(32 BYTE),
      IS_SELF_INSTALL                 VARCHAR2(1 BYTE),
      SELF_INSTALL_DATE               DATE,
      BUSINESS_FRANCHISE_ID           NUMBER(20)
    TABLESPACE CDMDWHPE
    PCTUSED    0
    PCTFREE    10
    INITRANS   1
    MAXTRANS   255
    STORAGE    (
                INITIAL          64K
                NEXT             1M
                MINEXTENTS       1
                MAXEXTENTS       UNLIMITED
                PCTINCREASE      0
                BUFFER_POOL      DEFAULT
    LOGGING
    NOCOMPRESS
    NOCACHE
    NOPARALLEL
    MONITORING
    ENABLE ROW MOVEMENT;
    The DDL for the TT cache group:
    CREATE READONLY CACHE GROUP DIM_ADDRESS_AT FROM DMTCMT_AT.DIM_ADDRESS
    ( ADDRESS_ID                      NUMBER(19)    NOT NULL,
      ADDRESS_CODE                    VARCHAR2(40 CHAR),
      ADDRESS_TYPE                    VARCHAR2(32 CHAR),
      STREETNAME                      VARCHAR2(64 CHAR),
      HOUSE_NUMBER                    VARCHAR2(16 CHAR),
      HOUSE_NUMBER_EXTENSION          VARCHAR2(8 CHAR),
      HOUSE_NAME                      VARCHAR2(64 CHAR),
      FLAT_NUMBER                     VARCHAR2(16 CHAR),
      FLOOR_NUMBER                    VARCHAR2(16 CHAR),
      STAIR_CASE                      VARCHAR2(16 CHAR),
      ZIP_CODE                        VARCHAR2(8 CHAR),
      ZIP_CODE_WITHOUT_EXTENSION      VARCHAR2(8 CHAR),
      ZIP_CODE_EXTENSION              VARCHAR2(8 CHAR),
      DISTRICT_NAME                   VARCHAR2(64 CHAR),
      CITY_NAME                       VARCHAR2(64 CHAR),
      COMMUNITY_NAME                  VARCHAR2(64 CHAR),
      REGION_NAME                     VARCHAR2(64 CHAR),
      COUNTRY_NAME                    VARCHAR2(64 CHAR),
      PO_BOX_NUMBER                   VARCHAR2(16 CHAR),
      PO_BOX_TYPE                     VARCHAR2(16 CHAR),
      X_COORDINATE                    VARCHAR2(16 CHAR),
      Y_COORDINATE                    VARCHAR2(16 CHAR),
      IS_COMPLETE                     VARCHAR2(1 CHAR),
      DSL_FRANCHISE_ID                NUMBER(19),
      CABLE_FRANCHISE_ID              NUMBER(19),
      OBJECT_SCD1_WID                 NUMBER(19),
      OBJECT_WID                      NUMBER,
      EXTERNAL_ID                     VARCHAR2(255 BYTE),
      VALID_FOR_START_DATE_TIME       DATE,
      VALID_FOR_END_DATE_TIME         DATE,
      META_VALID_FOR_START_DATE_TIME  DATE,
      META_VALID_FOR_END_DATE_TIME    DATE,
      META_DATASOURCE_ID              NUMBER(19),
      META_CREATION_DATE              DATE,
      META_IS_CURRENT                 VARCHAR2(1 BYTE),
      META_IS_VALID                   VARCHAR2(1 BYTE),
      META_IS_ACTIVE                  VARCHAR2(1 BYTE),
      META_BUSINESS_UNIT_ID           NUMBER(19),
      META_COUNTRY_CODE               VARCHAR2(3 BYTE) NOT NULL,
      META_PROCESS_ID                 NUMBER(19),
      META_MODIFICATION_DATE          DATE,
      MD5_CRC                         VARCHAR2(32 BYTE),
      IS_SELF_INSTALL                 VARCHAR2(1 BYTE),
      SELF_INSTALL_DATE               DATE,
      BUSINESS_FRANCHISE_ID           NUMBER(20)
      PRIMARY KEY ("OBJECT_WID"));
    Thanks,
    André

  • "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

  • Plz help upgrade issue moving data from char type structure to non char typ

    Hi Experts
    plz help its very urgent
    Data :workout(5000) .
    FIELD-SYMBOLS : <FS_WORKOUT> TYPE ANY.  
    workout = '         u' .
    ASSIGN WORKOUT TO <FS_WORKOUT> CASTING TYPE C .
                      BAPISDITM = <FS_WORKOUT>.
    i am getting dump after BAPISDITM = <FS_WORKOUT>.
    i think i am getting the dump bcoz i am moving character type structure to non character type structure but i think with field symbols we can remove this issue thats y i used it but its not working plz help me
    its very urgent
    *dump is :*
    Short text
        Data objects in Unicode programs cannot be converted.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZSDR0009" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    How to correct the error
        Use only convertible operands "dst" and "src" for the statement
           "MOVE src TO dst"
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UC_OBJECTS_NOT_CONVERTIBLE" " "
        "ZSDR0009" or "ZSDR0009_I02"
        "USER_COMMAND"
    thanx in advance

    i got d solution in this thread
    Hi all,
    data: gv_line(6000) type c.
    Bvbapkom = gv_line.
    But i am getting the Error like : gv_line and Bvbapkom are not mutually convertable.
    Note: Bvbapkom is a Structure
    How do i solve this ?
    Mahesh
    KR  
    Posts: 210
    Registered: 11/24/06
    Forum Points: 0 
      Re: gv_line and Bvbapkom are not mutually convertable.  
    Posted: Nov 30, 2007 8:40 AM    in response to: KR         Reply 
    Hi ,
    i got the solution
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.
    Nasaka Ramakris...  
    Posts: 4
    Registered: 1/19/08
    Forum Points: 20 
      Re: gv_line and Bvbapkom are not mutually convertable.   
    Posted: Jan 19, 2008 7:42 AM    in response to: KR         Reply 
    Hi Check this answer.
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.

  • Non-character-type structure need to be written in ASCI File in Unicode sys

    Hi Gurus,
    I am trying to write a structure into a ASCI file iapplication server.
    My code is as follows.
    data : ls_header type BBP_PDS_CTR_HEADER_D ,
           lv_filename TYPE  rlgrap-filename VALUE '/interface/AEE/IN/kalandi'.
    CALL FUNCTION 'BBP_PD_CTR_GETDETAIL'
    EXPORTING
       I_OBJECT_ID               = '4000000196'
    IMPORTING
       E_HEADER                  = ls_header.
    open dataset lv_filename for output in text mode encoding default .
    if sy-subrc = 0.
    transfer ls_header to lv_filename.
    close dataset lv_filename.
    endif.
    but it ives a dump .
    Error is :
        "TRANSFER f TO ..."
    only character-type data objects are supported at the argument position
    "f".
    In this case. the operand "f" has the non-character-type
      "BBP_PDS_CTR_HEADER_D". The
    current program is a Unicode program. In the Unicode context, the type
    'X' or structures containing not only character-type components are
    regarded as non-character-type.
    Thanks a lot in advance.
    Points will be awared for appropriate Answers.
    Regards
    kalandi

    Hi,
    I think here ls_header and lv_filename are not compatible to transfer the data.
    Regards,
    Satish

  • Security error: Cannot authorize operation for invalid non-ASCII URL

    I have an error that popped up with Flash Player 10.1.85.3 or 10.1.82.76.
    In our application, we load users' avatars with their original filename. Some filenames have non-ASCII characters (i.e. Hebrew, accents, or umlauts) and I can no longer load those files from a different subdomain.
    For example, I'm trying to load this image (with the Loader class and a LoaderContext):
    http://photos.myawesomedomain.com/images/awesöme.jpg  (o with umlaut)
    It comes to me encoded in UTF-8:
    http://photos.myawesomedomain.com/images/awes%C3%B6me.jpg  (umlaut converted to %C3%B6)
    When I try to load the file from http://myawesomedomain.com/myawesome.swf, I get this error:
    *** Security Sandbox Violation ***
    Connection to http://photos.myawesomedomain.com/images/awesöme.jpg halted - not permitted from http://myawesomedomain.com/myawesome.swf
    Error: Cannot authorize operation for invalid non-ASCII URL http://photos.myawesomedomain.com/images/awesöme.jpg
    If I try this with a player earlier than 10.1.82.76, it works. It also works if I move the file to the same domain as the SWF (http://myawesomedomain.com/images/awesöme.jpg) -- but that's not an option for me. Files without unusual characters work regardless of the player version.
    The error occurs when I try to access the bitmap data of the loaded image. I've tried encoding the URL differently, but Flash always reports it as "http://photos.myawesomedomain.com/images/awesöme.jpg" - with the umlaut converted to strange characters. The cross domain file allow-access-from "*.myawesomedomain.com"
    Has anyone run into this? Is there a way I can fix it without renaming the users' photos (we have tens of thousands of these)?
    I feel like I must be missing something obvious; hardly anything comes up in Google for this, but I don't think it would be an uncommon problem.  I believe https://bugs.adobe.com/jira/browse/FP-5580 is related.
    Thanks!

    The problem is based on the player version, not the browser.
    The problem showed up in Chrome first because it auto-updates the player; when Firefox users installed the updated player, they started having the problem, too.

  • "An expression of non-boolean type specified in a context where a condition

    I have below query and its respective result set "0 and NoofRows" in Execute SQL task
    select count(*) from TEMP_InterfaceSAP_LoadFile
    where (timeid = '20110100' and  ([ENTITY_AFF] in (N'6050')))
    When I run the task individually, there is no issue at all, but when I tried run it as whole, I'm getting below error.
    "[Execute SQL Task] Error: Executing the query "select count(*) from TEMP_PM_InterfaceSAP_LoadFile..." failed with the following error: "An expression of non-boolean type specified in a context where a condition is expected, near ')'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly."

    I have below query and its respective result set "0 and NoofRows" in Execute SQL task
    select count(*) from TEMP_InterfaceSAP_LoadFile
    where (timeid = '20110100' and (ENTITY_AFF in (N'6050')))
    When I run the task individually, there is no issue at all, but when I tried run it as whole, I'm getting below error.
    "Execute SQL Task Error: Executing the query "select count(*) from TEMP_PM_InterfaceSAP_LoadFile..." failed with the following error: "An expression of non-boolean type specified in a context where a condition is expected, near ')'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly."
    ======================================================================
    Hi Prabhu0505,
    You may enclose the string with ' ' in SQL task if you use SQL command, then you need to adjust your delimeter to avoid wrong interepretation. I cannot say how you can fix the problem, but I remember there was more ' such as '''6050''' and so on, please find out correct SQL expression in an eclosed string.
    This is one of thing I remember, I used ADO connection in SQL script task in SSIS and there were lots of SQL in command, the ' quatation is tricky one.
    Regards,
    YH Seo

  • Search Server Error - Illegal operation attempted on a registry key that has been marked for deletion

    Hello,
    I have a 5 server farm (DC, 2 WFEs, 1 SQL,1 CA w/ search) and am experiencing an issue when returning search results.  This issue just started occurring recently, and basically the search page throws a correlation id whenever used.  The error returned
    is:
    SearchServiceApplication::Execute--Exception: System.Runtime.InteropServices.COMException (0x800703FA): Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)
    SearchServiceApplicationProxy::Execute--Error occured: System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA) (Fault Detail
    is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is: System.Runtime.InteropServices.COMException: Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA)
    I even attempted to create an out of the box enterprise search site with OOB masterpages and I still am receiving this error.  
    I have also tried the  ‘Do not forcefully unload the registry at user logoff’ registry edit, but it did not work.
    Has anyone ran into this issue and has another solution other than the ‘Do not forcefully unload the registry at user logoff’ registry edit?
    Thanks!

    IISReset works for me (but after some time it fails again)
    Check this posts: http://pacsharepoint.com/2011/11/sharepoint-search-illegal-operation.html
    http://blogs.msdn.com/b/distributedservices/archive/2009/11/06/a-com-server-application-may-stop-working-on-windows-server-2008.aspx
    hope it helps,

  • Union of non-compatible types error in column formula in obiee

    Hi Experts,
    Error: Union of non-compatible types
    I used Case function in my column formula and got above error as a result.
    The column formula goes below:
    IFNULL(CASE WHEN EDM_TRD_IR_LEG.LEG_ID=1 THEN (EDM_TRD_IR_LEG.PAY_RECV_IND) ELSE 0 END, 0)
    LEGID is numeric type. PAY_RECV_IND is varchar type.
    Please let me know how to resolve this error.
    Thanks in Advance.
    -Regards
    Mayuri

    898221 wrote:
    Hi Experts,
    Error: Union of non-compatible types
    I used Case function in my column formula and got above error as a result.
    The column formula goes below:
    IFNULL(CASE WHEN EDM_TRD_IR_LEG.LEG_ID=1 THEN (EDM_TRD_IR_LEG.PAY_RECV_IND) ELSE 0 END, 0)
    LEGID is numeric type. PAY_RECV_IND is varchar type.
    Please let me know how to resolve this error.
    Thanks in Advance.
    -Regards
    Mayuri@dpka, you have syntax errors in your solution. If you're casting as varchar, then your syntax should read '1' instead of 1. Also at the end, it should be '0' instead of 0.
    Mayuri,
    To use your syntax, try this:
    IFNULL(CASE WHEN EDM_TRD_IR_LEG.LEG_ID=1 THEN CAST(EDM_TRD_IR_LEG.PAY_RECV_IND AS INTEGER) ELSE 0 END, 0)
    ...if you need the result as a numeric for aggregation purposes...

  • [nQSError: 22027] Union of non-compatible types

    Hi Gurus,
    I am trying to create a union report but i am getting an error as [nQSError: 22027] Union of non-compatible types. One of the column is Int Datatype and other column is Varchar. What do i need to do to change the datatype to resolve this issue
    Really appreciate your help
    Regards

    Hi,
    In the report, you can use CAST( int_datatype_col as Char) for the int datatype column in the report.
    Hope this helps.
    Thanks
    Chandu.

  • Conversion error with non-primitive types

    I'm wondering if anyone else is seeing this problem or has a potential solution.
    The problem, in a nutshell:
    I have beans that use non-primitive types (Float instead of float) in the getters and setters. However I keep getting conversion error problems. If I switch to primitive types, I don't get conversion errors. The built-in FloatConverter says (in the documentation at least) that it supports both primitives and boxed types. This was all working in EA4, though. I am discovering this problem as I migrate from EA4 to 1.0.
    The code is pretty straightforward:
    public class Bean implements Serializable {
    public float getProp() {...}
    public void setProp(float) {...}
    public Float getPropOld() {...}
    public void setPropOld(Float) {...}
    <!-- works -->
    <h:inputText id="floatinput" value="#{BeanInstance.prop}"/>
    <!-- doesn't work -->
    <h:inputText id="floatinputold" value="#{BeanInstance.propOld}"/>
    Any ideas? I have tried explicitly calling the FloatConverter but that gave the same problems.

    Okay, I figured out my problem.
    The JSF spec implies that f:convertNumber may be used inside an h:inputText tag. The early versions of Core JSF go further and show f:convertNumber being used inside an h:inputText tag in one of the examples. (Chapter 7, conversions).
    However, this has been the source of my problem. When using f:convertNumber, the converter would automatically determine the data type without regard to the data type in the backing bean. Hence, it would try to pass Longs or Doubles to the bean instead of Floats.
    I believe this may be an issue in the 1.0 FR release.

  • How to debug a RFC function  when the user is non-dialog type? Please help!

    hi Experts,
      I am calling a RFC FM residing in B from R/3 system A.
    R/3 A -
    Call FM residing in B----
    > R/3 B
    The user attached to the remote destination is a non-dialog type.
    I cannot change the user type of this user.
    Therefore how to debug the RFC FM in System A?
    Are there any alternatives?
    Please help
    Thanks
    Gopal

    in your RFC FM, code an endlees loop.
    something like:
    data: gv_x  type xfeld value 'X'.
    do.
      if gv_x = space.
        exit.
      endif.
    enddo.
    now you can catch the mode in TA SM50, go in it, change gv_x to space and debug what is coming further.

Maybe you are looking for

  • Differences between Acrobat 8 and 9 for Comparing two document

    Hi, We have huge differences in Acrobat 8 and 9 while doing comparing the two document even both the text are identical. Acrobat 8 comparison document is very easy and effective when compare to Acrobat 9. I have attached the Acrobat 9 and 8 compariso

  • Internal Error 2318

    Hi All, I hope I can find an answer for the problem I have with updating/installing Java 7 (JRE) update 67 32 bit on Windows 8.1 x64 bit system. The 64 bit Java 7 update 67 installs fine. In the past there were no issues with updating JRE 32 bit to n

  • No response When I clicked Bex Broadcaster

    Hi All, In BW Development system I am able to Broadcast my query into Internet Explorer. Where as BW Quality system not able to do it, when I clicked Bex Broadcaster option In query designer, No response. FYI..I have authorizations as like BW Develop

  • Error in UWL when launching the corresponding workitem using webgui

    Hi Folks, I am trying to configure the UWL in EP6.0 almost everything is worked but at the last when i click on the work item in the UWL iview, it has to open the corresponding transaction in the R/3 webgui, instead of that it is giving the error as

  • Oracle 6i Developer Runtime

    we require the Oracle 6i Developer Runtime software or at least need to know what we should be placing on our client machines for some software that was developed using the 6i Developer series. I downloaded the 230MB file and it contains everything,