10.1.3.4.0 : iterator mode : RowIterator.ITER_MODE_LAST_PAGE_FULL

hi
The ADF Developer's Guide For Forms/4GL Developers 10g Release 3 (10.1.3.0) section "27.1.4 Presenting and Scrolling Data a Page at a Time Using the Range" ...
at http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/bcadvvo.htm#sthref2557
... documents two iterator mode flags.
The first is ITER_MODE_LAST_PAGE_PARTIAL documented as "the style that works best for web applications ".
The second is ITER_MODE_LAST_PAGE_FULL which turns out the be effectively the default iterator mode value, while the last page is not full.
Please consider this example application created using JDeveloper 10.1.3.4.0
at http://www.consideringred.com/files/oracle/2010/IterModeLastPageFull10gApp-v0.01.zip
It has a simple View Object dropped on a JSF page as a read-only table. It also has a managed-bean that allows to show iterator mode information on the page.
See the screencast at http://screencast.com/t/qm6flt7asYA
questions:
- (q1) Is it intended behaviour to have iterator mode ITER_MODE_LAST_PAGE_FULL while the last page is not full?
- (q2) How should this iterator mode be configured, and is this possible declarative?
- (q3) Is it possible to have the "last page full" when navigating ranges of rows using the af:table component (maybe using a configuration unrelated to iterator mode)?
many thanks
Jan Vervecken

Thanks for your reply Frank.
... So this seems to be a bug in the behavior. I asked Steve if he would consider this to be a bug and am waiting for his response ...Thank you, I am looking forward to Steve's feedback.
... The place to set the declarative setting is on the "Tuning" panel of the VO. ". See the "Fill Last Page of Rows when Paging Through Rowset" checkbox.If I uncheck the "Fill Last Page of Rows when Paging through Rowset" checkbox, as in the modified example application ...
at http://www.consideringred.com/files/oracle/2010/IterModeLastPageFull10gApp-v0.02.zip
... this is reflected on the page, showing
r_adfHelper.iterModeInfo['EmployeesLimitedVOVIIterator']  ITER_MODE_LAST_PAGE_PARTIAL (0)... instead of ...
r_adfHelper.iterModeInfo['EmployeesLimitedVOVIIterator']  ITER_MODE_LAST_PAGE_FULL (1) ... but the behaviour of the af:table component has not changed, see also the screenshot in IterModeLastPageFull10gApp-v0.01-v0.02.png.
- about (q3): Any thoughts on other (configuration) options that could cause "last page full" behaviour in the af:table component?
regards
Jan

Similar Messages

  • Iterating through View Object RowIterator Bug.

    I use this code to loop through the rows of a view object (As described in javadoc of RowIteratior).
    public String checkIterations() {
    String res = "Iterated through : ";
    RowIterator view = this.getDepartmentsView1();
    view.reset();
    Row row;
    while ((row = view.next()) != null) {
    System.out.println("rownum: " + row.getAttribute("RowNum"));
    res += row.getAttribute("RowNum") + " ";
    return res;
    Yet this code never goes through the first row if the executequery has been performed for view object.
    details:
    [http://adfbugs.blogspot.com/2009/07/iterating-through-view-object.html]
    Is this a bug?
    Edited by: mkonio on Jul 28, 2009 11:41 PM

    Thanks Andrejus and Steve.
    Its a development bug
    problem and solution described in:
    Fusion Developer's Guide for Oracle ADF
    9.7.6 What You May Need to Know About Programmatic Row Set Iteration

  • Jdev basic problems!

    hello,
    new in Jdev and java - France
    Jdeveloper 9i - version 9.0.4.0 (build 1407)
    same demand as number 318074
    1) In a Panelxxxx.java for a form created automatically via the Swing/ Jclient for BC4J - Form, I have inserted a Jbutton to create a new row (instead of the + JUNavigationBar).
    //Positionne le panel en Insert Mode
    RowIterator iter = null;
    iter = navBar.getModel().getNavigatableRowIterator();
    Row row = iter.createRow();
    iter.insertRow(row);
    all the fields have a "document - Jclient Attribute binding"
    then i set some Jtextfields automatically, exemple :
    mNivUrg.setText(result1);
    or setting some others in the EOImpl.java
    it works but when I entered a value in any field, many values initialized (not all...) disappeared (are reset to blank).
    if I entered the value again manually, when I commit, it seems that the EO Attribute are not informed...
    I have to pass on the jtextfield and press return key
    What do I do?
    I have seen in the forum that maybe I have to call textfieldbinding.setDataValueAt(text,0)...??? but what means textfieldbinding? if it is the solution.
    2) I have a big problem with the control hints for the EO (and the view linked).
    the first to attributes are:
    NoTicket - type number
    Horodate - type date
    in the control hints when i indicate number and a format for the first, the control hints for the second propose me a number-currency type (it must be simple date).
    when i choose simple date for the second, it re-initialize the first attribute to format type in control hints at simple date...???
    do you have heard of this bug. strange.
    so when I commit, it tells me that the field horadate for exemple is not in the good format!
    (oracle.jbo.JboException) JBO-29000: Cannot format given Object as a Date
    3) when i am positioned on a row in the form, it seems that I can't retrieve the values by a jtextfield.getText() - (Panelxxxx.java) .how can I retrieve the values of the current row?
    could you help me?
    thanks

    thanks for your answer frank.
    1) ok to initialize values in the Impl.java class but I can initialize some values only after a click on a jbutton in the panel - sample:
    jButton1.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
    jButton1_actionPerformed(e);
    private void jButton1_actionPerformed(ActionEvent e)
    int creat=1;
    methode_creation(creat);
    private void methode_creation(int creat)
    //System.out.println("entrée dans methode_creation : " + creat);
    switch(creat)
    case 1 : mDescrPb.setText("Problème imprimante");
    break;
    case 2 : mDescrPb.setText("Problème bureautique");
    break;
    case 3 : mDescrPb.setText("Système bloqué");
    break;
    case 4 : mDescrPb.setText("Problème Formation utilisateur");
    break;
    case 5 : mDescrPb.setText("Problème utilisateur récurrent");
    break;
    default : break;
    how to do this in the Impl class? when I'm on the create method, the button is not yet clicked...
    Is the setText the reason why the jtextfield are reset to blank when entered ou modify new values?
    2) ok I have resolved the problem with java format.
    3)ok it works. My problem is this one : when I click on the previous or next button bar, the row (and the attributes that correspond) is well displayed on the form (update mode). I have some fields that are not linked with the view object and I have do do some treatment (method) to display and populate them. With which event(s) can I call the methods in the panel after the values linked are displayed automatically by jdev? how can I hold the hand on the program?
    thanks.

  • Jtextfield initializations

    hello,
    new in Jdev and java - France
    Jdeveloper 9i - version 9.0.4.0 (build 1407)
    same demand as number 318074
    1) In a Panelxxxx.java for a form created automatically via the Swing/ Jclient for BC4J - Form, I have inserted a Jbutton to create a new row (instead of the + JUNavigationBar).
    //Positionne le panel en Insert Mode
    RowIterator iter = null;
    iter = navBar.getModel().getNavigatableRowIterator();
    Row row = iter.createRow();
    iter.insertRow(row);
    all the fields have a "document - Jclient Attribute binding"
    then i set some Jtextfields automatically, exemple :
    mNivUrg.setText(result1);
    or setting some others in the EOImpl.java
    it works but when I entered a value in any field, many values initialized (not all...) disappeared.
    if I entered the value again manually, when I commit, it seems that the EO Attribute are not informed...
    What do I do?
    I have seen in the foraum that maybe I have to call textfieldbinding.setDataValueAt(text,0)...??? but what means textfieldbinding? if it is the solution.
    2) I have a big problem with the control hints for the EO (and the view linked).
    the first to attributes are:
    NoTicket - type number
    Horodate - type date
    in the control hints when i indicate number and a format for the first, the control hints for the second propose me a number-currency type (it must be simple date).
    when i choose simple date for the second, it re-initialize the first attribute to format type in control hints at simple date...???
    do you have heard of this bug. strange.
    so when I commit, it tells me that the field horadate for exemple is not in the good format!
    (oracle.jbo.JboException) JBO-29000: Cannot format given Object as a Date
    could you help me?
    thanks

    Rahim_From_Puniyal wrote:
    Yannix
    i post this thread at java programming forum. You reply me that "should be post at swing forum" then i post it again here you again reply my question like your previous answer.I said Next time Swing related question should be posted in the Swing forum.
    In short next time you have a new problem about swing post it in here. Simple English.
    Please don't reply if you don't have any useful answer to the question ok.
    your are not alone here at SUN developer forum. May be some give me a useful answer of my question and who is not memeber of java programming forum. that's allI think your are just one of those guys who doesn't read a post carefully.
    If you take a look at your other post I did give you an answer in reply # 1. Read Carefully.
    So before you tell me what's my problem you should read the thread carefully.
    and If you carefully read reply#1 I did state read your other thread for solution.

  • Issues in persisting dynamic entity and view objects using MDS

    Hi All,
    I'm trying to create dynamic entity and view objects per user session and to persist these objects throughout the session, I'm trying to use MDS configurations(either file or Database) in adf-config.xml.
    I'm facing following two errors while trying to run the app module:
    1. MDS error (MetadataNotFoundException): MDS-00013: no metadata found for metadata object "/model/DynamicEntityGenModuleOperations.xml"
    2. oracle.mds.exception.ReadOnlyStoreException: MDS-01273: The operation on the resource /sessiondef/dynamic/DynamicDeptEntityDef.xml failed because source metadata store mapped to the namespace / DEFAULT is read only.
    I've gone through the following links which talks about the cause of the issue, but still can't figure out the issue in the code or the config file. Please help if, someone has faced a similar issue.
    [http://docs.oracle.com/cd/E28271_01/doc.1111/e25450/mds_trouble.htm#BABIAGBG |http://docs.oracle.com/cd/E28271_01/doc.1111/e25450/mds_trouble.htm#BABIAGBG ]
    [http://docs.oracle.com/cd/E16162_01/core.1112/e22506/chapter_mds_messages.htm|http://docs.oracle.com/cd/E16162_01/core.1112/e22506/chapter_mds_messages.htm]
    Attached is the code for dynamic entity/view object generation and corresponding adf-config.xml used.
    ///////////App Module Implementation Class/////////////////////////
    public class DynamicEntityGenModuleImpl extends ApplicationModuleImpl implements DynamicEntityGenModule {
    private static final String DYNAMIC_DETP_VO_INSTANCE = "DynamicDeptVO";
    * This is the default constructor (do not remove).
    public DynamicEntityGenModuleImpl() {
    public ViewObjectImpl getDepartmentsView1() {
    return (ViewObjectImpl) findViewObject("DynamicDeptVO");
    public void buildDynamicDeptComp() {
    ViewObject internalDynamicVO = findViewObject(DYNAMIC_DETP_VO_INSTANCE);
    if (internalDynamicVO != null) {
    System.out.println("OK VO exists, return Defn- " + internalDynamicVO.getDefFullName());
    return;
    EntityDefImpl deptEntDef = buildDeptEntitySessionDef();
    ViewDefImpl viewDef = buildDeptViewSessionDef(deptEntDef);
    addViewToPdefApplicationModule(viewDef);
    private EntityDefImpl buildDeptEntitySessionDef() {
    try {
    EntityDefImpl entDef = new EntityDefImpl(oracle.jbo.server.EntityDefImpl.DEF_SCOPE_SESSION, "DynamicDeptEntityDef");
    entDef.setFullName(entDef.getBasePackage() + ".dynamic." + entDef.getName());
    entDef.setName(entDef.getName());
    System.out.println("Application Module Path name: " + getDefFullName());
    System.out.println("EntDef :" + entDef.getFileName() + " : " + entDef.getBasePackage() + ".dynamic." + entDef.getName());
    entDef.setAliasName(entDef.getName());
    entDef.setSource("DEPT");
    entDef.setSourceType("table");
    entDef.addAttribute("ID", "ID", Integer.class, true, false, true);
    entDef.addAttribute("Name", "NAME", String.class, false, false, true);
    entDef.addAttribute("Location", "LOCATION", Integer.class, false, false, true);
    entDef.resolveDefObject();
    entDef.registerSessionDefObject();
    entDef.writeXMLContents();
    entDef.saveXMLContents();
    return entDef;
    } catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    return null;
    private ViewDefImpl buildDeptViewSessionDef(EntityDefImpl entityDef) {
    try {
    ViewDefImpl viewDef = new oracle.jbo.server.ViewDefImpl(oracle.jbo.server.ViewDefImpl.DEF_SCOPE_SESSION, "DynamicDeptViewDef");
    viewDef.setFullName(viewDef.getBasePackage() + ".dynamic." + viewDef.getName());
    System.out.println("ViewDef :" + viewDef.getFileName());
    viewDef.setUseGlueCode(false);
    viewDef.setIterMode(RowIterator.ITER_MODE_LAST_PAGE_FULL);
    viewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
    viewDef.setSelectClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
    viewDef.setFromClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
    viewDef.addEntityUsage("DynamicDeptUsage", entityDef.getFullName(), false, false);
    viewDef.addAllEntityAttributes("DynamicDeptUsage");
    viewDef.resolveDefObject();
    viewDef.registerSessionDefObject();
    viewDef.writeXMLContents();
    viewDef.saveXMLContents();
    return viewDef;
    } catch (Exception ex) {
    System.out.println(ex.getLocalizedMessage());
    return null;
    private void addViewToPdefApplicationModule(ViewDefImpl viewDef) {
    oracle.jbo.server.PDefApplicationModule pDefAM = oracle.jbo.server.PDefApplicationModule.findDefObject(getDefFullName());
    if (pDefAM == null) {
    pDefAM = new oracle.jbo.server.PDefApplicationModule();
    pDefAM.setFullName(getDefFullName());
    pDefAM.setEditable(true);
    pDefAM.createViewObject(DYNAMIC_DETP_VO_INSTANCE, viewDef.getFullName());
    pDefAM.applyPersonalization(this);
    pDefAM.writeXMLContents();
    pDefAM.saveXMLContents();
    ////////adf-config.xml//////////////////////
    <?xml version="1.0" encoding="windows-1252" ?>
    <adf-config xmlns="http://xmlns.oracle.com/adf/config" xmlns:config="http://xmlns.oracle.com/bc4j/configuration" xmlns:adf="http://xmlns.oracle.com/adf/config/properties"
    xmlns:sec="http://xmlns.oracle.com/adf/security/config">
    <adf-adfm-config xmlns="http://xmlns.oracle.com/adfm/config">
    <defaults useBindVarsForViewCriteriaLiterals="true"/>
    <startup>
    <amconfig-overrides>
    <config:Database jbo.locking.mode="optimistic"/>
    </amconfig-overrides>
    </startup>
    </adf-adfm-config>
    <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">
    <adf-property name="adfAppUID" value="TestDynamicEC-8827"/>
    </adf:adf-properties-child>
    <sec:adf-security-child xmlns="http://xmlns.oracle.com/adf/security/config">
    <CredentialStoreContext credentialStoreClass="oracle.adf.share.security.providers.jps.CSFCredentialStore" credentialStoreLocation="../../src/META-INF/jps-config.xml"/>
    </sec:adf-security-child>
    <persistence-config>
    <metadata-namespaces>
    <namespace metadata-store-usage="mdsRepos" path="/sessiondef/"/>
    <namespace path="/model/" metadata-store-usage="mdsRepos"/>
    </metadata-namespaces>
    <metadata-store-usages>
    <metadata-store-usage default-cust-store="true" deploy-target="true" id="mdsRepos">
    <metadata-store class-name="oracle.mds.persistence.stores.file.FileMetadataStore">
    <property name="metadata-path" value="/tmp"/>
    <!-- <metadata-store class-name="oracle.mds.persistence.stores.db.DBMetadataStore">
    <property name="jndi-datasource" value="jdbc/TestDynamicEC"/>
    <property name="repository-name" value="TestDynamicEC"/>
    <property name="jdbc-userid" value="adfmay28"/>
    <property name="jdbc-password" value="adfmay28"/>
    <property name="jdbc-url" value="jdbc:oracle:thin:@localhost:1521:XE"/>-->
    </metadata-store>
    </metadata-store-usage>
    </metadata-store-usages>
    </persistence-config>
    </adf-config>
    //////////////////////////////////////////////////////////////////////////////////////////////////////////

    Hi Frank,
    I m trying to save entity and view object xml by calling writeXMLContents() and saveXMLContents() so that these objects can be retrieved using the xmls later on.
    These methods internally use MDS configuration in adf-config.xml, which is creating the issue.
    Please share your thoughts on resolving this or if, there is any other way of creating dynamic entity/view objects for db tables created at runtime.
    Nik

  • Generating a square waveform of 100 KHz from one of the Anolog output channels of PXI-6713 ?

    Hi
    I am trying to generate a square waveform from one of the anolog output channels of PXI 6713.
    I am developing my application in VC++
    My requirement is a continous 100 KHz square waveform with 90% duty cycle and 1.5 V amplitude.
    The following is the code i have used (i have removed error handling code):
    ***** code *******
    i16 deviceNumber = 6; // PXI 6713 Device Id as per NI-MAX
    i16 deviceNumberCode; // to be returned by Init_DA_Brds function
    i16 chan = 2; // DAC channel 2
    i16 numChans = 1; // only one channel is used for
    i16 chanVect[1] = {2}; // DAC Channel 2
    f64 gain = 1.0;
    i16 binArray[10] = {0};
    i16 group = 1; // default for most of the devices
    u32 count = 10; // 10 data points
    // 9 data points ON and 1 data point OFF constituting 90% duty cycle
    f64 voltArray[10] = {1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,1.5,0};
    u32 iterations = 0; // Repeat waveform indefinitely
    i16 mode = 0; // Disable FIFO mode / delay mode
    f64 rate = 100000; // 100,000 points / sec
    i16 units = 0; // points / sec
    i16 timebase;
    u32 updateInterval;
    i16 whichclock = 0; // update clock
    i16 operation = 1; // Start waveform initiation
    Init_DA_Brds (deviceNumber, &deviceNumberCode);
    WFM_Scale (deviceNumber, chan, count, gain, voltArray, binArray);
    WFM_Group_Setup (deviceNumber, numChans, chanVect, group);
    WFM_Load (deviceNumber, numChans, chanVect, binArray, count, iterations, mode);
    WFM_Rate (rate, units, &timebase, &updateInterval);
    WFM_ClockRate (deviceNumber, group, whichclock, timebase, updateInterval, mode);
    WFM_Group_Control (deviceNumber, group, operation);
    If I try to generate 10 KHz waveform with the same 90% duty cycle and 1.5 V amplitude, the waveform gets generated continously....
    But for 100 KHz, itz generating continously....but only few waveforms....
    Is there any hardware limitations ? I've tried changing the value of the timebase ( points / sec) and update interval etc...
    plz help me
    thanx in advance
    sriram.

    Sriram;
    The best way to get started is to run one of the NI-DAQ shipping examples. You can find a good example at
    C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ao. Take the one named WFMDoubleBuf.c.
    On that example, you will just need to change the data written to the buffer to met your application's pulse train requirement.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • GSS response

    Hi Iftekhar,
    Found the follwing traffic flow in one of your responses to a qurey for integrating DNS with GSS.
    Typical flow is as follows
    1. Client will hit their DNS servers (configured on their machines as primary/backup dns server).
    2. "Client's DNS server" will query "DNS server authoritative for abc.com" for www.abc.com.
    3. "DNS server authoritative for abc.com" will ask "client's DNS server" to query "GSS - Authoritative for <A HREF="javascript:newWin('http://www.abc.com"')">www.abc.com"</A>
    4. "Client's DNS server" will query GSS for www.abc.com.
    5. GSS will send the ip add of www.abc.com (which should be configured on ACE as VIP).
    6. "Client's DNS server" will handover this VIP to client
    7. Client will hit the VIP configured on ACE (for application www.abc.com).
    Syed iftekhar Ahmed
    My doubt is about steps 3 and 4.
    In our scenario, we had done delegation of a subdomin to the GSS. Hence the DNS has two NS entries for the same subdomain.
    and when a reuest comes from the Client to the DNS, the DNS does not reply back with the GSS ip address. IT inturn does a recursive lookup with the GSS, The GSSS returns the IP of the server to the DNS which inturn forwrds to the client. hence the client never sees the GSS.
    WE had done a staggibg activity to test the effectiveness of this, and it was working fine.
    Do you see any drawbacks in this recursive mode of operation when compared to your iterative mode.
    please advice.
    rgds
    Sanju

    The "DNS server authoritative for for Domain" should have a NS record pointing towards the GSS.
    For example if DNS server is authoritative for "abc.com" and you make GSS authritative for "www.abc.com" then primary DNS server should have folloiwng records
    www.abc.com. IN NS gss01.abc.com. <-- NS record for http://www.abc.com via GSS01
    www.abc.com. IN NS gss02.abc.com. <-- NS record for http://www.abc.com via GSS02
    gss01.abc.com. IN A 1.1.1.1 <-- A record for GSS01
    gss02.abc.com. IN A 2.2.2.2 <-- A record for GSS02
    When "Client DNS Server" request A-record for "www.abc.com" then since primary DNS server has an NS record for www.abc.com, it should only hand over the NS record to "client's DNS Server". So the client's DNS server should contact the GSS to get the final answer.
    Proximity/Sticky logic wont make any sense if "DNS server authoritative" for domain is the only GSS client.
    Syed Iftekhar Ahmed

  • Sync Mode Immediate, create row causes iterator sync problems

    Hi,
    I'm building an application for a client and in that I've got a master detail ADF data page.
    The 'master' data is user details for the application and the 'detail' data is the various access privileges a user has related to different countries, i.e. update privilege for UK data, read access for Swedish data etc. etc.
    My page consists of a summary of master details (master iterator) in read only fields, a grid of detail records (detail iterator) and for each row in the grid, a 'select' link is provided which when selected, populates an input form on the same page with the details for that row (via setCurrentRowWithKey). The user can then update the details of the row and save.
    Problem I have is when a New detail record is created.
    The user presses a 'New' button (bound to Create action) which sets up the input form for a new detail record. The user enters the new details and presses 'Save' (bound to Commit action). Saving causes the detail grid to refresh (row position moves to 1st row in grid), showing the newly inserted record, however the input form itself on the page still contains the details of the inserted row.
    So if the record I insert should be displayed 3rd in the grid (due to an Order by I have on the VO), it does show up as 3rd. However, if I select the 1st record on the grid, the data for the 3rd is displayed in the input form, if I select the 2nd record on the grid, the data for the 2nd is displayed, if I select the 3rd record on the grid, the data for the 3rd is displayed again and so on. Selecting the 1st record again still displays data for the 3rd record in the input form.
    Somewhere the iterator is getting messed up.
    I always refresh the query at the prepareModel phase but this doesn't fix the issue. I'm using the initializeModelForPage method that was demonstrated in ToyStore. In fact my application is built in the style of the helper functions that were provided with ToyStore (and are an excellent help!)
    Can anyone point me in the right direction to fix this problem?
    I'm using JDev 10.1.2.1 with immediate sync mode.
    Thanks,
    Paul.

    I thought I'd pinned this down to the fact that on the page where there is no iterator problems, the PK of the table is a sequence.
    When I select any row in the grid (via setCurrentRowWithKey) on that page, the rowKeyStr for each row never changes when the page is reloaded (which is what I would expect).
    On the page where there is an iterator problems, each time I selected a row on the grid via setCurrentRowWithKey, the page reloaded and the rowKeyStr for that row had now changed to something else.
    The table underlying this page had a VARCHAR2 primary key. Thinking this was the cause of the problem, I added a new PK based on a sequence and set the previous PK to a unique key only. I changed all the related entity, link and view objects to reflect this. Also made sure that the previous PK field was not selected as a 'Key Attribute' under the view object dialog box. I've gone through the definition of the entity object closely to make sure it reflects the format of the table it's based on.
    Still though on this one page, a select of a row via setCurrentRowWithKey results in a change of the rowKeyStr when the page reloads and also JBO-33035 errors (as I said, pages that do work based on sequence PK tables don't change the rowKeyStr when reloaded).
    Any ideas on this behaviour would be welcome. Could there be something still ‘hanging around’ in the entity or view object definitions that is causing this behaviour? I'm really up against it now on this one.

  • My vi is writing just the same data into spreadsheet even after changing the loop iteration time. hw can I change this mode ?

    My VI is writing the same amount of data into spreadsheet file even after changing the for-loop iteration time

    You should post the VI (with appropriate values saved as default) to this thread.  (At least a JPEG or PNG screenshot).
    Inside the For Loop, right-click on the N terminal and create Indicator.  Run the VI and you will see how many times the Loop spins.
    Further guessing:  You may have a 2D array with two rows and many columns feeding the For Loop.

  • Fetch Mode for association RowIterators

    Hello all,
    In Jdev 3.2, I saw that a new "tuning" tab appeared in the view object wizard.
    In the corresponding help pages we can read the following "If As needed is specified and too many row sets are open (and left open because they are not navigated to the end), the user may run out of result sets and get a DMLException exception (You can set the jbo.max.cursors runtime parameter to a higher number, if needed.)"
    If I'm not mistaken, when 2 entities (e.g. dept, emp) are linked by a 1:n association, the entity on the 1 side of the 1:n association gets an accessor which returns a RowIterator.
    for instance, in DeptImpl, I'll have a getEmp() accessor which returns a RowIterator containing EmpImpl entities, right?
    So I'm just wondering what will be the fetch mode for this iterator.
    The part about "...left open because they are not navigated to the end..." worries me a bit.
    If these RowIterators use the "as needed mode",
    how can I be sure that they are properly closed when I'm finished using them?
    is there a RowIterator.close() method? (I haven't seen one)
    Should I just navigate till the end of the RowSet?
    I'm having quite a lot of Maximum open cursors exceeded exceptions on one of my programs, which makes extensive use of associations RowIterators, so I'm wondering if this could be the cause...
    Thanks in advance for any help.
    Remi

    Ravi,
    Great question. The iterators returned from association accessors use "Fetch as Needed" mode. So, if you are not exhausting the rows from an iterator (i.e. fetching all the rows) then the cursor will stay open.
    In the 3.2.3 maintenance release, there is a new close() method on oracle.jbo.RowIterator so that you can prematurely close the cursor if you want.
    In 3.2.2, unfortunately the only way to make sure the cursor gets closed is to fetch all the rows from the iterator.

  • How come full screen exclusive mode is so slow?

    Hi. I am currently working on customer facing point-of-sale application. This application has a lot of animation going on and so needs quite speedy graphics performance. When I first investigated this it looked like I could do it in pure Java 2D which would be a lot easier than resorting to DirectX or OpenGL and mixing languages.
    Unfortunately as the app has moved closer to functional complete the graphics performance appears to have deteriorated to the point where it is unusable. So I have gone back to the beginning and written a test program to identify the problem .
    The tests I have done indicate that full screen exclusive mode runs about ten times slower than windowed mode. Which is mind boggling. Normally - say in DirectX - you would expect a full screen exclusive version of a games/graphics app to run a little bit quicker than a windowed version since it doesn't have to mess around with clip regions and moving vram pointers.
    My test program creates a 32 bit image and blits it to the screen a variable number of times in both windowed and full screen mode. Edited results look like this:
    iter wndw fscrn performance
         10 16.0 298.0 1862% slower
         20 47.0 610.0 1297% slower
         30 94.0 923.0 981% slower
         40 141.0 1205.0 854% slower
         50 157.0 1486.0 946% slower
         60 204.0 1877.0 920% slower
         70 234.0 2127.0 908% slower
         80 266.0 2425.0 911% slower
         90 297.0 2722.0 916% slower
         100 344.0 3253.0 945% slower
    The results are substantially the same with the openGL hint turned on (although I don't have that option on the release hardware). I am assuming that the images end up as managed since they are created through BufferedImage and the system is running under 1.5.
    Is there a way to get the full screen version running as fast as the windowed version?
    Here's the test prog:
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    public class BlittingTest extends JFrame {
         BufferedImage     blankImage;
         BufferedImage     testImage;
         boolean               fullscreen;
         int                    frameNum;
         public BlittingTest( boolean fullscreen ) throws HeadlessException {
              super();
              // window setup. Escape to exit!
              addKeyListener ( new KeyAdapter() {
                   public void keyPressed( KeyEvent ke ) {
                        if (ke.getKeyCode() == KeyEvent.VK_ESCAPE ) {
                             System.exit(0);
              this.fullscreen=fullscreen;
              if ( fullscreen ) {
                   setUndecorated ( true );
              } else {
                   setTitle( "BlittingTest - <esc> to exit)");
                   setSize( 800, 600 );
              setVisible(true);
              setIgnoreRepaint(true);
              // strategy setup
              if ( fullscreen ) {
                   GraphicsDevice gdev =
                        GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
                   DisplayMode newDisplayMode = new DisplayMode (800, 600, 32,
                                                 DisplayMode.REFRESH_RATE_UNKNOWN);
                   DisplayMode oldDisplayMode = gdev.getDisplayMode();               
                   gdev.setFullScreenWindow(this);
                   gdev.setDisplayMode(newDisplayMode);
                   createBufferStrategy(2);
              // create assets
              testImage = new BufferedImage ( 50, 50, BufferedImage.TYPE_INT_ARGB );
              Graphics2D g = testImage.createGraphics();
              for ( int i = 0; i < 50; i ++ ) {
                   g.setColor( new Color ( 0, (50 - i) * 3, 0, i * 3 ));
                   g.drawLine( i, 0, i, 49 );
              g.dispose();
              blankImage = new BufferedImage ( 50, 50, BufferedImage.TYPE_INT_ARGB );
              g = blankImage.createGraphics();
              g.setColor ( Color.WHITE );
              g.fillRect( 0, 0, 50, 50 );
              g.dispose();
              frameNum = -1;
         public void init() {
              // blank both screen buffers
              for ( int i = 0; i < 2; i++ ) {
                   Graphics g2 = getBufferStrategy().getDrawGraphics();
                   g2.setColor ( Color.WHITE );
                   g2.fillRect( 0, 0, 800, 600 );
                   g2.dispose();
                   getBufferStrategy().show();
         public long testFrame ( int numBlits ) {
              int          x, y;
              long     timeIn, timeOut;
              frameNum++;
              Graphics g = getBufferStrategy().getDrawGraphics();
              g.drawImage( testImage, 0, 0, null );
              // blank previous draw
              if ( fullscreen ) {
                   if ( frameNum > 1 ) {
                        x = frameNum - 2;
                        y = frameNum - 2;
                        g.drawImage ( blankImage, x, y, null);
              } else {
                   if ( frameNum > 0 ) {
                        x = frameNum - 1;
                        y = frameNum - 1;
                        g.drawImage ( blankImage, x, y, null);                    
              x = (int) frameNum;
              y = (int) frameNum;
              timeIn = System.currentTimeMillis();
              for ( int i = 0; i < numBlits; i++ ) {
                   g.drawImage ( blankImage, x, y, null);
                   g.drawImage ( testImage, x, y, null);
              timeOut = System.currentTimeMillis();
              g.dispose();
              getBufferStrategy().show();
              return     timeOut - timeIn;
         public static void main(String[] args) {
              boolean error = false;
              BlittingTest window = null;
              double []     windowedTest = new double [101];
              double []     fullscreenTest = new double [101];
              window = new BlittingTest ( false );     
              window.init();
              for ( int f = 1; f <= 100; f++ ) {
                   windowedTest[f] = window.testFrame( f * 10 );
              window.setVisible(false);
              window.dispose();
              window = new BlittingTest ( true );     
              window.init();
              for ( int f = 1; f <= 100; f++ ) {
                   fullscreenTest[f] = window.testFrame( f * 10 );
              window.setVisible(false);
              window.dispose();
              for ( int f = 10; f <= 100; f++ ) {
                   System.out.println ( "\t" + f + "\t" + windowedTest[f] +
                             "\t" + fullscreenTest[f] +
                             "\t" + (int) ( (fullscreenTest[f]/windowedTest[f])*100.0) + "% slower");
    }

    Well I could do...
    The problem is that I am compositing multiple layers of alpha transparent images. If I just render straight to the screen I get nasty flicker where I see glimpses of the background before the top layer(s) get rendered. So I would have to render to an offscreen buffer and then blit the assembled image into the screen. Even then there will be some tearing as you can never sync to the screen refresh in windowed mode.
    And the thing is - there ought to be a 'proper' solution, g*dd*mm*t. Surely the core team didn't put together a solution that is ten times slower than it should be and then say 'What the heck, we'll release it anyway'.
    I mean, if you can't believe in Sun engineering what can you believe in?

  • 9.0.2 JAZN SSO doasprivileged-mode=true  does not work

    I've been trying to deploy an application to my "fresh" 9iR2 App Server that has been installed on Solaris 8 with all the patches 9.0.2. (I also have a second Solaris 8 machine with the 9iR2 Infrastructure installed, also patched up to the latest rev of 9.0.2). I'm deploying my EAR file with the Enterprise Manager deployment tool, and it works great (except for the following problem). I want to make my servlets run in "doasprivileged-mode" as described in
    http://otn.oracle.com/tech/java/oc4j/doc_library/902/servicesjun02/jaas_j2a.htm
    I believe I have everything setup correctly, but when I try (in my servlet) to try to access JAAS like this:
    AccessControlContext acc = AccessController.getContext()
    OR, do this:
    AccessController.checkPermission(new FilePermission("/tmp/test.txt", "read"));
    I get the following exception in my browser and then another exception in the opmn log. I believe the root cause is this: "The system is unable to retreive the specified role(s)." But I have no idea what role it's talking about... When I run the JAZN shell commands and look around in the "llnl" realm, I see the AUTHENTICATED_USERS group and the user I'm logging into SSO as, is a member of this group.
    Thanks for any info/help on this matter. Also, if someone has a working example that shows the use of the doasprivliged-mode="true" that would really help. The callerInfo and ssoInfo examples don't seem to address this additional use of the JAAS environment (past asking the HttpServletRequest for the Principal object)
    --Leif
    java.security.PrivilegedActionException: javax.servlet.ServletException: A JAZN internal error has occurred.
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:256)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:558)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Root cause is; java.lang.IllegalStateException: A JAZN internal error has occurred.
         at oracle.security.jazn.spi.ldap.LDAPGranteeEntry.checkValidity(LDAPGranteeEntry.java:286)
         at oracle.security.jazn.spi.ldap.LDAPGranteeEntry.getGranteeEntry(LDAPGranteeEntry.java:297)
         at oracle.security.jazn.spi.ldap.LDAPLocalPolicy.getGrantees(LDAPLocalPolicy.java:316)
         at oracle.security.jazn.spi.ldap.LDAPLocalPolicy.getGranteeEntries(LDAPLocalPolicy.java:264)
         at oracle.security.jazn.spi.ldap.LDAPLocalPolicy.getPermissions(LDAPLocalPolicy.java:1029)
         at oracle.security.jazn.spi.ldap.LDAPJAZNPolicy.getPermissions(LDAPJAZNPolicy.java:649)
         at oracle.security.jazn.spi.ldap.LDAPJAZNPolicy.getPermissions(LDAPJAZNPolicy.java:680)
         at oracle.security.jazn.spi.PolicyProvider.getPermissions(PolicyProvider.java:218)
         at javax.security.auth.SubjectDomainCombiner$3.run(SubjectDomainCombiner.java:253)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.SubjectDomainCombiner.combine(SubjectDomainCombiner.java:249)
         at java.security.AccessControlContext.goCombiner(AccessControlContext.java:516)
         at java.security.AccessControlContext.combineWithPrivilegedContext(AccessControlContext.java:305)
         at java.security.AccessControlContext.optimize(AccessControlContext.java:404)
         at java.security.AccessController.checkPermission(AccessController.java:398)
         at gov.llnl.ais.test.TestServlet.doPost(TestServlet.java:59)
         at gov.llnl.ais.test.TestServlet.doGet(TestServlet.java:44)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:252)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:558)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    I also get this exception in $ORACLE_HOME/opmn/logs/home.default_island.1
    java.lang.reflect.InvocationTargetException: oracle.security.jazn.JAZNException: The system is unable to retreive the specified role(s).
         at oracle.security.jazn.spi.ldap.LDAPRealmRole.<init>(LDAPRealmRole.java:91)
         at java.lang.reflect.Constructor.newInstance(Native Method)
         at oracle.security.jazn.spi.ldap.LDAPGranteeEntry.init(LDAPGranteeEntry.java:218)
         at oracle.security.jazn.spi.ldap.LDAPGranteeEntry.<init>(LDAPGranteeEntry.java:121)
         at oracle.security.jazn.spi.ldap.LDAPGranteeEntry.<init>(LDAPGranteeEntry.java:116)
         at oracle.security.jazn.spi.ldap.LDAPLocalPolicy.getGrantees(LDAPLocalPolicy.java:315)
         at oracle.security.jazn.spi.ldap.LDAPLocalPolicy.getGranteeEntries(LDAPLocalPolicy.java:264)
         at oracle.security.jazn.spi.ldap.LDAPLocalPolicy.getPermissions(LDAPLocalPolicy.java:1029)
         at oracle.security.jazn.spi.ldap.LDAPJAZNPolicy.getPermissions(LDAPJAZNPolicy.java:649)
         at oracle.security.jazn.spi.ldap.LDAPJAZNPolicy.getPermissions(LDAPJAZNPolicy.java:680)
         at oracle.security.jazn.spi.PolicyProvider.getPermissions(PolicyProvider.java:218)
         at javax.security.auth.SubjectDomainCombiner$3.run(SubjectDomainCombiner.java:253)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.SubjectDomainCombiner.combine(SubjectDomainCombiner.java:249)
         at java.security.AccessControlContext.goCombiner(AccessControlContext.java:516)
         at java.security.AccessControlContext.combineWithPrivilegedContext(AccessControlContext.java:305)
         at java.security.AccessControlContext.optimize(AccessControlContext.java:404)
         at java.security.AccessController.checkPermission(AccessController.java:398)
         at gov.llnl.ais.test.TestServlet.doPost(TestServlet.java:59)
         at gov.llnl.ais.test.TestServlet.doGet(TestServlet.java:44)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:252)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:558)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:269)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Here are my XML files:
    === application.xml start ===
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
    <application>
         <display-name>TestMe</display-name>
         <module>
              <web>
                   <web-uri>test.war</web-uri>
                   <context-root>/testme</context-root>
              </web>
         </module>
         <security-role>
              <role-name>users</role-name>
         </security-role>
    </application>
    === application.xml end ===
    === orion-application.xml start ===
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application.dtd">
    <orion-application>
         <web-module id="test" path="test.war"/>
         <security-role-mapping name="users">
              <group name="llnl/AUTHENTICATED_USERS"/>
         </security-role-mapping>
         <persistence path="persistence"/>
         <log>
              <file path="application.log"/>
         </log>
         <!-- use JAZN-XML by default
         <jazn provider="XML" location="./jazn-data.xml"/> -->
         <!-- use JAZN-LDAP instead -->
         <jazn provider="LDAP" default-realm="llnl" location="my-ldap-server-is-here"/>
         <namespace-access>
              <read-access>
                   <namespace-resource root="">
                        <security-role-mapping impliesAll="true" name="&lt;jndi-user-role&gt;">
                             <group name="administrators"/>
                        </security-role-mapping>
                   </namespace-resource>
              </read-access>
              <write-access>
                   <namespace-resource root="">
                        <security-role-mapping impliesAll="true" name="&lt;jndi-user-role&gt;">
                             <group name="administrators"/>
                        </security-role-mapping>
                   </namespace-resource>
              </write-access>
         </namespace-access>
    </orion-application>
    === orion-application.xml end ===
    === orion-web.xml start ===
    <?xml version="1.0"?>
    <!DOCTYPE orion-web-app PUBLIC "-//Evermind//DTD Orion Web Application 2.3//EN" "http://xmlns.oracle.com/ias/dtds/orion-web.dtd">
    <orion-web-app>
         <jazn-web-app auth-method="SSO" runas-mode="true" doasprivileged-mode="true"/>
    </orion-web-app>
    === orion-web.xml end -===
    === web.xml start ===
    <?xml version="1.0"?>
    <!DOCTYPE web-app SYSTEM "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <servlet>
              <servlet-name>TestServlet</servlet-name>
              <servlet-class>gov.llnl.ais.test.TestServlet</servlet-class>
              <security-role-ref>
                   <role-name>users</role-name>
                   <role-link>users</role-link>
              </security-role-ref>
              <!--          <run-as>
              <role-name>users</role-name>
              </run-as> -->
         </servlet>
         <servlet-mapping>
              <servlet-name>TestServlet</servlet-name>
              <url-pattern>/test</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
         <error-page>
              <error-code>404</error-code>
              <location>/error.jsp</location>
         </error-page>
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>authenticated</web-resource-name>
                   <url-pattern>/test</url-pattern>
              </web-resource-collection>
              <auth-constraint>
                   <role-name>users</role-name>
              </auth-constraint>
         </security-constraint>
         <login-config>
              <auth-method>BASIC</auth-method>
         </login-config>
         <security-role>
              <role-name>users</role-name>
         </security-role>
    </web-app>
    === web.xml end ===
    === TestServlet.java start ===
    package gov.llnl.ais.test;
    import java.io.FilePermission;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.security.auth.Subject;
    import javax.security.auth.SubjectDomainCombiner;
    import javax.security.auth.login.LoginContext;
    import javax.security.auth.login.LoginException;
    import javax.servlet.http.HttpServlet;
    import java.security.AccessControlContext;
    import java.security.AccessController;
    import java.security.DomainCombiner;
    import java.security.Principal;
    import java.util.Iterator;
    import java.util.Set;
    import oracle.security.jazn.oc4j.JAZNUserAdaptor;
    public class TestServlet extends HttpServlet {
         * Constructor for TestServlet.
         public TestServlet() {
              super();
         * @param request
         * @param response
         public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException {
              doPost(request, response);
         public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException {
              PrintWriter pw = response.getWriter();
              pw.println("<html><head><title>Hi</title><body>Hi there dude<br>You are:");
              pw.println(request.getRemoteUser());
              Principal p = request.getUserPrincipal();
              if (p instanceof JAZNUserAdaptor) {
                   JAZNUserAdaptor jaznuser = (JAZNUserAdaptor) p;
                   pw.println("<br>SSO user DN [RealmPrincipal.getFullName] = " + jaznuser.getFullName() + "<br>");
                   pw.println("Subscriber name [Realm.getName] = " + jaznuser.getRealm().getName() + "<br>");
                   pw.println("Subscriber DN [Realm.getFullName] = " + jaznuser.getRealm().getFullName() + "<p>");
              AccessController.checkPermission(new FilePermission("/tmp/test.txt", "read"));
              Subject subject = null;
              AccessControlContext acc = AccessController.getContext();
              subject = Subject.getSubject(acc);
              if (subject == null) {
                   pw.println("Subject via AccessControlContext is null.<br>");
                   DomainCombiner dc = acc.getDomainCombiner();
                   if (dc instanceof SubjectDomainCombiner) {
                        subject = ((SubjectDomainCombiner) dc).getSubject();
              if (subject == null) {
                   pw.println("Subject via DomainCombiner is null.<br>");
              if (subject != null) {
                   Set principals = subject.getPrincipals();
                   Iterator principalsIterator = principals.iterator();
                   while (principalsIterator.hasNext()) {
                        Principal principal = (Principal) principalsIterator.next();
                        pw.println("Principal: " + principal.toString() + "<br>");
              pw.println("</body></html>");
    === TestServlet.java end ===

    More info...
    When I go into the JAZN tool via:
    java -jar jazn.jar -shell
    Then do this:
    JAZN:> cd realms/llnl/roles/AUTHENTICATED_USERS
    JAZN:llnl> ls permissions
    java.lang.reflect.InvocationTargetException: oracle.security.jazn.JAZNException: The system is unable to retreive the specified role(s).
    at oracle.security.jazn.spi.ldap.LDAPRealmRole.<init>(LDAPRealmRole.java:91)
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at oracle.security.jazn.spi.ldap.LDAPGranteeEntry.init(LDAPGranteeEntry.java:218)
    at oracle.security.jazn.spi.ldap.LDAPGranteeEntry.<init>(LDAPGranteeEntry.java:121)
    at oracle.security.jazn.spi.ldap.LDAPGranteeEntry.<init>(LDAPGranteeEntry.java:116)
    at oracle.security.jazn.spi.ldap.LDAPLocalPolicy.getGrantees(LDAPLocalPolicy.java:315)
    at oracle.security.jazn.spi.ldap.LDAPLocalPolicy.getGranteeEntries(LDAPLocalPolicy.java:264)
    at oracle.security.jazn.spi.ldap.LDAPLocalPolicy.getPermissions(LDAPLocalPolicy.java:1029)
    at oracle.security.jazn.spi.ldap.LDAPJAZNPolicy.getPermissions(LDAPJAZNPolicy.java:649)
    at oracle.security.jazn.spi.ldap.LDAPJAZNPolicy.getPermissions(LDAPJAZNPolicy.java:680)
    at oracle.security.jazn.tools.Admintool.listRolePerms(Admintool.java:1140)
    at oracle.security.jazn.tools.Admintool.processArgs(Admintool.java:404)
    at oracle.security.jazn.tools.Admintool.lsCommand(Admintool.java:2782)
    at oracle.security.jazn.tools.Admintool.shell(Admintool.java:2399)
    at oracle.security.jazn.tools.Admintool.processArgs(Admintool.java:230)
    at oracle.security.jazn.tools.Admintool.main(Admintool.java:123)
    A JAZN internal error has occurred.
    What could be causing this problem? It seems to be the same error that I'm getting in the OPMN log.
    Thanks!
    --Leif

  • Cant connect to OSX server over network in recovery mode

    Hi guys.
    First of all, thanks for any help you can give me.
    I am running osx server on a mavericks mac mini on a home network.  Attached to it I have a 1tb hard drive to which all the macs in my house use time machine to back up over my network and they are stored there.
    I have just formatted one of my macs and want to restore it from these time machine backups that are on the osx server on my network.
    When i enter recovery mode from boot (COMMAND R), it can see the "backups" on networks "Matts-Mac-Mini" but when i then click "CONNECT" it says "Enter your name and password for the server "Matts-Mac-Mini/local" so that Time Machine can access it.
    It gives me a box with NAME and PASSWORD and a CONNECT button.
    By DEFAULT the "NAME" it starts with is "root".......which I dont understand.
    I have tried every single iteration of names and passwords I can think of but it still wont connect, it either shakes the box or gives an error saying "There was a problem connecting to the server "Matts-Mac-mini.local".  Check the server name of IP address and then try again".
    I have tried the log in details for the osx server, the login details for the mac im trying to connect from, used root as the username, tried capitals, no capitals, spaces no spaces etc.  I am at a total loss and about to tear my hair out!!
    Is there anyone able to give me any help with this please, I would be SO grateful!
    Many thanks,
    hardtofin

    I think I have isolated the password, with a certain username and password the box never shakes and instead gives the error: "There was a problem connecting to the server "Matts-Mac-mini.local".  Check the server name of IP address and then try again".
    Are you able to offer any help with this?  I dont see why i can't connect to it, if the imac can already see it?
    Many thanks again,
    hardtofin

  • Problem with rotation and landscape mode in iOS 8

    From start of iOS 8 I have got problem with rotation in my iPhone 5S 32GB as well as in my iPad mini retina 32GB. Automatical rotation to landscape mode is not working correctly. For example if you take the phone or tablet to landscape mode in base display and tap to Safari, Mail, Messages, the app will start but stay in normal mode, not landscape. Then you have to back the phone to normal portrait mode and back to landscape and only then the phone do the landscape mode. I have never seen this problem in iOS 7 or older.
    Could you help me anyone with this problem? Or is the problem generally in iOS 8.
    Thanks a lot
    Jakub

    Brian, thanks, but it's not a rotation lock issue - at least not relating to the rotation lock setting. It's just a general use setting. Right now i have my iPhone propped in landscape mode. If I now hit the home button, essentially returning to a portrait setting though my phone is still positioned in landscape, then open any other app that supports landscape, that app WILL NOT orient itself to landscape mode. It will stay in portrait mode. The phone has to be physically oriented to portrait, then back to landscape for the app to register landscape mode properly. This is a glitch, and not a rotation lock issue. it ought to be noted that this was not an issue in iOS 7 or any previous iteration.

  • Why doesn't my built in display re-initialize after resuming from sleep mode?

    Hi,
    I have a MacBook Pro (2.53 GHz Intel Core 2 Duo, 4 GB RAM) which I purchased a few years ago.  I always have a secondary display monitor plugged in.
    When I bought this system, it came with Snow Leopard and I recently upgraded to Lion.  That's when this issue began:
    If I physically fold the screen down and put the MacBook to sleep mode that way, often times when I resume my secondary display will return but my primary built in display will not - it just remains black.  In some cases this creates a serious problem because my menu bar / dock are still on the main display and so I have no dock.
    I notice the problem has not occurred if I put the unit to sleep using the Sleep command... but sometimes I forget.
    I am wondering if anyone else is having this type of issue, and if there is a way to solve the issue?  Is it possible this is a bug?
    Thanks,
    Steve

    etresoft wrote:
    It is definitely not a Leopard bug because it has been happening on every portable Mac I've ever had.
    I don't agree. I had no problems at all with my MacBook Pro running Tiger. I initially did an upgrade from Tiger to Leopard and when the problems started I assumed it was a problem with the upgrade. I then completely erased and did a clean install of Leopard. The problem has actually gotten worse since I did the clean re-install.
    etresoft wrote:
    Just close the screen, wait for it to go back to sleep, then open it again. It will probably be fine.
    As I mentioned in my opening post, I've gone through that song and dance more times than I can count. I've closed it, waited for as much as an hour, opened it back up...same problem. I've hard powered it down, closed it, disconnected the AC adapter, removed the battery, opened it, held down the power button for 15 seconds, re-installed the battery, reconnected the AC adapter, pushed the power button, and the display will still be dark. It's sometimes taken as many as 5 or 6 iterations of that process before it will finally reset whatever problem it was having and boot normally with a functioning display.

Maybe you are looking for

  • Remote Update Manager does not exit

    I'm trying to use Remote Update Manager to update PCs in our domain, but RemoteUpdateManager.exe does not exit, it just hangs. The log looks like this 11/04/14 15:19:27:374 | [INFO] |  | AAMEE | Utilities | RemoteUpdateManager |  |  | 2164 | ########

  • I have just bought a 5D Mark III and have a questions on sports settings.

    I am shooting at my sons rugby game and sports day in the coming weeks and would like to make sure my camera is set up correctly. I am using a 70-200 mm lens 2.8 with 2x converter, ( so goes to 5.6 when using).  - I am shooting Al Servo - evaluative

  • Nokia 701 - Belle FP2 - No "other" type for email ...

    After upgrading to Belle FP2 I can only set Exchange ActiveSync accounts, and only one at a time. The "other" option to set other types of email is no longer available. ¿How can I configure IMAP/POP3 accounts? Thanks, Javier

  • "Delete data and restore" option in Nokia N8

    I want to restore my N8 to fresh state as I have installed and uninstalled too many apps and they all have created and left a lot of files on C drive even after uninstalling them. They have ocupied some space on C drive. I am going for "Delete data a

  • I wish to modify the name of one of the field name in the sales order.

    HELLO GURRRUS,              i wish to modify teh name of one of the field name in the sales ordder. what is the procdure,path and steps involved in that.it would be of great help of me if u take some  time and suggest me. bye take care hav a happy an