Setting primary key in ejbCreate()

Hello,
I'm having difficulty inserting a record into my database. The error reporting is telling me that I'm trying to insert a null value into my primary key column even though I have confirmed that the primary key column is being set in my ejbCreate() method. The method is returning the value of the primary key parameter as per an example. This value is being generated by another class in my app (i.e. it is not auto-incrementing) and passed into a create method in the servlet. If anyone can offer some guidance it would be greatly appreciated. This seems like it should be something simple but I'm having no joy.
p.s. I'm using Resin-CMP so auto-incrementing PK is not a good idea.
java.sql.SQLException: ORA-01400: cannot insert NULL into ("LEARNWARE"."SCHEDULE"."SEQUENCE_NUMBER")
Thank you.
Scott Fitzgerald

Thanks for replying. My table has six columns with one of those being the primary key (in this case sequence_number).Since the getters and setters for the field (sequenceNumber) that maps to the primary key are abstract (ala Resin-CMP), they have to be public. Changing the field definition from public to private didn't seem to do anything. I still got the same error. My deployment descriptor has the persistence type set to Container and has been all along. Any more suggestions would be greatly appreciated.
Scott Fitzgerald

Similar Messages

  • Setting primary key fields from sequence. Please advise

    What is the most logical place to automatically set primary key fields from
    sequence?
    jdoPrestore seems to be a little late - my instance will not have id till
    it's committed. I can not do it in constructor because it gets called every
    time Kodo needs to construct an instance. What other options do I have for
    automatic pk assignment except do it in my code (hate it)?
    I wish I could use store managed OIDs but I need access to OID underlying
    data
    Please also see my previous message "Application Identity Extention"

    I came up with following pattern:
    public class OrgUnit implements InstanceCallbacks {
    private long orgUnitId = -1;
    private transient long tempOrgUnitId = -1;
    public long getOrgUnitId() {
    if (orgUnitId < 0) {
    if (tempOrgUnitId < 0) {
    tempOrgUnitId = JDOFactory.getNextSequenceId(getClass());
    return tempOrgUnitId;
    } else {
    return orgUnitId;
    public void jdoPreStore() {
    if (!JDOHelper.isDeleted(this)) {
    if (orgUnitId < 0) {
    setOrgUnitId(getOrgUnitId());
    I use -1 as an indicator that ID has not been assigned yet. If you use Long
    instead of long it will be cleaner since we can test for null
    "Alex Roytman" <[email protected]> wrote in message
    news:9q27co$r35$[email protected]..
    What is the most logical place to automatically set primary key fieldsfrom
    sequence?
    jdoPrestore seems to be a little late - my instance will not have id till
    it's committed. I can not do it in constructor because it gets calledevery
    time Kodo needs to construct an instance. What other options do I have for
    automatic pk assignment except do it in my code (hate it)?
    I wish I could use store managed OIDs but I need access to OID underlying
    data
    Please also see my previous message "Application Identity Extention"

  • How to set primary key for a date column

    hello experts .,
    i need to set primary key for a column consists of the datatype date. how to solve this..?

    1008318 wrote:
    its my personal need..then it is a very bad personal need. DATE is not an appropriate type to be using for a primary key, as it cannot be guaranteed to be unique, especially when inserting multiple rows at once.
    You would be better working to business needs and implementing correct technical solutions to those needs, than to just do things based on your personal needs.

  • Anyone know setting primary key deferred help in the bulk loading

    Hi,
    Anyone know by setting primary key deferred help in the bulk loading in term of performance..cos i do not want to disable the index, cos when user query the existing records in the table, it will affect the search query.
    Thank You...

    In the Oracle 8.0 documentation when deferred constraints were introduced Oracle stated that defering testing the PK constraint until commit time was more efficient than testing each constraint at the time of insert.
    I have never tested this assertion.
    In order to create a deferred PK constraint the index used to support the PK must be created as non-unique.
    HTH -- Mark D Powell --

  • How to set primary key of the VO.

    I have a problem with the master detail search. The search works fine on the first search, all details can be seen fine, but in the second search I get this error.
    The number of displayed records, 1, exceeds the actual number of records, 0, in view object EgoItemAdvancedSearchAM.MYACCESSOR001_MYLINK001_DetailsOrderLinesVO. Some of the displayed records may have been deleted.
    Somwhere in another thread, someone had the same problem and the soultion was to set primary key of the master VO. I am not sure how to set primary key of a VO. In my case the master VO is dynamic. Is there a way I can set PK of a dynamic VO.
    Any help greatly appreciated.

    Hi
    Thanks for your reply...
    am seting the primary key to VO attribute in my controller(PR)...but its not mapping to the VO attribute..
    OAAttachmentImageBean Ibean = (OAAttachmentImageBean)webBean.findChildRecursive("OpAttachments");
    String[] pkvaule = {"ResAttribute15"};
    Ibean.setPkColumns(pkvaule);
    Regards
    Harrrry

  • How can i set primary key after creating a table ?

    hi friends
    thank you for all the support you have given me . i have doubt ,can we set primary key for a column after creating the table
    I have added a column named idno after creating the table . i want to set that column as primary key . i tried this
    table name = address
    column name = idno
    ALTER TABLE ADDRESS MODIFY (idno PRIMARY KEY(idno))
    ,but not working
    if anbody knows the solution pls reply
    thanks and regards
    nev

    how does the other users know which is the primary key for this table?....the other user needs to execute this query...and modify the query accordingly
    select aa.table_name,aa.column_name,aa.constraint_name,bb.constraint_type
    from user_cons_columns aa,user_constraints bb
    where aa.constraint_name = bb.constraint_name
    and aa.table_name = 'TEST_EMP' and bb.constraint_type = 'P';

  • Setting primary key field value in jdoPrestore() not flushed to database ?BUG?

    Hello,
    When I set value of primary key field of a new instance in jdoPrestore() new
    value does not get flushed to database - old (default) value get stored
    instead. All other fields assigned in jdoPrestore() get successfully
    flushed except primary key one.
    Alex

    Abe,
    You fixed only part of the problem. Right now if I assign value to a PK
    field in jdoPreStore() it does get flushed but there is another issue - all
    other instances which referenced the one I assigned PK to will not get this
    PK value. Example A references B, in B.jdoPreStore() I generate id for B -
    b.id = 100. When A gets flushed it would not get 100 in its b_id field.
    Specs says:
    This method is called ***before the values are stored from the instance to
    the StateManager***.
    Data store fields that might have been affected by modified non-persistent
    fields should
    be updated in this method. This method is modified by the enhancer so that
    changes to
    persistent fields will be reflected in the data store.
    The context in which this call is made allows access to the
    PersistenceManager and
    other persistent JDO instances.
    I read it as callbacks should be invoked on ALL instances before they get
    stored to StateManager. Does Kodo invoke callbacks for all istances first
    and then store them to instance manager? Based on the problem I am having it
    does not look like it
    Alex
    "Abe White" <[email protected]> wrote in message
    news:[email protected]..
    I just confirmed this as a bug and fixed it. We should be able to post
    the new jars for you soon. Hang in there.

  • Setting Primary Keys in Data Modeler

    I just created a table in Data Modeler 3 and set the Primary Key columns, but I did not see the # symbol next to the PK columns, as it is in the other tables previously created. Is there a setting that is preventing them from appearing?

    Thanks very much Phillip.
    I am wondering now if there's a way to use that browser to correct another problem I've been having:
    Sometimes I find that if I have to rename an attribute, the tool keeps a redundant,unneeded attribute in the list of attributes, typically placing a 1 or 2 after the name. I can not delete these unwanted attributes using the delete button. So how can I get rid of them? Does the browser offer a way? Thanks.

  • Error when i set primary key to a field in table

    I created a table. with one primary key field
    on saving it following error happened 
    at Microsoft.SqlServer.Management.DataTools.Interop.IDTDocTool.Save(Object dsRef, String path, Boolean okToOverwrite)
    at Microsoft.SqlServer.Management.UI.VSIntegration.Editors.VsDataDesignerNode.Save(VSSAVEFLAGS dwSave, String strSilentSaveAsName, IVsUIShell pIVsUIShell, IntPtr punkDocDataIntPtr, String& strMkDocumentNew, Int32& pfCanceled)
    then i removed primary key. Table was saved successfully.
    I need to make primary key field.. how can i solve it?

    CREATE TABLE tblname (c INT NOT NULL PRIMARY KEY) 
    Have you ran the above statement successfully?  Do you create a table in VS?  
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Help with setting primary key in table

    Hi,
    I have created a table in Oracle and populated it with information, but I need a primary key (like an autonumber in Access) to identify each record. How can I do this for an existing table?
    Thanks so much for any help you can provide!

    Hello,
    I am assuming you have created the sequence and trigger i posted in my earlier post, here run this and if this answers your question mark post answered and reward points for helpful posts.
    INSERT INTO customer1 (FIRST_NAME,
                           LAST_NAME,
                           TITLE,
                           ADDRESS1,
                           ADDRESS2,
                           CITY,
                           STATE,
                           ZIP,
                           PHONE,
                           EXTENSION,
                           FAX,
                           WORK_PHONE,
                           WORK_EXTENSION,
                           MOBILE_PHONE,
                           EMERGENCY_PHONE,
                           PHONE_NOTES,
                           EMAIL)
       SELECT   FIRST_NAME,
                LAST_NAME,
                TITLE,
                ADDRESS1,
                ADDRESS2,
                CITY,
                STATE,
                ZIP,
                PHONE,
                EXTENSION,
                FAX,
                WORK_PHONE,
                WORK_EXTENSION,
                MOBILE_PHONE,
                EMERGENCY_PHONE,
                PHONE_NOTES,
                EMAIL
         FROM   CUSTOMER;
         COMMIT;Regards

  • Generate sample PHP service from db could not set primary key

    Hi,
        Some information about my system:
    OS :Windows 7 64 bit
    Computer type: HP Pavilion dv6-3013cl laptop
    Eclipse 3.5+Flash Builder 4 plugin
    DB: MySQL 5.0 local server
    Web Server: Apache 2.2+PHP 5.2.14
    Zend Frame work 1.10.1 (installed by Flash Builder)
        I am trying to configure a PHP service in the Connect to Data/Service wizard. I clicked "click here to generate a sample" to generate a Sample PHP service. I selected Generate from database radio button and entered the db connection information in all fields. I am able to connect to my local database and select the table I want to create the service. But after I selected the primary key from the dropdown, the Ok button is still disabled and a warning note at the bottom of the screen still prompt for selecting the table's primary key. At this point, the log in eclipse metadata folder in the workspace has the following error:
    !ENTRY org.eclipse.ui 4 0 2010-09-13 09:05:23.565
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.setPrimaryKeyColumn(PHPService.java: 185)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog$4.widgetSe lected(MySQLConfigurationDialog.java:419)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    I figured this explains why the OK button is not enabled. I could trick the screen by clicking the Generate from template radio button and back to clicking the Generate from database button which will enable the OK button. I clicked OK, and a Security Information warning about ricks of generating the service php file popped up asking if I want to continue. I clicked OK and back to the generate sample PHP service screen. After this, the process entered an endless Ok-warning-OK-warning-OK loop and could never proceed to actually generating the service file. In the Eclipse log file, I see more Unhandled event loop exception:
    !ENTRY org.eclipse.ui 4 0 2010-09-13 11:11:30.482
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.setPrimaryKeyColumn(PHPService.java: 185)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog$4.widgetSe lected(MySQLConfigurationDialog.java:419)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    !ENTRY org.eclipse.ui 4 0 2010-09-13 11:12:07.460
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.fillUpModel(PHPService.java:221)
        at com.adobe.flexbuilder.services.PHPService.PHPService.createFlexService(PHPService.java:27 7)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog.okPressed( MySQLConfigurationDialog.java:948)
        at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    !ENTRY org.eclipse.ui 4 0 2010-09-13 11:14:34.534
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.setType(ColumnModel.jav a:204)
        at com.adobe.flexbuilder.services.PHPService.serverproto.ColumnModel.buildFromColumn(ColumnM odel.java:218)
        at com.adobe.flexbuilder.services.PHPService.PHPService.setPrimaryKeyColumn(PHPService.java: 185)
        at com.adobe.flexbuilder.services.PHPService.serverproto.MySQLConfigurationDialog$4.widgetSe lected(MySQLConfigurationDialog.java:419)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.services.PHPService.PHPConfigurationPage$6.widgetSelected(PHPConfig urationPage.java:240)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
        at org.eclipse.jface.window.Window.open(Window.java:801)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.show(ServiceWizard.java:190)
        at com.adobe.flexbuilder.DCDService.ui.wizard.ServiceWizard.createService(ServiceWizard.java :152)
        at com.adobe.flexbuilder.dcrad.views.ServiceExplorerView$1.handleEvent(ServiceExplorerView.j ava:528)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
        at org.eclipse.swt.widgets.Link.wmNotifyChild(Link.java:1004)
        at org.eclipse.swt.widgets.Control.wmNotify(Control.java:4877)
        at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:1757)
        at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:4507)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:4000)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
        at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2312)
        at org.eclipse.swt.widgets.Link.callWindowProc(Link.java:172)
        at org.eclipse.swt.widgets.Widget.wmLButtonUp(Widget.java:1917)
        at org.eclipse.swt.widgets.Control.WM_LBUTTONUP(Control.java:4301)
        at org.eclipse.swt.widgets.Link.WM_LBUTTONUP(Link.java:842)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3982)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4602)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2409)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
    I was able to do this on my old windows xp (Media Center OS) laptop. I wonder if this problem has anything to do with the Windows 7's system permission security feature. I 've stuck for 2 days now. Can someone help?! Thanks so much!

    Thanks for reporting the bug.
    I have filed another bug on, FB not validating PHP installation before generating sample https://bugs.adobe.com/jira/browse/FB-27522 .
    https://bugs.adobe.com/jira/browse/FB-27522Please vote/comment for the issue.
    Thanks,
    Radhakrishna

  • Primary key issue with adf Entry Form.

    Hi All,
    i'm using jdev version 11.1.1.5.0
    use case: i have create simple entry form based on Eo and Vo using database table like student(enrollment no,name address)
    where enrollment no is primary key.
    so when i have create a record i have set enrollment no in entity impl class of this eo create method using some logic based on my need like(20130001)
    for that i have read highest no from database field and assign to enrollment no field when user create record.
    so when user create record second time then enrollment no is 20130002. and other detail like name and address user fill and commit record. and it is fine.
    but problem is that when two user access same form at a time and create record so both have get same primary key like 20130003 because in current time in database maximum value is 20130002.
    so which user  commit record first it record will save on database and second user get error message because of primary key violation.
    so my question is that where we generate primary key value for record so when multiple user access form have get different primary key value. and in my use case i can't use sequence and any autoincrement no
    because i have patter for primary key.
    Thanks in Advance
    Manish

    Hi,
    Dimitar and Frank
    thank for reply.
    How can i apply non-concurrent DB lock can you please explain.(because lock method on entity impl not work when user create new row as per documentation)
    http://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/server/EntityImpl.html#lock__
    i have write following line of code in entity impl class to set primary key value(reqid)-
        @Override
        protected void prepareForDML(int i, TransactionEvent transactionEvent) {
             super.prepareForDML(i, transactionEvent);
            this.setReqid(genReqid());
        public String genReqid() {
            String reqby = this.getReqby();
            String qry =
                "SELECT nvl(MAX(TO_NUMBER(SUBSTR(REQID,7))),0)+1  FROM STM_REQHDR WHERE REQBY=? AND REQTYPE<>'M' and substr(reqid,1,2)<>'MT' AND SUBSTR(REQID,1,3)<>'PAY'";
            PreparedStatement ps = null;
            String no = "";
            try {
                ps = getDBTransaction().createPreparedStatement(qry, 0);
                ps.setString(1, reqby);
                ResultSet rs = ps.executeQuery();
                if (rs.next()) {
                    no = rs.getString(1);
                ps.close();
            } catch (Exception e) {
                System.out.println("Exception in Gen req id ==>" + e);
            String reqno = reqby + String.format("%6s", no).replace(' ', '0');
            return reqno;
    but when i run form in debug mode and two user commit concurrent manner only one time code block is executed who first commit. and second user got error message.
    thanks
    Manish

  • Setting composite key in Container Managed Entity Bean

    In my database table i set primary key to two columns making them as composite key. how do i set that in my container managed entity bean home interface findByPrimaryKey() method and in deployment descriptor file.

    1. create another class (say CompositePK) that will embed the two fields keyA and keyB corresponding to the two pk of your table (declare them public) .
    2. in your Bean declare keyA and keyB public.
    3. in the dd declare your bean primary-key-class as CompositePK and the primary-key-field as keyA and keyB.
    this is the method i use (with BAS) even if the key is simple (such as Integer).

  • Re:Primary Key in the UDO Table

    Hi All,
    In the UDO  table by default code is set as the primary key. How to set primary key for another field also?.
    Thanks in Advance.
    Regards,
    Madhavi

    Hi Madhavi,
    If you're getting the 'Other users are currently connected to the database' and the aren't any user connected to the company one of the following is happening:
    1. There's a Add-on that uses the DI API connected to the company;
    2. You have the SQL Management Studio opened and connected to the company DB;
    3. You any other application, like Crystal Reports, connected to the company DB.
    Close all other applications that may be the cause of the problem, and create the Key again.
    Regards,
    Vítor Vieira

  • Primary key in detail block

    Dear Experts,
    I've a master detail form.
    I detail form there is no primary key. When it is executed the following error displayed :
    FRM-30100: Block must have at least one primary key item.
    Block: ASSETS_ISSUE_DTL
    Form: FORM_ASSETS_ISSUE_DTL
    What to do?

    I got it.
    Create a dummy text box item in detail block.
    Write rowid in column name.
    Set Primary key YES.
    Thanks.

Maybe you are looking for

  • SE 518 No account assignment exists for service li ne 0000000000

    Hi , I am using classic scenario.The Shopping cart (SRM5.0)creates Purchase Requisition in the backend ECC5.0.Things work fine for Describe Requirement Product Type=01(Goods).But for Product Type = 02(Service) getting the error "SE 518 No account ass

  • Profit Center in Account assignment tab

    Hi All,   My Client wants to add a field "PROFIT CENTER" in account assignment tab in portal with F4 option and that value should be transferred to back end system as well. Please tell me how to achieve it. Regards, Prasath

  • Monitor access point

    Hi Experts, I have one simple requet to monitor  some business critial access point. All of them are thin AP then obviously I can not poll SNMP directly. What I need is email notification of AP up/down status. I have mutiple wireless lan controller (

  • Accelerated GPU Effects - poor performance over CS2...

    System Specs Vista 64 E6600 over clocked @ 3.0 GHz 4 GB System Ram DDR2 @ 667 Intel 975xBx Bad Axe Motherboard ATI 1650 PCIx 512MB 2 SATA on the Intel Ich7 SATA Controller that give like 1.5Gbs transfer or something close to 1 Maxtor one Touch RAID 1

  • Default fonts SO8

    Is there a way to set the default font (and auto column width) for tables generated by queries in Starbase? I`m trying to produce some useable timetables from Data held in a Spreadsheet file. But, the queries always return the Data in a System font,