SQLException - Creating a ViewObject

Hi!
I am creating a viewobject out of a sqlstatement with the
wizzard. I use a very simple Statement: select * from pdalle
When I test the query, JDeveloper shows me the following error
message. I do not know where the 'where 1=2' part comes from. I
hope anybody can tell me.
java.sql.SQLException: Syntax error or access violation: You
have an error in your SQL syntax near 'SELECT * FROM pdalle)
where 1=2' at line 1
     java.sql.ResultSet
org.gjt.mm.mysql.PreparedStatement.executeQuery()
     java.lang.Exception
oracle.jbo.dt.ui.view.VOClausePanel.testSQL()
     java.lang.Exception
oracle.jbo.dt.ui.view.VOClausePanel.testAction()
     void oracle.jbo.dt.ui.view.VOClausePanel.actionPerformed
(java.awt.event.ActionEvent)
     void javax.swing.AbstractButton.fireActionPerformed
(java.awt.event.ActionEvent)
     void
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(java.awt.event.ActionEvent)
     void javax.swing.DefaultButtonModel.fireActionPerformed
(java.awt.event.ActionEvent)
     void javax.swing.DefaultButtonModel.setPressed(boolean)
     void
javax.swing.plaf.basic.BasicButtonListener.mouseReleased
(java.awt.event.MouseEvent)
     void java.awt.Component.processMouseEvent
(java.awt.event.MouseEvent)
     void java.awt.Component.processEvent(java.awt.AWTEvent)
     void java.awt.Container.processEvent(java.awt.AWTEvent)
     void java.awt.Component.dispatchEventImpl
(java.awt.AWTEvent)
     void java.awt.Container.dispatchEventImpl
(java.awt.AWTEvent)
     void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
     void java.awt.LightweightDispatcher.retargetMouseEvent
(java.awt.Component, int, java.awt.event.MouseEvent)
     boolean java.awt.LightweightDispatcher.processMouseEvent
(java.awt.event.MouseEvent)
     boolean java.awt.LightweightDispatcher.dispatchEvent
(java.awt.AWTEvent)
     void java.awt.Container.dispatchEventImpl
(java.awt.AWTEvent)
     void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
     void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
     void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
     boolean java.awt.EventDispatchThread.pumpOneEvent()
     void java.awt.EventDispatchThread.pumpEvents
(java.awt.Conditional)
     void java.awt.EventDispatchThread.run()

Hi Gary!
I tried the same with an simple viewobject definition. I chose
only one attribute and in my select statement I selected only
this one attribute. The test query option on the wizzard tells
that the query is valid. But when I then go to the next
step "Attribute Mappings" I get the same error message again
with the "where 1=2".
The strange thing is that when I choose "Test" from the context
menu of my Application module, there is no problem with the view
object. Its values can be shown.
But when I execute the Business Components Dataform Applet, I
built with the wizzard, I get these errors:
DAC-511: ResultSetInfo: could not execute the query.
JBO-29000: Unexpected exception caught:
java.lang.ClassCastException, msg=nullTherefore I think that the error comes from the viewobject and
its query. It might be that another reason for the error is that
connect to the mysql database and not to oracle. But why can I
see the data with the Tester and not with my generated applet?
Perhaps do you know what is diffrent in the configuration of
the "Tester".
I am looking forward to hearing from you soon
Stefanie

Similar Messages

  • Again: SqlException - Creating a ViewObject

    Hi Gary!
    I tried the same with an simple viewobject definition. I chose
    only one attribute and in my select statement I selected only
    this one attribute. The test query option on the wizzard tells
    that the query is valid. But when I then go to the next
    step "Attribute Mappings" I get the same error message again
    with the "where 1=2".
    The strange thing is that when I choose "Test" from the context
    menu of my Application module, there is no problem with the view
    object. Its values can be shown.
    But when I execute the Business Components Dataform Applet, I
    built with the wizzard, I get these errors:
    DAC-511: ResultSetInfo: could not execute the query.
    JBO-29000: Unexpected exception caught:
    java.lang.ClassCastException, msg=null Therefore I think that the error comes from the viewobject and
    its query. It might be that another reason for the error is that
    connect to the mysql database and not to oracle. But why can I
    see the data with the Tester and not with my generated applet?
    Perhaps do you know what is diffrent in the configuration of
    the "Tester".
    I am looking forward to hearing from you soon
    Stefanie
    PS: I use Jdeveloper 3.2
    PPS: Here is the Exception again:
    java.sql.SQLException: Syntax error or access violation: You
    have an error in your SQL syntax near 'SELECT * FROM pdalle)
    where 1=2' at line 1
    java.sql.ResultSet
    org.gjt.mm.mysql.PreparedStatement.executeQuery()
    java.lang.Exception
    oracle.jbo.dt.ui.view.VOClausePanel.testSQL()
    java.lang.Exception
    oracle.jbo.dt.ui.view.VOClausePanel.testAction()
    void oracle.jbo.dt.ui.view.VOClausePanel.actionPerformed
    (java.awt.event.ActionEvent)
    void javax.swing.AbstractButton.fireActionPerformed
    (java.awt.event.ActionEvent)
    void
    javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
    (java.awt.event.ActionEvent)
    void javax.swing.DefaultButtonModel.fireActionPerformed
    (java.awt.event.ActionEvent)
    void javax.swing.DefaultButtonModel.setPressed(boolean)
    void
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased
    (java.awt.event.MouseEvent)
    void java.awt.Component.processMouseEvent
    (java.awt.event.MouseEvent)
    void java.awt.Component.processEvent(java.awt.AWTEvent)
    void java.awt.Container.processEvent(java.awt.AWTEvent)
    void java.awt.Component.dispatchEventImpl
    (java.awt.AWTEvent)
    void java.awt.Container.dispatchEventImpl
    (java.awt.AWTEvent)
    void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
    void java.awt.LightweightDispatcher.retargetMouseEvent
    (java.awt.Component, int, java.awt.event.MouseEvent)
    boolean java.awt.LightweightDispatcher.processMouseEvent
    (java.awt.event.MouseEvent)
    boolean java.awt.LightweightDispatcher.dispatchEvent
    (java.awt.AWTEvent)
    void java.awt.Container.dispatchEventImpl
    (java.awt.AWTEvent)
    void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
    void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
    void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
    boolean java.awt.EventDispatchThread.pumpOneEvent()
    void java.awt.EventDispatchThread.pumpEvents
    (java.awt.Conditional)
    void java.awt.EventDispatchThread.run()

    I'm still working on issues with MySQL and postgreSQl databases and drivers, but I do have some answers that nobody probably wants to hear. Note that I'm testing with JDev 9i beta on Linux and have duplicated all issues on JDev 9i RC on WindowsNT.
    1) To fix the 'no suitable driver' error, the problem is that the driver is not getting registered by JDev or its BC4J for some reason. You can force JDev to register it by adding to the jdev script (in Linux, I'm sure its similar for Windows) "-J-Djdbc.drivers=org.gjt.mm.mysql.Driver" - this passes the -D parm through to java which tells it to set the system parameter jdbc.drivers, which in turn will auto-register the driver. The same kind of thing can be done for generated BC4J code, except you'll have to let JDev compile and build and fail to run, copy the java run line to and editor, add the -D parm like above, take off the -H parm at the end (won't work with it) and then run that line outside of JDev. Make sure that the -D parm is added before the class being run or it won't work (I add it at the beginning, right after java).
    2) The problem with testing/changing BC4J View appears to be because BC4J code is using a sub-select that it creates to test and MySQL can't handle sub-selects (subqueries) at this time. If you put debugging code in the driver's PreparedStatement.<init> (the constructor) to display the 'sql' string, you'll see it produces something like
    select * from (SELECT Emp."name" AS name FROM emp Emp) WHERE 1=2
    I think its trying to just get a resultset that will pass compile but retrieves 0 rows (that's enough to test and check columns returned). Also, I had it fail on the Emp."name" because it wouldn't take double quotes. I got the subselect only after changing the query to be Emp.'name'
    3) Even if you get past the above issues, on trying to save in a default-created JClient application of 1 table/form, I found that it generates a sql statement "SAVEPOINT B0_0" to set savepoints before doing the commit... and MySQL does not support Savepoints.
    PostgreSQL - same kind of problems.
    The driver that comes with postgreSQL distribution lacks lots of JDBC 2 features (rather it has them, but they return false or nulls instead of valid information). It lacks DatabaseMetaData information on indexes, updateable resultsets, RowIdentifier (required by BC4J in order for it to get a unique identifier for a table/row).
    The JXdbCon driver has lots more features, but I am still having problems with it that I haven't figured out yet. Even if it ends up working, postgreSQL does not support Savepoints any more than MySQl (though i am thinking about changing the driver to ignore calls to Savepoint just to see what else might be missing). Its syntax for subselects is also slightly different, which might be a problem (it needs an 'AS <alias>' at the end of the subselect outside the ')' but before the WHERE).
    It appears that the Open Source drivers are nice for many purposes, but lacking in full JDBC 2 compliance that commercial drivers might have (assuming the databases themselves could handle all the issues, which they can't at this time).
    Not good news, but at least it answers some of the questions I've seen posted in the forums.

  • How to create a viewobject dynamically without using wizard

    Hi,
    I am Using jDEV 11G, i need to create a viewobject dynamically without using wizard, without binding from any entity.
    Actually my intention is to make a grid like in .Net, when a user want to create a new row in RichTable without using DB.
    just like shopping cart.
    i have done thsi code:
    ViewObjectImpl view=new ViewObjectImpl();
    view.addDynamicAttributeWithType("Att1","String",null);
    view.addDynamicAttributeWithType("Att2","String",null);
    view.addDynamicAttributeWithType("Att2","String",null);
    Row rw=view.createRow();
    rw.setAttribute("Att1","First1");
    rw.setAttribute("Att2","First2");
    rw.setAttribute("Att2","First3");
    view.insertRow(rw);
    I have a RichTable , i need bind this viewobject into that.
    Edited by: vipin k raghav on Mar 10, 2009 11:39 PM

    Hi Vipin,
    You can create the view object with rows populated at run time.
    [http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcquerying.htm#CEGCGFCA]
    For reference of how to create an empty rwo at run time on button click
    [http://kohlivikram.blogspot.com/2008/10/add-new-row-in-adf-table-on-button.html]
    ~Vikram

  • Creating Composite VIewObject(VO) in 11g

    Hi,
    I need to create a view object - somefields from the webservice and some fields from the database table (Entity Object)
    i.e For example i need to get an id from the webservice and remaining details from the database to display. Is it possible in ADF BC
    Thanks
    Sureshkumar K

    Hi,
    you can't do this declaratively, but you can do this programmatically. Just crate transient attributes for the Web Services pieces and use Java in the VORowImpl class to populate the row instance. Note that this would only work read only because the transaction model is different.
    However, I don't claim to know everything, so I suggest to post your question to the JDeveloper 11 forum
    JDeveloper and OC4J 11g Technology Preview
    I know that some WebServices integration have been improved in JDeveloper 11 for ADF BC
    Frank

  • Dynamically create Detail ViewObject

    I've got an ApplicationModule with one Detail VO in it.
    Now I'd like to make a copy of this Detail VO, programatically.
    The problem is, that I don't know how to tell the bc4j Framework that this newly created View is shall be Detail View and not a "standard" View.
    thanks for your help

    Peter:
    I need a bit more detail to answer your question correctly.
    I've got an ApplicationModule with one Detail VO in it.I'm assuming that you built this AM from within the IDE. The AM's data model has the master VO and detail VO. Is that correct?
    Now I'd like to make a copy of this Detail VO, programatically.
    The problem is, that I don't know how to tell the bc4j Framework that this newly created View is shall be Detail View and not a "standard" View.Then, are you trying to replace the VO you added in the data model in the original design of the AM with this new VO? Are you expecting this new VO to be detail to the master VO which is already in the AM's data model?
    If so, could you tell me why you find a need to replace the detail VO?
    Thanks.
    Sung

  • No suitable driver - testing Application Module

    I'm using the AVEconnect JDBC Driver which I've registered successfully with the IDE as well as placed in my ClassPath.
    I've created entity and view objects using the aforementioned driver and placed them in an application module. To verify the application module, I right click on it and choose "test"... the resulting debug information in the console window shows a "no suitable driver" error.
    No changes have been made to the IDE generated code.
    What else should I check?

    I believe that neither MySQL nor PostgreSQL will work with BC4J as they currently stand. I did my testing with JDev9i, but I would imagine that the issues are the same (and even if you got something working, you'd never get it to work in JDev9i).
    Basically, neither database has all the SQL features that JDev9i relies on - including subqueries (sub-selects) and Savepoints (for partial rollbacks). PostgreSQl has most of the features, but poorly implemented drivers at this time. Its updatable resultset implementation is woefully incomplete as it now stands, but I'm not sure how necessary that is for BC4J (I could't get that far in testing).
    As somebody mentioned to me in an email afterwards, MySQL may have almost enough features sometime after v4.02 (4.0 is now in Alpha), with the exception of Savepoints (it might be possible to modify the driver to work around that issue - just ignoring the savepoint might work so long as you never have database commit problems). They talk about implementing subqueries, foreign keys, and some other things they'd need to work well with JDev and BC4J. But I bet this stuff is 6-12 months away.
    For more technical info, see my reply to posting '
    re:Again: SqlException - Creating a ViewObject' by
    Stefanie Tvlke a few days ago.

  • How to create ViewObject to generate file xml?

    Hello everybody...
    Folks I would like to know if is possible to create a ViewObject to generate a file xml.
    In other words, I have a table in database and I need to generate a file xml based on this table.
    Anyone already did that?
    ADF Swing.
    JDeveloper Studio 11.1.1.4.0.

    Hello everybody, (Good morning in Brasil)...
    Thanks "*Raj Gopal*"...
    I have seen that exist several way to generate xml based on a table from database, however what is the better form (or more correct)???
    In the my case, I'll need to generate a file xml based on a table, and posteriorly I'll have to retrieve this xml and to save in the database.
    In other words I'll have to do import and export of files xml-db db-xml.
    What is the better way?*
    Swing ADF.
    JDeveloper Studio 11.1.1.4.0
    Thanks in advanced.
    Edited by: Le on 23/05/2011 06:14
    Edited by: Le on 23/05/2011 06:15

  • Fusion order  issue+(SQLException) ORA-01882: timezone region  not found

    hi,
    i have created entities,viewObjects and AM with help of Business Components from tables
    after creating the wizard when i run the AM i am getting the below error please any one help
    oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.sql.SQLException, msg=ORA-01882: timezone region not found
    ----- Level 1: Detail 0 -----
    (java.sql.SQLException) ORA-01882: timezone region not found

    hi,
    i am trying to creating a graph in ADF page where i have dragged a node from datacontrol i have selected as bar graph in configuration window given values for Bars and swap bars with Xaxis and click the preview tab where i am getting this error as
    it couldnot fetech data
    Unable to retrieve data: JBO-29000: Unexpected exception caught: java.sql.SQLDataException, msg=ORA-01882: timezone region not found
    Jdev11g i have reinstalled the recently but previously i installed Jdev11g and used were i got same problem i have followed steps which given by Shychemaker that time it work fine now i have done same steps but now its not working can anyone help me
    Unexpected exception caught: java.sql.SQLDataException, msg=ORA-01882: timezone region not found
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.sql.SQLDataException, msg=ORA-01882: timezone region not found
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:4957)
         at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5054)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1280)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6415)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:118)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:217)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:558)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:414)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8377)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4364)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2421)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2207)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3086)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:494)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:836)
         at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:480)
         at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:265)
         at oracle.adf.model.BindingContext.put(BindingContext.java:1012)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:175)
         at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:778)
         at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:911)
         at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:802)
         at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:758)
         at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:889)
         at oracle.adf.model.BindingContext.get(BindingContext.java:848)
         at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1421)
         at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2388)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2333)
         at oracle.adf.model.dvt.binding.transform.Utils.getCubicDataControl(Utils.java:104)
         at oracle.adf.model.dvt.binding.transform.CDCDefinition.getCubicDataControl(CDCDefinition.java:124)
         at oracle.adf.model.dvt.binding.transform.TransformDefinition.getCubicDataControl(TransformDefinition.java:175)
         at oracle.adf.model.dvt.binding.transform.CDCDefinition.setCubicBinding(CDCDefinition.java:64)
         at oracle.adf.model.dvt.binding.transform.TransformDefinition.setCubicBinding(TransformDefinition.java:160)
         at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:184)
         at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:141)
         at oracle.adf.model.dvt.binding.common.CubicBinding.createCubeDataModel(CubicBinding.java:203)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.createDataModel(FacesCubicBinding.java:169)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:131)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:122)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:89)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.preview.PreviewRuntime.fetchData(PreviewRuntime.java:99)
         at oracle.adfdtinternal.model.dvt.ide.objects.editors.CubicHierEditor$5$1.run(CubicHierEditor.java:933)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.sql.SQLDataException: ORA-01882: timezone region not found
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:79)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:936)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
         at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1706)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1674)
         at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(OracleStatementWrapper.java:274)
         at oracle.jdbc.driver.PhysicalConnection.setSessionTimeZone(PhysicalConnection.java:7264)
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:4953)
         ... 45 more
    ## Detail 0 ##
    java.sql.SQLDataException: ORA-01882: timezone region not found
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:79)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:936)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
         at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1706)
         at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1674)
         at oracle.jdbc.driver.OracleStatementWrapper.executeUpdate(OracleStatementWrapper.java:274)
         at oracle.jdbc.driver.PhysicalConnection.setSessionTimeZone(PhysicalConnection.java:7264)
         at oracle.jbo.server.OracleSQLBuilderImpl.setSessionTimeZone(OracleSQLBuilderImpl.java:4953)
         at oracle.jbo.server.DBTransactionImpl.refreshConnectionMetadata(DBTransactionImpl.java:5054)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1280)
         at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:6415)
         at oracle.jbo.server.DBTransactionImpl2.connect(DBTransactionImpl2.java:118)
         at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:217)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:558)
         at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:414)
         at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8377)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4364)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2421)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2207)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3086)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:453)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:424)
         at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:419)
         at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:494)
         at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:836)
         at oracle.adf.model.binding.DCDataControl.setErrorHandler(DCDataControl.java:480)
         at oracle.jbo.uicli.binding.JUApplication.setErrorHandler(JUApplication.java:265)
         at oracle.adf.model.BindingContext.put(BindingContext.java:1012)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:175)
         at oracle.adf.model.BindingContext.instantiateDataControl(BindingContext.java:778)
         at oracle.adf.model.dcframe.DataControlFrameImpl.doFindDataControl(DataControlFrameImpl.java:911)
         at oracle.adf.model.dcframe.DataControlFrameImpl.internalFindDataControl(DataControlFrameImpl.java:802)
         at oracle.adf.model.dcframe.DataControlFrameImpl.findDataControl(DataControlFrameImpl.java:758)
         at oracle.adf.model.BindingContext.internalFindDataControl(BindingContext.java:889)
         at oracle.adf.model.BindingContext.get(BindingContext.java:848)
         at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1421)
         at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2388)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2333)
         at oracle.adf.model.dvt.binding.transform.Utils.getCubicDataControl(Utils.java:104)
         at oracle.adf.model.dvt.binding.transform.CDCDefinition.getCubicDataControl(CDCDefinition.java:124)
         at oracle.adf.model.dvt.binding.transform.TransformDefinition.getCubicDataControl(TransformDefinition.java:175)
         at oracle.adf.model.dvt.binding.transform.CDCDefinition.setCubicBinding(CDCDefinition.java:64)
         at oracle.adf.model.dvt.binding.transform.TransformDefinition.setCubicBinding(TransformDefinition.java:160)
         at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:184)
         at oracle.adf.model.dvt.binding.common.CubicBinding.getProjection(CubicBinding.java:141)
         at oracle.adf.model.dvt.binding.common.CubicBinding.createCubeDataModel(CubicBinding.java:203)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.createDataModel(FacesCubicBinding.java:169)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:131)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:122)
         at oracle.adfinternal.view.faces.dvt.model.binding.common.FacesCubicBinding.getDataModel(FacesCubicBinding.java:89)
         at oracle.adfdtinternal.model.dvt.ide.objects.bindPanels.preview.PreviewRuntime.fetchData(PreviewRuntime.java:99)
         at oracle.adfdtinternal.model.dvt.ide.objects.editors.CubicHierEditor$5$1.run(CubicHierEditor.java:933)
         at java.lang.Thread.run(Thread.java:619)

  • SQLException when calling getQuery() in RefCursor based VO

    I have successfully created a ViewObject based on a RefCursor using the Sample codes at radioweblogs.
    However when I override the executeQuery() of the RefCursor-based ViewObject to
    print/log the VO's query, I get an SQLException: ... "Missing Expression...."
    public void executeQuery() {
    System.out.println("QUERY: " + getQuery()); //this causes the error, If i remove this line it will work properly...
    super.executQuery();
    }In case you're The reason why I had to call the getQuery() method is to trace the query of the ViewObject. The state of my ViewObject can be toggled. Sometimes its based on the normal declarative way, sometimes its based on a RefCursor. If its based on the normal declaration, i need to get query string...
    Naturally if I based it on a refcursor, then I would set the Query, From Clause, Where clause to NULL , then the getQuery() method will return only "SELECT FROM" which is why the SQlException: Missing Expression is thrown.
    But the call to the getQuery() method should not alter the state of the ViewObject, ryt?
    I don't know but this might be a bug?
    what are your thoughts?

    Oimclient.jar was missing

  • Pointbase : How can I create a stored procedure with Pointbase database?

    Hello,
    Excuse me for my english, I'm not anglophone. I try to create a stored procedure.
    This is my file SampleExternalMethods.java :
      import java.sql.*;    //import com.pointbase.jdbc.jdbcInOutDoubleWrapper;          public class SampleExternalMethods    {      // A connection object to allow database callback      static Connection conn = null;      static Statement l_stmt;      static Statement m_stmt;      static CallableStatement m_callStmt = null;      static ResultSet l_rs = null;          public static void main(String[] args)      {        try        {          String url = "jdbc:pointbase:server://localhost/pointbaseDB";          String username = "PBPUBLIC";          String password = "PBPUBLIC";          conn = DriverManager.getConnection(url, username, password);          doCreateProcedure();          doInvokeProcedure();        } catch (SQLException e) {          e.printStackTrace();        } finally {          if (m_stmt != null) {            try {              m_stmt.close();            } catch (Exception e) {              e.printStackTrace();            }          }          if (m_callStmt != null) {            try {              m_callStmt.close();            } catch (Exception e) {              e.printStackTrace();            }          }          if (conn != null) {            try {              conn.close();            } catch (Exception e) {              e.printStackTrace();            }          }        }      }                  public static void getCountry(String Iso_Code)      {        try        {          // Query the database for the country iso code          l_stmt = conn.createStatement();          l_rs = l_stmt.executeQuery( "SELECT * FROM countries"          + " WHERE country_iso_code ='" + Iso_Code + "'");          //Affichage du résultat de la requête          l_rs.next();          System.out.print(l_rs.getString(1) + " - ");          System.out.print(l_rs.getString(2) + " - ");          System.out.println(l_rs.getString(3));          // Close the result set          l_rs.close();        } catch (SQLException e) {          e.printStackTrace();        } finally {          if (l_rs != null) {            try {              l_rs.close();            } catch (Exception e) {              e.printStackTrace();            }          }          if (l_stmt != null) {            try {              l_stmt.close();            } catch (Exception e) {              e.printStackTrace();            }          }        }      }            public static void doCreateProcedure() throws SQLException {        // SQL statement to create a stored procedure        String SQL_CREATE_PROC = "CREATE PROCEDURE getCountry(IN P1 VARCHAR(30))"        + " LANGUAGE JAVA"        + " SPECIFIC getCountry"        + " NO SQL"        + " EXTERNAL NAME \"SampleExternalMethods::getCountry\""        + " PARAMETER STYLE SQL";        // Create a SQL statement        m_stmt = conn.createStatement();        // Execute the SQL        m_stmt.executeUpdate(SQL_CREATE_PROC);        // Close the statement        //m_stmt.close();      }          public static void doInvokeProcedure() throws SQLException {        // Create SQL to invoke stored procedures        String SQL_USE_PROC = "{ call getCountry(?) }";        // Create a callable statement with three binding parameters        m_callStmt = conn.prepareCall(SQL_USE_PROC);        m_callStmt.setString(1, "CA");        m_callStmt.executeQuery();        // Close the callable statement        //m_callStmt.close();      }    } 
    Afterwards, I have read this note in a Pointbase document:
    To invoke the dateConvert external Java method from a stored function, you must use the
    CREATE FUNCTION statement. The dateConvert external Java method is called from the
    class, SampleExternalMethods.
    In order for the database to access this external Java method, the class SampleExternalMethods
    must be included in the database CLASSPATH. For PointBase Embedded - Server Option, it
    must be in the Server CLASSPATH, but not in the Client CLASSPATH.
    If PointBase Server is run with the Java Security Manager, in the java policy file grant
    ’com.pointbase.sp.spPermission’ to the class that implements the external Java method.
    An "spPermission" consists of a class name with no action. The class name is a name of a class
    that could be used in creating a Stored Procedure in PointBase. The naming convention follows
    the hierarchical property naming convention and that is supported by
    "java.security.BasicPermission". An asterisk may appear by itself, or if immediately preceded
    by ".", may appear at the end of the name, to signify a wildcard match. The name cannot
    contain any white spaces.
    I'm not sure, but I suppose that I must include the class SampleExternalMethods in a .jar file.
    The database CLASSPATH could be : C:\Sun\AppServer\pointbase\lib\
    These my files in this database CLASSPATH:
    pbclient.jar
    pbembedded.jar
    pbtools.jar
    pbupgrade.jar
    I have tryed to include the class SampleExternalMethods in pbclient.jar and pbembedded.jar with this command:
    jar -uf pbembedded.jar SampleExternalMethods
    Afterwards I do that,
    1) Start Pointbase
    2) Configuration of classpath
    set classpath=C:\Sun\AppServer\pointbase\lib\pbclient.jar
    set classpath=%classpath%;D:\J2EE\Ch07Code\Ch07_06
    I precise that my file SampleExternalMethods is into D:\J2EE\Ch07Code\Ch07_06\Ch07.
    Then, I run the program:
    D:\J2EE\Ch07Code\Ch07_06>java -Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver Ch07.SampleExternalMethods
    But I have an error message:
    Exception in thread "main" java.lang.NoClassDefFoundError: Ch07.SampleExternalMethods (wrong name: SampleExternalMethods)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.DefineClass(ClassLoader.java:539)
    The problem, I suppose, comes from that the class SampleExternalMethods
    must be included in the database CLASSPATH, but there is a pbserver.jar with pointbase normally, but I didn't find it. That's why I use pbembedded.jar or pbclient.jar in order to include the class SampleExternalMethods. May be I must start from C:\Sun\AppServer\pointbase\lib\ instead of D:\J2EE\Ch07Code\Ch07_06\Ch07?
    Please, can somebody helps me?
    Thank you in advance.
    cagou!

    jschell wrote:
    And I doubt you can recurse like that for embedded java. You must have a class that does the functionality and another class that creates the proc.
    >And I doubt you can recurse like that for embedded java. You must have a class that does the functionality and another class that creates the proc.
    >
    And I doubt you can recurse like that for embedded java. You must have a class that does the functionality and another class that creates the proc.
    Thank you for your response, I have done two classes:
    SampleExternalMethods.java:
    package Ch07;
    import java.sql.*;*
    *public class SampleExternalMethods*
    *public static void getCountry(String Iso_Code)*
    *// A connection object to allow database callback*
    *Connection l_conn = null;*
    *Statement l_stmt = null;*
    *ResultSet l_rs = null;*
    *try*
    *String url = "jdbc:pointbase:server://localhost/pointbaseDB";*
    *String username = "PBPUBLIC";*
    *String password = "PBPUBLIC";*
    *l_conn = DriverManager.getConnection(url, username, password);*
    *// Query the database for the country iso code*
    *l_stmt = l_conn.createStatement();*
    *l_rs = l_stmt.executeQuery( "SELECT* FROM PBPUBLIC.COUNTRIES"
    +" WHERE country_iso_code ='"+ Iso_Code +"'");+
    +//Affichage du r&eacute;sultat de la requ&ecirc;te+
    +l_rs.next();+
    +System.out.print(l_rs.getString(1)+ " - ");
    System.out.print(l_rs.getString(2) +" - ");+
    +System.out.println(l_rs.getString(3));+
    +// Close the result set+
    +l_rs.close();+
    +} catch (SQLException e) {+
    +e.printStackTrace();+
    +} finally {+
    +if (l_rs != null) {+
    +try {+
    +l_rs.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +if (l_stmt != null) {+
    +try {+
    +l_stmt.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +if (l_conn != null) {+
    +try {+
    +l_conn.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +}+
    +}+
    +}+
    CreateMethods.java:
    +package Ch07;+
    +import java.sql.*;+
    +public class CreateMethods+
    +{+
    +// A connection object to allow database callback+
    +static Connection m_conn = null;+
    +static Statement m_stmt;+
    +static CallableStatement m_callStmt = null;+
    +public static void main(String[] args)+
    +{+
    +try+
    +{+
    +String url = "jdbc:pointbase:server://localhost/pointbaseDB";+
    +String username = "PBPUBLIC";+
    +String password = "PBPUBLIC";+
    +m_conn = DriverManager.getConnection(url, username, password);+
    +doCreateProcedure();+
    +doInvokeProcedure();+
    +} catch (SQLException e) {+
    +e.printStackTrace();+
    +} finally {+
    +if (m_stmt != null) {+
    +try {+
    +m_stmt.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +if (m_callStmt != null) {+
    +try {+
    +m_callStmt.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +if (m_conn != null) {+
    +try {+
    +m_conn.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +}+
    +}+
    +public static void doCreateProcedure() throws SQLException {+
    +// SQL statement to create a stored procedure+
    +String SQL_CREATE_PROC = "CREATE PROCEDURE PBPUBLIC.getCountry(IN P1 VARCHAR(30))"+
    " LANGUAGE JAVA"
    +" SPECIFIC getCountry"+
    " NO SQL"
    +" EXTERNAL NAME \"SampleExternalMethods::getCountry\""+
    " PARAMETER STYLE SQL";
    // Create a SQL statement
    m_stmt = m_conn.createStatement();
    // Execute the SQL
    m_stmt.executeUpdate(SQL_CREATE_PROC);
    // Close the statement
    //m_stmt.close();
    public static void doInvokeProcedure() throws SQLException {
    // Create SQL to invoke stored procedures
    String SQL_USE_PROC = "{ call getCountry(?) }";
    // Create a callable statement with three binding parameters
    m_callStmt = m_conn.prepareCall(SQL_USE_PROC);
    m_callStmt.setString(2, "CA");
    m_callStmt.executeQuery();
    // Close the callable statement
    //m_callStmt.close();
    }But I have the same error message that previously.
    I have read this note and I suppose that the problem is linked:
    If PointBase Server is run with the Java Security Manager, in the java policy file grant
    *’com.pointbase.sp.spPermission’ to the class that implements the external Java method.*
    An "spPermission" consists of a class name with no action. The class name is a name of a class
    that could be used in creating a Stored Procedure in PointBase. The naming convention follows
    the hierarchical property naming convention and that is supported by
    *"java.security.BasicPermission". An asterisk may appear by itself, or if immediately preceded*
    by ".", may appear at the end of the name, to signify a wildcard match. The name cannot
    contain any white spaces.
    Can you explain me what I must to do in order to solve this problem of spPermission.
    Thanks.

  • Problem with lovs in viewobject instances

    Hi,
    Working with Jdev11.1.1.16 ,
    Referring to  forum : Problem with Two VO's from same EO with different where clause
    I was also facing the same issue with static where condition ,using this recommended approach the issue is solved .
    The recommended approach is working fine for fetching data .
    I have create one viewObject with two viewcriteria and created two instances of viewobject in datamodel . In datamodel i have added viewcriteria too.
    But in my case, i need to populate different lovs on same attributes on both the tables (instances of same view object).
    I have added two lovs to the attribute and switch condition based on other attribute.
    While fetching, the data is coming correct and lovs are also correct but while clicking on createinsert lovs are not cuming properly .

    Hi,
    I would suggest that you post relevant pieces of code here - so that it is easier to help you.
    Just a thought:
    Please note that the event handlers may be called again while you are processing another event (there are at least some cases when this is happeneing) - this might lead to "confusing" forms.
    Regards,
    Frank

  • In a new Application, the ApplicationResources_en.properties file is not having the constraint messages created

    Hi Everyone:
              We are using JDev 11.1.2 and JHeadstart 11.1.2.  We have been having a multitude of problems when running applications through the migrator (and we have now been told by an Oracle consultant that the migrator is problematic), so we are trying to re-write things from scratch to bring them over from 11.1.1.4 to 11.1.2.
              I have been working on a simple application from scratch and discovered that the messages for constraints on the entities that I am using are not showing up in the ApplicationResources_en.properties.file.  We noticed a similar thing with converting an application using the migrator and that post is found here - java.lang.NullPointerException ADF_FACES-60097 message ***WITH SOLUTION*** -. 
              However, I didn't get a single reply to that thread. 
              I initially thought it was a migration issue, but this application is from scratch.  Whenever I tried to input an invalid value into a page column, the following exception would be received.
    "java.lang.NullPointerException  ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #"
               This Null Pointer turned out to be the missing message from the ApplicationResources_en.properties file.  In the new application I just wrote, I had to manually edit to add the following lines to the ApplicationResources_en.properties file and the application no longer gives me the error if I input an invalid value.
    VALIDATE_FEE_CATEGORY_3=Feecategory with this FeeCategory does not exist
    VALIDATE_ACADEMIC_TERM36=Academicterm with this EffectiveTermStart does not exist
    VALIDATE_ACADEMIC_TERM36_CASDEL=Cannot delete Academicterm while dependent Specialexchange exists
    VALIDATE_ACADEMIC_TERM37=Academicterm with this EffectiveTermEnd does not exist
    VALIDATE_ACADEMIC_TERM37_CASDEL=Cannot delete Academicterm while dependent Specialexchange exists
    VALIDATE_CURRENCY23=Currency with this Currency does not exist
    VALIDATE_CURRENCY23_CASDEL=Cannot delete Currency while dependent Specialexchange exists
    VALIDATE_FEE_CATEGORY_3=Feecategory with this FeeCategory does not exist
    VALIDATE_FEE_CATEGORY_3_CASDEL=Cannot delete Feecategory while dependent Specialexchange exists
    These constraints are found in the Entities .xml files  as shown below.  We are using a re-usable business components .jar file to import them in.
      <Key
        Name="UniqueFeeCategory"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DBObjectName" Value="UNIQUE_FEE_CATEGORY"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.FeeCategory"/>
          <Item Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.Currency"/>
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.EffectiveTermEnd"/>
        </AttrArray>
      </Key>
      <Key
        Name="ValidateAcademicTerm36">
        <DesignTime>
          <Attr Name="_referencedKey" Value="UNIQUE_ACADTERM_CODE"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="VALIDATE_ACADEMIC_TERM36"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.EffectiveTermStart"/>
        </AttrArray>
      </Key>
      <Key
        Name="ValidateAcademicTerm37">
        <DesignTime>
          <Attr Name="_referencedKey" Value="UNIQUE_ACADTERM_CODE"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="VALIDATE_ACADEMIC_TERM37"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.EffectiveTermEnd"/>
        </AttrArray>
      </Key>
      <Key
        Name="ValidateCurrency23">
        <DesignTime>
          <Attr Name="_referencedKey" Value="UNIQUE_CURRENCY_CODE"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="VALIDATE_CURRENCY23"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.Currency"/>
        </AttrArray>
      </Key>
      <Key
        Name="ValidateFeeCategory3">
        <DesignTime>
          <Attr Name="_referencedKey" Value="UNIQUE_FEECAT_CODE"/>
          <Attr Name="_isForeign" Value="true"/>
          <Attr Name="_DBObjectName" Value="VALIDATE_FEE_CATEGORY_3"/>
        </DesignTime>
        <AttrArray Name="Attributes">
          <Item
            Value="its.sis.uwbm.AREdit.entityobjects.Specialexchange.FeeCategory"/>
        </AttrArray>
        Is this a known bug (I have searched and havent found it) and is there anything that I can do about it without having to manually add the messages?
    Mary
    UofW

    Hi Everyone:
               I have done some further testing.  We are using a re-usable Business Components .jar file to access our entities.  We import the .jar file into the project and create the ViewObjects and ViewLinks from that .jar file.
                It APPEARS that a test case using the HRSchema and using the Entities & Associates generates the constraint error messages, but when I use the .jar file of re-usable business components imported into the project, those constraint error messages are not created in the ApplicationResources_en.properties file.  I have created two testcases as well as the re-usable .jar file that I can send to you to show what I mean. 
                This behaviour seems to have shown up in 11.1.2 as there was no problem before this.
                 Please let me know where you'd like me to upload the testcases.
                 Thank you.
    Mary
    UofW

  • Can't create an ExecuteWithParams activity in a bounded task flow

    I'm trying to replicate the application in the demo, Passing Parameters to a TaskFlow on the URL - http://www.youtube.com/watch?v=3cklxe1qq5I
    I created a ViewObject named PagerByLastName which has an iterator with the generated name, PagerByLastName1Iterator
    (in Data Controls, a node is created for PagerByLastName , named PagerByLastName1
    PagerByLastName1 has query with a parameter and binding variable for the parameter.
    Next, I created a bound task flow and tried to drop an ExecuteWithParams from within PagerByLastName1 onto the bounded task flow.
    However, in the Edit Action Binding dialog that opens, the Data Collection section is read-only and I'm unable to select a data collection to create
    the ExecuteWithParams activity.
    A warning message appears as I try to drop ExecuteWithParams -
    "WARNING: IteratorNameNotFound--AppModuleDataControl1.PagerByLastName1"
    However, the iterator name should be PagerByLastName1Iterator
    Known issue? Is there any workaround?
    Product Versions:
    Oracle JDeveloper 11g Release 1 11.1.1.4.0
    Studio Edition Version 11.1.1.4.0
    Build JDEVADF_11.1.1.4.0_GENERIC_101227.1736.5923
    Copyright 1997, 2011 Oracle and/or its affiliates. All rights reserved.
    IDE Version: 11.1.1.4.37.59.23
    Product ID: oracle.jdeveloper
    Product Version: 11.1.1.4.37.59.23
    Thanks,
    John

    Shay Shmeltzer wrote:
    What do you mean when you say:
    created a ViewObject named PagerByLastName which has an iteratorA view object should have a query in it with a bind parameter.Correction, I saw in the Data Bindings source an iterator is generated for the ViewObject .
    The ViewObject does have both a query and bind variable defined for the parameter in the query.
    The query is
    select BEEPER, FIRST_NAME, MIDDLE_NAME, LAST_NAME, OUN from PERSON_ALL_V4 where ( ( ( UPPER(LAST_NAME) LIKE UPPER('%' || :lastname) ) OR ( :lastname IS NULL ) ) ) and cyber_status='Active'
    lastname is the bind variable
    I DnD the ExecuteWithParams node to the task flow and the Edit Action Bindings dialog opens, but I cannot select a data collection, the collections are collapsed
    and can't be expanded.
    Edited by: JWB on May 23, 2011 4:55 PM

  • One Big ViewObject vs ViewObject with links to other ViewObjects

    Hi guys,
    I am trying to figure out the best practice to implement the following requirement;
    I have 4 different entity objects (let's say A-EO, B-EO, C-EO, D-EO). All of them are related by the same person_id, and the relationship is One to One.
    I need to implement the functionality of my requirement using 1 screen. Also, A-EO WILL ALWAYS exits for a person_id while the others might not exists.
    I have to options here
    1).- Create a ViewObject for each Entity Object and then create three links from A-VO to B-VO, C-VO, D-VO on person_id;
    A-VO
    |-- B-VO
    |-- C-VO
    |-- D-VO
    2).- Since the cardinality from A-EO to the others will always be 1 .. 0,1 could create a ViewObject For A-EO and creating associations to the others EO by using outer joins. The problem is that I don't know how the framework would behave when I need to update, create (for the EO that don't exist).
    Do I make sense? What would you recommend? Thanks in advance;
    P.S JDeveloper 11.1.1.6

    For your use case I would use the Master with ViewLinks approach as it better matches your data model. You can use one VO build from all EO but then you either have empty rows (in cases where you don't have entered any data for one of the EOs or you have to handle this yourself with some logic in the master EO (where you deside which other EOs are needed to insert or to update).
    This seems to be much overhead, so I would stick to the Master EO with 0..1 EOs attachted via ViewLinks.
    Timo

  • Creating a HGrid in OAF, please help!

    Hi all,
    I am trying to create a HGrid to display all the employee names under the root, and the child node under each employee will show his/her manager's name.
    This is how i created:
    1. Create a ViewObject (EmpFullVO): Select person_id,full_name from per_all_people_f;
    2. Create a ViewLink (EmpFullVL) with following properties:
    2.1 Source VO: EmpFullVO, Destination VO: EmpFullVO
    2.2 Source Attribute: Person_id, Destination Attribute: Person_id
    2.3 Query: person_id in (select person_id from per_all_assignments_f where supervisor_id = :1)
    2.4 I have generate accessors at both source and destination
    3. Create a HGrid region(EmpHGridRN) under my pageLayoutRN
    4. Create a tree region under my EmpHGridRN
    5. Under the tree region i have nodeDef1(view instance-EmpFullVO1,view attr-full_name) and Childnode1
    6. Under childnode1, i created nodeDef2(view instance-EmpFullVO1,view attr-full_name) and Childnode2(Ancestor node-/oracle/apps/ak/sample/hgrid/webui/sampleHGridPG.childNode1)
    The final result is not as expected, I just see a Hgrid region with a list of employees and nothing else. i dont know whether i am missing any steps. This is my first Hgrid Excercise, I am unable to find any tutorials/references. Please help.
    I appreciate, if you could provide me a solution or provide me a tutorial / reference that can help me out... (I tried OAF Developer Guide which is not elaborate enough for HGrids)
    thanks in advance,
    Hem

    Refer Dev guide -> Chapter 4 -> Hgrid
    --Prasanna                                                                                                                                                                                                               

Maybe you are looking for

  • Apps Tabs get don't reload after closing the firefox

    I just today tried to use apps tab. I set some links as apps tab and then closed the firefox. When i stared it again the apps tab were not there anymore. However according to this release the apps tab should be retained even after closing the firefox

  • Menus not shown correctly.

    Hi!!, I�m developing an application but I�m having troubles making swing menus to be appeared. I got a JFrame and inside of this I got a Virtual Universe filling all panel. A JFrame MenuBar is attached to the JFrame, and when click on it menus are sh

  • Trouble exporting for surround sound

    I have the 6 files in my timeline as provided by the audio facility. I export each file seperatley then assign the proper speakers in Compressor. After this it still doesnt sound right. I've been reading on the fourm and the manual but I'm still uncl

  • Office 365 error 259-4 when installing newer Project on top of older ProPlus

    Hello, I am encountering a problem in the following circumstances: - I install Office 365 ProPlus using version 15.0.4649.1003 - Then I try to install Project from Office 365, but using the newer version 15.0.4659.1001 The setup fails with error 259-

  • EVDRE Excel Error 2147417848

    Hi, when we try to change any EVDRE workbook in Excel we receive the following error. #ERR:-2147417848-Method '' of Object ''  failed We have an BPC 7.5 on Netweaver with a current patch in BW and Frontendversion with patch 4. It seems like a VBA Err