Issue, while the creation of ADF Table programmatically

Hello

I am creating a table programmatically... And I've implemented as below:
            RichTable phoneTable = new RichTable();
            phoneTable.setEmptyText("No Phone Details yet");
            getContactPhone(contactObj.getPhone());

            phoneTable.setValue(contactObj.getPhone()); 
// contactObj.getPhone() is a ArrayList<TelephoneBOD> in pojo Object...
// Which is taken from a Object returned from DataControl Method (Captured in pageFlowScope)

            phoneTable.setVar("row");

            // Add Columns
            RichColumn column = new RichColumn();
            column.setHeaderText("Type");
            column.setId("phoneType");
            column.setAlign("right");
            column.setWidth("100");
            // Set output.
            RichOutputText output = new RichOutputText();
            output.setValue("#{row.phoneType}");
            // Add output into column.
            column.getChildren().add(output);
            // Add column into table.
            phoneTable.getChildren().add(column);
When I try to implement that way I get fllowing error:

Popup:
ZIP_STATE_FAILED

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, #2
Journal:
Caused By: java.io.NotSerializableException: org.ieee.internal.ws.proxy.conf.types.TelephoneBOD
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
     at java.util.ArrayList.writeObject(ArrayList.java:570)
     at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
     at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
     at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:239)
     at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
     at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)
     at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
     at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
     at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
     at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
I think that what is happening because I'm not serialize the object to Table. If this is the reason why... How to serialize the object?
Or I'm missing something in the code?

Thank you
Thoom

Published by: User007 on August 31, 2011 13:47

Published by: User007 on August 31, 2011 13:47

Your TelephoneBOD class must implement the serializable interface.
Just add

implements serializable

for your class and it should work. You don't have to implement anything.

Timo

Tags: Java

Similar Questions

  • Download the XML query ADF Table line

    I have a request to adf with the data obtained in the adf table that has a column 'ID' with a link. How to get the value of link ID selected in the bean class and download the XML from DB?

    Java (TM) Platform1.7.0_51
    Oracle IDE12.1.3.0.41.140521.1008

    Here's the Code to work. Thanks for all the help.

    
      
      
      
    
    

    And the Bean.download)

    inputstream = blobdomain.getInputStream();
    // copy blob to output
    byte[] buffer = new byte[4096];
    int nread;
    while ((nread = inputstream.read(buffer)) != -1) {
      outputStream.write(buffer, 0, nread);
    }
    outputStream.close();
    outputStream.flush();
    inputstream.close();
    blobdomain.closeInputStream();
    
  • Hide the line of adf table based on the transient attribute does not

    I have a JSF page where the user can insert new line in View object . this View object contains a transitional attribute which indicates whether or not the record is newly created.

    On the same page, I have a table adf which is bounded on the city view object . This table should show only newly created records. my approach is to use expression language of in the renditions property to hide all the other lines that are not newly created. I changed the render property for the columns of the table as: rendered="#{row.bindings.RowStatus.inputValue eq'new'}" , but the table does not show anything.

    Then, I tried to change the made not for the column property, but to the outputText inside the same way. It worked, but the problem is that the blank line is always on display.

    So, basically because I do not hide the entire line, instead I'm hiding the text in the lines and lines with spaces empty is still on display in the page aside.

    The Table of JSF page where the made property is applied on outputText inside the column:

    <af:table value="#{bindings.UplodedFilesView1.collectionModel}" var="row"
      rows
    ="#{bindings.UplodedFilesView1.rangeSize}"
      binding
    ="#{CreatSR_UserBean.fileTable}">

      
    <af:column sortProperty="#{bindings.UplodedFilesView1.hints.FileName.name}"
      headerText
    ="File Name" id="c1">

      
    <af:outputText value="#{row.bindings.FileName.inputValue}" id="it1"
      rendered
    ="#{row.bindings.RowStatus.inputValue eq'new'}"/>

      
    </af:column>

      
    </af:table>

    I use Jdeveloper with ADF technology 11.1.2.3

    Thanks Timo,

    You are right. Its to late to hide lines after stamping in the row set. I solve the problem by filtering the view object, based on the transitional attribute in the section of liaison page. The steps as follows: (assuming that the object from view with the temporary attribute has been created, and the transient attribute contains the filtered values)

    1. Drag the view object on the page and also make the Table (in my case it might otherwise listen)
    2. On the page, go to the connection tab.
    3. Double-click the object desired in the links column.
    4. New window will appear titled with (change the binding tree)
    5. Check the option (enable filtering)
    6. Select the (filter attribute) and (filter value) for the selected filter attribute.
    7. Select (Display attribute) you want to appear in the page.
    8. Press OK
  • java.lang.NullPointerException while selecting lov in adf:table

    Hello

    Jdev version: Studio Edition Version 12.1.3.0.0

    I had the form detailed master jsff on page.

    I have to add the number of records in the table of detail will depend on the number of user input.

    If the user enter n inputtext recording and click on add that the number of records is created;

    Detail table a field lov. Selection of LOV following error is generated

    java.lang.NullPointerException

    at org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:184)

    at org.apache.myfaces.trinidad.component.UIXCollection.restoreStampState(UIXCollection.java:1205)

    at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:481)

    at org.apache.myfaces.trinidad.component.UIXCollection.restoreStampState(UIXCollection.java:1198)

    at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:481)

    at org.apache.myfaces.trinidad.component.StampState.restoreChildStampState(StampState.java:193)

    at org.apache.myfaces.trinidad.component.UIXTable.restoreStampState(UIXTable.java:469)

    at org.apache.myfaces.trinidad.component.UIXCollection._restoreStampState(UIXCollection.java:2114)

    at org.apache.myfaces.trinidad.component.UIXCollection.postRowDataChange(UIXCollection.java:1008)

    at org.apache.myfaces.trinidad.component.UIXCollection.setRowIndex(UIXCollection.java:573)

    at org.apache.myfaces.trinidad.component.UIXTable.setRowIndex(UIXTable.java:782)

    at oracle.adf.view.rich.component.UIXTable.processStamps(UIXTable.java:154)

    at org.apache.myfaces.trinidad.component.UIXTable.processFacetsAndChildren(UIXTable.java:384)

    at org.apache.myfaces.trinidad.component.UIXCollection.decodeChildrenImpl(UIXCollection.java:255)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXCollection.processDecodes(UIXCollection.java:241)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$ 001 (ContextSwitchingComponent.java:42)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 2.run(ContextSwitchingComponent.java:186)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:189)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$ 001 (ContextSwitchingComponent.java:42)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 2.run(ContextSwitchingComponent.java:186)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:189)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at oracle.adf.view.rich.component.fragment.UIXRegion.decodeChildrenImpl(UIXRegion.java:632)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.access$ 001 (ContextSwitchingComponent.java:42)

    to oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$ 2.run(ContextSwitchingComponent.java:186)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:510)

    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.processDecodes(ContextSwitchingComponent.java:189)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXForm.processDecodes(UIXForm.java:75)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:1517)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:1503)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:1263)

    at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)

    at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:933)

    to oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ ApplyRequestValuesCallback.invokeContextCallback (LifecycleImpl.java:1568)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:416)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:225)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:280)

    to weblogic.servlet.internal.StubSecurityHelper$ ServletServiceAction.run (StubSecurityHelper.java:254)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:502)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)

    at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)

    at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)

    to org.apache.shiro.web.servlet.AbstractShiroFilter$ 1.call(AbstractShiroFilter.java:365)

    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)

    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)

    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:137)

    at java.security.AccessController.doPrivileged (Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3436)

    to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.run (WebAppServletContext.java:3402)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)

    to weblogic.servlet.provider.ContainerSupportProviderImpl$ WlsRequestExecutor.run (ContainerSupportProviderImpl.java:255)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

    I created 2 rows by clicking on the button 'Add' twice, then I click a line lov, it returns the correct value.

    When I switch to the second row and click component lov it give me above mentioned error and when I click on ok lov fills correctly.

    You must complete the key attributes programmatically (and probably all other attributes required if there is)

    Table has a composite key.

    This is usually problem (af:inputListOfValues has problems if you use this component in editable af:table and VO a composite key).

    As I said already, you probably should consider the use of read-only table and add/change the lines in a popup (or drop your VO also like shape on your page)

    Dario

  • Variable binding and View object to filter the results of ADF table

    I created a view ADF object where I compare "USERID =: USER_ID" in sql. I created a table with this ViewObject on a .jspx page.

    I use the following code in the support to the Bind Variable has a value:


    String uidregAMDef =
    'mil.navy.comfisc.uid.toolkit.model.UIDToolkitModule ';
    String uidregConfig = "UIDToolkitModuleLocal";

    Check out the module
    UIDToolkitModuleImpl = uidAM
    (UIDToolkitModuleImpl) Configuration.createRootApplicationModule (uidregAMDef,
    uidregConfig);

    ViewObject vo = uidAM.findViewObject("CurrentContent1");
    vo.setNamedWhereClauseParam ("USER_ID", 2);

    vo.executeQuery ();

    Configuration.releaseRootApplicationModule (uidAM, true);


    Returns a null value.
    }



    The result I'm looking for is the TABLE to refresh after that code runs to just display the values where the: USER_ID = 2


    However, the table does IS NOT refresh... I do not get a runtime or compile... errors but the picture is not updated, even if the setNamedWhereClauseParam seems well.



    Any suggestions? The original Version should not update with the setNamedWhereClauseParam?


    Thank you

    Published by: [john72] Sep 8, 2008 10:52

    Hi John72

    In your case is more recommended the use of the method of the page definition and iterator, you can add the filter to your page just definition method drag and drop the ExecuteWithParams method as a button of operations in your jsp/jspx page, in the page definition are created automatic ExecuteWithParams and var bind method, you can now create an action of your button and add the following code :

    public String commandButton1_action() {}
    DCIteratorBinding iter = (DCIteratorBinding) bindings.get ('variables');
    iter.getBindingContainer () .getVariableManager () .setVariableValue ("MyVar", "value");

    execute the method

    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("ExecuteWithParams");
    Object result = operationBinding.execute ();
    If (! operationBinding.getErrors () .isEmpty ()) {}
    Returns a null value.
    }
    }

    Good luck

  • Table of ring to string value for the creation of a table

    I want to convert an array of chain ring and generate a picture of him.

    But by using the node property to convert each ring is changing the value in the table.

    each table represents various registers. so to change different picture!

    hereby I enclose a Vi!

    I think this will help you.

    See attached extract VI.

  • Error, while the creation and execution of stored procedure

    Hello

    I'm creating a procedure stored and discovered during the compilation and execution of procedure.

    CREATE OR REPLACE PROCEDURE procTEST
    AS
    BEGIN
    WITH
    AS Report1
    (
    SELECT * FROM Employee
    )

    SELECT * FROM REPORT1

    END;
    /

    ERROR when compiling

    -------------------------------

    PROCTEST update procedure

    Errors: Newspaper the compiler check

    ERROR when executing

    ---------------------------------

    PROCTEST update procedure

    Errors: Newspaper the compiler check
    Error from line: 15 command.
    EXEC procTEST
    Error report-
    ORA-06550: line 1, column 7:
    PLS-00905: object SYSTEM. PROCTEST is not valid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    06550 00000 - "line %s, column % s:\n%s".
    * Cause: Usually a PL/SQL compilation error.
    * Action:

    Hello

    user13360241 wrote:

    I want to insert values into the table tmpemployees.

    Insert into tmpemployees

    Select * from Report1

    CREATE OR REPLACE PROCEDURE procTEST
    AS
    BEGIN
    WITH
    AS Report1
    (
    SELECT * FROM Employee
    )

    Insert into tmpemployees

    SELECT * FROM REPORT1

    END;
    /

    I see.  Then, there is no need to use the PL/SQL.  All you need is:

    INSERT INTO tempemployees

    SELECT *.

    OF REPORT1.

    (assuming that the columns match Report1 tempemployees... It is best to explicitly list the individual columns, like this:

    INSERT INTO tempemployees (employyee_id, first_name,...)

    SELECT (col_1, col_2,...)

    OF REPORT1.

    )

    If you need to use the PL/SQL for a reason, you could use the exact same INSERT statement in PL/SQL:

    CREATE OR REPLACE PROCEDURE proctest

    AS

    BEGIN

    INSERT INTO tempemployees (employyee_id, first_name,...)

    SELECT (col_1, col_2,...)

    OF REPORT1.

    END proctest;

    /

    DISPLAY ERRORS

  • issue in the creation of the IOM group reactivate via sql query.

    Hi guys,.

    I am trying to create a group to IOM database through sql query:

    insert into ugp(ugp_key,ugp_name,ugp_create,ugp_update,ugp_createby,ugp_updateby,) values(786,'dbrole','09-jul-12','09-jul-12',1,1);

    It is the inclusion of the group in the table of the PMU, but he does not appear in the administration console.

    After that, I also tried with this query:

    insert into gpp(ugp_key,gpp_ugp_key,gpp_write,gpp_delete,gpp_create,gpp_createby,gpp_update,gpp_updateby) values (786,1,1,1,'09-jul-12',1,'09-jul-12',1);

    After I haven't tried with this query.but still no use.

    and I also tried to assign a user to the group through query:

    insert into usg(ugp_key,usr_key,usg_priority,usg_create,usg_update,usg_createby,usg_updateby) values (4,81,1,'09-jul-12','09-jul-12',1,1);

    But always the same problem.it is the insertion in db.but do not enter in the administration console.

    Thank you
    Hanuman.

    Muriel Hanuman says:
    Thanks guys.the above queries are successfully.just to work I rebooted the server.

    I certify here if we want to add the group to 10g through sql query, then insert the records in the tables 'PMU' and 'MPP '.

    11 g, need to add records from the ugp only table. Because the administrator has also not found in this table only.so no need to table gpp.

    Thank you
    Hanuman.T

    1 groups are stored in the table of the PMU to IOM 11.1.1.5. The table of the GPP is present, but not used in 11.1.1.3 and is totally deleted schema repo in 11.1.1.5
    2. as far as I know, there is no other vital records except that in UGP table objects are created for a group, you are, in theory, able to create groups with direct SQL. Using the API of the IOM is the preferred method.
    3. you must use the sequence UGP_SEQ to get a new key for a group that you create.

    Vladimir

  • Selection of the row in a Table programmatically

    I have a table that has say 4 rows in it.
    How can I configure the 3rd such row selected by program.

    Here is the snippet of code I use to get the next line

    RowKeySet rowKeySet = table.getSelectedRowKeys ();
    rowKeySet.clear ();
    CollectionModel cm = (CollectionModel) table.getValue ();
    rowData = (JUCtrlHierNodeBinding) cm.getRowData (index); index is the index of the line that I want to put the choice in the table
    rowkeyset. Add (Collections.singletonList (rowData.getRowKey ()));
    AdfUtil.addPartialTarget ("table_id");

    But none of the line is coming under the selected name in the user interface

    You must inform the iterator binding on the selected line, something like:

    Key k = (Key) l.get (0);
    DCIteratorBinding iter is getDCBindingContainer .findIteratorBinding ("DepartmentsView1Iterator");.
    iter.setCurrentRowWithKey (k.toStringFormat (true));

  • How to run the creation of clob table?

    Hello

    is it possible to create the table, view or same clob package? For example I: create the demo of the table (table-name varchar2 (50), ddl clob); Insert in the demo (table_name, ddl) values ('EMP', ' create emp (...)) ») ; commit; How can I run ddl field demo of table?

    You can use DBMS_SQL. It has a type defined as VARCHAR2A

    You can the substring your CLOB in data type VARCHAR2A and analyzed using DBMS_SQL

  • Need help with the creation of SQL table

    Hi all

    I created a table, a month back. Now, I need to create another table in the same structure.
    Is there a way for dat I can get the script from the table I created earlier and use the same to create another.
    Or y at - it another way, so that we can create a table with the same structure of the existing table.

    Help, please.

    Kind regards
    Mohan

    Discover the function [DBMS_METADATA. GET_DDL | http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_metada.htm#i1019414].

    Example:

    SQL> SET LONG 5000
    SQL> SELECT DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT') FROM DUAL;
    
    DBMS_METADATA.GET_DDL('TABLE','EMP','SCOTT')
    --------------------------------------------------------------------------------
    
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    

    Published by: Centinul on January 11, 2010 08:01

  • start the creation of time table

    I want to create following table through pl/sql block. Please help me on this...

    store table name in the variable v_monyear

    declare

    date of T_DATE;
    v_month varchar2 (10);
    v_year varchar2 (10);
    v_monyear varchar2 (100);
    number of v_cnt;

    Start

    Select (to_date(sysdate,'dd-mon-yy')-1) in double T_DATE;
    Select substr (v_date, 4, 3) in the double v_month;
    Select substr (v_date, 8, 2) in the double v_year;
    v_monyear: = v_month | "_TABLE_' | v_year;
    end;
    /

    Published by: user9970512 on July 25, 2009 11:20

    Maybe

    begin
      execute immediate 'create table ' || to_char(sysdate,'mon') || '_table_' || to_char(sysdate,'rr') || ' as select * from '||to_char(sysdate,'mon') || '_table_' || to_char(sysdate,'rr')||'@orcl';
    end;
    /
    
  • Issue while the Satellite A100-383 turn off

    Everytime I try to turn off my A100-383 of the screen goes black but the blue light on the left side and the small blue led and blue battery light stay lit.

    As I do not know if the computer is finally off or still work I based on the the Start button / stop and turn off it. The small blue led and blue battery light stays on

    What I do then takes the battery pack to stop lighting and when I restart the laptop I always get the message to advise him of the system that the computer was not properly extinguished.

    What can I do? Is this a failure of this model?

    Fernando

    Hello Fernando

    It is not easy to say what the problem is here. This behavior has noting to do with the portable model but rather with the configuration of the operating system. I can't imagine that from day one and I think that some process blocks regularly switching OFF.

    I can say with certainty that with OS installation, something like this will not happen. What you can do is check all running processes and try to pass some of them manually and then try turning off the laptop. Test a little and also try to delete some applications if any of them may be responsible for this.

  • Satellite L300D-12I: error of calibration of power while the creation of recovery disks

    I have a laptop Satellite L300D-12I & get a "power calibration error" when trying to create Toshiba recovery disks. Does anyone have any ideas how to get over this?

    Power calibration error especially if the laser lens cannot calibrate (moving) in the right position and can not handle the inserted disc.

    In most cases, the STRANGE must be replaced. :(

    I put t know why it happened on your L300 but I hope that your warranty is valid
    So contact the ASP as soon as possible and ask for the check!

  • Issue to the creation/editing UCM contributor data file

    Hello

    We have the requirements below:

    (a) create a contributor by program data file, and not using the contributor of the Studio Site for a definition of region RD1, by using a custom, template not the model of default.xml provided by the Studio (SS) Site.

    I created a data contributor using RD1 file and set it as your primary file to create other files of data for this RD1. I used CHECKIN_NEW IDC service to create the data file. PFA the code snippet. I was able to successfully create the data file.

    (b) change the correct display of data file

    However when I try to modify the data of the University Complutense of MADRID, I get the error message. PFA file error message.

    I would like to know if there is no Site Studio IDC service to create web resources based on the custom template. I want to create assets web Webcenter application and no contributor Site Studio.

    Hi Nikhil,

    Try this piece of code:

    DataBinder dataBinder = idcClient.createBinder ();

    dataBinder.putLocal ("IdcService", "SS_CHECKIN_NEW");

    dataBinder.putLocal ("xRegionDefinition", prop.getProperty ("regiondefinition"));

    dataBinder.putLocal ("dDocTitle", prop.getProperty ("title"));

    dataBinder.putLocal ("dSecurityGroup", "Public");

    dataBinder.putLocal ("ssDefaultDocumentToken", "SSContributorDataFile");

    dataBinder.addFile ("primaryFile", new leader (prop.getProperty ("filename")));

    dataBinder.putLocal ("xWebsiteObjectType", "Data file");

    dataBinder.putLocal ("dDocType", "Document");

    dataBinder.putLocal ("dataFileFieldValue", "Data file");  This parameter is passed when no particular site is selected in the menu drop-down

    Here I've created a companion file where in all connection and defintion region ucm to be fixed this CDF are defined.

    filename - this one is set to default.xml (to check normal working)

    regiondefinition - this is the content of Dr id to which is attached the cdf.

    title - title of the element content according to customer's requirement.

    With this code, test and whether the requirement that you are looking for is completed and update results.

    Thank you

    Srinath

Maybe you are looking for