User-Defined Data Type (Data Transfer Objects) is null

hi
i try to access a nested complex datatype over blazeds. i always see that the second level of the  complex datatye is NULL but the other data's like String are ok.
here an example:
as you can see TT1 has a member TT2, and a String
TT2 has a member TT3 and a string
and TT3 has just a string.
in the ActionScript the TT2 referenz in TT1 is always NULL.
Java Code
Java code:
package clientreportingserver;
public class TT1 {
    public String getT1s() {
        return t1s;
    public void setT1s(String t1s) {
        this.t1s = t1s;
    String t1s;
    public TT2 getTt2() {
         return tt2;
    public void setTt2(TT2 tt2) {
         this.tt2 = tt2;
    TT2 tt2;
=================================================
package clientreportingserver;
public class TT2 {
    public String getT2s() {
        return t2s;
    public void setT2s(String t2s) {
        this.t2s = t2s;
    String t2s;
    public TT3 getTt3() {
         return tt3;
    public void setTt3(TT3 tt3) {
         this.tt3 = tt3;
    TT3 tt3;
=================================================
package clientreportingserver;
public class TT3 {
     public String getT3s() {
        return t3s;
    public void setT3s(String t3s) {
        this.t3s = t3s;
    String  t3s;
ActionScript DataType
package clientreporting.model
import mx.collections.ArrayCollection;
[RemoteClass(alias="clientreportingserver.TT1")]
[Bindable]
public class TT1
    public var t1s:String;
    public var t2:TT2
====================================================================
package clientreporting.model
import mx.collections.ArrayCollection;
[RemoteClass(alias="clientreportingserver.TT2")]
[Bindable]
public class TT2
    public var t2s:String;
    public var t2:TT3
===================================================================
package clientreporting.model
import mx.collections.ArrayCollection;
[RemoteClass(alias="clientreportingapi.TT3")]
[Bindable]
public class TT3
    public var t3s:String;
here the output from blazeds. for me it looks perfect, all data are transmitted
BlazeDs output
[BlazeDS]Deserializing AMF/HTTP request
Version: 3
  (Message #0 targetURI=null, responseURI=/5)
    (Array #0)
      [0] = (Typed Object #0 'flex.messaging.messages.RemotingMessage')
        source = null
        operation = "getTT"
        destination = "exposedServiceWrapper"
        clientId = "E57066B1-170E-503A-D4EC-004166E95FC3"
        body = (Array #1)
        timeToLive = 0
        headers = (Object #2)
          DSEndpoint = "channel-amf"
          DSId = "E570490A-C218-4A29-4229-8CD6F29222FC"
        timestamp = 0
        messageId = "5FDB47AD-9066-DD95-4CD4-0CE0D3F6C337"
[BlazeDS]Adapter 'java-object' called 'null.getTT(java.util.Arrays$ArrayList (Collection size:0)
[BlazeDS]Result: 'clientreportingserver.TT1
  t1s = TT 1 String
  tt2 = clientreportingserver.TT2
    t2s = TT 2 String
    tt3 = clientreportingserver.TT3
      t3s = TT 3 String
[BlazeDS]Serializing AMF/HTTP response
Version: 3
  (Message #0 targetURI=/5/onResult, responseURI=)
    (Externalizable Object #0 'DSK')
      (Typed Object #1 'clientreportingserver.TT1')
        t1s = "TT 1 String"
        tt2 = (Typed Object #2 'clientreportingserver.TT2')
          t2s = "TT 2 String"
          tt3 = (Typed Object #3 'clientreportingserver.TT3')
            t3s = "TT 3 String"
1.262936445958E12
(Byte Array #4, Length 16)
(Byte Array #5, Length 16)
(Byte Array #6, Length 16)
the last Alert (accessing t2) got always a null pointer, the fist Alert works fine and print out the string i expected to see
call in ActionScript
    public function loadTT():void {
       _policyService.getTT(loadTTHandle);
    private function loadTTHandle(content:TT1):void {
       Alert.show("" + content.t1s);
       Alert.show("" + content.t2.t2s);
is it possible to access a nested complex type? i only could find simple examples.
thanks for your help joe

I found the problem
in the flashlog.txt i found :ReferenceError: Error #1056: Cannot create property AFoo on [...]
this let me to this blog http://blog.comtaste.com/java/  ==>
Automating  ActionScript 3 classes generation from Java Beans in a LiveCycle Data Services context
it was a naming problem.

Similar Messages

  • User defined table types sometimes show up a unknown data type in Profiler

    A couple of our users have a problem when using user defined table types. Calls are made using UDTT as variables and these are then passed to a stored procedure as parameters. Sometimes the application returns a timeout. In such situations a Profiler-Trace
    shows the following:
    declare @p4 unknown
    whereas the correct trace (that is sometimes displayed) should be:
    declare @p4 dbo.ReportFilterTableType
    ReportFilterTableType is a UDTT. The users do have correct permissions for the UDTT (otherwise they would never be usable for the user). What could be the reason that the data types for the variable
    @p4 in the example are sometimes returned as unknown and at other times are returned correctly as
    ReportFilterTableType? Could this possibly be a network related issue?
    Thank you.
    Graham Goodwin Email: [email protected]

    I know this is a old post, but i am also facing the same issue that too in my production server. Did you find any workarround for this issue. Please do reply. Critical problem we are facing.
    Alka, Is your problem timeouts when passing TVP parameters, or is it that a Profiler Trace shows type "unknown" for the TVP data type name?
    If your problem is timeouts, be aware that TVPs do not have statistics so the optimizer might not be able to generate an optimal plan for non-trivial queries. Declaring a primary key or unique constraint on the table type may help since that will provide
    useful cardinality information.  You may need to resort to hints in some cases.
    I suggest you start a new thread with details of your specific situation if the information in this thread doesn't help.
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Characteristic of Data Type = Date follows User Profile Only

    Hi All
    In EHS SVT the characteristic TSCAList_Date [SAP_EHS_1023_053_DATE_LIST] is of Data Type = Date) and follows the date format defined in the User Profile of actual user.
    If a user is using EU profile such as:
    EU date format = 1 DD.MM.YYYY
    EU decimal notation format = 1.234.567,89
    If he enters a date in another format (Such as YYYY-MM-DD - 2010-03-27) than the one defined in the User Profile (DD.MM.YYYY - 27.03.2010); he will get an error message text:  "Value (&) is not numeric"
    Question:
    How he can bypass this error and allow SAP make the conversion to changing the date entered (2010-03-27) to the one used in the User profile (27.03.2010)?
    I will apreciate any Help
    KO

    Hello Ouadria
    very interesting request indeed.
    a.) my understanding of SAP GUI approach is: user has an user id and logon parameter
    b.) by specifing an user profile some "default" set up should be used in further UI interaction in SAP GUI interface (especially date format etc.)
    c.) Therefore it makes "no" sense to use a "different" format in entering a date etc. as specified in the user profile; in addition I believe the "look and feel" of the data (display and no maintain) is once again connected to the user profile, That means if you change the data in user profile the "date" format and "numeric" format should change in UI; this "change" should be active after saving the profile once again (regarding fonts etc. in UI: the change is done "immediate"; user profile changes is done in a further session and I believe the original session is not changed (not sure ..))
    d.) indipendent on  user profile the application makes sure that the data is written into the SAP internal format (date and numeric vlaue) into the tables
    Coming with EH&S 2.7 you can use a new function in class/characteristic maintenance to change (display conversion in different allowed UOM) "UOMs" (etc.) and to get an idea which UOMs are allowed. I believe (not sure) that this new function should be available regarding characteristics of date format too. This function is "hidden" in some sense in the Menue (if I remember correct; i am not using it often).
    May be you could think of a "tricky" way to use the user parametres (by preparing some programming) but I would not investigate the money (and time) but simple change the user profile enter the data and then change back the profile.
    Different "easy" solution would be to use a second user id (one with default format DD.MM.YYYY and second with YYYY-MM-DD)
    May be this helps
    With best regards
    C.B.
    PS: Regarding UOM conversion: take a look here:
    http://help.sap.com/erp2005_ehp_04/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
    And search for topic: "Conversion of Units of Measurement"  which can be found in "Editing Characteristic Values" which is subtopic of: "Value Assignment "
    Edited by: Christoph Bergemann on Nov 19, 2010 10:08 PM
    Edited by: Christoph Bergemann on Nov 19, 2010 10:11 PM

  • Reference data types in interface objects?

    How do you create reference data type based on data type in interface object??

    First create the reference DT1 in IR then create a new data type DT2 and if you want to create a reference to DT1 then in  the editor select Type (3rd coloum) as the DT1 which you can get by double click on Type and then you select "search help" and select DT1 from the list.
    Cheer's

  • User defined table type output not coming

    hi all,
    i have a userdefined type delcared as:
    create or replace TYPE SAMPLE_SEARCH AS OBJECT (
    -- LIST OF VARIABLE NAMES AND RESPECTIVE DATA TYPE
    i have a user defined table type defined as:
    create or replace TYPE SAMPLE_SEARCH_TABLE IS TABLE OF SAMPLE_SEARCH;
    I have a stored proc which has an output paramter of type SAMPLE_sEARCH_TABLE.
    that is,
    sp_sample_proc(sample_search_tb OUT SAMPLE_SEARCH_TABLE);
    When i invoke the above stored proc from an anonymous pl/sql block , how can i display the contents of the output parameter using dbms_Output statements?

    Try this.........This is just a sample code.
    CREATE OR REPLACE TYPE address1 AS OBJECT
    (country VARCHAR2(1000),
    city VARCHAR2(1000),
    zip NUMBER,
    add1 VARCHAR2(4000),
    add2 VARCHAR2(4000));
    CREATE OR REPLACE TYPE t_addObj IS TABLE OF address1;
    CREATE OR REPLACE PROCEDURE Sp_Address_Obj(Out_Add_Obj OUT t_Addobj) IS
    v_Addobj t_Addobj := t_Addobj();
    BEGIN
    SELECT Address1(u.Object_Name,
    u.Object_Type,
    u.Object_Id,
    'Add01' || Rownum,
    'Add02' || Rownum) BULK COLLECT
    INTO v_Addobj
    FROM User_Objects u;
    Out_Add_Obj := v_Addobj;
    END Sp_Address_Obj;
    DECLARE
    v_Addobj t_Addobj := t_Addobj();
    BEGIN
    Sp_Address_Obj(v_Addobj);
    Dbms_Output.Put_Line(v_Addobj(1).City);
    FOR i IN 1 .. v_Addobj.Count LOOP
    Dbms_Output.Put_Line(v_Addobj(i).Country || '-' ||
    v_Addobj(i).City || '-' ||
    v_Addobj(i).Zip || '-' ||
    v_Addobj(i).Add1 || '-' ||
    v_Addobj(i).Add2);
    END LOOP;
    END;

  • How do i declare a user defined table type sproc parameter as a local variable?

    I have a procedure that uses a user defined table type.
    I am trying to redeclare the @accountList parameter into a local variable but it's not working and says that i must declare the scalar variable @accountList.this is the line that is having the issue: must declare the scalar variable @accountListSET @local_accountList = @accountListALTER PROCEDURE [dbo].[sp_DynamicNumberVisits] @accountList AS integer_list_tbltype READONLY
    ,@startDate NVARCHAR(50)
    ,@endDate NVARCHAR(50)
    AS
    BEGIN
    DECLARE @local_accountList AS integer_list_tbltype
    DECLARE @local_startDate AS NVARCHAR(50)
    DECLARE @local_endDate AS NVARCHAR(50)
    SET @local_accountList = @accountList
    SET @local_startDate = @startDate
    SET @local_endDate = @endDate
    CREATE TYPE [dbo].[integer_list_tbltype] AS TABLE(
    [n] [int] NOT NULL,
    PRIMARY KEY CLUSTERED
    [n] ASC
    )WITH (IGNORE_DUP_KEY = OFF)
    GO

    Why are you asking how to be an awful SQL programmer??  Your whole approach to SQL is wrong.
    We have a DATE data type so your insanely long NVARCHAR(50) of Chinese Unicode strings is absurd. Perhaps you can post your careful research on this? Can you post one example of a fifty character date in any language? 
    The use of the "sp_" prefix has special meaning in T-SQL dialect. Good SQL programmers do not use CREATE TYPE for anything. It is dialect and useless. It is how OO programmers fake it in SQL. 
    The design flaw of using a "tbl-" prefix on town names is called "tibbling" and we laugh at it. 
    There are no lists in RDBMS; all values are shown as scalar values. First Normal Form (1NF)? This looks like a set, which would have a name. 
    In any -- repeat any -- declarative programming language, we do not use local variables. You have done nothing right at any level. You need more help than forum kludges. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Error when try Specify User-Defined Text Types

    Hi all,
    I have a problem when I try to Specify User-Defined Text Types. The system gave me the error what is described below. Do you know how to solve a problem?
    F1
    Choose the key from the allowed namespace
    Message no. SV019
    Diagnosis
    You have attempted to create an entry and have used a key which is not in your namespace.
    This can cause problems in later upgrades because the entry could be overwritten by an import, or overwrite an existing entry.
    Procedure
    Check your entry and try to enter a key value from your namespace.
    You can display the namespace definition with RDDKOR54.
    If you must use the key entered, document your change so that it can be repeated after an upgrade or release change if necessary. If you put the data in a change request, you can export it before an upgrade or release change, and import it again afterwards.

    do you have more details or advice and so on?

  • Handle null value in char infoobject -data type DATE(ora-01722 invalid num)

    Hi,
    We have a DSO with a info object in the Data fields. The char info object has the data type DATE and most often it has the null value. but some times  it has data in it.
    When ever we were trying to run a report on the DSO it throws a error  as  ORA- 01722 INVALID NUMBER.
    we tried editing PSA data and placing 00000000 for null values - and had a message  invalid date.
    suggestions pls
    Regards.

    Hello,
    Please check the note given below
    https://service.sap.com/sap/support/notes/1327167.
    If null value is the problem,  change the query setting for not to show the null values. Just add a filter in ZDAT to exclude "NULL"
    Thanks
    Nidhi

  • Issue with Data type 'Date' in Hyperion Planning V11.1.2.2

    Hi,
    I have created members with data type date. However when I save the date, it either disappears or comes up with a random date? Has any one come across this kind of problem before?
    If so can you share the fix.
    Thanks in advance for your help.
    Cheers,
    XXX

    Hi
    This problem is linked to you not having a consistent setting for your date input type.
    So, go to application administration and set the date format to MM/DD/YYYY in application settings and display options, under current application defaults. Then after you have done this as a user go to User Preferences and display options and on the date format select the same. Or remove the Automatically detect.
    I have seen this behaviour if you have Automatically Detect on the user preferences
    Thanks
    Anthony

  • Syntax error when creating a user-defined table type in SQL Server 2012

    Why am I getting a syntax error when creating a user-defined table type in SQL Server 2014?
    CREATE TYPE ReportsTableType AS TABLE 
    ( reportId INT
    , questionId INT
    , questionOrder INT );
    Results:
    Msg 156, Level 15, State 1, Line 1
    Incorrect syntax near the keyword 'AS'.

    Hope these posts could help, 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/37a45a9a-ed8c-4655-be93-f6e6d5ef44be/getting-incorrect-syntax-while-creating-a-table-type-in-sql-server-2008-r2?forum=transactsql
    Regards, Dineshkumar,
    Please Mark as Answer if my post answers your question and
    Vote as Helpful if it helps you

  • Retain standard SAP order type after copying with user defined order type

    Hello SAP Gurus,
    We have a requirement of retaining the standard SAP order types after copying with User defined order types. But the issue is we don't want to see the standard SAP order type such as PM01, PM02 in production system while using transaction like IW31 etc.
    Is there anybody who has answer to retain these stanadard SAP order types without deleting from system configuration?
    Thanks in advance.
    Cheers,
    Vaibhav

    Vaibhav,
    When you F4 on the order type field in IW31 you will get the popup showing the order type list. At the top of this list is a button with a green "+" sign (Insert in personal list).
    You can use this button to select your favourite list.
    This function is available in most F4 drop-down lists.
    However, you cannot set this setting for all users. You will need to write an ABAP program to do this.
    PeteA

  • BRFplus: How to create an instance of User-Defined Expression Type?

    Hi,
      I've created an expression type in a System Application and marked its Access Level as Global. I've created a Class & Interface and assigned it to my Expression Type, and activated it successfully.
    Now how do use this Expression Type to create expression in my Customizing Applications?
    Do I have to make any more code changes like extending any more classes or implementing additional interfaces? (I've already created a dummy Query Class and UI class)
    Any documentation or example of how to create a user-defined Expression Type and how to use them will be very helpful for me.
    Thank you & Best Regards

    Well I was going through the PDF documents available on SDN. I came across a document which referred to a document on creating user-defined expression.
    Document Name: [BRFplus XML Export and Import|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20462066-a086-2d10-a999-c9075767ce48?quicklink=index&overridelayout=true].
    The code sample for creating user-defined expression types is available in the How to Create Custom Expression Types document
    Pg. 24
    I had a hard time looking for that document. Couldn't find it though.
    Thank you Mr. Ziegler, now I know that currently there isn't any documentation on User-Defined Expression Types. I'll be awaiting for your  document on this
    Any overview about the steps to be followed in creating a custom expression type, with a few simple steps on how to do it over here would be greatly appreciated. Especially on how to get it seen in the Create Expression Sub-Menu. Also do I have to code a web dynpro for the UI?
    Thank you & Best Regards.

  • User-Defined Table Types - Where is it in SQL Server 2008?

    I am having 2 issues:
    1.  I don't see a folder for 'User-Defined Table Types' under programmability-->Types
    2.  When I execute the following code to create a Type; I get an error 'Incorrect syntax near the keyword 'AS'.'
    USE Locations;
    GO
    /* Create a user-defined table type */
    CREATE TYPE LocationTableType AS TABLE
    ( LocationName VARCHAR(50)
    , CostRate INT );
    GO

    Hi Shayann,
    The  user-defined table type is a new
    feature from SQL Server 2008. If you want to use it you have to upgrade your database to SQL Server 2008 or above.
    In you scenario(SQL Server 2005),as a workaround, you can use the  local temporary table instead. 
    --in SQL Server 2005
    CREATE TABLE tblType(id INT,name VARCHAR(99))
    GO
    CREATE PROC proc1
    AS
    BEGIN
    SELECT * FROM #temp;
    END
    GO
    SELECT * INTO #temp FROM tblType; -- the #temp name is fixed
    INSERT INTO #temp VALUES(1,'Eric');
    EXEC proc1
    --In SQL Server 2008 or above
    CREATE TYPE LocationTableType AS TABLE
    ( id INT,
    name VARCHAR(99) );
    GO
    CREATE PROC proc1 @t LocationTableType READONLY
    AS
    BEGIN
    SELECT * FROM @t
    END
    GO
    DECLARE @t LocationTableType;
    INSERT INTO @t VALUES(1,'Eric');
    EXEC proc1 @t
    I still suggest you upgrade to higher SQL Server.
    If you have any question, feel free to let me know.
    Best regards,
    Eric

  • User defined Catalog type u0093Su0094  - Valuation code field missing

    Hi Quality Experts,
    I have created a user defined catalog type in customization coping the catalog type 3.
    This is required for authorization purposes.
    Transaction Code : QS51.
    For system defined catalog type 3, in QS51 all fields are visible.
    Hence selection set can be created.
    For user defined catalog type S which is a copy of 3,
    for the same transaction code QS51 many field are hidden.
    Hence selection set can not be created.
    15 Columns are existing.
    S.No     System defined Catalog Type "3".     User defined Catalog Type "S".     Remarks
    1     Code Grouop     Code Grouop     OK
    2     Code                      Code                      OK
    3     Short Text for Code     Short Text for Code     OK
    4     Long Text for Code     Long Text for Code     OK
    5     Valuation Code     MISSING                     THIS FIELD IS MISSING
    6     Quality Score     MISSING                     THIS FIELD IS MISSING
    7     Posting Propasal UD     MISSING                     THIS FIELD IS MISSING
    8     Long Term Char.     MISSING                     THIS FIELD IS MISSING
    9     Stock Screen
                    Backgr.                    MISSING                     THIS FIELD IS MISSING
    10     Follow up action     MISSING                      THIS FIELD IS MISSING
    11     Short Text      MISSING                     THIS FIELD IS MISSING
    12     Changed By     Changed By     OK
    13     Changed On     Changed On     OK
    14     Created By     Created By     OK
    15     Created On     Created On     OK
    ===========================================================
    Total  7 fields are missing.
    SAP Version : SAP ECC 6.0
    Please guide.
    With Best Regards,
    Raghu Sharma.

    Hi
    when you have created new Catalog type by copying 3, did you check whether Selected Sets is flagged in the configuration?
    regards
    Srinivas

  • Syncing contacts: user defined address type won't show in iPod

    Hey,
    I have contacts in my address book with user defined address types. For example, I defined an address type "parents" to save the postal address of my friend's parents.
    After having synced my contacts using iTunes 7.6, my friend's parental address shows up as her private address whereas her private address isn't displayed at all.
    Is this a bug in the iPod firmware (1.2.3) or in AddressBook (Mac OS 10.5.1)?
    Is there a workaround available?
    Thanks for any hint,
    Markus

    Yep, I had the same problem as sfraize - exactly. Address Book showed in the Dock as being active, but didn't display, and wasn't showing in the Force Quit window either.
    Here's what I did:
    1. removed Address Book from the Dock;
    2. tried to launch it from the Applications folder (but it crashed the Finder and I had to shut down by holding the Start key);
    3. on reboot, launched Address Book again from the Applications folder and this time, magically, it worked;
    4. I've now put it back into the Dock, from where it seems to launch just fine.
    Hope this helps people with similar problems!
    I really don't like this horrible leather-effect-torn-pages appearance of the OS apps, by the way. About as progressive and witty and elegant as printing CDs with images of vinyl records (anyone else remember World Party's 1990 album Goodbye Jumbo?)

  • User defined unit of measure info object

    Hi Gurus
    If there is need to create a user defined unit of measure info object, how will you do that?
    Thanks in advance
    Raju

    Hi,
    Go to RSD1--> Select Unit -->Specify Tech name and Description --> Activate.
    Regards,
    rik

Maybe you are looking for

  • I need a software developer for a plugin for Photoshop

    Basically we need a plugin or macro, etc that will take a graphics module that will affect the rgb separations. Once this is done will merge them into one file and print a negative. Our company is based in San Diego, California. Dan Lieberman Email:

  • Poor video quality of Itunes Videos

    All of the videos purchased on Itunes look great...on my Ipod. When i try and view them on my 24" IMAC they look grainy and disgusting. Yes, I realize this is because the video is made to look good ont he Ipod, not the computer. My concern, however,

  • Battery Replacement Question

    How long does it take for Apple to send the iPod after the battery has been replaced? I just got mine, but I'm just curious for when I do need to get it done. Thanks! Mat

  • Error BSP Exception: Der Applikationsname sap in der URL

    Dear all.     I'm executing the URL http://YYYYY.XXXXX.pt:8000/CAP/sap/bc/soap/rfc/ZCOMSDService Note: YYYY is the name off the server and XXXX is the domain name. To acess the RFC function ZCOMSD when executing the URL i'm getting the following erro

  • Can you open powerpoint files using Gmail?

    I read that even if you don't have any application to open a power point file that if you use Gmail that you can open a pp file-? This seems to good to be true -