Nullpointer: Reference entity null

Hey,
I have an view (PremiebetalerView) that consists of 4 entities:
- PolisRelatie (updatable)
- Relatie (reference FK between PolisRelatie and Relatie)
- Straat (reference FK between Relatie and Straat)
- Beroep (reference FK between Relatie and Beroep)
In the SQL I added an outer join: PolisRelatie.REE_REE_ID = Relatie.REE_ID (+).
I have also a Car view and a view link between CarView and PremiebetalerView, with CarView the master.
In java code I create a Premiebetaler view row instance and set some defaults of the PolisRelatie entity. When I select in other screen a Relatie I want to set this ID in the column REE_REE_ID of the polis relatie and refresh the relatie (row.getRelatie().refresh(PremiebetalerViewRowImpl.REFRESH_CONTAINEES)). This works well in my first CarView instance but when I copy this instance to a new view row and again create a Premiebetaler view row instance then row.getRelatie() evaluates to null so I can't refresh the entity.
Why is this entity null and how can I 'initialise' this entity?
Thanx, Marianne

Workaround: update the reference entity manually.
Create a custom ViewRowImpl (generate accessors) for the view, and for the foreign key attribute, use a setter that goes something like:
public void setQuoteSheetId(Number value) {
  setAttributeInternal(QUOTESHEETID, value);
  // workaround ADF bug
  // if not equal
  if ((value != null) ? !value.equals(getpkQuoteSheetId()) : (getpkQuoteSheetId() != null)) {
    // find the correct entity and set it
    if (value != null) {
      ViewObject quoteSheetView = getApplicationModule().findViewObject("QuoteSheetView1");
      Key key = new Key(new Object[] { value });
      Row[] rows = quoteSheetView.findByKey(key, 1);
      if ((rows != null) && (rows.length == 1) && (rows[0] != null)) {
        ViewRowImpl viewRowImpl = (ViewRowImpl)rows[0];
        setEntity(4, viewRowImpl.getEntity(0));
      } else {
        throw new RowNotFoundException(false, quoteSheetView.getName(), key);
    } else {
      setEntity(4, null);
}where
getpkQuoteSheetId() is the getter for the primary key attribute of the reference entity,
"QuoteSheetView1" is a default view of the reference entity,
and 4 is the index of the reference entity for the view.

Similar Messages

  • Regarding DocumentBuilder.parse method returns reference as null value.

    Hi
    We are in the process of migrating code which works on WebSphere/JBOSS to WLS..
    We are using DocumentBuilder object for parsing the Locale related xml data. I understand that the DocumentBuilder is provided by DocumentBuilderFactory which is an interface whose implementation is server specific.
    But when the Document Builder parse method is called with a valid file path, we are getting System.Out of doc.getFirstChild().getLocalName() as null (which ideally should have been the name of the first node). No Errors are observed .
    For WLS, the parser is giving the document object reference as null whereas in other servers like Websphere and JBOSS we are able to parse the same xml with proper object reference.
    Could you please help in this regard?
    Thanks and regards
    Anil

    Hi Vmotamar,
    If you think that the parsers available as part of WebLogic are causing the issues, Then you can use your Own Parsers while migrating to WebLogic Server. I mean Get the Parser Jar files which u used as part of JBoss or WebSphere and put it inside the "APP-INF\lib" directory of your EAR Application or Put them inside "WEB-INF\lib" of your WEBApplication...and then Apply ClassLoader Filtering feature provided by WebLogic ...which allows an application to use It's Own Jars\Classes ...
    Please refer to: http://forums.oracle.com/forums/thread.jspa?threadID=1109267&tstart=150 and in http://weblogic-wonders.com/weblogic/parsers_issues
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com/weblogic/parsers_issues/ (WebLogic Wonders Are Here)

  • Exception -not-null property references a null or transient value

    HI,
    I am trying to save a relational table and it is throwing the following exception in Hibernate .Pls help me
    Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value: com.aexp.acqsys.sim.dm.DmPackageContents._contentsByServiceBackref
         at org.hibernate.engine.Nullability.checkNullability(Nullability.java:72)
         at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:265)
         at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)
         at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)
         at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
         at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
         at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
         at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
         at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
         at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:557)
         at org.hibernate.impl.SessionImpl.save(SessionImpl.java:545)
         at org.hibernate.impl.SessionImpl.save(SessionImpl.java:541)
         at com.amex.testsim.flow.datapackages.ManageDatapackagesController$3.doInHibernate(ManageDatapackagesController.java:519)
         at com.amex.testsim.hibernate.support.HibernateController.doInHibernate(HibernateController.java:49)
         at com.amex.testsim.flow.datapackages.ManageDatapackagesController.copyDataPackage(ManageDatapackagesController.java:471)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)

    Hi Andrew,
    With an EAV mapping most (I would even say all) jpa annotations are ignored. In this case (afaics) the xsd element has
    minOccurs=1 (the default). This means that for ecore (and Teneo) it is a mandatory feature which must have a value. The
    EAVSingleEAttributeValueHolder.mandatoryValue field is used to enforce required/mandatory constraints.
    So in this case it can be solved by adding minOccurs="0" to the xsd element.
    gr. Martin
    Andrew wrote:
    > When using Teneo with EAV schema, I seem to be unable to store an
    > EObject if the value for one of its EStructuralFeature's is null. I get
    > the following exception:
    >
    > org.hibernate.PropertyValueException: not-null property references a
    > null or transient value: EAVSingleEAttributeValueHolder.mandatoryValue
    >
    > I tried to make the property nullable by adding an annotation to the XSD
    > from which the ecore model is created, eg.
    >
    > <xsd:element name="Number" type="xsd:integer">
    > <xsd:annotation>
    > <xsd:appinfo source="teneo.jpa">@Column(name="Number",nullable="true
    > ")</xsd:appinfo>
    > </xsd:annotation>
    > </xsd:element>
    >
    > However, this does not fix the problem. Does anyone know how to make
    > this work?
    With Regards, Martin Taal
    Springsite/Elver.org
    Office: Hardwareweg 4, 3821 BV Amersfoort
    Postal: Nassaulaan 7, 3941 EC Doorn
    The Netherlands
    Cell: +31 (0)6 288 48 943
    Tel: +31 (0)84 420 2397
    Fax: +31 (0)84 225 9307
    Mail: [email protected] - [email protected]
    Web: www.springsite.com - www.elver.org

  • ADF BC - Refresh VO reference entity

    Hello,
    I have a view object with an updateable entity and a reference entity. I want to enter the 1st entity attributes (including foreign key) and have reference entity attributes populated automatically after some button click. I don't want to issue commit.
    What should the button action look like? Will the view object currentRow.refresh(...) do the job?

    It definitely doesn't have to be this complicated.
    Simply write a method on your application module that does everything you want inside that method. Then, invoke that method from the view/controller layer.
    Due to the ADF BC active data model, the page will automatically update to show the refreshed foreign key information -- though you may need to correctly setup your Partial Page Rendering "Partial Triggers" properties to get the UI to repaint the updated values.
    Let me know if you still have questions.
    If you do still want to do it from the view/controller layer in your backing bean, you have to set the value of the binding, you could use a helper class like this:
    package demo.view.util;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    public class EL {
       public static boolean test(String booleanExpr) {
         return Boolean.TRUE.equals(get(booleanExpr));
      public static String getAsString(String expr) {
        return (String)get(expr);
      public static Object get(String expr) {
        FacesContext fc = FacesContext.getCurrentInstance();
        ValueBinding vb = fc.getApplication().createValueBinding(expr);
        return vb.getValue(fc);
      public static void set(String expr, Object value) {
        FacesContext fc = FacesContext.getCurrentInstance();
        ValueBinding vb = fc.getApplication().createValueBinding(expr);
        vb.setValue(fc,value);   
    }Then from your backing bean, assuming your attribute binding for the primary key attribute is named "MyPKAttr", you could write:
      EL.set("#{bindings.MyPKAttr}", newValue);However, I repeat, if you are writing code that invokes an application module method to get a result, and then you pass that result back to another application module method, this is a signal that you should just encapsulate all of those details inside the service itself instead of having to do it in multiple steps.
    See Chapter 8 in the ADF Developer's Guide for Forms/4GL Developers for a number of tips about creating custom methods in your application module.

  • ORA-22908: reference to NULL table value (insert into nest)

    Hi all,
    When attempting to insert a record into a nested table I get the above error (ORA-22908...). I've read what the error means, but to be honest it's a bit confusing. I'm wondering if someone could shed some light on the topic for me.
    The insert statement I'm using is:
    IF (:P50_CASEN IS NOT NULL) THEN
    INSERT INTO TABLE(SELECT LSMCS FROM SIN WHERE CASEN = :P50_CASEN)
    VALUES
    (LSMC_TY(:P50_C1,:P50_C2,:P50_C3,:P50_C4));
    END IF;
    The table def/DDL for SIN is:
    CREATE TABLE "SIN"
    (     "ID" NUMBER NOT NULL ENABLE,
         "CASEN" NUMBER,
         "EB" VARCHAR2(100),
         "EO" DATE,
         "ED" DATE,
         "NAME" VARCHAR2(100),
         "TITLE" VARCHAR2(100),
         "STATUS" VARCHAR2(20),
         "SPR" VARCHAR2(100),
         "BUNIT" VARCHAR2(100),
         "ECM" VARCHAR2(100),
         "PHONE" VARCHAR2(30),
         "REGION" VARCHAR2(30),
         "CAT" VARCHAR2(30),
         "PII" VARCHAR2(10),
         "RTN" VARCHAR2(10),
         "TCSIRC" VARCHAR2(10),
         "USCERT" VARCHAR2(10),
         "OCCS" VARCHAR2(10),
         "NOTES" VARCHAR2(4000),
         "LSMCS" "LSMCS_NT"
    NESTED TABLE "LSMCS" STORE AS "LSMCS_NT_TAB"
    RETURN AS VALUE
    CREATE OR REPLACE TRIGGER "BI_SIN"
    before insert on "SIN"
    for each row
    begin
    if :NEW."ID" is null then
    select "SIN_SEQ".nextval into :NEW."ID" from dual;
    end if;
    end;
    ALTER TRIGGER "BI_SIN" ENABLE
    ++++++++++++
    The DDL for the type is:
    CREATE OR REPLACE TYPE "LSMC_TY" AS OBJECT
    (C1 VARCHAR2(50),
    C2 VARCHAR2(50),
    C3 VARCHAR2(10),
    C4 VARCHAR2(4000));
    +++++++
    Any help would be much appreciated...

    A simplified example.
    SQL> select * from sin
      2  where id = 1
      3  /
            ID
    LSMCS(C1, C2, C3, C4)
             1
    LSMC_NT(LSMC_TY('APC', 'TOOTING', 'JUST A GUY', 'http://radiofreetooting.blogspot.com'))
    SQL> insert into  table(select s.lsmcs from sin s where s.id=1) t
      2  values ( LSMC_TY('HAROLD SAXON', 'UTOPIA', 'MASTER', 'http://www.haroldsaxon.co.uk/'))
      3  /
    1 row created.
    SQL> select * from sin
      2  where id = 1
      3  /
            ID
    LSMCS(C1, C2, C3, C4)
             1
    LSMC_NT(LSMC_TY('APC', 'LONDON', 'JUST A GUY', 'http://radiofreetooting.blogspot.com')
    , LSMC_TY('HAROLD SAXON', 'UTOPIA', 'MASTER', 'http://www.haroldsaxon.co.uk/'))
    SQL> This is basically what you have. So I think you need to simplify your implementation to get it working and then complicate it until you discover what breaks it :)
    Cheers, APC

  • ADF-BC/JSF Attributes of reference entity objects do not appear on new rows

    Hi everyone,
    Here is something I have been meaning to ask for a long time and never found the time to do so.
    Let's suppose that we have two entities named Item and and ItemType and a view object named ItemsList defined like this
    SELECT Item.ID,
                  Item.NAME,
                  Item.TYPE
                  ItemType.NAME as TYPE_NAME
                  Item.PRICE
                  ItemType.ID AS ID1
       FROM
                  ITEMS Item, ITEM_TYPES ItemType
       WHERE
                  Item.TYPE = ItemType.IDLet's also suppose that using JDeveloper's standard ADF/SF pages, we create a list page and a create page that uses a combo box to allow the user to set the item type which then commits the changes and returns back to to the list page.
    I have noticed that new rows created using this method do not display the TYPE_NAME (and all similar) attributes, until the view is executed again. What I usually do in this case is have an Execute binding that fires only when a request scope variable is set from the creating page. This approach works for me but I feel that there must be an easier and "more right" way to achieve the same results.
    Thanassis

    Maybe you can use the getEstimatedRowCount() method on the view.
    See more info here:
    http://download.oracle.com/docs/html/B25947_01/bcquerying006.htm

  • [SOLVED] ADF BC : View Object "second level" Entity reference issue

    hi
    If I insert a row in a View Object that uses "two levels" of Entity references, the attributes of the Entity on the "second level" don't get a value.
    Consider these tables:
    MY_ROW (MY_ROW_ID, MY_ROW_STUFF, MY_ROW_LU1_ID)
    MY_ROW_LU1 (MY_ROW_LU1_ID, MY_ROW_LU1_STUFF, MY_ROW_LU1_LU1_ID)
    MY_ROW_LU1_LU1 (MY_ROW_LU1_LU1_ID, MY_ROW_LU1_LU1_STUFF)
    Where MY_ROW.MY_ROW_LU1_ID is a "look-up" in MY_ROW_LU1 and MY_ROW_LU1.MY_ROW_LU1_LU1_ID is a "second level look-up" in MY_ROW_LU1_LU1.
    I created default Entities and Associations on these tables and a View Object that uses all 3 Entities (MyRow as Updatable, MyRowLu1 and MyRowLu1Lu1 as Reference).
    See example code in
    http://verveja.footsteps.be/~verveja/files/oracle/ViewObjectEntityReferenceIssue-v0.03.zip
    (contains no Java code, all out-of-the-box ADF BC)
    problem scenario:
    If run the MyRowService Application Module in the Oracle Business Component Browser and "open" the MyRowViewAll View Object instance, I get the rows and their related "look-up values".
    If I click the "Insert a new record" button and fill out values for MyRowId, MyRowStuf and MyRowLu1IdEntity, I only get "look-up" values for the "first level". While the "second level" stays empty.
    For example, a MyRowLu1IdEntity of "2003" gives a MyRowLu1Stuff value of "2003 stuff", but no value in MyRowLu1Lu1Stuff.
    What am I doing wrong? What should I change to also get a value in the "second level" MyRowLu1Lu1Stuff attribute?
    many thanks
    Jan Vervecken

    Jan,
    If you create a view object on Emp and Dept, with Dept as a reference entity, you might choose to build the view object to only include the:
    Emp.Empno (required, since it's the PK of Emp entity usage)
    Emp.Ename (included since you want to show the ename)
    Dept.Deptno (required, since it's the PK of the Dept entity usage)
    Dept.Dname (included since you want to show the dname)
    The wizard enforces the inclusion of the required attributes above.
    When you run this view object, a join is performed and you see the reference data.
    Now, if you want to allow the user to UPDATE the reference data, you need to add one more attribute to the list of attributes:
    Emp.Empno
    Emp.Ename
    Emp.Deptno (To allow user to change Deptno employee belongs to)Dept.Deptno
    Dept.Dname
    At this point, not only is the join performed for you, but the ADF BC reference mechanism reacts to any modification of the Emp.Deptno attribute, correctly showing the reference information for that new foreign-key-referenced department (even before commiting and requerying, at which time the SQL join would pickup that correct, related information).
    The "second level" problem you describe in this thread is simply the same issue described here as a master/first-level-detail situation, taken to its logical next step. If you want the end-user to be able to change the second-level detail to which the first-level-detail is associated, you need to include the first-level-detail's foreign key attributes in the view object's select list. Otherwise, there is no foreign key attribute whose value-change event the framework can react to in order to coordinate the related reference data in the row.
    I've blogged a link to a working example of a four-level reference information view object here:
    http://radio.weblogs.com/0118231/2007/05/09.html#a818
    based on the HR schema.

  • JavaFX's null not allowed is a thorn in my side....

    Hi All,
    Rule: JavaFX's data types (i.e. Number, Double, String, Integer) can't be null.
    My JavaFX Application listen's for real time data updates. Since this is a listener, it won't have a value til it get's the first update. Sounds fair enough... but they can't be null! So, I must use java.lang.Double instead. But all binding's convert the java.lang.Double null value to a javafx Double value of 0.0. So now I have broken logic in my program as 0.0 is a legitimate value and certainly does not signify 'null'. So, then it looks like I am stuck entirely with java.lang.Double everywhere! But then I'd need to do my own java.lang.Double -> fx.Double casting class/function to handle the cast conversion of each binding in order to interact sensibly with the JavaFX API (as it like's the FX Double everywhere and won't throw a nullpointer exception when casting).
    Rule: JavaFX's sequences can't contain null entries.
    Further more, I could say "Nope, I don't have a value/update yet so I will just use an object placeholder/wrapper with null assignment". In my case, JavaFX object's are multiple and ordered. Perfect for a sequence! Except, you can't store null in a sequence! Thus, if you are looking for a team's sport's top batsman.. the 3rd batsman and they don't exist yet.. then 'team[2] = null' wont insert! So how can I find and bind to the 3rd batsman? We'll either I avoid sequences, which means native array's or java collections... but then I can't really bind to them! Or, everytime the sequence changes I need to search/iterate over the entire sequence to determine if there is a 3rd batsman in the sequence (and that won't necessarily be the 3rd entry).
    Both these 'null not allowed' rules cause significant problems and have huge flow on effects onto the code that uses them. I believe this is totally wrong and a bad feature of the language and completely contradicts autoboxing! The identification of a data type reference being null is extremely significant. It is the responsibility of the receiver of a null reference/argument to decided how they want to handle the null reference (see autoboxing nullpointer exceptions if you don't believe me and reasons not to use java primitives). Removing the ability for this to occur is a step backwards for functional programming. I know you will say that I could just use the java.lang.*, a fair claim... but don't forget this means more work! The very reason you might be considering JavaFX in the first place.
    Anyway my rant is over, I really love JavaFX.... just not these x2 rules.

    The technique PhiLho refers to is often called the "null object pattern". If done properly it needn't be hackish at all, and indeed it can simplify a lot of processing code. Even if the "primitive" values (Number, String, etc.) could be null, and even if you could put nulls into a sequence, you're probably better off putting in an actual object that represents the absence of a value. The reason is that when you go to process that data, instead of just processing it, you have to put in checks for nulls here and there, and do special-case processing for it.
    Consider displaying a list of, say, the top five batsmen. You'll want to have a sequence of five batsmen, and you'll want to put five CustomNodes or something into a VBox to display the names, statistics, etc., something like the following:
    VBox {
        content: [
            for (b in [0..<5]) {
                BatsmanNode {
                    name: bind batsmen.name
    innings: bind batsmen[i].innings
    notOuts: bind batsmen[i].notOuts
    visible: bind batsmen[i].valid
    You can't do this if there were a null in the sequence, even if it were allowed. Instead, you should put a "fake" batsman object into the sequence, and make its "valid" variable be false. This way the corresponding BatsmanNode will be invisible. Or, you could have it display "(no entry)" in grey text, or something like that.
    The point is that if you always have a real object there, even if it represents a "null" or the absence of a value, it removes special-case processing code and enables you to do things like bind to it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Internal Server Error (circular reference detected while serializing: ....

    Hello Folks -
    I am trying to implement both ManyToMany and OneToMany relationships in J2EE EJB3.0.
    My application client has no problems, but when I expose my session bean methods as WebServices, I constantly run into this circular reference error.
    My example tables are simple:
    CREATE TABLE CLUB
    ID NUMBER NOT NULL,
    NAME VARCHAR2(100 BYTE) NOT NULL,
    CITY VARCHAR2(100 BYTE) NOT NULL,
    COUNTRY VARCHAR2(100 BYTE) NOT NULL
    TABLESPACE USERS
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    CREATE UNIQUE INDEX CLUB_PK ON CLUB
    (ID)
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    CREATE UNIQUE INDEX CLUB_UK1 ON CLUB
    (NAME, COUNTRY)
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    ALTER TABLE CLUB ADD (
    CONSTRAINT CLUB_PK
    PRIMARY KEY
    (ID)
    USING INDEX
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    ALTER TABLE CLUB ADD (
    CONSTRAINT CLUB_UK1
    UNIQUE (NAME, COUNTRY)
    USING INDEX
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    CREATE TABLE CONTRACTPERIOD
    ID NUMBER NOT NULL,
    PYR_ID NUMBER NOT NULL,
    CUB_ID NUMBER NOT NULL,
    START_DATE DATE NOT NULL,
    END_DATE DATE
    TABLESPACE USERS
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    CREATE UNIQUE INDEX CONTRACTPERIOD_PK ON CONTRACTPERIOD
    (ID)
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    ALTER TABLE CONTRACTPERIOD ADD (
    CONSTRAINT CONTRACTPERIOD_PK
    PRIMARY KEY
    (ID)
    USING INDEX
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    ALTER TABLE CONTRACTPERIOD ADD (
    CONSTRAINT CONTRACTPERIOD_FK
    FOREIGN KEY (PYR_ID)
    REFERENCES PLAYER (ID)
    ON DELETE CASCADE);
    ALTER TABLE CONTRACTPERIOD ADD (
    CONSTRAINT CONTRACTPERIOD_FK2
    FOREIGN KEY (CUB_ID)
    REFERENCES CLUB (ID)
    ON DELETE CASCADE);
    CREATE TABLE PLAYER
    ID NUMBER NOT NULL,
    FIRSTNAME VARCHAR2(30 BYTE) NOT NULL,
    LASTNAME VARCHAR2(30 BYTE) NOT NULL,
    NATIONALITY VARCHAR2(30 BYTE) NOT NULL,
    BIRTHDATE DATE NOT NULL
    TABLESPACE USERS
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    CREATE UNIQUE INDEX PLAYERS_PK ON PLAYER
    (ID)
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    ALTER TABLE PLAYER ADD (
    CONSTRAINT PLAYERS_PK
    PRIMARY KEY
    (ID)
    USING INDEX
    TABLESPACE USERS
    PCTFREE 10
    INITRANS 2
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    Also the Stateless session bean is simple:
    package demo;
    import java.util.Collection;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.jws.WebService;
    import javax.persistence.EntityManager;
    import javax.persistence.EntityManagerFactory;
    import javax.persistence.EntityTransaction;
    import javax.persistence.Persistence;
    import javax.persistence.Query;
    @Stateless
    @WebService
    public class JavaServiceFacade {
    private EntityManagerFactory emf = Persistence.createEntityManagerFactory("demo-1");
    public JavaServiceFacade() {
    public static void main(String [] args) {
    final JavaServiceFacade javaServiceFacade = new JavaServiceFacade();
    // TODO: Call methods on javaServiceFacade here...
    Collection<Player> playerCollection = javaServiceFacade.queryPlayerFindAll();
    for (Player player : playerCollection){
    System.out.println(player.getFirstname()+" "+player.getLastname()+"\n");
    Collection<Club> clubCollection = (Collection<Club>)javaServiceFacade.queryClubFindAll();
    for (Club club : clubCollection){
    System.out.println(club.getName()+"\n");
    List<Contractperiod> contractperiodList= player.getContractperiodList();
    for (Contractperiod contractperiod : contractperiodList){
    System.out.println("contracts: "+ contractperiod.getClub().getName() + ": from: "
    contractperiod.getStartDate()" to: " contractperiod.getEndDate() "\n");
    private EntityManager getEntityManager() {
    return emf.createEntityManager();
    public Object mergeEntity(Object entity) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    em.merge(entity);
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    entity = null;
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    return entity;
    public Object persistEntity(Object entity) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    em.persist(entity);
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    entity = null;
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    return entity;
    /** <code>select o from Club o</code> */
    public List<Club> queryClubFindAll() {
    Query query = getEntityManager().createNamedQuery("Club.findAll");
    return (List<Club>) query.getResultList();
    public void removeClub(Club club) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    club = em.find(Club.class, club.getId());
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    /** <code>select o from Contractperiod o</code> */
    public List<Contractperiod> queryContractperiodFindAll() {
    Query query = getEntityManager().createNamedQuery("Contractperiod.findAll");
    return (List<Contractperiod>) query.getResultList();
    public void removeContractperiod(Contractperiod contractperiod) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    contractperiod = em.find(Contractperiod.class, contractperiod.getId());
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    /** <code>select o from Player o</code> */
    public List<Player> queryPlayerFindAll() {
    Query query = getEntityManager().createNamedQuery("Player.findAll");
    return (List<Player>) query.getResultList();
    public void removePlayer(Player player) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    player = em.find(Player.class, player.getId());
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    public void removeClub(Club player) {
    final EntityManager em = getEntityManager();
    try {
    final EntityTransaction et = em.getTransaction();
    try {
    et.begin();
    player = em.find(Player.class, player.getId());
    et.commit();
    } finally {
    if (et != null && et.isActive()) {
    et.rollback();
    } finally {
    if (em != null && em.isOpen()) {
    em.close();
    (A few commented lines, as I tried both OneToMany and ManyToMany...)
    my Webservice result, after deploying to OC4J Standalone, is always the same:
    Entity Beans:
    package demo;
    import java.io.Serializable;
    import java.util.Collection;
    import java.util.List;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.ManyToMany;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    @Entity
    @NamedQuery(name = "Club.findAll", query = "select o from Club o")
    public class Club implements Serializable {
    @Column(nullable = false)
    private String city;
    @Column(nullable = false)
    private String country;
    @Id
    @Column(nullable = false)
    private Long id;
    @Column(nullable = false)
    private String name;
    @ManyToMany(mappedBy = "clubCollection",cascade={CascadeType.PERSIST})
    private Collection<Player> playerCollection;
    public Club() {
    public String getCity() {
    return city;
    public void setCity(String city) {
    this.city = city;
    public String getCountry() {
    return country;
    public void setCountry(String country) {
    this.country = country;
    public Long getId() {
    return id;
    public void setId(Long id) {
    this.id = id;
    public String getName() {
    return name;
    public void setName(String name) {
    this.name = name;
    public Collection<Player> getPlayerCollection() {
    return playerCollection;
    public void setPlayerCollection(Collection<Player> playerCollection) {
    this.playerCollection = playerCollection;
    public Contractperiod addContractperiod(Contractperiod contractperiod) {
    getContractperiodList().add(contractperiod);
    contractperiod.setClub(this);
    return contractperiod;
    public Contractperiod removeContractperiod(Contractperiod contractperiod) {
    getContractperiodList().remove(contractperiod);
    contractperiod.setClub(null);
    return contractperiod;
    package demo;
    import java.io.Serializable;
    import java.sql.Timestamp;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQuery;
    @Entity
    @NamedQuery(name = "Contractperiod.findAll",
    query = "select o from Contractperiod o")
    public class Contractperiod implements Serializable {
    @Column(name="END_DATE")
    private Timestamp endDate;
    @Id
    @Column(nullable = false)
    private Long id;
    @Column(name="START_DATE", nullable = false)
    private Timestamp startDate;
    @ManyToOne
    @JoinColumn(name = "PYR_ID", referencedColumnName = "ID")
    private Player player;
    @ManyToOne
    @JoinColumn(name = "CUB_ID", referencedColumnName = "ID")
    private Club club;
    public Contractperiod() {
    public Timestamp getEndDate() {
    return endDate;
    public void setEndDate(Timestamp endDate) {
    this.endDate = endDate;
    public Long getId() {
    return id;
    public void setId(Long id) {
    this.id = id;
    public Timestamp getStartDate() {
    return startDate;
    public void setStartDate(Timestamp startDate) {
    this.startDate = startDate;
    public Player getPlayer() {
    return player;
    public void setPlayer(Player player) {
    this.player = player;
    public Club getClub() {
    return club;
    public void setClub(Club club) {
    this.club = club;
    package demo;
    import java.io.Serializable;
    import java.sql.Timestamp;
    import java.util.Collection;
    import java.util.List;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.JoinTable;
    import javax.persistence.ManyToMany;
    import javax.persistence.NamedQuery;
    import javax.persistence.OneToMany;
    @Entity
    @NamedQuery(name = "Player.findAll", query = "select o from Player o")
    public class Player implements Serializable {
    @Column(nullable = false)
    private Timestamp birthdate;
    @Column(nullable = false)
    private String firstname;
    @Id
    @Column(nullable = false)
    private Long id;
    @Column(nullable = false)
    private String lastname;
    @Column(nullable = false)
    private String nationality;
    @ManyToMany
    @JoinTable(name="CONTRACTPERIOD",
    joinColumns=@JoinColumn(name="PYR_ID"),
    inverseJoinColumns=@JoinColumn(name="CUB_ID"))
    private Collection<Club> clubCollection;
    public Player() {
    public Timestamp getBirthdate() {
    return birthdate;
    public void setBirthdate(Timestamp birthdate) {
    this.birthdate = birthdate;
    public String getFirstname() {
    return firstname;
    public void setFirstname(String firstname) {
    this.firstname = firstname;
    public Long getId() {
    return id;
    public void setId(Long id) {
    this.id = id;
    public String getLastname() {
    return lastname;
    public void setLastname(String lastname) {
    this.lastname = lastname;
    public String getNationality() {
    return nationality;
    public void setNationality(String nationality) {
    this.nationality = nationality;
    public Collection<Club> getClubCollection() {
    return clubCollection;
    public void setClubCollection(Collection<Club> clubCollection) {
    this.clubCollection = clubCollection;
    public Contractperiod addContractperiod(Contractperiod contractperiod) {
    getContractperiodList().add(contractperiod);
    contractperiod.setPlayer(this);
    return contractperiod;
    public Contractperiod removeContractperiod(Contractperiod contractperiod) {
    getContractperiodList().remove(contractperiod);
    contractperiod.setPlayer(null);
    return contractperiod;
    <env:Envelope
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:ns0="http://demo/">
    <env:Body>
    <env:Fault>
    <faultcode>env:Server</faultcode>
    <faultstring>Internal Server Error (circular reference detected while serializing: demo.Contractperiod)</faultstring>
    </env:Fault>
    </env:Body>
    </env:Envelope>
    Anyone else run into this Troll?
    All suggestions(almost all) received with thanks.
    Regards,
    Charles
    Some strange error messages in Diagnostic Logs:
    Log Message: September 18, 2006 3:58:02 PM CEST
         Component Name          OC4J          Component ID          j2ee
         Host Network Address          192.168.1.69          Message Level          1
         Module ID          home_ejb.transaction          User ID          Charles
         Execution Context ID          192.168.1.69:35920:1158587882221:405          Execution Context Sequence          0
         Host Name          vmware          Message ID          J2EE EJB-08006
         Thread ID          44          Message Type          Error
         J2EE Application Module          OraPorterAPIdeploy          J2EE Application          OraPorterAPIdeploy
         Web Service Port          JavaServiceFacade          Web Service Name          JavaServiceFacadeService
    Message Text
    [JavaServiceFacade:public java.util.List demo.JavaServiceFacade.queryClubFindAll()] exception occurred during method invocation: oracle.
    Supplemental Text
    oracle.oc4j.rmi.OracleRemoteException: java.lang.IllegalStateException: ClassLoader "OraPorterAPIdeploy.root:0.0.0" (from <application>
    in /C:/Oracle/oc4j/j2ee/home/applications/OraPorterAPIdeploy/): This loader has been closed and should not be in use.
    Nested exception is:
    java.lang.IllegalStateException: ClassLoader "OraPorterAPIdeploy.root:0.0.0" (from <application> in /C:/Oracle/oc4j/j2ee/home/applications/OraPorterAPIdeploy/):
    This loader has been closed and should not be in use.
    ........This loader has been
    closed and should not be in use.; nested exception is:
    java.lang.IllegalStateException: ClassLoader
    Message was edited by:
    promise
    Message was edited by:
    promise

    Hei Guys -
    I see that the ClassLoader exceptions are known, and are "to be ignored".
    I left a reference to them, in case they play into our problems anyway.....
    "java.lang.IllegalStateException: ClassLoader" - known harmless bug... ?
    Best Regards,
    Charles

  • Difference between .equals("") and .equals(null)

    Can any one please tell me the difference between the following?
    String someString;
    someString = someMethod(someParameter);
    After the method call, if I am going for a check like this..
    what will each check do?
    1. if (someThing.equals(null))
    2. if (someThing.equals(""))
    3. if (something == null )
    4. if (something == "" )
    Thanks in advance,
    Regards
    Rakesh

    First, understand that the empty string ("") and null are two very different things. The empty string ("") is a string object that just doesn't contain any characters. It's still an object though--you can call it's methods.
    Null, on the other hand, is essentailly nothing. It's a special value that means "Nothing. No object here." (Ignoring for now the distinction among the null type, a null reference, etc.) You can't call methods or refer to fields on null. If you try, you'll get a NullPointerException.
    1. if (someThing.equals(null))Calls the equals method on someThing to compare someThing to null. If someThing is not null, this returns false. If someThing is null it... what? returns true? Nope. Throws NullPointerException. You can't call the equals method on a null someThing.
    Therefore there's no point in ever using equals(null).
    2. if (someThing.equals(""))Calls the equals method on someThing to compare someThing to the empty string (""). If someThing is not null, but is empty, it returns true. If someThing is non-null and is not empty (e.g., "abc"), it returns false. If someThing is null, it throws NPE.
    One generally uses the equals method, not the == operator to compare objects--that is, to see if their contents or states are equal. The == operator is used to see if two referecnes refer to the same object, or if a reference is null.
    3. if (something == null ) Evaluates to true if something is null and to false if something is non-null. Never throws NPE (since we're not calling a method or accessing a field).
    4. if (something == "" ) You never really want to use == to compare a String variable to a String literal like this. This checks to see if the reference something is referring to the same object as the "" is. The "" will be referring to an object in the constant pool. Even if something is the empty string, it may not refer to the same entry in the constant pool.
    That is (something == "") could evaluate to false, but something.equals("") could return true.

  • Whats the difference between arrayCollection = null and arrayCollection.removeAll()?

    Whats the difference between arrayCollection = null and
    arrayCollection.removeAll()?

    In arrayCollection = null; statement you're setting this
    reference to null and potentially making it available for garbage
    collection. I say 'this reference' and potentially because, as you
    may know, there might be other references to this array collection
    object that won't be affected by this statement and hence it won't
    be GC'ed.
    arrayCollection.removeAll() says that I want to empty this
    array collection for all the reference that we pointing to it. That
    is, remove all the objects from the collection -- and of course
    make them 'potentially' available for the GC -- the size of the
    array collection would be reduced down to zero and all the
    references would be pointing to a valid but empty collection.
    Hope this helps.
    ATTA

  • String is not null forever?

    String a = "";
    String b = new String();
    a==null? false
    b==null? false
    why?

    you mean a.b are Strings with length 0 but they are
    exist so not equal Null?Not quite.
    a and b are variables. They hold references. Those references could be null (which means they don't point to an object) but here they're not. They both point to String objects. Those String objects don't happen to contain any characters in their char arrays (the arrays themselves also exist, and have length zero), but the String objects still exist.
    Objects (such as Strings) can never be null. That concept doesn't apply. Only references can "be null" (i.e., the value they hold is the null reference -- http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html#11128).
    Remember the finger-pointing and paper-writing examples from your other thread? Setting a reference to null is making a fist and pointing at nothing, or erasing whatever is written on a piece of paper. It has nothing to do with any objects. Setting a variable to the empty string "" is pointing your finger at a book that has only a front and back cover, but no pages inside.

  • Object reference

    Hi,
    This might be a really dumb question, but anyways here goes...
    StringBuffer buf = null; - (1)
    StringBuffer buf1; - (2)
    What is the difference between 1 and 2 apart from the fact that in 1 I explicitly set the buf reference to null. Which one is better and why??
    Thanks all.

    Sorry, what's the above supposed to show?
    I (falsely) asserted that if one declared a local variable in a method final, it would have to explicitly be initialized to null to avoid a compiler error. Strange how class variables have an additional rule that local method variables do not have to obey. I'm sure, on a low-language-level, there is a reason, but damned if I know.
    My views on what doesn't need to be explicitly specified because everybody should know it vs. what should be explicitly specified even if not strictly necessary, in order to avoid confusion, are, to say the least, quite me-centric. :-)
    From a space/coding efficiency perspective, I can see your side too. IMO, the one thing I disliked about C/C++ was all the rules that one had to know and how various syntaxes could produce a result that was totally unexepceted. (This speaks more to my ignorance of pointer order of operations and lvalue assignments that are not a variable, not to mention operator overloading). So, I got in the habit of being as explicit as possible to avoid surprises. Luckily for me, Java arrived before I broke down in despair.
    - Saish

  • OBIEE Writeback error Sax parser Expected entity name with ampersand gt/lt

    Hi,
    I've enabled OBIEE 10.1.3.3.2 on Suse Linux 9.x writeback successfully for an OBIEE report, however if any of the fields contain XML special characters like ampersand, less than, greater than symbols etc when I save I get error:
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator.
    Sax parser returned an exception. Message: Expected entity name for reference, Entity publicId: , Entity systemId: , Line number: 1, Column number: 795
    Error Details
    Error Codes: UH6MBRBC:E6MUPJPH
    Xml parsed: <writeBack template="entry"><record action="update"><value columnID="c10">C</value><value columnID="c2">Jun-08</value><value columnID="c5">0001</value><value columnID="c1">NET RESULT</value><value columnID="c7">T000</value><value columnID="c3">Total X & X</value>...
    I don't really want to have to use replace function on all the fields in the report to remove special characters + train users not to enter them in editable field.
    Anyone got any ideas how to get around this?
    Thanks,
    Gareth

    Hi
    I am getting this error in writeback while submitting
    An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator.
    Sax parser returned an exception. Message: Unterminated entity reference, 'M', Entity publicId: , Entity systemId: , Line number: 1, Column number: 85
    Error Details
    Error Codes: UH6MBRBC:E6MUPJPH
    Xml parsed: <writeBack template="CPE_writeback"><record action="update"><value columnID="c0">H&M SWEDEN</value><value columnID="c1">7/5/2010</value><value columnID="c2">8/26/2010</value><value columnID="c11">Administrator</value><value columnID="c7">BOOKED</value><value columnID="c10"> y</value><value columnID="c9">H&M SWEDEN ;7/5/2010 ;8/26/2010 ;BOOKED</value></record></writeBack>
    I think the problem is with '&' or might be with something else, if i choose other options form dropdowns its does not give me any error. only fot this customer "H&M SWEDEN"
    can any one please tell me what workaround i can do.. the obi version is 10.1.3.2

  • Server Error at /libs/wcm/core/content/reference.json

    Hi all,
    I am currently faced with an server error.
    When I tried to right click and 'activate' a content, it doesn't do anything.
    As the ajax call have failed.
    Can I know how to resolve it?
    Thanks
    Internal Server Error
    Cannot serve request to /libs/wcm/core/content/reference.json in com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet Exception: java.lang.NullPointerException         at com.day.cq.personalization.impl.TargetedContentManagerImpl.collector(TargetedContentManag erImpl.java:336)         at com.day.cq.personalization.impl.TargetedContentManagerImpl.validateCache(TargetedContentM anagerImpl.java:321)         at com.day.cq.personalization.impl.TargetedContentManagerImpl.getCampaigns(TargetedContentMa nagerImpl.java:253)         at com.day.cq.personalization.impl.CampaignReferenceProvider.findReferences(CampaignReferenc eProvider.java:67)         at com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet.doGet(ActivationRefer enceSearchServlet.java:113)         at org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet. java:268)         at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:344)         at org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.jav a:375)         at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:508)         at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilter Chain.java:45)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)         at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:148)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:333 )         at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:160)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProce ssorImpl.java:254)         at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChai n.java:49)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:64)         at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:290)          at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgre ssTrackerLogFilter.java:59)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:74)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.j ava:220)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter.doFilter(CanvasPageDeleteRequ estFilter.java:87)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServle tStarterFilter.java:135)         at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilter Chain.java:60)         at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcess orImpl.java:151)         at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206)         at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:9 6)         at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)          at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java: 42)         at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:49)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)         at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)          at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:259)         at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55)         at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75 )         at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)          at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)          at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFil terChain.java:47)         at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.jav a:33)         at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java: 48)         at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)          at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)          at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)         at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.ja va:250)         at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:321)          at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:340)          at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:383)          at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:360)          at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644)         at java.lang.Thread.run(Unknown Source) Request Progress:       0 (2013-05-01 17:07:30) TIMER_START{Request Processing}       0 (2013-05-01 17:07:30) COMMENT timer_end format is {,}       0 (2013-05-01 17:07:30) LOG Method=GET, PathInfo=/libs/wcm/core/content/reference.json       0 (2013-05-01 17:07:30) TIMER_START{ResourceResolution}       0 (2013-05-01 17:07:30) TIMER_END{0,ResourceResolution} URI=/libs/wcm/core/content/reference.json resolves to Resource=, type=wcm/core/reference, path=/libs/wcm/core/content/reference, resource=[JcrNodeResource, type=wcm/core/reference, superType=null, path=/libs/wcm/core/content/reference]       0 (2013-05-01 17:07:30) LOG Resource Path Info: SlingRequestPathInfo: path='/libs/wcm/core/content/reference', selectorString='null', extension='json', suffix='null'       0 (2013-05-01 17:07:30) TIMER_START{ServletResolution}       0 (2013-05-01 17:07:30) TIMER_START{resolveServlet(, type=wcm/core/reference, path=/libs/wcm/core/content/reference, resource=[JcrNodeResource, type=wcm/core/reference, superType=null, path=/libs/wcm/core/content/reference])}       0 (2013-05-01 17:07:30) TIMER_END{0,resolveServlet(, type=wcm/core/reference, path=/libs/wcm/core/content/reference, resource=[JcrNodeResource, type=wcm/core/reference, superType=null, path=/libs/wcm/core/content/reference])} Using servlet com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet       0 (2013-05-01 17:07:30) TIMER_END{0,ServletResolution} URI=/libs/wcm/core/content/reference.json handled by Servlet=com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet       0 (2013-05-01 17:07:30) LOG Applying Requestfilters       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.i18n.impl.I18NFilter       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.core.impl.WCMRequestFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet       0 (2013-05-01 17:07:30) LOG Calling filter: com.adobe.granite.optout.impl.OptOutFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.theme.impl.ThemeResolverFilter       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter       0 (2013-05-01 17:07:30) LOG RedirectFilter did not redirect (request extension does not match)       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.core.impl.warp.TimeWarpFilter       0 (2013-05-01 17:07:30) LOG Applying Componentfilters       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.core.impl.WCMComponentFilter       0 (2013-05-01 17:07:30) LOG Calling filter: com.day.cq.wcm.core.impl.WCMDebugFilter       0 (2013-05-01 17:07:30) TIMER_START{com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet#0}       0 (2013-05-01 17:07:30) TIMER_END{0,com.day.cq.wcm.core.impl.reference.ActivationReferenceSearchServlet#0}       0 (2013-05-01 17:07:30) LOG Applying Error filters       0 (2013-05-01 17:07:30) LOG Calling filter: org.apache.sling.rewriter.impl.RewriterFilter       0 (2013-05-01 17:07:30) TIMER_START{handleError:throwable=java.lang.NullPointerException}      16 (2013-05-01 17:07:30) TIMER_END{16,handleError:throwable=java.lang.NullPointerException} Using handler /apps/sling/servlet/errorhandler/default.jsp      31 (2013-05-01 17:07:30) LOG Found processor for post processing ProcessorConfiguration: {contentTypes=[text/html],order=-1, active=true, valid=true, processErrorResponse=true, pipeline=(generator=Config(type=htmlparser, config={}), transformers=(Config(type=linkchecker, config={}), Config(type=mobile, config=org.apache.sling.jcr.resource.JcrPropertyMap@dcca29c), Config(type=mobiledebug, config=org.apache.sling.jcr.resource.JcrPropertyMap@75c7b6d7), Config(type=contentsync, config=org.apache.sling.jcr.resource.JcrPropertyMap@ab519aa), serializer=Config(type=htmlwriter, config={}))}      78 (2013-05-01 17:07:30) TIMER_END{78,Request Processing} Dumping SlingRequestProgressTracker Entries  ApacheSling/2.2 (Day-Servlet-Engine/4.1.42, Java HotSpot(TM) 64-Bit Server VM 1.6.0_29, Windows Server 2008 R2 6.1 amd64)

    After I have decompile and studied the com.day.cq.personalization.impl.TargetedContentManagerImpl Class.
    I have notice that I will need to have the Campaigns folder created under the content tree("/content/campaigns")
    Shouldn't the code handle the null case on line 321 of TargetedContentManagerImpl Class
    collector(this.adminResolver.getResource(this.promotionRoot));
    Thanks

Maybe you are looking for

  • Error multisim 10 with windows vista

    Hi, I have seen that multisim 10 is not compatible with windows vista, when I installed all is ok, but when I try to run the programs it marks an error, with autoroute.dll (998) or something like that, I know that in this forum is already a similar p

  • 6301 latest firmware update issue

    I've just updated my 6301's firmware from version 4.62 to 9.40 - it's on Orange UK. Since then every time I switch the phone on and log on to the network I get a text back from Orange 452, titled: "MyFaves Service" and the message is: "Sorry, country

  • Standard edition tuning

    Dear all, We have 11gr2 rac standard edition installed on solaris 10. Using statspack, we found that highly elapsed times queries are consuming cpu .We idenitifed the queries. but , how to tune this queries ?. In enterprise edition,we can use tuning

  • Director 12 is too slow making clones from 3D models

    Why is Director 12 so slow making clones from 3D models?  It takes 2 minutes to make 1200 clones from 10 very simple 3D models.  And that's only part of the game initialization time.  The complete game initialization takes 3.5 minutes, including the

  • Passing parameters based on events

    Hi, I want to pass the parameters between portlets on a particular event e.g. onClick() or onChange(). The example which is given in PDK is not useful in such a scenario. How can I use htmlFormActionLink in this case ? Thanks In Advance, - Chetan