NullPointerException with Default Value

Hi,
We got an int field in a class. On the database this row can contaion null-values.
With TopLink 9 everything was ok but with 10 under Java 1.3 it fails with the following exception:
Is this a bug in 10?
Thanks,
Simon
Exception [TOPLINK-71] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)):
oracle.toplink.exceptions.DescriptorException
Exception Description: A NullPointerException was thrown while setting the value of the instance variable
[abstraktionsEbene] to the value [null].
Internal Exception: java.lang.NullPointerException
Mapping: oracle.toplink.mappings.DirectToFieldMapping[abstraktionsEbene-->UNO_BETRIEBSPUNKT.ABSTRAKTIONSEBENE]
Descriptor: RelationalDescriptor(ch.sbb.rcs.zld.model.topologie.Betriebspunkt --> [DatabaseTable(UNO_BETRIEBSPUNKT)])
at oracle.toplink.exceptions.DescriptorException.nullPointerWhileSettingValueThruInstanceVariableAccessor
(DescriptorException.java:1238)
at oracle.toplink.internal.descriptors.InstanceVariableAttributeAccessor.setAttributeValueInObject
(InstanceVariableAttributeAccessor.java(Compiled Code))
at oracle.toplink.mappings.DatabaseMapping.setAttributeValueInObject(DatabaseMapping.java(Compiled Code))
at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(DatabaseMapping.java(Compiled Code))
at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java(Compiled Code))
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java(Compiled Code))
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java(Compiled Code))
at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(ObjectBuilder.java:667)
at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows
(DatabaseQueryMechanism.java:141)
at oracle.toplink.queryframework.ReadAllQuery.executeObjectLevelReadQuery(ReadAllQuery.java:468)
at oracle.toplink.queryframework.ObjectLevelReadQuery.executeDatabaseQuery(ObjectLevelReadQuery.java:800)
at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:603)
at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:768)
at oracle.toplink.queryframework.ReadAllQuery.execute(ReadAllQuery.java:436)
at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:2062)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:981)
at oracle.toplink.publicinterface.Session.executeQuery(Session.java:953)
at ch.sbb.rcs.zld.toplink.TopLinkDaoSupport$6.readFromSession(TopLinkDaoSupport.java:271)
at org.springframework.orm.toplink.SessionReadCallback.doInTopLink(SessionReadCallback.java:75)
at org.springframework.orm.toplink.TopLinkTemplate.execute(TopLinkTemplate.java:152)
at ch.sbb.rcs.zld.toplink.TopLinkDaoSupport.executeNamedQuery(TopLinkDaoSupport.java:245)
at ch.sbb.rcs.zld.business.impl.TopologieManagerImpl.findBetriebpunktByIdWithoutTopologieVersion
(TopologieManagerImpl.java:2204)
at ch.sbb.rcs.zld.business.impl.TopologieManagerImpl.findBetriebpunktById(TopologieManagerImpl.java:2171)
at ch.sbb.rcs.zld.business.impl.TopologieManagerImpl.mapBpsToBahnhof(TopologieManagerImpl.java:422)
at ch.sbb.rcs.zld.business.impl.TopologieManagerImpl.mapZugeordneteBpsToBahnhoefe(TopologieManagerImpl.java:485)
at ch.sbb.rcs.zld.business.impl.TopologieManagerImpl.findBahnhoefe(TopologieManagerImpl.java:170)
at ch.sbb.rcs.zld.application.impl.RegelServiceImpl.findBahnhoefe(RegelServiceImpl.java:370)
at ch.sbb.rcs.zld.application.ejb.RegelServiceBean.findBahnhoefe(RegelServiceBean.java:116)
at ch.sbb.rcs.zld.application.ejb.EJSRemoteStatelessRegelService_78a4cee8.findBahnhoefe
(EJSRemoteStatelessRegelService_78a4cee8.java:386)
at ch.sbb.rcs.zld.application.ejb._EJSRemoteStatelessRegelService_78a4cee8_Tie.findBahnhoefe
(_EJSRemoteStatelessRegelService_78a4cee8_Tie.java:593)
at ch.sbb.rcs.zld.application.ejb._EJSRemoteStatelessRegelService_78a4cee8_Tie._invoke
(_EJSRemoteStatelessRegelService_78a4cee8_Tie.java:111)
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:615)
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:468)
at com.ibm.rmi.iiop.ORB.process(ORB.java:396)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1608)
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2164)
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Internal Exception Stack:

We are experiencing the same problem. Is this a known TopLink issue? Thanks.

Similar Messages

  • How to preset fields in TA BP with default values

    Hi!
    I want to fill few fields in transaction BP with default values.
    This should be if there`s a new business partner to insert.
    If i can do this depending on the selected role it was the best
    First i thought on SPA/GPA-parameters ... but then i can`t do it in depence on the selected role.
    In customizing i can tell only if a field should be displayed or not, for input or not, ... but no values to insert.
    Is here anybody with a good idea for me?
    Thanks a lot in advance.
    Best regards,
    Ingo
    Edited by: Ingo Schmökel on Jul 1, 2008 7:20 PM

    Hi,
    There is one possibility which requires an enhancement of the
    BDT event ISDAT and a call to the function module
    BUP_BUPA_FIELDVALUES_SET. This means that an ISDAT function module needs to be written (transaction BUS7) which calls the function module BUP_BUPA_FIELDVALUES_SET with the needed values that are to be defaulted. You can read the role value using BUS_PARAMETERS_ISSTA_GET (T_RLTYP).The fields which are possible can be found in the DDIC structure BUSDEFAULT. However this is limited only to the fields inside this structure.
    Thanks and warm regards,
    Smita.

  • How to preset fields in a transaction BP with default values

    Hi!
    I want to fill few fields in transaction BP with default values.
    This should be if there`s a new business partner to insert.
    If i can do this depending on the selected role it was the best
    First i thought on SPA/GPA-parameters ... but then i can`t do it in depence on the selected role.
    In customizing i can tell only if a field should be displayed or not, for input or not, ... but no values to insert.
    Is here anybody with a good idea for me?
    I`ve posted my question first in crm-section but i think here it`s better
    Thanks a lot in advance.
    Best regards,
    Ingo

    Hi,
    There is one possibility which requires an enhancement of the
    BDT event ISDAT and a call to the function module
    BUP_BUPA_FIELDVALUES_SET. This means that an ISDAT function module needs to be written (transaction BUS7) which calls the function module BUP_BUPA_FIELDVALUES_SET with the needed values that are to be defaulted. You can read the role value using BUS_PARAMETERS_ISSTA_GET (T_RLTYP).The fields which are possible can be found in the DDIC structure BUSDEFAULT. However this is limited only to the fields inside this structure.
    Thanks and warm regards,
    Smita.

  • Portal Forms - How to make a Field with DEFAULT value NON-EDITABLE by Users

    I HAVE A FORM WITH A DATE FIELD ON IT WITH DEFAULT VALUE.
    THIS IS A TABLE-FIELD.
    I WANT THE FIELD TO BE DISPLAYED ON THE FORM BUT NOT TO ALLOW
    USERS TO EDIT/CHANGE IT.
    HOW CAN I DO THIS?
    TKS IN ADVANCE

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

  • How to Add column with default value in compress table.

    Hi ,
    while trying to add column to compressed table with default value i am getting error.
    Even i tried no compress command on table still its giivg error that add/drop not allowed on compressed table.
    Can anyone help me in this .
    Thanks.

    Aman wrote:
    while trying to add column to compressed table with default value i am getting error.This is clearly explain in the Oracle doc :
    "+You cannot add a column with a default value to a compressed table or to a partitioned table containing any compressed partition, unless you first disable compression for the table or partition+"
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm#sthref5163
    Nicolas.

  • Initialize some fields in material master with default values

    Hi,
    I would like to initialize some fields in material master MM01 with default values.
    for exemple in the view MRP1 there is a field MRP type I would like to initialize PD in the field as default value.
    but when I go to the technical information there is no parameter id that I can use in SU3.
    Do you know how I can the initialize the field those don't have parameter ID?
    thank
    Dede

    Dear Glenn,
    This is possible in SAP for this use T code MMD1 and create MRP profile and assign this MRP profile while creating material using MM01 in the organisation level put this created MRP profile. The values you maintained in this profile get copied to the material by default.
    To maintain MRP profile go to MMD1->give your profile name...........> click on  selection screen push button--->give here profile description--->select what MRP  field which u want to make fixed one/default. if make fixed later you can not change--
    >click on data screen 1 push button and maintain your value and save
    sree

  • FormsCentral - design form : Initialize form field with default value

    Hello,
              My customer asks me to initialize text fields with default values. Example , Name , email , phone number etc to be displayed by default till it is overwritten by values entered. Could you please guide me how to achieve this ?
    Many Thanks,
    Sree

    Hi,
    see Re: sequencing problem-Forms
    Regards Michael

  • Initializu00EDng select options field with default values and with NO INTERVALS

    Dear All,
    I have used WDR_SELECT_OPTIONS technology within WD Abap.
    I also have added the fields which have to be taken into consideration.
    lt_range_table =
    wd_this->m_handler->create_range_table(
    i_typename = 'PLANT' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    i_read_only = read_only ).
    Can I assign two values to this field 'PLANT' whereby the user may take only these values.
    I mean kind of pre initializíng of this select options field with default values.
    Due to this handling it should be prevented that the user can give other values
    except this values.
    Additonally it should be fine whether it is possible to disable the second input field
    of this select options field like NO INTERVALS .
    Regard
    sas
    Regard
    sas

    wd_this->m_handler->add_selection_field(
    i_id = 'PLANT'
    it_result = lt_range_table
    I_NO_INTERVALS = 'X'
    i_read_only = read_only ).
    Pls check 'WDR_TEST_SELECT_OPTIONS' web dynpro component

  • Table editor problem with default value for column

    Hi there,
    I'm trying to use SQL Developer 1.2.1 on Ubuntu 7.10 (though I don't think the OS is relevant) and I'm running into a snag when trying to update table structures. If you go to edit the table to say modify a column name, and that column has a default value set, SQL Developer is encapsulating the value with brackets and quotes. When trying to save the changes, it complains about the default value being 4 chars too many for the column width. An example of this would be a currency code column of varchar2 (3) set with EUR as the default. SQL Developer changes the value to ('EUR') hence the error.
    Is there anyway to prevent this from happening?
    Cheers,
    Chris

    Could you please be more specific? In 1.2.1.32.40 I
    added the column COL1 VARCHAR2(3) with default value
    'EUR'. The data display field refreshed to show the
    default value, so I edited it in a couple of entries
    and comitted the change without problem. Then I
    renamed the column from the "Edit table" popup menu.
    Finally, I renamed the column from the "Rename
    column" popup menu, no problem either.Ah, you are correct. That does work. What I was trying is select tablename in the object browser, then right click on it and select "Edit" from the contextual menu. You are then presented with edit table dialog box. If you then select a column in that box you will see a column properties box. In that section you can change the name, default value, datatype et cetera. Note that your default column value which should just be EUR (or 'EUR' to denote that it's a string) is now ('EUR'). Once you try changing the name to of the column to something else and then click OK, you should then get an error complaining of "Invalid varchar2 default value" with a more specific message of "Default values size 7 is greater than the allowed 3"
    You have provided a work around, and thanks for that, but it would be nice to edit everything in the Edit table dialog box if you're modifying more than one column name. I'm tasked with cleaning up a bit of a messy database, and there are a good deal of columns to be renamed.
    Cheers,
    Chris

  • I want to set a variable with default value and can be changed by the user

    hi,
    i want to set a variable with default value and can be changed by the user, so i new a variable with setting : customer exit, single value, optional, ready for input.
    in my customer exit code, i set a default value, eg. 20070530
    when the variable screen popup, it display the default value 20070530, i changed it to 20070529, but it doesn't work , it still display the data in 20070530, how can i solve this problem? 
    your help is appreciated.

    Liu,
       As mentioned by Anil, you need to restrict your customerr Exit code to I_STEP = 1.
    or.
       <u>Open your Variable in change mode, in the Last Page os the Variable Maintenance you can provide default value. Note: you are doing same thing in Customer Exit. In your case no need of Customer Exit.</u>
    Nagesh Ganisetti.
    Assign points if it helps.

  • ORA-01400 - not null column with default value and item with authorization

    I've searched - I would think someone has run into this. APEX 3.0.0.00.20 - I've created a simple form on a table. One of the column is a not null column with a default value. I have a select list on that item, but it has security on it - authorization scheme. So, it checks the user and if that user isn't of the right role, it will not even display that item. However, APEX appears to still send in the column in its sql! So, the default value is useless, it sends in null each time. Even if I set the default at the Item level, I get null. Argg. That's got to be a bug...
    In debug, I do not see the item listed at all. It's not used. That's fine - but why is it trying to insert the value? I would think it would leave it off??? I think because the item is associated with a database column. But, getting around this is ugly. Having to create a hidden item for each one, and then check to see if I need to take the list value... horrible. Any way to get around this???

    I should add - I guess I can always put my own custom process in to replace the DML. Just seems like a simple thing - if the value doesn't appear on the debug, isn't set with any default value... don't include it in the DML.

  • ORA-01400 error on a mandatory column with Default value

    Hi,
    I have got a mapping, which is loading from one view to a target table. In the target table there is a column which is marked as "NOT NULL" also has got Default value. But my mapping is failing with ORA-01400 error.
    Could you please guide me which setting in the mapping will make it load the default value in the target column?
    Regards,
    Samujjwal Basu

    I should add - I guess I can always put my own custom process in to replace the DML. Just seems like a simple thing - if the value doesn't appear on the debug, isn't set with any default value... don't include it in the DML.

  • Unlimited Delivery Indicator in relation with Default values in MIGO screen

    What is the relation of 'Unlimited Delivery Indicator' in PO with 'Porposed All Items Indicator'  in Default Values of MIGO?
    Case:
    PO created with quantity 100. GR is done for 100 quantity. If 'Porposed All Items Indicator'  is set system allows to receive more than PO quantity in GR.
    Its behavior is same as Unlimited Delivery Indicator in PO.

    'Porposed All Items Indicator' Indicates that items with quantities of zero are also suggested upon goods receipts with reference to purchase orders.
    use:No more goods receipts are expected for items that have a quantity of zero, but they are possible. Items with quantities of zero may occur after partial deliveries or reversals, for example.
    You can set this indicator if you often have to enter additional quantities to purchase order items that are already completed.
    'Unlimited Delivery Indicator'  the delivery quantity is not limited
    Regards,
    Pramod

  • Problem executing BEx query Hierarchy variable with default value

    My query has hierarchy variable on 0MOVETYPE char with a default value . The 0MOVETYPE variabale restriction is in Static filter area.
    I got timeout on query execution not because of amount of data but because of this hier. variable. Any ideas why?
    Notes:
    a) The hierarchy and the 0MOVETYPE characteristic are active and correct.
    b) I've tried RSRT check, but got the same timeout error.
    c) query executes fine on dev environment. I'm getting timeouts on PRD (as I say not because of amont of data)

    Hi,
    1. Try generating the report in RSRT and see if query runs correctly
    2. Looks like you are dafulating onto top node which contains whole data may be. This is not correct as it will definitely slow down the report based on amount of data it contains. Try to remove default and try first whether query is opening.
    3. You can put some lower level defualt to understand whether amount of data is the issue.
    4. Try to increase the server time out setting and see if it runs.
    Thanks and regards

  • Selection variable with default value as previous weeks mon through sun

    Hi Experts,
    1.)
    I need to create a Selection Variable ZTRANS_DT ( type Interval ), with the default value as  "Previous week, Monday Through Sunday" .
    Should we have to write a customer exit to populate these interval values dynamically every time the user runs the report ?
    If so can you please write a sample ABAP code.
    2.)
    The filter restriction for the date feild ZBUSINSDT has to be set to ">=#1/1/CURRENT YEAR#" ..
    How to set current year dynamically.
    Help done would be appreciated and would be assigned points.
    Thanks,
    Santosh..

    Hello,
    I dont remember of any standard variable but still you can wait to see if any1 comes up with one.
    Or else you can try the foll:
    Create the variable as per your requirement.
    Then in CMOD, write a simple code for i_step = 1.
    logic can be l_t_range-low = sy-datum - 1.
    Regards,
    Shashank

Maybe you are looking for

  • What's the best way to deal with db connections?

    There are a few ways to do this, I'm wondering what's the most accepted / standard way. I have a DBConnection object which hands out Connection objects. When each jsp page is loading, every function which requires db access could request its own Conn

  • Problem in accessing CD-ROM in LINUX?

    Hello All, I have installed VMware on my laptop and installed Oracle Enterprise Linux on a virtual machine.Now i want to install oracle 10g.How i can access the CDROM in linux so that i can copy the oracle 10g software from CD to a directort in linux

  • Java Web Start and C++ executable

    Can anyone please help me to deploy an application including three C++ executables using Java Web Start? I packaged each .exe file into .jar and created a java program called "ExecTest" that attempt to launch the .exe by calling Runtime.exec (someapp

  • Downloaded song won't sync to iphone, needs to be converted

    I bought a song on iTunes and it downloaded to my iTunes, but it won't sync to my iPhone, the message states that the song needs to be converted.  How do I do that? Thanks Y

  • T400 audio card drive needed

    My first thinkpad, a T400 with PC dos. Put on XP, found audio card "intel 82801 I(ICH9) HD audio card"   I cannot find its drive anywhere. Somebodyelse are also looking for it. Any idea? Thank you guys  Solved! Go to Solution.