DCDataControl is null

Hi all,
I am using programmatic View Object data population.
my taskflow has one method activity and one page activity.
i want to get VO from AM inside method activity then show on page.
but i found that DCDataControl is null.
BindingContext bctx = BindingContext.getCurrent();
DCDataControl dc =
bctx.findDataControl("AppModuleDataControl");
i can only get VO only after Page activity is loaded on screen.
With Regards,
WP

Hi,
I think the whole thread could have been shortened if in the beginning you dragged and dropped Execute from the DataControl panel as a method activity. The whole talk about "I want it to be generic and parametrized" only makes sense if you build task flows from a template which - as you said you have thousands of task flows - seems to be too late already.
I want to create one AM method which will return VO when taskflow give VO name as parameter ... get VO and populate it then show the page
Don't understand what it takes for you to populate a task flow. If you work with programmatic view objects then you override the framework classes to handle data retrieval, so I don't understand what you mean by populating the task flow. I think if I were you I would give up for a second on the universally reusable implementation and just get one POC working to learn about my options. When you started the thread you obviously did not know that method activities need to have their own PageDef for them to be able to access the data control (which already has changed by trying)
Frank

Similar Messages

  • JBO-26061: Error while opening JDBC connection, null password given; logon

    Dear all,
    i have this problem and am trying to solve it since 4 days and still the same
    the problem is when i create a new project every thing works fine but what happen is when i change the connection or create new Connection in the bc4j, this what shows up i tryed every thing but still in the same problem, please help me..!!!!
    INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
    Oct 18, 2008 1:13:02 PM oracle.adf.share.security.providers.jps.CSFCredentialStore fetchCredential
    WARNING: Unable to locate the credential for key asit in C:\Jdev_Oracle\Middleware\jdeveloper\system\system11.1.1.0.31.51.56\DefaultDomain\config\oracle.
    Oct 18, 2008 1:13:02 PM oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResultException
    WARNING: Incomplete connection information
    <Oct 18, 2008 1:13:06 PM EEST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@1ce79b8 - appName: 'AsitsoftWS', name: 'null', context-path: '', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@71a9f3[
    GET /faces/Master/Login.jspx?_adf.ctrl-state=1701566794_3 HTTP/1.1
    Accept: */*
    Accept-Language: en-US
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Connection: Keep-Alive
    Cookie: JSESSIONID=HD7sL52KnvWCpprlZCTLt0BGdbFJV414gyc21Bns5sQyscyJy2CP!-1257647048
    [b]]] Root cause of ServletException.
    javax.el.ELException: oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:73)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
         at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
         Truncated. see log file for complete stacktrace
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:253)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:168)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:546)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:327)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:104)
         Truncated. see log file for complete stacktrace
    java.sql.SQLException: ORA-01005: null password given; logon denied
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)
         Truncated. see log file for complete stacktrace
    >

    I've been having a similar sort of problem. There is no problem with the connection to the database when in Jdeveloper - I can see all the Entity and View Objects etc. The problem arises when the application is launched. I have not made any changes to the database connection but the following error still occurs:
    WARNING: ADFc: Error while opening JDBC connection.
    oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:253)
         at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:168)
         at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:546)
         at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:327)
         at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:104)
         at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:70)
         at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:56)
         at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:1004)
         at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1260)
         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.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:233)
         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:828)
         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.binding.DCBindingContainer.getDataControl(DCBindingContainer.java:4334)
         at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2391)
         at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2333)
         at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4173)
         at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:327)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1589)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1695)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isUpdateable(JUCtrlValueBinding.java:2512)
         at oracle.adfinternal.view.faces.model.AdfELResolver._isReadOnly(AdfELResolver.java:85)
         at oracle.adfinternal.view.faces.model.AdfELResolver.isReadOnly(AdfELResolver.java:101)
         at javax.el.CompositeELResolver.isReadOnly(CompositeELResolver.java:353)
         at com.sun.faces.el.FacesCompositeELResolver.isReadOnly(FacesCompositeELResolver.java:113)
         at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:128)
         at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:230)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:400)
         at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.renderAsElement(FormElementRenderer.java:199)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.getEncodeClientMetadata(LabeledInputRenderer.java:106)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:928)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:304)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:920)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.access$100(PanelFormLayoutRenderer.java:37)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1415)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer$FormColumnEncoder.processComponent(PanelFormLayoutRenderer.java:1334)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:111)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:153)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:340)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:178)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1050)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:304)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer._encodeChild(PanelGroupLayoutRenderer.java:372)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.access$300(PanelGroupLayoutRenderer.java:30)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:621)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer$EncoderCallback.processComponent(PanelGroupLayoutRenderer.java:540)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:111)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:187)
         at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:153)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelGroupLayoutRenderer.encodeAll(PanelGroupLayoutRenderer.java:292)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1050)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
         at org.apache.myfaces.trinidad.render.RenderUtils.encodeRecursive(RenderUtils.java:70)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:299)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:255)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:505)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:198)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1050)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:304)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeCenterFacet(PanelStretchLayoutRenderer.java:255)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer._encodeCenterPane(PanelStretchLayoutRenderer.java:505)
         at oracle.adfinternal.view.faces.renderkit.rich.PanelStretchLayoutRenderer.encodeAll(PanelStretchLayoutRenderer.java:198)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1050)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:304)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:321)
         at oracle.adfinternal.view.faces.renderkit.rich.PageTemplateRenderer.encodeAll(PageTemplateRenderer.java:53)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1050)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.encodeEnd(ContextSwitchingComponent.java:133)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:304)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:321)
         at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:164)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1050)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:304)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:321)
         at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:707)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1050)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:224)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:763)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1351)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:783)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:273)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:204)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:188)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:652)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:243)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.sql.SQLException: ORA-01005: null password given; logon denied
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:406)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
         at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:794)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:391)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:490)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:202)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:474)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:154)
         at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:222)
         ... 154 more
    ## Detail 0 ##
    java.sql.SQLException: ORA-01005: null password given; logon denied
    Any suggestions would be greatly appreciated

  • ViewObject is null ?

    I’m developing a jsp application with bc4j using jdev 10g. I have a problem with viewobjects in the application module suddenly becoming null. It doesn't happen every time and it seems to depend on the computer environment as well. It works fine in the development environment, but when I transfer the application to my clients environment I am getting the error. The error happens in dataAction class. I have tried to place the code in findForward method and prepareModel method but the result is the same. Debugging the application I found that mViewObjects and mViewLinks in the application module become null at some point. The action gets executed a couple times and it works fine and then it breaks down.
    I can't see what is causing the problem. Below is the code of the dataAction. 'bindContainer' and 'module' in the prepareModel method are not null, but 'view' becomes null. It is also interesting that the data on the page (from the same view) is displayed correctly.
    public class FindSredstvaViewPageAction extends DataAction
    String page;
    protected void findForward(DataActionContext actionContext) throws Exception
    //Postavi page attribute tako da se otvori stranica na kojoj je current row, SredstvaView
    actionContext.getHttpServletRequest().setAttribute(MyGlobals.PAGE, page);
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    super.findForward(actionContext);
    private String getPage(int index)
    int rows_per_page = MyGlobals.ROWS_PER_PAGE;
    int page = 0;
    while(true)
    if(index < 0) break;
    if(index == 0) // prvi red na strani
    page ++;
    break;
    index = index - rows_per_page;
    page ++;
    return String.valueOf(page);
    protected void prepareModel(DataActionContext actionContext) throws Exception
    DCBindingContainer bindContainer = actionContext.getBindingContainer();
    StalnaSredstvaModuleImpl module = ((StalnaSredstvaModuleImpl)actionContext.getBindingContainer().getApplicationModule());
    SredstvaViewImpl view = module.getSredstvaView();
    page = getPage(view.getCurrentRowIndex());
    // TODO: Override this oracle.adf.controller.struts.actions.DataAction method
    super.prepareModel(actionContext);

    Hi,
    Please use DCDataControl.getDataProvider() to acquire an AM reference. Because your logic is implemented before prepareModel DCBindingContainer may reference an uninitialized AM reference from a previous request (I filed bug 3829746 to resolve this issue).
    Also, it is not recommended that you downcast to an AM "Impl" class in client side code. This will prevent your code from being redeployed in different configurations (immediate vs. batch). Instead of downcasting to the "Impl" class you may export the VO getter to a remote AM interface using the AM wizard and then downcast to the AM interface or use findViewObject(String) on the base ApplicationModule interface.
    Hope this helps,
    JR

  • Null And " "

    What is the difference between these two lines of codes?
    String currentFile = null;
    String currentFile = "";
    Edited by: AMARSHI on Jul 10, 2008 7:07 AM

    The reference variable itself, takes up the same amount of space, of course, as all references are the same size. Now, the object on the heap is a different story. With null there isn't one, of course (or if there is there is only one for the entire VM), and for the second a String object will be created in the String pool (once again, only one for the entire VM that every = "" assignment will use). But really, what difference does it make? If there is a difference, it is on the order of a few bytes (at max) for the entire VM, and if this is a concern, your probably doing something else greviously wrong. This miniscule difference should not concern you.
    Edit: And "nulling" variables to "save" memory is also not something you should be concerned with. Either the variable will go out of scope and the object garbage collected anyway, or it's in constant use and so will not be taking up any extraneous heap space. If one of those is not the case, you are, once again, doing something greviously wrong.

  • AND/OR + some nulls in filter

    I'm running into another problem with the AND/OR filter.
    The filter for selecting from object "a" and joining to objects b, c & d
    is:
    (b.theid==2 || c.theid==2 || d.theid==3) && active=="Y"
    The SQL that gets generated is:
    SELECT <...>
    FROM b t1, d t3, a t0, c t2
    WHERE ((((t1.theid = 2 AND t0.bid = t1.id) OR (t2.theid = 2 AND t0.cid
    = t2.id)) OR (t3.theid = 3 AND t0.did = t3.id)) AND t0.active = 'Y')
    This returns a number of instances of the same a object when some of the
    OR clauses do not match. For example, if there's no record
    with d.theid=3, then it will do a full join on table d.
    Do I need to specify something else to flag these as potentially null
    fields so that the filter parser adds that check in? The following SQL
    query works
    ok if I add some checks for NULL on those join fields:
    SELECT <...>
    FROM b t1, d t3, a t0, c t2
    WHERE ((((t1.theid = 2 AND t0.bid = t1.id OR t0.bid IS NULL) OR
    (t2.theid = 2 AND t0.cid = t2.id OR t0.cid IS NULL)) OR (t3.theid = 3
    AND t0.did = t3.id OR t0.did IS NULL)) AND t0.active = 'Y')
    Thanks,
    -Mike
    Mike Bridge

    Hi D,
    Thank you for your answer.
    I have seriously thought about that solution; but I don't think it's a smart way to do it.
    If i do it like that, i need to copy the whole table and paste it inside the if statements.
    I have two xml elements that I need to make the decisions on. POH_PO_TYPE & CP_RELEASE_NUM.
    POH_PO_TYPE can be: STANDARD, RELEASE or BLANKET.
    CP_RELEASE_NUM can be: '' or N
    If POH_PO_TYPE is RELEASE AND CP_RELEASE_NUM is not ''
    OR POH_PO_TYPE is STANDARD
    OR POH_PO_TYPE is BLANKET AND CP_RELEASE_NUM is ''
    THEN show table (which contains the whole PO).
    It shall show the content of the PO in any of these cases.
    BR Kenneth

  • Unit Testing, Null, and Warnings

    I have a Unit Test that includes the following lines:
    Dim nullarray As Integer()()
    Assert.AreEqual(nullarray.ToString(False), "Nothing")
    The variable "nullarray" will obviously be null when ToString is called (ToString is an extension method, which is the one I am testing). This is by design, because the purpose of this specific unit test is to make sure that my ToString extension
    method handles null values the way I expect. The test runs fine, but Visual Studio 2013 gives includes the following warning:
    Variable 'nullarray' is used before it has been assigned a value. A null reference exception could result at runtime.
    This warning is to be expected, and I don't want to stop Visual Studio 2013 from showing this warning or any other warnings, just this specific case (and several others that involve similar scenarios). Is there any way to mark a line or segment
    of code so that it is not checked for warnings? Otherwise, I will end up with lots of warnings for things that I am perfectly aware of and don't plan on changing.
    Nathan Sokalski [email protected] http://www.nathansokalski.com/

    Hi Nathan Sokalski,
    Variable 'nullarray' is used before it has been assigned a value. A null reference exception could result at runtime.
    Whether the warning above was thrown when you built the test project but the test run successfully? I assume Yes.
    Is there any way to mark a line or segment of code so that it is not checked for warnings?
    There is no built-in way to make some code snippet or a code line not be checked during compiling, but we can configure some specific warnings not to be warned during compiling in Visual Basic through project Properties->Compile
    tab->warning configurations box.
    For detailed information, please see: Configuring Warnings in Visual Basic
    Another way is to correct your code logic and make sure the code will not generate warning at runtime.
    If I misunderstood you, please tell us what code you want it not to be checked for warnings with a sample so that we can further look at your issue.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Enlarging Null and Cam

    Hey guys, just experimenting and remembering how to work with nulls to control cams.
    I noticed when I enlarge the null in one dimension, the camera's view also seems to widen.  What's happening here?  What is that and what am I doing that is causing the camera to "see" differently? I thought the whole point of a null was that it didn't have a physical dimension and was really only about orientation and position?

    Woahhh hold your horses! 
    I'm trying to understand the program, not trying to criticize it.  I love Adobe and AE.  Did it sound like I was trying to pick it apart?
    What I'm trying to understand is why when I resize it horizontally, it changes the camera view...and therefore understand how it's changing the camera view.  This is an important concept for me to get about this.  It's not something I have been able to find in literature or other boards.  That's all I'm trying to ask.  I'm not trying to argue with it or point out a flaw or something like that, I just don't understand what's going on.  Is the camera changing and how when I enlarge the null?

  • Using NULL and NOT NULL in prompted filters

    Dear all,
    While trying to grap the concept of prompted filters in sap bo web intelligence, I had a question whether why we cannot use NULL and NOT NULL while creating a prompted filters in our report.

    HI,
    'Is Null' and 'Not Null' are the predefined functions in webi which only eliminate the null values or considering only null values.
    'Is Null' and 'Not Null' are itself predefined functions that why you are not getting  prompts.
    Null values are standard across the databases so this is defined  as a function in webi to specific eliminate the null values.
    If something is not standard then there is option in the webi to use different operator with static values or with prompts.
    More more information on Null see the Null wiki page.
    Null (SQL) - Wikipedia, the free encyclopedia
    Amit

  • Not null and enable or disable  column in tabular form

    Hi,
    Using apex version 4.1 and working on tabular form.
    ACT_COA_SEGMENT_MAS is Master table
    and
    ACT_SEGMENT_VALUES_MAS is detail table
    I have entered 8 rows in master table and PARENT_SEGMENT_ID is column in master table which is null able. If i specified PARENT_SEGMENT_ID with value in master table then in detail table there is column PARENT_ID that should not be null and enable.
    How i can enable or disable column when in master table PARENT_SEGMENT_ID column is null then in detail table PARENT_ID column should disable and vice versa.
    I have created tabular form on Detail table. before insert into the tabular form Check in master table in first entry if PARENT_SEGMENT_ID is not null in first row of master table then in tabular form PARENT_ID should enable and not null able in corresponding to this first row id's lines in tabular form.
    Same should check for second row in master table if PARENT_SEGMENT_ID is not null then entered rows with PARENT_ID into tabular form corresponding to 2nd id in master table should not nullable and column should enable in tabular form.
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 9, 2013 9:12 PM

    Vedant,
    You need to create you own manual tabular form and not use the wizard.
    Using APEX_ITEM api you should be build you own form and you will be able to control how you wan to display the rows. (See Link [Apex Item Help|http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CACEEEJE] )
    select case when PRIMARY_TABLE_COLUMN is null then APEX_ITEM.DISPLAY_AND_SAVE(3 , DETAIL_COLUMN ) else APEX_ITEM.TEXT(2,detail_column) end "ALIAS" from detail table
    Hope that help.
    Vivek

  • Checking null and not null values

    Hi!
    We have a job schedule table that has a column for each day.
    JOB_ID, TIME_ID, MO, TU, WE, TH, FR, SA, SU
    1                 1        X
    1                 2                        XSince the same job can be on different days and times, we need to check all the instances of
    that job.
    Sorry for the formatting - the X is an indicator; i.e. Wednesday and Saturday.
    How can we solve this?
    Thanks!

    Your requirements are not really clear.
    Perhaps this query could help:
    -- Your Data:
    with yourtable as
      select 1 job_id, 1 time_id, null mo, null tu, 'X' we, null th, null fr, null sa, null su from dual union all
      select 1 job_id, 2 time_id, null mo, null tu, null  we, null th, null fr, null sa, 'X' su from dual
    -- Query:
    select job_id, time_id, 'mo' day from yourtable where to_char(mo)='X' union all
    select job_id, time_id, 'tu' day from yourtable where to_char(tu)='X' union all
    select job_id, time_id, 'we' day from yourtable where to_char(we)='X' union all
    select job_id, time_id, 'th' day from yourtable where to_char(th)='X' union all
    select job_id, time_id, 'fr' day from yourtable where to_char(fr)='X' union all
    select job_id, time_id, 'sa' day from yourtable where to_char(sa)='X' union all
    select job_id, time_id, 'su' day from yourtable where to_char(su)='X'Edited by: hm on 29.07.2011 01:40
    Edited by: hm on 29.07.2011 01:41

  • Getting null and 0 outputting to screen or file.

    Hi everyone,
    I am trying to make a phone book program in Java. However the main functions of the phone book (adding and displaying contacts) isn't really working, it is outputting null or 0.
    Here is a class to create an object for family members:
    import java.util.StringTokenizer;
    public class phoneFamily extends phoneNumbers
         protected int home;
         public phoneFamily(String name, String address, int mobile, int business, int home)
              super(name, address, mobile, business);
              this.home = home;
         public phoneFamily(StringTokenizer P)
              super(P);
              while (P.hasMoreTokens()){home = Integer.parseInt(P.nextToken());}
         public void setHome(int home)
              this.home = home;
         public int getHome()
              return home;
         public String toString()
              return "Name: " + name + "\nAddress: " + address + "\nMobile: " + mobile +
                   "\nBusiness: " + business + "\nHome: " + home;
         public String CSV()
              return name + "," + address + "," + mobile + "," + business + "," + home;
    }Now I'm assuming that the problem I am having, where null or 0 is written to the file and screen is caused by the methods that reads a contact, writes them to the file, prints them to the screen. Here are those bits of codes.
    Reads Contact:
    private phoneNumbers ReadContact()
              int x = 0;
              String contact;
              StringTokenizer S;
              while (x < 1 || x > 3)
                   System.out.print("Which type of contact would you like?");
                   System.out.print("\n1)Family\n2)Workers\n3)Friends");
                   x = keyboard.nextInt();
              contact = ReadString("contact name") + "," +
                         ReadString("address") + "," +
                         ReadString("mobile") + "," +
                         ReadString("business") + ",";
              if (x==1)
                   contact+=ReadString("home");
              else if (x==2)
                   contact+=ReadString("email") + "," + ReadString("job title") + "," + ReadString("department");
              else
                   contact+=ReadString("email") + "," + ReadString("home");
              S = new StringTokenizer(contact,",");
              if (x==1)
                   return new phoneFamily(S);
              else if (x==2)
                   return new phoneWorkers(S);
              else
                   return new phoneFriends(S);
    Writes to File
    public void Save() throws IOException
              PrintWriter phoneFile = new PrintWriter(new FileOutputStream(PH_FILE));
              for (int i=0;i<NumOfContacts;i++)
                   String phoneX = phone.CSV();
                   phoneFile.println(phoneX);
              phoneFile.close();
              System.out.println("Contacts have been saved successfully.");
    Prints on Screen
    public void PrintFamily()
              System.out.println("Contacts Stored as FAMILY:");
              System.out.println("");
              //#=7, Name=24, Address=28, Email=24, Mobile=12, Business=12,
              System.out.println(SpaceGen("#",7) + SpaceGen("Name",24) + SpaceGen("Address",28) +
                   SpaceGen("Mobile",12) + SpaceGen("Business",12) + SpaceGen("Home",12));
              //System.out.println(RepChar('=',100));
              for (int i=0;i<NumOfContacts;i++)
                   if (phone[i] instanceof phoneFamily)
                        System.out.print(SpaceGen((new Integer(i+1)).toString(),7));
                        System.out.print(SpaceGen(phone.getName(),24));
                        System.out.print(SpaceGen(phone[i].getAddress(),28));
                        System.out.print(SpaceGen(new Integer(((phoneFamily)phone[i]).getMobile()).toString(),12));
                        System.out.print(SpaceGen(new Integer(((phoneFamily)phone[i]).getBusiness()).toString(),12));
                        System.out.print(SpaceGen(new Integer(((phoneFamily)phone[i]).getHome()).toString(),12));
              //System.out.println(RepChar('=',100));
    For some reason the last thing you enter when adding a contact (example above, home number), gets displayed first (when it should be name) and the rest are null or 0. The file looks something like this (in CSV)
    111222333,null,0,0,0
    The "111222333" is supposed to be the name but like I said last value entered is being put first.
    I've gone over my code several times, with no luck :-(.

    I made a silly mistake in the bit where the details are read. After fixing that everything is running well :-).
    My mistake:
    I had something like:
    while(P.hasMoreTokens()){this.data = P.nextToken();}
    while(P.hasMoreTokens()){this.data2 = P.nextToken();}
    and so on...Obviously had to use "if"s and not "while"s to read the data...
    Thanks for offering a helping hand :-) though!

  • Connection ==null and Connection is closed, difference

    Hi experts,
    I wonder what are the differences between "Connection==null" and "Connection is closed"?
    I closed a connection on one JSP page after a bean has retrieved data. Then, on the same page I call another bean to connect to the database. Because the Connection object has been created earlier, therefore Connection is not NULL, but it is closed. So, the second bean has to initiate another connection(if I knew how to test the "closed" status)
    Is it true that if the Connection is closed, then it should become null?
    I think I must have make quite a few mistakes in above statement:). Please help. Thanks a lot.

    connection.isClosed() will tell you if the connection object is closed or not. If it is closed, then the connection object can be dropped because you will not be able to create any new statements from that connection object. Just recreate another connection to use when this occurs.

  • GetParameter()==NULL and memory

    Hi everybody !
    I'm creating a web site where users will be able to plot data from a database.
    So, I've an HTML code which call a PHP one which himself get data from database and create an JAVA applet on the following model :
    echo "<APPLET\n";
    echo "<PARAM NAME=\"valeur\" VALUE=\"".$string."\">\n";
    echo "</APPLET>\n";where $string is like "time1%data1@time2%data2@...."
    Then I get this string value in the JAVA applet with :
    String[] res = getParameter("valeur").split("@");But for too huge data size the getParameter return a NULL value as PHP hadn't create the associated param value.
    Does someone have an idea to explain such behaviour ?
    Thanks !

    nodules wrote:
    ..in that case I'll have to execute the query in the applet, and so, on the client side which is not really safe, isn't it ?In my suggestion I think the answer is 'yes'.
    .. Since I'll have to export password, etc on the client side ...Which is why ejp (who knows far more about remote access to DBs) added..
    ..or have it perform an HTTP request of its own ..Which I think means to have the applet connect to (for example) a servlet that does the query. The servlet would not expose the password or location of the database, and might do other checks (like that the user is actually allowed to delete every record). ;)

  • Is null and regular value in where ($variable)

    is there any polibility to create select depend on value in where ?
    select count(x) where y = $variablebut if variable is NULLit doesn't work cause must be IS NULL or IS NOT
    select count(x) where y is $variableIs there any posibility to make it working with null and regular variable?

    try:
    select count(x) from <yourtable> where nvl(y,<not_possible_value>) = nvl($variable,<not_possible_value>);where <not_possible_value> is a value that is not possible for column y.
    E.g. if y always is a positive number you could use the value -1.

  • Avoiding null and duplicate values using model clause

    Hi,
    I am trying to use model clause to get comma seperated list of data : following is the scenario:
    testuser>select * from test1;
    ID VALUE
    1 Value1
    2 Value2
    3 Value3
    4 Value4
    5 Value4
    6
    7 value5
    8
    8 rows selected.
    the query I have is:
    testuser>with src as (
    2 select distinct id,value
    3 from test1
    4 ),
    5 t as (
    6 select distinct substr(value,2) value
    7 from src
    8 model
    9 ignore nav
    10 dimension by (id)
    11 measures (cast(value as varchar2(100)) value)
    12 rules
    13 (
    14 value[any] order by id =
    15 value[cv()-1] || ',' || value[cv()]
    16 )
    17 )
    18 select max(value) oneline
    19 from t;
    ONELINE
    Value1,Value2,Value3,Value4,Value4,,value5,
    what I find is that this query has duplicate value and null (',,') coming in as data has null and duplicate value. Is there a way i can avoid the null and the duplicate values in the query output?
    thanks,
    Edited by: orausern on Feb 19, 2010 5:05 AM

    Hi,
    Try this code.
    with
    t as ( select substr(value,2)value,ind
            from test1
            model
            ignore nav
            dimension by (id)
            measures (cast(value as varchar2(100)) value, 0 ind)
            rules
            ( ind[any]=  instr(value[cv()-1],value[cv()]),
            value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
                                               and ind[cv()]=0     THEN ',' || value[cv()] END      
    select max(value) oneline
    from t;
    SQL> select * from test1;
            ID VALUE
             1 Value1
             2 Value2
             3 Value3
             4 Value4
             5 Value4
             6
             7 value5
             8
    8 ligne(s) sélectionnée(s).
    SQL> with
      2   t as ( select substr(value,2)value,ind
      3          from test1
      4          model
      5          ignore nav
      6          dimension by (id)
      7          measures (cast(value as varchar2(100)) value, 0 ind)
      8          rules
      9          ( ind[any]=  instr(value[cv()-1],value[cv()]),
    10          value[any] order by id = value[cv()-1] || CASE WHEN value[cv()] IS NOT NULL
    11                                             and ind[cv()]=0     THEN ',' || value[cv()] END 
    12          )
    13        )
    14   select max(value) oneline
    15   from t;
    ONELINE
    Value1,Value2,Value3,Value4,value5
    SQL>

Maybe you are looking for