Xmltype.toObject() creates partly empty object

xmltype.toObject() creates an object of the type created when registering the XML schema but in this object all text-elements are empty.
I registered an XML Schema in XDB 9i release 2.
When I create an instance of xmltype using CreateSchemabasedXML, toObjects creates an object in which all varchar "members" are empty. members which consist of furter object-types are not null, but within these objects the varchar members again are empty.
Is toObject() only partially implemented?

Seems you encountered the bug described in
Bug 3578226 - ORA-22814 when using XMLtype.toObject with empty XML elements.
The workaround mentioned there states to »store empty elements like <TEST/>«. Try if that helps.

Similar Messages

  • Empty Object Array

    Hi,
    How can I create an empty object array in Java?
    Thanks
    g

    Object object[] = new Object[len]; //len is an
    Integer-value for the length of the arrayThat's right..

  • Partial XMLType toObject

    Hi,
    I have an XML schema registered with Oracle. The schema is annotated and during registration the PL/SQL types are created. I can validate an XMLType with this schema, as well as use toObject to populate an object with data from the XMLType. The XML looks like this:
    <root>
    <complexObject>...... very complex object with many elements, sub-elements and sequences .......</complexObject>
    <complexObject>...... very complex object with many elements, sub-elements and sequences .......</complexObject>
    <complexObject>...... very complex object with many elements, sub-elements and sequences .......</complexObject>
    <complexObject>...... very complex object with many elements, sub-elements and sequences .......</complexObject>
    <complexObject>...... very complex object with many elements, sub-elements and sequences .......</complexObject>
    </root>
    There can be a lot of "complexObject" elements in the sequence and the XML can be huge.
    The <root> element has the corresponding T_ROOT type, the <complexObject> elements had the corresponding T_COMPLEXOBJECT type. T_ROOT has a VARRAY of T_COMPLEXOBJECT.
    So, like I said before, I can populate an object of type T_ROOT from the XML without an issue using toObject on the XMLType. However, due to the complexity and size of the XML, I want to split the big XML into multiple T_COMPLEXOBJECT objects. I can do this using XPath extract in a query, returning me one XMLType row per "complexObject". Here is where I'm stuck: I want to use a cursor on the above query and process each "complexObject" one by one. For this, I need to somehow be able to do something similar with toObject, but on the "complexObject" XMLType fragment only to populate an object of type T_COMPLEXOBJECT, not on the whole T_ROOT.
    If I do:
    l_xml.toObject(l_obj, 'myschema.xsd', 'complexObject');
    instead of
    l_xml.toObject(l_obj_root, 'myschema.xsd', 'root');
    I get:
    ORA-31043: Element 'complexObject' not globally defined in schema 'myschema.xsd'
    ORA-06512: at "SYS.XMLTYPE", line 196
    ORA-06512: at line 38
    Thanks!
    Edited by: 1005635 on May 13, 2013 10:40 AM

    Here's an example
    SQL> --
    SQL> -- def XMLDIR = &1
    SQL> --
    SQL> def USER_TABLESPACE = USERS
    SQL> --
    SQL> def TEMP_TABLESPACE = TEMP
    SQL> --
    SQL> drop user &USERNAME cascade
      2  /
    old   1: drop user &USERNAME cascade
    new   1: drop user XDBTEST cascade
    User dropped.
    Elapsed: 00:00:01.31
    SQL> grant unlimited tablespace, create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWORD
      2  /
    old   1: grant unlimited tablespace, create any directory, drop any directory, connect, resource, alter session, create view to &USERNAME identified by &PASSWOR
    D
    new   1: grant unlimited tablespace, create any directory, drop any directory, connect, resource, alter session, create view to XDBTEST identified by XDBTEST
    Grant succeeded.
    Elapsed: 00:00:00.03
    SQL> alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
      2  /
    old   1: alter user &USERNAME default tablespace &USER_TABLESPACE temporary tablespace &TEMP_TABLESPACE
    new   1: alter user XDBTEST default tablespace USERS temporary tablespace TEMP
    User altered.
    Elapsed: 00:00:00.00
    SQL> connect &USERNAME/&PASSWORD
    Connected.
    SQL> --
    SQL> -- create or replace directory XMLDIR as '&XMLDIR'
    SQL> -- /
    SQL> var SCHEMAURL       varchar2(256)
    SQL> var XMLSCHEMA       CLOB
    SQL> var INSTANCE        CLOB;
    SQL> --
    SQL> set define off
    SQL> --
    SQL> alter session set events='31098 trace name context forever'
      2  /
    Session altered.
    Elapsed: 00:00:00.00
    SQL>
    SQL> begin
      2    :XMLSCHEMA :=
      3  '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
      4          <xs:element name="PurchaseOrder" type="PurchaseOrderType"/>
      5          <xs:complexType name="PurchaseOrderType">
      6                  <xs:sequence>
      7                          <xs:element name="Reference" type="ReferenceType"/>
      8                          <xs:element name="Actions" type="ActionsType"/>
      9                          <xs:element name="Rejection" type="RejectionType" minOccurs="0"/>
    10                          <xs:element name="Requestor" type="RequestorType"/>
    11                          <xs:element name="User" type="UserType"/>
    12                          <xs:element name="CostCenter" type="CostCenterType"/>
    13                          <xs:element name="ShippingInstructions" type="ShippingInstructionsType"/>
    14                          <xs:element name="SpecialInstructions" type="SpecialInstructionsType"/>
    15                          <xs:element name="LineItems" type="LineItemsType"/>
    16                  </xs:sequence>
    17                  <xs:attribute name="DateCreated" type="xs:dateTime" use="required"/>
    18          </xs:complexType>
    19          <xs:complexType name="LineItemsType">
    20                  <xs:sequence>
    21                          <xs:element name="LineItem" type="LineItemType" maxOccurs="unbounded"/>
    22                  </xs:sequence>
    23          </xs:complexType>
    24          <xs:complexType name="LineItemType">
    25                  <xs:sequence>
    26                          <xs:element name="Part" type="PartType"/>
    27                          <xs:element name="Quantity" type="QuantityType"/>
    28                  </xs:sequence>
    29                  <xs:attribute name="ItemNumber" type="xs:integer"/>
    30          </xs:complexType>
    31          <xs:complexType name="PartType">
    32                  <xs:simpleContent>
    33                          <xs:extension base="UPCCodeType">
    34                                  <xs:attribute name="Description" type="DescriptionType" use="required"/>
    35                                  <xs:attribute name="UnitPrice" type="MoneyType" use="required"/>
    36                          </xs:extension>
    37                  </xs:simpleContent>
    38          </xs:complexType>
    39          <xs:simpleType name="ReferenceType">
    40                  <xs:restriction base="xs:string">
    41                          <xs:minLength value="18"/>
    42                          <xs:maxLength value="30"/>
    43                  </xs:restriction>
    44          </xs:simpleType>
    45          <xs:complexType name="ActionsType">
    46                  <xs:sequence>
    47                          <xs:element name="Action" maxOccurs="4">
    48                                  <xs:complexType>
    49                                          <xs:sequence>
    50                                                  <xs:element name="User" type="UserType"/>
    51                                                  <xs:element name="Date" type="DateType" minOccurs="0"/>
    52                                          </xs:sequence>
    53                                  </xs:complexType>
    54                          </xs:element>
    55                  </xs:sequence>
    56          </xs:complexType>
    57          <xs:complexType name="RejectionType">
    58                  <xs:all>
    59                          <xs:element name="User" type="UserType" minOccurs="0"/>
    60                          <xs:element name="Date" type="DateType" minOccurs="0"/>
    61                          <xs:element name="Comments" type="CommentsType" minOccurs="0"/>
    62                  </xs:all>
    63          </xs:complexType>
    64          <xs:complexType name="ShippingInstructionsType">
    65                  <xs:sequence>
    66                          <xs:element name="name" type="NameType" minOccurs="0"/>
    67                          <xs:element name="address" type="AddressType" minOccurs="0"/>
    68                          <xs:element name="telephone" type="TelephoneType" minOccurs="0"/>
    69                  </xs:sequence>
    70          </xs:complexType>
    71          <xs:simpleType name="MoneyType">
    72                  <xs:restriction base="xs:decimal">
    73                          <xs:fractionDigits value="2"/>
    74                          <xs:totalDigits value="12"/>
    75                  </xs:restriction>
    76          </xs:simpleType>
    77          <xs:simpleType name="QuantityType">
    78                  <xs:restriction base="xs:decimal">
    79                          <xs:fractionDigits value="4"/>
    80                          <xs:totalDigits value="8"/>
    81                  </xs:restriction>
    82          </xs:simpleType>
    83          <xs:simpleType name="UserType">
    84                  <xs:restriction base="xs:string">
    85                          <xs:minLength value="1"/>
    86                          <xs:maxLength value="10"/>
    87                  </xs:restriction>
    88          </xs:simpleType>
    89          <xs:simpleType name="RequestorType">
    90                  <xs:restriction base="xs:string">
    91                          <xs:minLength value="0"/>
    92                          <xs:maxLength value="128"/>
    93                  </xs:restriction>
    94          </xs:simpleType>
    95          <xs:simpleType name="CostCenterType">
    96                  <xs:restriction base="xs:string">
    97                          <xs:minLength value="1"/>
    98                          <xs:maxLength value="4"/>
    99                          <xs:enumeration value=""/>
    100                          <xs:enumeration value="A0"/>
    101                          <xs:enumeration value="A10"/>
    102                          <xs:enumeration value="A20"/>
    103                          <xs:enumeration value="A30"/>
    104                          <xs:enumeration value="A40"/>
    105                          <xs:enumeration value="A50"/>
    106                          <xs:enumeration value="A60"/>
    107                          <xs:enumeration value="A70"/>
    108                          <xs:enumeration value="A80"/>
    109                          <xs:enumeration value="A90"/>
    110                          <xs:enumeration value="A100"/>
    111                          <xs:enumeration value="A110"/>
    112                  </xs:restriction>
    113          </xs:simpleType>
    114          <xs:simpleType name="PurchaseOrderNumberType">
    115                  <xs:restriction base="xs:integer"/>
    116          </xs:simpleType>
    117          <xs:simpleType name="SpecialInstructionsType">
    118                  <xs:restriction base="xs:string">
    119                          <xs:minLength value="0"/>
    120                          <xs:maxLength value="1000"/>
    121                  </xs:restriction>
    122          </xs:simpleType>
    123          <xs:simpleType name="NameType">
    124                  <xs:restriction base="xs:string">
    125                          <xs:minLength value="1"/>
    126                          <xs:maxLength value="20"/>
    127                  </xs:restriction>
    128          </xs:simpleType>
    129          <xs:simpleType name="AddressType">
    130                  <xs:restriction base="xs:string">
    131                          <xs:minLength value="1"/>
    132                          <xs:maxLength value="256"/>
    133                  </xs:restriction>
    134          </xs:simpleType>
    135          <xs:simpleType name="TelephoneType">
    136                  <xs:restriction base="xs:string">
    137                          <xs:minLength value="1"/>
    138                          <xs:maxLength value="24"/>
    139                  </xs:restriction>
    140          </xs:simpleType>
    141          <xs:simpleType name="DateType">
    142                  <xs:restriction base="xs:date"/>
    143          </xs:simpleType>
    144          <xs:simpleType name="CommentsType">
    145                  <xs:restriction base="xs:string">
    146                          <xs:minLength value="1"/>
    147                          <xs:maxLength value="1000"/>
    148                  </xs:restriction>
    149          </xs:simpleType>
    150          <xs:simpleType name="DescriptionType">
    151                  <xs:restriction base="xs:string">
    152                          <xs:minLength value="1"/>
    153                          <xs:maxLength value="128"/>
    154                  </xs:restriction>
    155          </xs:simpleType>
    156          <xs:simpleType name="UPCCodeType">
    157                  <xs:restriction base="xs:string">
    158                          <xs:minLength value="11"/>
    159                          <xs:maxLength value="14"/>
    160                          <xs:pattern value="\d{11}"/>
    161                          <xs:pattern value="\d{12}"/>
    162                          <xs:pattern value="\d{13}"/>
    163                          <xs:pattern value="\d{14}"/>
    164                  </xs:restriction>
    165          </xs:simpleType>
    166  </xs:schema>';
    167    :INSTANCE :=
    168  '<PurchaseOrder>
    169     <Reference>ABULL-20100809203001136PDT</Reference>
    170     <Actions>
    171        <Action>
    172           <User>ACABRIO</User>
    173        </Action>
    174     </Actions>
    175     <Rejection/>
    176     <Requestor>Alexis Bull</Requestor>
    177     <User>ABULL</User>
    178     <CostCenter>A50</CostCenter>
    179     <ShippingInstructions>
    180        <name>Alexis Bull</name>
    181        <address>2011 Interiors Blvd,
    182  South San Francisco,
    183  California 99236
    184  United States of America</address>
    185        <telephone>950-720-3387</telephone>
    186     </ShippingInstructions>
    187     <SpecialInstructions>COD</SpecialInstructions>
    188     <LineItems>
    189        <LineItem ItemNumber="1" >
    190           <Part Description="Scary Movie" UnitPrice="19.95">717951004857</Part>
    191           <Quantity>5.0</Quantity>
    192        </LineItem>
    193        <LineItem ItemNumber="2" >
    194           <Part Description="The Faculty" UnitPrice="19.95">717951002280</Part>
    195           <Quantity>2.0</Quantity>
    196        </LineItem>
    197        <LineItem ItemNumber="3">
    198           <Part Description="Phantom of the Paradise" UnitPrice="27.95">24543023777</Part>
    199           <Quantity>3.0</Quantity>
    200        </LineItem>
    201     </LineItems>
    202  </PurchaseOrder>';
    203  end;
    204  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> declare
      2    V_XML_SCHEMA xmlType := XMLType(:XMLSCHEMA1);end;
      3  /
    SP2-0552: Bind variable "XMLSCHEMA1" not declared.
    Elapsed: 00:00:00.00
    SQL> --
    SQL> declare
      2    V_XMLSCHEMA XMLTYPE := XMLTYPE(:XMLSCHEMA);
      3  begin
      4    DBMS_XMLSCHEMA.registerSchema(
      5      schemaURL => 'http://localhost:80/home/SCOTT/poSource/xsd/purchaseOrder.xsd',
      6      schemaDoc => V_XMLSCHEMA,
      7      local     => TRUE,
      8      genTypes  => TRUE,
      9      genTables => FALSE
    10    );
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.35
    SQL> create table PURCHASEORDER
      2         of XMLTYPE
      3         XMLSCHEMA "http://localhost:80/home/SCOTT/poSource/xsd/purchaseOrder.xsd" ELEMENT "PurchaseOrder"
      4  /
    Table created.
    Elapsed: 00:00:00.10
    SQL> call DBMS_XMLSTORAGE_MANAGE.renameCollectionTable (USER,'PURCHASEORDER',NULL,'/PurchaseOrder/LineItems/LineItem','LINEITEM_TABLE',NULL)
      2  /
    Call completed.
    Elapsed: 00:00:00.87
    SQL> call DBMS_XMLSTORAGE_MANAGE.renameCollectionTable (USER,'PURCHASEORDER',NULL,'/PurchaseOrder/Actions/Action','ACTION_TABLE',NULL)
      2  /
    Call completed.
    Elapsed: 00:00:00.09
    SQL> desc PURCHASEORDER
    Name                                      Null?    Type
    TABLE of SYS.XMLTYPE(XMLSchema "http://localhost:80/home/SCOTT/poSource/xsd/purchaseOrder.xsd" Element "PurchaseOrder") STORAGE Object-relational TYPE "Purchase
    OrderType667_T"
    SQL> --
    SQL> insert into PURCHASEORDER values (XMLTYPE(:INSTANCE))
      2  /
    1 row created.
    Elapsed: 00:00:00.44
    SQL> commit
      2  /
    Commit complete.
    Elapsed: 00:00:00.00
    SQL> create or replace type ACTION_T as object (
      2    USER_NAME                                          VARCHAR2(10 CHAR),
      3    ACTION_DATE                                        DATE
      4  )
      5  /
    Type created.
    Elapsed: 00:00:00.02
    SQL> show errors
    No errors.
    SQL> /
    Type created.
    Elapsed: 00:00:00.01
    SQL> create or replace type ACTION_V as VARRAY(32767) of ACTION_T
      2  /
    Type created.
    Elapsed: 00:00:00.01
    SQL> show errors
    No errors.
    SQL> --
    SQL> create or replace type ACTIONS_T as object (
      2    ACTION  ACTION_V
      3  )
      4  /
    Type created.
    Elapsed: 00:00:00.01
    SQL> show errors
    No errors.
    SQL> --
    SQL> create or replace type REJECTION_T as object (
      2    USER_NAME                                          VARCHAR2(10 CHAR),
      3    REJECTION_DATE                                     DATE,
      4    COMMENTS                                           VARCHAR2(1000 CHAR)
      5  )
      6  /
    Type created.
    Elapsed: 00:00:00.01
    SQL> show errors
    No errors.
    SQL> --
    SQL> create or replace type SHIPPING_INSTRUCTIONS_T as object (
      2    NAME                                               VARCHAR2(20 CHAR),
      3    ADDRESS                                            VARCHAR2(256 CHAR),
      4    TELEPHONE                                          VARCHAR2(24 CHAR)
      5  )
      6  /
    Type created.
    Elapsed: 00:00:00.01
    SQL> show errors
    No errors.
    SQL> --
    SQL> create or replace type PART_T as object (
      2   PART_TEXT                                          VARCHAR2(14 CHAR),
      3   DESCRIPTION                                        VARCHAR2(128 CHAR),
      4   UNITPRICE                                          NUMBER(14,2)
      5  )
      6  /
    Type created.
    Elapsed: 00:00:00.01
    SQL> show errors
    No errors.
    SQL> /
    Type created.
    Elapsed: 00:00:00.00
    SQL> create or replace type LINEITEM_T as object (
      2    ITEMNUMBER                                         NUMBER(38),
      3    PART                                               PART_T,
      4    QUANTITY                                           NUMBER(12,4)
      5  )
      6  /
    Type created.
    Elapsed: 00:00:00.01
    SQL> show errors
    No errors.
    SQL> /
    Type created.
    Elapsed: 00:00:00.00
    SQL> create or replace type LINEITEM_V as VARRAY(32767) of LINEITEM_T
      2  /
    Type created.
    Elapsed: 00:00:00.01
    SQL> show errors
    No errors.
    SQL> --
    SQL> create or replace type LINEITEMS_T as object (
      2    LINEITEM  LINEITEM_V
      3  )
      4  /
    Type created.
    Elapsed: 00:00:00.01
    SQL> show errors
    No errors.
    SQL> --
    SQL> create or replace type PURCHASEORDER_T as object (
      2   DATECREATED                                        TIMESTAMP(6),
      3   REFERENCE                                          VARCHAR2(30 CHAR),
      4   ACTIONS                                            ACTIONS_T,
      5   REJECTION                                          REJECTION_T,
      6   REQUESTOR                                          VARCHAR2(128 CHAR),
      7   USER_NAME                                          VARCHAR2(10 CHAR),
      8   COSTCENTER                                         VARCHAR2(4 CHAR),
      9   SHIPPINGINSTRUCTIONS                               SHIPPING_INSTRUCTIONS_T,
    10   SPECIALINSTRUCTIONS                                VARCHAR2(1000 CHAR),
    11   LINEITEMS                                          LINEITEMS_T
    12  )
    13  /
    Type created.
    Elapsed: 00:00:00.12
    SQL> show errors
    No errors.
    SQL> --
    SQL> select PURCHASEORDER_T (
      2           DATECREATED,
      3                                   REFERENCE,
      4                                   ACTIONS_T(
      5                                     CAST(
      6               MULTISET(
      7                 SELECT ACTION_T(
      8                          USER_NAME,
      9                          ACTION_DATE
    10                        )
    11                   FROM XMLTABLE(
    12                         '/Actions/Action'
    13                          passing ACTIONS
    14                          columns
    15                            USER_NAME        VARCHAR2(10 CHAR) path 'User',
    16                            ACTION_DATE      DATE              path 'Date'
    17                        )
    18               ) AS ACTION_V
    19             )
    20           ),
    21           (
    22                             select REJECTION_T (
    23                      USER_NAME,
    24                      REJECTION_DATE,
    25                      COMMENTS
    26                    )
    27               from XMLTABLE(
    28                      '/Rejection'
    29                      passing REJECTION
    30                      columns
    31                        USER_NAME         VARCHAR2(10 CHAR)     path 'User',
    32                        REJECTION_DATE    DATE                  path 'Date',
    33                        COMMENTS          VARCHAR2(1000 CHAR)   path 'Comments'
    34                    )
    35           ),
    36                                   REQUESTOR,
    37                                   USER_NAME,
    38           COSTCENTER,
    39                           (
    40                             select SHIPPING_INSTRUCTIONS_T (
    41                      USER_NAME,
    42                      ADDRESS,
    43                      TELEPHONE
    44                    )
    45               from XMLTABLE(
    46                      '/ShippingInstructions'
    47                      passing SHIPPING_INSTRUCTIONS
    48                      columns
    49                        USER_NAME       VARCHAR2(20 CHAR)    path 'name',
    50                        ADDRESS         VARCHAR2(256 CHAR)   path 'address',
    51                        TELEPHONE       VARCHAR2(24 CHAR)    path 'telephone'
    52                    )
    53           ),
    54           SPECIAL_INSTRUCTIONS,
    55                                   LINEITEMS_T(
    56                                     CAST(
    57               MULTISET(
    58                 SELECT LINEITEM_T (
    59                          ITEMNUMBER,
    60                          (
    61                            select PART_T(
    62                                     PART_TEXT,
    63                                     DESCRIPTION,
    64                                     UNITPRICE
    65                                   )
    66                              from XMLTABLE(
    67                                     '/Part'
    68                                     passing PART
    69                                     columns
    70                                       PART_TEXT          VARCHAR2(14 CHAR)  path 'text()',
    71                                       DESCRIPTION        VARCHAR2(128 CHAR) path '@Description',
    72                                       UNITPRICE          NUMBER(14,2)       path '@UnitPrice'
    73                                   )
    74                          ),
    75                          QUANTITY
    76                        )
    77                   FROM XMLTABLE(
    78                         '/LineItems/LineItem'
    79                          passing LINEITEMS
    80                          columns
    81                            ITEMNUMBER   NUMBER(38)   path '@ItemNumber',
    82                            PART         XMLTYPE      path 'Part',
    83                            QUANTITY     NUMBER(12,4) path 'Quantity'
    84                        )
    85               ) AS LINEITEM_V
    86             )
    87           )
    88         )
    89    from PURCHASEORDER,
    90         XMLTABLE(
    91           '/PurchaseOrder'
    92           passing OBJECT_VALUE
    93           columns
    94              DATECREATED               TIMESTAMP(6)        path '@DateCreated',
    95                                                  REFERENCE                 VARCHAR2(30 CHAR)   path 'Reference',
    96                                                  ACTIONS                   XMLTYPE             path 'Actions',
    97                                                  REJECTION                 XMLTYPE             path 'Rejection',
    98                                                  REQUESTOR                 VARCHAR2(128 CHAR)  path 'Requestor',
    99                                                  USER_NAME                 VARCHAR2(10 CHAR)   path 'User',
    100                                                  COSTCENTER                VARCHAR2(4 CHAR)    path 'CostCenter',
    101                                                  SHIPPING_INSTRUCTIONS     XMLTYPE             path 'ShippingInstructions',
    102                                                  SPECIAL_INSTRUCTIONS      VARCHAR2(1000 CHAR) path 'SpecialInstructions',
    103                                                  LINEITEMS                 XMLType             path 'LineItems'
    104                     )
    105  /
    PURCHASEORDER_T(DATECREATED,REFERENCE,ACTIONS_T(CAST(MULTISET(SELECTACTION_T(USE
    PURCHASEORDER_T(NULL, 'ABULL-20100809203001136PDT', ACTIONS_T(ACTION_V(ACTION_T(
    'ACABRIO', NULL))), REJECTION_T(NULL, NULL, NULL), 'Alexis Bull', 'ABULL', 'A50'
    , SHIPPING_INSTRUCTIONS_T('Alexis Bull', '2011 Interiors Blvd,
    South San Francisco,
    California 99236
    United States of America', '950-720-3387'), 'COD', LINEITEMS_T(LINEITEM_V(LINEIT
    EM_T(1, PART_T('717951004857', 'Scary Movie', 19.95), 5), LINEITEM_T(2, PART_T('
    717951002280', 'The Faculty', 19.95), 2), LINEITEM_T(3, PART_T('24543023777', 'P
    hantom of the Paradise', 27.95), 3))))
    Elapsed: 00:00:00.11
    SQL> quitEdited by: mdrake on May 13, 2013 11:33 PM

  • Best Practice question - null or empty object?

    Given a collection of objects where each object in the collection is an aggregation, is it better to leave references in the object as null or to instantiate an empty object? Now I'll clarify this a bit more.....
    I have an object, MyCollection, that extends Collection and implements Serializable(work requirement). MyCollection is sent as a return from an EJB search method. The search method looks up data in a database and creates MyItem objects for each row in the database. If there are 10 rows, MyCollection would contain 10 MyItem objects (references, of course).
    MyItem has three attributes:
    public class MyItem implements Serializable {
        String name;
        String description;
        MyItemDetail detail;
    }When creating MyItem, let's say that this item didn't have any details so there is no reason to create MyitemDetail. Is it better to leave detail as a null reference or should a MyItemdetail object be created? I know this sounds like a specific app requirement, but I'm looking for a best practice - what most people do in this case. There are reasons for both approaches. Obviously, a bunch of empty objects going over RMI is a strain on resources whereas a bunch of null references is not. But on the receiving end, you have to account for the MyItemDetail reference to be null or not - is this a hassle or not?
    I looked for this at [url http://www.javapractices.com]Java Practices but found nothing.

    I know this sounds like a specific apprequirement,
    , but I'm looking for a best practice - what most
    people do in this case. It depends but in general I use null.Stupid.Thanks for that insightful comment.
    >
    I do a lot of database work though. And for that
    null means something specific.Sure, return null if you have a context where null
    means something. Like for example that you got no
    result at all. But as I said before its's best to
    keep the nulls at the perimeter of your design. Don't
    let nulls slip through.As I said, I do a lot of database work. And it does mean something specific. Thus (in conclusion) that means that, in "general", I use null most of the time.
    Exactly what part of that didn't you follow?
    And exactly what sort of value do you use for a Date when it is undefined? What non-null value do you use such that your users do not have to write exactly the same code that they would to check for null anyways?

  • XMLType.ToObject()

    Hi there,
    I am running into a problem when (in Oracle9i Enterprise Edition Release 9.2.0.6.0) trying to map an XML document contained in an XMLType variable to a corresponding object-type variable using the XMLType.ToObject() function.
    The problem occurs when the XML contains "repeating" fragments.
    I do not know how to define the corresponding object-type in such a way that XMLType.ToObject() does not run into error "ORA-19031: XML element or attribute ... does not match any in type ...".
    For example the following XML:
    ====================
    <MyObject>
    <ELEMENT01>VALUE01</ELEMENT01>
    <ELEMENT02>VALUE02</ELEMENT02>
    <MYGROUP>
    <GROUPELEMENT01>VALUEG01E01</GROUPELEMENT01>
    <GROUPELEMENT02>VALUEG01E02</GROUPELEMENT02>
    </MYGROUP>
    <MYGROUP>
    <GROUPELEMENT01>VALUEG02E01</GROUPELEMENT01>
    <GROUPELEMENT02>VALUEG02E02</GROUPELEMENT02>
    </MYGROUP>
    </MyObject>
    ====================
    The corresponding object-type that I defined is as follows:
    ====================
    create or replace type TP_MYGROUP_REC as object
    (GROUPELEMENT01 varchar2(50)
    ,GROUPELEMENT02 varchar2(50)
    create or replace type TP_MYGROUP_TAB as table of TP_MYGROUP_REC;
    create or replace type TP_MYOBJECT as object
    (ELEMENT01 varchar2(50)
    ,ELEMENT02 varchar2(50)
    ,MYGROUP TP_MYGROUP_TAB
    ====================
    I tested with the following script:
    ====================
    declare
    l_xmltype xmltype;
    l_myobject TP_MYOBJECT;
    begin
    l_xmltype := XMLTYPE
    ('<MyObject>
    <ELEMENT01>VALUE01</ELEMENT01>
    <ELEMENT02>VALUE02</ELEMENT02>
    <MYGROUP>
    <GROUPELEMENT01>VALUEG01E01</GROUPELEMENT01>
    <GROUPELEMENT02>VALUEG01E02</GROUPELEMENT02>
    </MYGROUP>
    <MYGROUP>
    <GROUPELEMENT01>VALUEG02E01</GROUPELEMENT01>
    <GROUPELEMENT02>VALUEG02E02</GROUPELEMENT02>
    </MYGROUP>
    </MyObject>');
    l_xmltype.ToObject(l_myobject);
    end;
    ====================
    This results in: ORA-19031: XML element or attribute GROUPELEMENT01 does not match any in type TP_MYGROUP_REC.
    Does anyone out there know how to define the object-type(s) in such a way that I can cast this type of XML to an object using XMLType.ToObject() ?
    Thanks a lot for your reaction,
    Jaap Kool

    In absence of an XML schema, Oracle uses a canonical mapping between SQL objects and XML.
    For instance, the XML structure corresponding to the object hierarchy defined in the first post is :
    <TP_MYOBJECT>
      <ELEMENT01>VALUE01</ELEMENT01>
      <ELEMENT02>VALUE02</ELEMENT02>
      <MYGROUP>
        <TP_MYGROUP_REC>
          <GROUPELEMENT01>VALUEG01E01</GROUPELEMENT01>
          <GROUPELEMENT02>VALUEG01E02</GROUPELEMENT02>
        </TP_MYGROUP_REC>
        <TP_MYGROUP_REC>
          <GROUPELEMENT01>VALUEG02E01</GROUPELEMENT01>
          <GROUPELEMENT02>VALUEG02E02</GROUPELEMENT02>
        </TP_MYGROUP_REC>
      </MYGROUP>
    </TP_MYOBJECT>Note the additional "TP_MYGROUP_REC" element that encloses the two leaf values.
    With that input, this works :
    SQL> declare
      2    l_xmltype  xmltype;
      3    l_myobject TP_MYOBJECT;
      4  begin
      5    l_xmltype := XMLTYPE(
      6  '<TP_MYOBJECT>
      7    <ELEMENT01>VALUE01</ELEMENT01>
      8    <ELEMENT02>VALUE02</ELEMENT02>
      9    <MYGROUP>
    10      <TP_MYGROUP_REC>
    11        <GROUPELEMENT01>VALUEG01E01</GROUPELEMENT01>
    12        <GROUPELEMENT02>VALUEG01E02</GROUPELEMENT02>
    13      </TP_MYGROUP_REC>
    14      <TP_MYGROUP_REC>
    15        <GROUPELEMENT01>VALUEG02E01</GROUPELEMENT01>
    16        <GROUPELEMENT02>VALUEG02E02</GROUPELEMENT02>
    17      </TP_MYGROUP_REC>
    18    </MYGROUP>
    19  </TP_MYOBJECT>');
    20 
    21    l_xmltype.ToObject(l_myobject);
    22 
    23    dbms_output.put_line(l_myobject.mygroup(1).groupelement01);
    24 
    25  end;
    26  /
    VALUEG01E01
    PL/SQL procedure successfully completed
    Here's the approach you can follow to achieve a "custom" mapping :
    {thread:id=2475819}
    and,
    {message:id=10712117}
    Edited by: odie_63 on 20 déc. 2012 09:54

  • What is the advantage of using IB to create XIBs/Class Objects over coding?

    Hi all,
    I hoping someone can provide me some pros and cons as to when I should use IB to create XIBs and/or class objects as opposed to directly coding them.
    For example, if I choose Apple's Template for creating a Navigation Based Application (cocoa touch), the project creates two NIB files - MainMenu and RootViewController.
    However looking at one of demo apps SimpleDrillDown, it does not have a RootViewController XIB and instead creates it via code.
    Another example from the same two apps is that the template generates a "Navigation Controller" class object in the Mainmenu.xib. SimpleDrillDown does not bother with this in the XIB, but uses code to generate the controller:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    // Create the navigation and view controllers
    RootViewController *rootViewController = [[RootViewController alloc] init];
    UINavigationController *aNavigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
    self.navigationController = aNavigationController;
    [aNavigationController release];
    [rootViewController release];
    // Configure and show the window
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
    as opposed to the template which only needs this:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    // Configure and show the window
    // Navigation Controller is defined in MainWindow.xib
    [window addSubview:[navigationController view]];
    [window makeKeyAndVisible];
    So what are the advantages of each approach. Why does apple suggest one approach and yet all its demos use another.
    Any thoughts, answers gratefully received.
    TIA, Michael.

    You can do whatever you're comfortable with, but most of the best Cocoa programmers--the ones on the Mac, I mean--recommend putting everything you can into Interface Builder.
    It's a little like the difference between writing a program to do a bunch of financial calculations and using a spreadsheet. Yeah, the program can do everything the spreadsheet can--and more besides--but you'll find it far easier to create, use and modify the spreadsheet.
    Interface Builder takes away a lot of completely meaningless choices ("What order should I create the objects in? How should I name the variables? How should I create their frames? What order should I set the attributes in?"), leaving you with an interface optimized for creating and arranging objects, and allowing your code to focus on what you really do need to think about--your application's logic.
    (By the way--part of the reason Apple's demos don't all use Interface Builder is that the very first SDK releases didn't have it. Back then, you had to create all your views programatically. Believe me, I have no wish to go back to setting autoresize masks manually. Now get off my lawn, whippersnapper.)

  • Can I create a DIMENSION object mappign without a Dimension table?

    I understand how I can create a dimension object and it's associated table. However, can I map my enterprise data directly to the dimension object itself and skip the loading of the dimension table? The enterprise data for most of my reporting warehouse for the greater part is fairly simple and requires only joins to some reference data.

    Matthew,
    Like you stated, the dimension object in OWB will generate scripts for two object types. The first is a dimension object and the second is a table. In the dimension object the hierarchical structure(s) (meta data) is stored and the table stores the data. So you always have to load your enterprise data into the table.
    Hope this helps.
    With kind regards,
    Bas Roelands

  • How to create an Empty Playlist File on Mac?

    Hello everyone, I'm working on a Music Player script, I was able to play a file via the default player as when we doubleclick on a file. The problem is I have no control over the Player, so to "stop" a file I could play a "silent" mp3, one with 1 second of silence in it for example. I discarded the idea since I had to distribute this silent.mp3 file along with the script. A better option is to play a "playlist", since playlist files are text only, I could create them an empty playlist file on the fly...
    so, the question is, what's the default playlist extension on a mac? and how to create one on the Mac?
    in windows the default player is Windows Media Player, the default playlist file extension is *.wpl.
    here's the contents of an empty playlist
    <?wpl version="1.0"?>
    <smil>
        <head>
            <meta name="Generator" content="Microsoft Windows Media Player -- 12.0.7601.18150"/>
            <meta name="ItemCount" content="0"/>
            <title>empyPlaylist</title>
        </head>
    </smil>
    here's the script, so far Windows only, at least to stop the file being played.
    //  script.name = musicPlayer_Windows.jsx;
    //  script.needs = I need to create an Empty Playlist File for the Mac, that will play on the default music player when executed
    // carlos canto, 10/12/2014
    var w = new Window('dialog', 'Music Player');
    var btnFile = w.add('button', undefined, 'Select an *.mp3 file to play...');
    var lblSong = w.add('edittext', undefined, '');
    lblSong.characters = 30;
    var btnPlay = w.add('button', undefined, 'Play');
    var btnStop = w.add('button', undefined, 'Stop');
    var btnClose = w.add('button', undefined, 'Close');
    btnPlay.enabled = btnStop.enabled = false;
    var emptyPlaylist = getEmptyPlaylist ();
    btnFile.onClick = function () {
        var file = File.openDialog ("Select File to Play...", '*.mp3', false);
        lblSong.text = file.displayName;
        lblSong.file = file;
        btnPlay.enabled = btnStop.enabled = true;
    btnPlay.onClick = function () {
        lblSong.file.execute();
        $.sleep (300);
        BridgeTalk.bringToFront('estoolkit');
    btnStop.onClick = function () {
        emptyPlaylist.execute();
        $.sleep (300);
        BridgeTalk.bringToFront('estoolkit');
    btnClose.onClick = function () {
        w.close();
    w.show();
    // this function creates an Empty Playlist file (Windows) on the fly, this file will be used to "stop" a playing file
    // I need a similar function for Mac
    function getEmptyPlaylist () {
        var desk = Folder.desktop;
        var f = new File(desk+'/emptyPlaylist.wpl');
        if (!f.exists) {
            var s_emptyPlaylist = (new String("<?wpl version=\"1.0\"?>\n<smil>\n    <head>\n        <meta name=\"Generator\" content=\"Microsoft Windows Media Player -- 12.0.7601.18150\"/>\n        <meta name=\"ItemCount\" content=\"0\"/>\n        <title>empyPlaylist</title>\n    </head>\n</smil>\n"));
            f.encoding = 'utf-8';
            f.open('w');
            f.write(eval(s_emptyPlaylist));
            f.close();
        return f;
    thanks in advance
    Carlos

    hmm...I think it's going to be more complicated than I thought.
    correct, this script targets the ESTK, it is part of a larger Illustrator script, which doesn't have doScript either...I would go with applescript as last resort. I think going with the playlist file is easier.
    based on your comment I realized users might change their default players, so on Windows I'm going to change the playlist file from *.wpl to the more universal *.m3u, I guess whatever decent player made the default, supports this file.
    so, will an *.m3u playlist file play on the default mac player (itunes) when executed?
    File("~/Music/iTunes/iTunes Media/Music/emptyPlaylist.m3u").execute(); // will this play on itunes?
    I noticed that the *.m3u file can be blank, it will still "play" when executed() and effectively "stops" any music file currently being played...if this happens on Mac also, that's what I'm after.
    thanks for helping Dirk.

  • Creating Multiple Resource Objects for OOTB Connectors

    All,
    I am trying to create a second AD User resource object for the OOTB connector. I would like to think that the AD Connector (and all connectors, for that matter) was designed to handle the creation of multiple Resource Objects for the same Resource Types, but am I wrong? It doesn't seem like the OIM Connector can handle this easily.
    Has anyone created multiple resource objects for a connector? Is this a fairly simple task, or will it require a large effort? Is it even possible? Any pointers?
    Thanks!

    I will provide a little help with the duplication. I found the best way to do it is to import the original connector. Go through the different pieces making each one have a unique name, that is not part of any of the other piece names. You need to have unique names for the following:
    1. Resource Object
    2. Process Definition - Provisioning
    3. IT Resource
    4. Form - Process
    5. Scheduled Task
    After you import the connector, rename each of the following to something unique. I would also update your process form to have a default value of your IT Resource, as well as your scheduled task values to point to the new unique names. Export the 5 items, no dependecies. The adapters will all be the same. Use find and replace for the values and then import the new XML. If it works, duplicate the XML for each of the new workflows you want to create.
    -Kevin

  • How to create a new object of HttpServletRequest class manually?

    Dear all,
    I don't know how silly my question is, however I have no way except asking.
    I know that when I send a request from the client to the server, server authomatically creates an object of
    HttpServletRequest and assigns all the request information to that object, so that you can extract these information by the available methods in the HttpServletRequest class like getHeader, getMethod and so on. What I need to do in my project is doing all above process manually. My question is how I can do it?
    In other words, I have the header and body part of a http request and I want to create a HttpServletRequest
    object and assign the header and body data to the object so that I'll be able to extract those data by using the getHeader, getMethod and other methods available in the HttpServletRequest class.
    Please Help me, I really need your help?
    Your help is appreciated.
    Thanks.

    Hi shadgar ,
    as rightly mentioned by Sudha and GrayMan, you can provide the implementation for the HttpServletRequest interface in your own way for the requirement, but it leads to a new Servlet Container development as you need to handle many things than the HttpServletRequest.
    I think the current interface and the Servlet Container will be able to handle if your request is over HTTP protocol and it don't deviate from the prtocol's request/response model.
    Check out the javax.servlet.http.HttpServletRequestWrapper class, which is the implementation of the javax.servlet.http.HttpServletRequest and javax.servlet.ServletRequest interfaces.
    Hope it will give some idea about the actual problem and rethink about the solution proposed.
    Thanks,
    Sanath Kumar

  • Alternative to XMLTYPE.TOOBJECT to populate a UDT

    Is there any alternative option that can be utilized other than the XMLTYPE.TOOBJECT to populate an oracle object via a clob or raw or XML string?

    Maybe something like this?:
    SQL> DECLARE
       l_xml   XMLTYPE
          := XMLTYPE
               ('<?xml version="1.0"?><root><itm>A</itm><itm>B</itm><itm>C</itm><itm>D</itm></root>'
       TYPE t_num IS TABLE OF VARCHAR2 (50)
          INDEX BY BINARY_INTEGER;
       v_val   t_num;
    BEGIN
       FOR c IN (SELECT ROWNUM, EXTRACTVALUE (COLUMN_VALUE, 'itm/text()') itm
                   FROM TABLE (XMLSEQUENCE (EXTRACT (l_xml, '/root/itm'))))
       LOOP
          v_val (c.ROWNUM) := c.itm;
       END LOOP;
       FOR i IN 1 .. v_val.COUNT
       LOOP
          DBMS_OUTPUT.put_line ('Item ' || i || ': ' || v_val (i));
       END LOOP;
    END;
    Item 1: A
    Item 2: B
    Item 3: C
    Item 4: D
    PL/SQL procedure successfully completed.

  • After installing iphoto 9.5 some of my  projects are  completely or partly empty after regenerating, how can I get them back?

    After installing iphoto 9.5 some of my  projects (photobooks) are  completely or partly empty after regenerating, how can I get them back?

    Define "everything" because if you've tried everything then your last recourse is:
    1 - restore your backup copy of your iPhoto Library created just prior to your Yosemite upgrade or
    2 - Starting over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1. Open the library package like this.
    2. Launch iPhoto with the Option key held down and, when asked, select the option to create a new library.
    3. Drag the subfolders of the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the open iPhoto Library package into the open iPhoto window a few at a time.
    This will create a new library with the same Events (but not necessarily the same Event names) as the original library but will not keep the metadata, albums, books slideshows and other projects.
    Note:  your current library will be left untouched for further attempts at a fix if so desired.

  • Creating z archive objects???

    Hello gurus,
    in one of my assignment we need to archive z tables.. its understood that we need to create z archive objects for them..we have differenct types of tables.. input, output and masterdata tables...
    1. can i create a single archive object for these tables.
    2. can i create a separate objects for input , output and master data tables
    <<removed>>
    Edited by: Matt on Feb 1, 2009 9:09 PM

    Hello my friend I have  the same situation in my case I have a tutorial of sap which I have read and I recomend you that you need to read in order to under stand archiving.
    in this tutorial there are some parts in which you can see some pages where it mentions some sample of writing, delete, reading archiving progrma  that there are in SAP system.
    Check this link and I think it can help you.
    In my case I do not understand all the code sample.
    http://help.sap.com/saphelp_nw2004s/helpdata/EN/2a/fa043a493111d182b70000e829fbfe/frameset.htm

  • VBoxManage: error: Failed to create a session object!

    When I run
    vagrant up
    I get the following output:
    Bringing machine 'default' up with 'virtualbox' provider...
    There was an error while executing `VBoxManage`, a CLI used by Vagrant
    for controlling VirtualBox. The command and stderr is shown below.
    Command: ["list", "hostonlyifs"]
    Stderr: VBoxManage: error: Failed to create a session object!
    VBoxManage: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)
    VBoxManage: error: Most likely, the VirtualBox COM server is not running or failed to start.
    I tried directly running
    VBoxManage list
    and I get this output:
    VBoxManage: error: Failed to create a session object!
    VBoxManage: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)
    VBoxManage: error: Most likely, the VirtualBox COM server is not running or failed to start.
    VirtualBox (and vagrant) were both working earlier today, but I updated a bunch of packages via
    yaourt -Syua
    which I suspect is what caused the problem. Here's (what I think are) the relevant part of
    /var/logs/pacman.log
    [2013-10-22 15:53] [PACMAN] starting full system upgrade
    [2013-10-22 15:55] [PACMAN] upgraded libpng (1.6.5-1 -> 1.6.6-1)
    [2013-10-22 15:55] [ALPM-SCRIPTLET] >>> Updating module dependencies. Please wait ...
    [2013-10-22 15:55] [ALPM-SCRIPTLET] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Starting build: 3.11.6-1-ARCH
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [base]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [udev]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [block]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Generating module dependencies
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux.img
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Image generation successful
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Starting build: 3.11.6-1-ARCH
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [base]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [udev]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [block]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: aic94xx
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: bfa
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: smsmdtv
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Generating module dependencies
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Creating gzip initcpio image: /boot/initramfs-linux-fallback.img
    [2013-10-22 15:55] [ALPM-SCRIPTLET] ==> Image generation successful
    [2013-10-22 15:55] [PACMAN] upgraded linux (3.11.5-1 -> 3.11.6-1)
    [2013-10-22 15:56] [ALPM] warning: /boot/syslinux/syslinux.cfg installed as /boot/syslinux/syslinux.cfg.pacnew
    [2013-10-22 15:56] [ALPM-SCRIPTLET] Syslinux BIOS update successful
    [2013-10-22 15:56] [ALPM-SCRIPTLET] If you used syslinux-install_update to install syslinux:
    [2013-10-22 15:56] [ALPM-SCRIPTLET] ==> If you want to use syslinux with menu and all modules please rerun
    [2013-10-22 15:56] [ALPM-SCRIPTLET] ==> # /usr/bin/syslinux-install_update -i -a -m
    [2013-10-22 15:56] [ALPM-SCRIPTLET]
    [2013-10-22 15:56] [ALPM-SCRIPTLET] If you manually installed syslinux:
    [2013-10-22 15:56] [ALPM-SCRIPTLET] ==> Please copy or symlink all .c32 modules to your /boot/syslinux directory.
    [2013-10-22 15:56] [ALPM-SCRIPTLET] ==> If (/ and /boot on seperate fs):
    [2013-10-22 15:56] [ALPM-SCRIPTLET] ==> # cp /usr/lib/syslinux/bios/*.c32 /boot/syslinux
    [2013-10-22 15:56] [ALPM-SCRIPTLET] ==> If (/ and /boot on same fs):
    [2013-10-22 15:56] [ALPM-SCRIPTLET] ==> # ln -s /usr/lib/syslinux/bios/*.c32 /boot/syslinux
    [2013-10-22 15:56] [PACMAN] upgraded syslinux (4.07-1 -> 6.02-3)
    [2013-10-22 15:56] [ALPM-SCRIPTLET] In order to use the new version, reload all virtualbox modules manually.
    [2013-10-22 15:56] [PACMAN] upgraded virtualbox-host-modules (4.2.18-7 -> 4.3.0-1)
    [2013-10-22 15:56] [PACMAN] upgraded virtualbox (4.2.18-2 -> 4.3.0-1)
    After merging in the changes from
    /boot/syslinux/syslinux.cfg.pacnew
    , I ran
    /usr/bin/syslinux-install_update -i -a -m
    , and then rebooted the system, and that's when I first discovered VirtualBox was no longer working.
    I tried
    sudo modprobe vboxdrv
    sudo modprobe vboxnetadp
    sudo modprobe vboxnetflt
    and
    sudo modprobe vobxpci
    based on what I saw from https://bbs.archlinux.org/viewtopic.php?id=130317
    I tried
    chown root.root /tmp; chmod ug-s /tmp; chmod 1777 /tmp
    based on what I saw from https://www.virtualbox.org/ticket/2335#comment:4
    The output of
    /bin/ls -ld /tmp
    is
    drwxrwxrwt 4 root root 80 Oct 22 16:46 /tmp
    Not sure what to try next.
    Last edited by Nebu (2013-10-22 21:33:35)

    I also can confirm the same issue as with previous posters, tried all stuff found on the net that seems related to this issue.
    Nothing so far as solved it for me, I also had to downgrade to 4.2.18. Not optimal but atleasat i can work until this has been sorted out.
    Last edited by loxan (2013-10-24 09:02:19)

  • Create an empty midi region

    Hey, from the manual:
    Π Tip: If you want to insert one chord per bar into a very busy part, it’s much faster to
    create an empty MIDI region, and enter the desired chords into it (the cursor moves to
    the next bar when you press Tab in empty regions). Following chord entry, you can
    either merge the MIDI region with the original MIDI region in the Arrange area, or copy
    and paste all chords at once.
    I'm trying to create a few lead sheets that will display chord symbols, and ideally the melody as well. Sounds like it's easier to write in the chord symbols manually using the chord tool from the text box, but how do I create an empty midi region as stated above? The score editor will only open if there is information in a region somewhere. I could play one note I guess...but how's this empty thing work? Also, would you recommend using lead sheet from staff styles in the layout menu? Most jazz charts use a piano staff, melody up top, chord changes in the bottom. Perhaps I need to work backwards and set up the staff styles first, then record into them?
    j

    right click on the track-create midi region-

Maybe you are looking for

  • Satellite A215-S4757 - Battery life and cooling fan issue

    Hello everybody, I would like to ask a few questions abou my system: first of all, the cooling fan is running in my opinion too often: almost continuously, with brakes of 2-3 seconds. Is this normal? I have my laptop since august last year and I thin

  • How to decide which Object has to be used while maintianing TBD62

    Hi , I was trying  configure ECC for transfer of customer master data changes to GTS , i came to know that i need to maintain table TDB62 using Tcode BD52 for the table and field name then only pointer to Table BDCP will be created. I did maintain en

  • VO using WS as datasource ?

    I'd like to use webservice as datasource for static VO deployed locally. Trying to implement datasourse methods like shown in the article http://radio.weblogs.com/0118231/stories/2003/03/03/gettingAViewObjectsResultRowsFromARefCursor.html , I've foun

  • BG_ABSENCE_DURATION formula

    Hi, I have a question about the BG_ABSENCE_DURATION formula. We have a a situation where people want to apply for an annual leave that is greater than the time they have available. When this happens, a warning message comes up: "Warning - This absenc

  • Getiing error=50 while burning dvd

    i keep getting an error =50 when using roxio while im burning a dvd of photos and little mvi files from my camera. i just finished burning one folder and that went well. but now im burning a different folder and as its encoding it stops and shows me