Enumeration/iteration definitions

Could someone explain to me the difference between enumeration and iteration? Do either of them do anything special to the contents of a vector?
I have a vector that contains something like [6, +, 9, *, 15, +, 10]. What I need to do is turn this into an equation and calculate it. i.e. x=6+9*15+10;
Can this be accomplished by the use of an interator or enumerator? Or am I way off base? Another solution I thought of is to use toString() for the Vector, and then convert the numeric Strings into integers, but have no idea what to do with the operators as I do not believe Java considers them Strings.

Thanks for letting me know the difference, it wasn't really clear in the book I have.
The solution you suggested is what I feared. I was hoping Java had some way to recognize the String version of +-*/ as operators. It seems strange to me to have to write a parser to tell it what to do when it sees +-*/ and to tell it the order to evaluate them in. Silly to have to redefine what is already built into Java.
Probably looks like I shouldn't waste my time putting these items into a Vector, they start out in a String format with some additional characters and I have used a StringTokenizer to eliminate the extra chars and put the tokens and delimiters into a Vector. Guess that is overkill, although I thought it would make it easier. Looks like I should call some sort of parsing method while tokenizing or something.

Similar Messages

  • How could i set the RangeSize of an UI iterator programatically ?

    I have a use case to vary the RangeSize of an UI iterator programatically (the value is obtained from a user input). I found that the RangeSize parameter in the <iterator> definition does not accept EL expressions. I tried to set this RangeSize through a method call in the task flow before this UI view is invoked and bound the method to this UI view's pageDef and removed the RangeSize while defining the iterator.
    <iterator Binds="Employee"
                  DataControl="EmployeeAMDataControl"
                  id="EmployeeIterator"/>
    Java Code to set the RangeSize: // accepts the iterator name as a string input
        DCBindingContainer bindings = (DCBindingContainer) this.getBindings();
        DCIteratorBinding objectIterator = bindings.findIteratorBinding(iterator);
        objectIterator.setRangeSize(_getRangeSize()); // _getRangeSize() returns an int
       public BindingContainer getBindings()
           FacesContext fc = FacesContext.getCurrentInstance();
           return (BindingContainer) fc.getApplication().evaluateExpressionGet(fc, "#{bindings}", BindingContainer.class);
    This setting is ignored and the iterator always to return 25 records. Any suggestions on how i could achieve this use case ?
    thanks
    kaarthik

    Hi karthik,
    Try setting the same using the viewobject in the code.
        DCBindingContainer bindings = (DCBindingContainer) this.getBindings(); 
        DCIteratorBinding objectIterator = bindings.findIteratorBinding(iterator);
        objectIterator.getViewObject().setRangeSize(_getRangeSize());
    Thanks,
    Raj Gopal K

  • [BUG] PageDef editor changes iterator DataControl attrib with invalid value

    This happens with nested application modules only. Whenever we are declaring iterators based on a nested AM ViewObject and place the cursor on or edit the <iterator /> definition in the page definition, JDeveloper replaces the "DataControl" attribute with value "Root".
    For example, the working <iterator /> definition is :
        <iterator Binds="Root.ConfigurerSiteCoursService1.SiteCoursView1" 
                  DataControl="SiteCoursServiceDataControl"
                  RangeSize="25"
                  id="SiteCoursView1Iterator"/>and JDeveloper changes this for :
        <iterator Binds="Root.ConfigurerSiteCoursService1.SiteCoursView1" 
                  DataControl="Root"
                  RangeSize="25"
                  id="SiteCoursView1Iterator"/>This is really annoying and the only work around is to edit the file in an external text editor.
    Thanx!
    Olivier

    Thanks Olivier,
    good catch. I'll file a bug
    Frank

  • Anyone running GnuJSP with SQLJ?

    I think this combination would be super best for programming
    I am running .jsp files fine, also sqlj from command line works.
    1. JSP compiler is set:
    servlet.gnujsp.initArgs=compiler=/u01/home/oracle/sqlj/bin/sqlj
    -C-classpath %classpath%:%repository% -d %repository%
    -C-deprecation %source%
    but I need to copy .java to .jsp to compile it properly.
    By using "cp" and "sqlj" I have complied it sucessfully.
    2. File path set for finding connect.properties in creating
    default context
    Oracle.connect(getClass(), "/u01/app/connect.properties");
    is not working, so I am doing:
    Oracle.connect("jdbc:oracle:oci8:@", "name", "passwd", true);
    3. Real problem. Seems that my simple program cannot find ser
    classes. I'll get:
    Error running the example: java.sql.SQLException: profile
    jsp.u01._adela._snoop2_2ejsp_SJProfile0 not found:
    Anyone?
    Source of jsp page:
    <HTML>
    <HEAD>
    <TITLE>JSP snoop page</TITLE>
    <%@
    import="javax.servlet.http.HttpUtils,java.util.Enumeration,java.s
    ql.SQLException,oracle.sqlj.runtime.Oracle" %>
    </HEAD>
    <BODY>
    <SCRIPT runat=server>
    #sql iterator MyIter (String ITEM_NAME);
    </SCRIPT>
    <H1>JSP Snoop page</H1>
    <%
    try {
    /* if you're using a non-Oracle JDBC Driver, add a call
    here to
    DriverManager.registerDriver() to register your Driver
    // set the default connection to the URL, user, and
    password
    // specified in your connect.properties file
    //Oracle.connect(getClass(),
    "//u01/app/connect.properties");
    Oracle.connect("jdbc:oracle:oci8:@", "name", "passwd",
    true); //false
    //Issue SQL command to clear the SALES table
    #sql { DELETE FROM SALES };
    #sql { INSERT INTO SALES(ITEM_NAME) VALUES ('Hello, SQLJ!')};
    MyIter iter;
    #sql iter = { SELECT ITEM_NAME FROM SALES };
    while (iter.next()) {
    out.println(iter.ITEM_NAME());
    } catch (SQLException e) {
    out.println("Error running the example: " + e);
    e.printStackTrace(out);
    %>
    </BODY>
    </HTML>
    null

    The reason for that is GnuJSP in Apache is based on some runtime.
    which causes some problem.
    If you try the same steps (cp, sqlj) under the SUN web server 1.2
    using JSP 0.92 implementation, you could be able to embedded
    #sql in JSP. But make sure that any iterator definition should be
    at the beginning of the program due to the limitation of sqlj
    (iterator definition could not be defined inside sqlj method).
    Hope this helps,
    Happy hacking,
    Mr. SQLJ
    Martin (guest) wrote:
    : I think this combination would be super best for programming
    : I am running .jsp files fine, also sqlj from command line
    works.
    : 1. JSP compiler is set:
    servlet.gnujsp.initArgs=compiler=/u01/home/oracle/sqlj/bin/sqlj
    : -C-classpath %classpath%:%repository% -d %repository%
    : -C-deprecation %source%
    : but I need to copy .java to .jsp to compile it properly.
    : By using "cp" and "sqlj" I have complied it sucessfully.
    : 2. File path set for finding connect.properties in creating
    : default context
    : Oracle.connect(getClass(), "/u01/app/connect.properties");
    : is not working, so I am doing:
    : Oracle.connect("jdbc:oracle:oci8:@", "name", "passwd", true);
    : 3. Real problem. Seems that my simple program cannot find ser
    : classes. I'll get:
    : Error running the example: java.sql.SQLException: profile
    : jsp.u01._adela._snoop2_2ejsp_SJProfile0 not found:
    : Anyone?
    : Source of jsp page:
    : <HTML>
    : <HEAD>
    : <TITLE>JSP snoop page</TITLE>
    : <%@
    import="javax.servlet.http.HttpUtils,java.util.Enumeration,java.s
    : ql.SQLException,oracle.sqlj.runtime.Oracle" %>
    : </HEAD>
    : <BODY>
    : <SCRIPT runat=server>
    : #sql iterator MyIter (String ITEM_NAME);
    : </SCRIPT>
    : <H1>JSP Snoop page</H1>
    : <%
    : try {
    : /* if you're using a non-Oracle JDBC Driver, add a call
    : here to
    : DriverManager.registerDriver() to register your Driver
    : // set the default connection to the URL, user, and
    : password
    : // specified in your connect.properties file
    : //Oracle.connect(getClass(),
    : "//u01/app/connect.properties");
    : Oracle.connect("jdbc:oracle:oci8:@", "name", "passwd",
    : true); //false
    : //Issue SQL command to clear the SALES table
    : #sql { DELETE FROM SALES };
    : #sql { INSERT INTO SALES(ITEM_NAME) VALUES ('Hello,
    SQLJ!')};
    : MyIter iter;
    : #sql iter = { SELECT ITEM_NAME FROM SALES };
    : while (iter.next()) {
    : out.println(iter.ITEM_NAME());
    : } catch (SQLException e) {
    : out.println("Error running the example: " + e);
    : e.printStackTrace(out);
    : %>
    : </BODY>
    : </HTML>
    null

  • Thread unserialized exception: NotSerializableException: java.lang.Thread

    hello experts,
    i have this exception coming; seems to be coming from some thread but i removed all the threads from my code, i thought its because of some object which is still unserialized, i am not sure whether this is because of one unserialized object or its because of more reasons, please have a look:
    Exception in client main: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.lang.Thread
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.lang.Thread
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173)
         at BallServerImpl_Stub.getAllBallProxies(Unknown Source)
         at CopyOfManyMovingBalls.<init>(CopyOfManyMovingBalls.java:80)
         at CopyOfManyMovingBalls$2.run(CopyOfManyMovingBalls.java:294)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.lang.Thread
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)
         ... 11 more
    this is coming  when i m accessing this method:
    class BallServerImpl extends UnicastRemoteObject
    implements BallServer
    * @return an enumeration of all Balls as proxy objects
    public Ball[] getAllBallProxies() throws java.rmi.RemoteException
         Ball[] locations1 = new Ball[hash.size()];
    java.util.Enumeration iter = hash.elements();
    int idx = 0;
    while (iter.hasMoreElements())
         BallImpl impl = (BallImpl)iter.nextElement();
    locations1[idx++] = new BallProxy(impl);
    return locations1;
    why this function is running fine when i m calling this from client unlike getAllBallProxies() nevertheless both are returning the same thing:
    * @return an enumeration of all Balls as remote references
    public Ball[] getAllBalls()
         Ball[] locations = new Ball[hash.size()];
    java.util.Enumeration iter = hash.elements();
    int idx = 0;
    while (iter.hasMoreElements())
    locations[idx++] = (Ball)iter.nextElement();
    return locations;
    the proxy Class:
    * The Proxybouncing ball.
    public class BallProxy implements Serializable,Ball {
    * The Real bouncing ball.
    public class BallImpl extends UnicastRemoteObject implements IBallRemote,Serializable
    *load of thanks as this is "SHOW STOPPER",
    jibbylala*
    Edited by: 805185 on Oct 25, 2010 8:33 PM
    Edited by: 805185 on Oct 25, 2010 8:39 PM
    Edited by: 805185 on Oct 25, 2010 9:21 PM
    Edited by: 805185 on Oct 25, 2010 9:25 PM
    Edited by: 805185 on Oct 25, 2010 9:27 PM
    Edited by: 805185 on Oct 25, 2010 9:46 PM

    that there was some thread there in BallProxy but i removed all from them and now testingIf you don't post the code people ask to see, you may never get a useful answer here.
    P.S i didn't know that threads are not SerializedThe Thread class is not Serializable. Precision please.
    Now i m updating the code, i needed the confirmationConfirmation of what?
    and now trying to avoid them.Them?
    But what if i need them.Them?
    Please make the effort to express yourself clearly. You've already been told you're not making much sense and you haven't done anything about it.
    how can we make serialized?The concept of serializing a Thread makes no sense whatsoever. You don't want to do it. You don't need to do it. You can't do it. It wouldn't work if you could do it.
    Somewhere or other you have a class member that is a reference to a Thread. Remove it or make it transient. If you post the code somebody may help you. If you don't, nobody can possibly do that.

  • Downgrade C55-A5190 from 8.1 to 7

    I am trying to downgrade a new laptop that came with Windows 8.1 to Windows 7. I can get it to boot the 7 installation, but get a message that a driver is missing. I have gone through the hardware an gotten most of the drivers from various places, most from the vendor themselves. One of the few drivers I cant find is the ACPI x64-based PC driver. If I can get the installation finished, then I can get all of the rest of the drivers with out much issue.
    Here is a listing I got for hardware from a test install:
    Computer Info
        Chipset: <unknown>
        OS: Windows 8.1 Pro  (Full or Upgrade Retail)
    Device Tree
        AudioEndpoint
            Microphone (2- High Definition Audio Device)
            Microphone (Realtek High Definition Audio)
            Speakers (2- High Definition Audio Device)
            Speakers (Realtek High Definition Audio)
        Battery
            Microsoft AC Adapter
            Microsoft ACPI-Compliant Control Method Battery
        Bluetooth
            Microsoft Bluetooth Enumerator
            Microsoft Bluetooth LE Enumerator
            Qualcomm Atheros AR3012 Bluetooth 3.0
                 Toshiba
        CDROM
            TSSTcorp CDDVDW SU-208FB
        Computer
            ACPI x64-based PC
        DiskDrive
            TOSHIBA MQ01ABF050
        Display
            Microsoft Basic Display Adapter
                 Intel Corporation ValleyView Gen7
                 Toshiba America Info Systems
        hdc
            Intel(R) Pentium(R) processor N- and J-series / Intel(R) Celeron(R) processor N- and J-series AHCI - 0F23
                 Intel Corporation ValleyView 6-Port SATA AHCI Controller
                 Toshiba America Info Systems
        HIDClass
            HID-compliant consumer control device
            HID-compliant consumer control device
            HID-compliant consumer control device
                 Logitech Unifying Receiver
            HID-compliant consumer control device
                 Logitech Unifying Receiver
            HID-compliant system controller
                 Logitech Unifying Receiver
            HID-compliant system controller
                 Logitech Unifying Receiver
            HID-compliant vendor-defined device
                 Logitech Unifying Receiver
            HID-compliant vendor-defined device
                 Logitech Unifying Receiver
            HID-compliant vendor-defined device
                 Logitech Unifying Receiver
            HID-compliant vendor-defined device
                 Logitech Unifying Receiver
            HID-compliant vendor-defined device
                 Logitech Unifying Receiver
            HID-compliant vendor-defined device
                 Logitech Unifying Receiver
            HID-compliant vendor-defined device
                 Logitech Unifying Receiver
            HID-compliant vendor-defined device
                 Logitech Unifying Receiver
            HID-compliant wireless radio controls
            Toshiba Hotkey Driver
            USB Input Device
                 Logitech Unifying Receiver
            USB Input Device
                 Logitech Unifying Receiver
            USB Input Device
                 Logitech Unifying Receiver
            USB Input Device
                 Logitech Unifying Receiver
            USB Input Device (Logitech Download Assistant)
                 Logitech Unifying Receiver
            USB Input Device (Logitech Download Assistant)
                 Logitech Unifying Receiver
        Image
            TOSHIBA Web Camera - HD
                 Importek
        Keyboard
            HID Keyboard Device
                 Logitech Unifying Receiver
            HID Keyboard Device
                 Logitech Unifying Receiver
            Standard PS/2 Keyboard
        MEDIA
            High Definition Audio Device
                 Intel Corporation
            Microsoft Streaming Clock Proxy
            Microsoft Streaming Quality Manager Proxy
            Microsoft Streaming Service Proxy
            Microsoft Streaming Tee/Sink-to-Sink Converter
            Microsoft Streaming Tee/Sink-to-Sink Converter
            Microsoft Trusted Audio Drivers
            Realtek High Definition Audio
                 Realtek Semiconductor Co., Ltd. Realtek ALC269 High Definition Audio (82801G)
        Monitor
            Generic PnP Monitor
            Generic PnP Monitor
        Mouse
            HID-compliant mouse
                 Logitech Unifying Receiver
            HID-compliant mouse
                 Logitech Unifying Receiver
            Synaptics PS/2 Port TouchPad
        Net
            Bluetooth Device (Personal Area Network)
            Bluetooth Device (RFCOMM Protocol TDI)
            Microsoft ISATAP Adapter
            Microsoft ISATAP Adapter #2
            Microsoft Kernel Debug Network Adapter
            Microsoft Wi-Fi Direct Virtual Adapter
            Qualcomm Atheros AR956x Wireless Network Adapter
                 Atheros Communications Inc. AR9565 Wireless Network Adapter
                 Lite-On Communications Inc
            Realtek PCIe FE Family Controller
                 Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller
                 Toshiba America Info Systems
            Teredo Tunneling Pseudo-Interface
        PrintQueue
            Fax
            Microsoft XPS Document Writer
            Root Print Queue
        Processor
            Intel(R) Celeron(R) CPU  N2820  @ 2.13GHz
            Intel(R) Celeron(R) CPU  N2820  @ 2.13GHz
        SCSIAdapter
            Microsoft Storage Spaces Controller
        SoftwareDevice
            @System32\iphlpsvc.dll,-504;Microsoft IPv4 IPv6 Transition Adapter Bus
            Microsoft Device Association Root Enumerator
        System
            ACPI Fan
            ACPI Fixed Feature Button
            ACPI Lid
            ACPI Power Button
            ACPI Thermal Zone
            Bluetooth ACPI
            Composite Bus Enumerator
            High Definition Audio Controller
                 Intel Corporation ValleyView High Definition Audio Controller
                 Toshiba America Info Systems
            High precision event timer
            Intel(R) 82802 Firmware Hub Device
            Intel(R) Pentium(R) processor N- and J-series / Intel(R) Celeron(R) processor N- and J-series PCI Express - Root Port 1 - 0F48
                 Intel Corporation ValleyView PCI Express Root Port
                 Toshiba America Info Systems
            Intel(R) Pentium(R) processor N- and J-series / Intel(R) Celeron(R) processor N- and J-series PCI Express - Root Port 2 - 0F4A
                 Intel Corporation ValleyView PCI Express Root Port
                 Toshiba America Info Systems
            Intel(R) Pentium(R) processor N- and J-series / Intel(R) Celeron(R) processor N- and J-series PCI Express - Root Port 3 - 0F4C
                 Intel Corporation ValleyView PCI Express Root Port
                 Toshiba America Info Systems
            Intel(R) Pentium(R) processor N- and J-series / Intel(R) Celeron(R) processor N- and J-series PCI Express - Root Port 4 - 0F4E
                 Intel Corporation ValleyView PCI Express Root Port
                 Toshiba America Info Systems
            Intel(R) Pentium(R) processor N- and J-series / Intel(R) Celeron(R) processor N- and J-series Platform Control Unit - LPC: Bridge to Intel Legacy Block - 0F1C
                 Intel Corporation ValleyView Power Control Unit
                 Toshiba America Info Systems
            Intel(R) Pentium(R) processor N- and J-series / Intel(R) Celeron(R) processor N- and J-series Platform Control Unit - SMBus Port - 0F12
                 Intel Corporation ValleyView SMBus Controller
                 Toshiba America Info Systems
            Intel(R) Pentium(R) processor N- and J-series / Intel(R) Celeron(R) processor N- and J-series SoC Transaction Router - 0F00
                 Intel Corporation ValleyView SSA-CUnit
                 Toshiba America Info Systems
            Intel(R) Power Engine Plug-in
            Intel(R) Trusted Execution Engine Interface
                 Intel Corporation ValleyView SEC
                 Toshiba America Info Systems
            Microsoft ACPI-Compliant System
            Microsoft Basic Display Driver
            Microsoft Basic Render Driver
            Microsoft System Management BIOS Driver
            Microsoft Virtual Drive Enumerator
            Microsoft Windows Management Interface for ACPI
            Motherboard resources
            Motherboard resources
            NDIS Virtual Network Adapter Enumerator
            PCI Express Root Complex
            Plug and Play Software Device Enumerator
            Programmable interrupt controller
            Remote Desktop Device Redirector Bus
            System CMOS/real time clock
            System timer
            TOSHIBA Firmware Linkage Driver
            TOSHIBA x64 ACPI-Compliant Value Added Logical and General Purpose Device
            UMBus Root Bus Enumerator
            Volume Manager
        TosSec
            TOSHIBA tos_sps64 Driver
        USB
            @System32\drivers\usbxhci.sys,#1073807361;%1 USB 3.0 eXtensible Host Controller - %2 (Microsoft);(Intel(R),0100)
                 Intel Corporation ValleyView USB xHCI Host Controller
                 Toshiba America Info Systems
            Generic USB Hub
                 TERMINUS TECHNOLOGY INC. USB V2.0 4-Port Hub
            Realtek USB 2.0 Card Reader
                 Realtek Semiconductor
            USB Composite Device
                 Logitech Unifying Receiver
            USB Composite Device
                 Logitech Unifying Receiver
            USB Composite Device
                 Importek
            USB Root Hub (xHCI)
        Volume
            Generic volume
            Generic volume
            Generic volume
            Generic volume
        VolumeSnapshot
            Generic volume shadow copy

    I've been having ACPI problems with the same model toshiba notebook too. See this thread here: http://forums.toshiba.com/t5/Satellite-Laptops-all-other/C55-A5190-ACPI-Errors/m-p/594896
    I'm probably going to return my c55-A5190. I contacte microcenter about it last night.
    While writing a detailed account of my experience with Toshiba selling me a notbook with a defective processor and BIOS and their poor customer support, I discovered this link: http://support.toshiba.com/support/viewContentDetail?contentId=4005866
    It appears that this BIOS update, although missing from the official C55-A5190 support page, may be able to correct the ACPI errors. However, I'm not sure if I should apply this update.

  • Java.lang.NullPointerException at oracle.jbo.uicli.binding.JUCtrlListBinding.findOrCreateLOVDialogIteratorBinding

    Our application is developed using JDev Version 11.1.2.1.0.. We have an 'inputComboboxListOfValues' component with the following code:
    The source code from the page is hte follwoing:
      <af:inputComboboxListOfValues id="TypeLOVId" autoSubmit="true"
                                                                  popupTitle="Search and Select: #{bindings.TypeLOV.hints.label}"
                                                                  value="#{bindings.TypeLOV.inputValue}"
                                                                  label="#{UIRes.TYPE}"
                                                                  model="#{bindings.TypeLOV.listOfValuesModel}"
                                                                  required="true"
                                                                  columns="50"
                                                                  inlineStyle="width:80pt;">
                                        <f:validator binding="#{bindings.TypeLOV.validator}"/>
                                        <af:autoSuggestBehavior suggestedItems="#{pageFlowScope.lovMB.typeSV}" />
          </af:inputComboboxListOfValues>
    The source code of the binding from page definition is the following:
    <listOfValues StaticList="false" IterBinding="TypIterator" Uses="LOV_TypeLOV" id="TypeLOV"/>
    We got this following error yesterday when user tried to enter value in the the above mentioned combo box. This error occurred only once and it started working fine later. We are not able to recreate this error in development envronment even after disabling the pooling. We have no clues regarding what may have went wrong...
    ADF_FACES-60096:Server Exception during PPR, #7[[
    java.lang.NullPointerException
        at oracle.jbo.uicli.binding.JUCtrlListBinding.findOrCreateLOVDialogIteratorBinding(JUCtrlListBinding.java:5131)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.getSearchBinding(FacesCtrlLOVBinding.java:201)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl.getSearchRegion(FacesCtrlLOVBinding.java:1821)
        at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl.getQueryModel(FacesCtrlLOVBinding.java:1465)
        at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$InternalLaunchPopupListener.processLaunch(SimpleInputListOfValuesRendererBase.java:1487)
        at oracle.adf.view.rich.event.LaunchPopupEvent.processListener(LaunchPopupEvent.java:108)
        at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)
        at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:243)
        at oracle.adf.view.rich.component.UIXInputPopup.broadcast(UIXInputPopup.java:157)
        at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
        at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:112)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:130)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:461)
        at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:134)
        at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:106)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
        at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
        at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
        at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
        at java.security.AccessController.doPrivileged(AccessController.java:284)
        at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
        at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
        at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
        at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:100)
        at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
        at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
        at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
        at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    The user had entered a value in the combo box, say '145' and tabbed out, which did not match any of the value in the drop down or the auto suggest and when it was trying to display the 'Search and Select' pop-up the error occurred.
    Please advice on what could be the possible reason and the solution for the issue...

    This kind of error is hard to diagnose. From the stacktrace I see that the creation of a list iterator definition failed, while the framework tried to create the search popup. However I can't see why. On reason would be passivation/activation problem, which you already have tested.
    As you can't reproduce the error there is little we can do, sorry.
    Timo

  • Handling empty values during xml validation

    Hello experts,
    I have a file to file scenario in PI 7.1.  I am using xml validation to validate the incoming source file. There are various types of fields in the incoming file including int, decimal and string. They can have a certain enumeration of values but can also have a blank value.
    For example field 'Num' of type int can have values 1,2,3 or a blank value.
    But I am not able to define a blank value for the field in the enumeration during definition. Therefore a blank value in the input file fails during the validation stage.
    Is there any workaround for this?
    Thanks!
    RR

    This is a basic problem. When you define a field as integer you cannot declare blank space which represents String type.
    So for your case make the value 'zero' instead of blank, if you want do declare the field as integer and as below...
    <xs:element name="Num">
      <xs:simpleType>
        <xs:restriction base="xs:integer">
          <xs:pattern value="[0-3]"/>
        </xs:restriction>
      </xs:simpleType>
    </xs:element>
    Also refer this page for further reference.
    http://www.w3schools.com/schema/schema_facets.asp

  • JClient status bar doesn't react to some panels?

    Hi,
    JClient 9.0.5.2/10.1.2beta
    The status bar doesn't react to all data bound panels in a same binding context?
    I have a main form with a tabbed panel.
    Each tab panel is composed of ADF bound panels.
    All those bound panels receive their Binding Context from the main form.
    Everything works fine:
    - all navigation bars are synchronized
    - all master-detail relations are respected
    Except the status bar.
    In some panels the status bar doesn't react to navigation or when an editable field has focus.
    Examples:
    The 2 first panels are based on the same ViewObject/iterator.
    The first panel is based on a table template, the second on a single record template.
    The status bar works for the first panel but not for the second?
    The status bar doesn't react to the third panel events:
    on this panel all navigation bar buttons are disabled except the transaction buttons.
    The ViewObject is a detail of a master ViewObject in a different panel (in the master panel the status bar works fine)?
    The API says:
    When a dataItemName is specified, it tracks the status of the rowset to which it is bound; otherwise, it tracks the status of the data bound control (Rowset) which currently has the focus.
    In my case in the main form I didn't specify the dataItemName.
    I tought that the status bar management was implicit => all data bound events in a same BindingContext are displayed by the status bar.
    In some cases it doesn't seem to be true.
    To make it work should I change the model of the status bar?
    Your help will be appreciated.
    Fred

    SOLUTION I FOUND:
    I noticed in the XML files of the panels that didn't react, the main iterator wasn't first in the list.
    I moved those iterator definitions to the beginning of the their XML file and after that, the status bar works as expected.
    I found this by tracing the iterator bindings of each panelBinding.
    I wrote a little method in the main form for this purpose.
    Let's say you have following panel reference in your main form.
    private PanelEmpVO1 panelEmp = new PanelEmpVO1();
    After setting the binding context of this panel, you call the method:
    printPanelIterBindingList(panelEmp.getPanelBinding(),"panelEmp");
    The method:
    public void printPanelIterBindingList(String panelName, JUPanelBinding jpb)
    ArrayList ibl = jpb.getIterBindingList();
    System.out.println("printPanelIterBindingList BEGIN, panelName: "+panelName);
    for (int i = 0; i < ibl.size(); i++)
    Object ob = ibl.get(i);
    if (ob instanceof JUIteratorBinding)
    System.out.println("iterBindingList, panelName: "+panelName+", JUIteratorBinding: i = "+i+", name = "+((JUIteratorBinding)ob).getName()+", VOName: "+((JUIteratorBinding)ob).getVOName()
    +", BindingContainer name : "+((JUIteratorBinding)ob).getBindingContainer().getName());
    else
    if (ob instanceof DCIteratorBinding)
    System.out.println("iterBindingList, panelName: "+panelName+", DCIteratorBinding: i = "+i+", name = "+((JUIteratorBinding)ob).getName()+", VOName: "+((JUIteratorBinding)ob).getVOName());
    else
    System.out.println("iterBindingList, panelName: "+panelName+", unknown object: i = "+i+", object class name = "+ob.getClass().getName());
    Remark:
    For master-detail panels, you must get the panelBinding of each panel.
    Regards
    Frederic
    PS I'm not from Oracle, it helped me, I hope it will help you.

  • SQLJ compile failure in derived class

    I have successfully comiled and run the "SimpleExample" defined
    in the Help Topics "Developing Applications Using SQLJ" page.
    However, if I make a simple modification to make the class
    derived from another class (DoNothing class shown below is the
    simplest case I've tried) I get compilation errors:
    Error (52) Illegal INTO ... bind variables list: illegal
    expression..
    Error (0) SQLJ translation aborted.
    Error (0) sqlj.framework.TranslationException. Error occured in
    SQLJ translation.
    Modified SimpleExample looks like:
    public class SimpleExample extends DoNothing {
    ......as before
    where DoNothing is defined as:
    package RDBInterface; // My SimpleExample is in same package
    public class DoNothing {
    public DoNothing() {
    Any ideas about this?
    null

    Andy,
    I got the answer to that in another thread,
    cheers Jon
    Re: SQLJ-Problem with JDeveloper 2.0
    From: Chris Stead (guest)
    Email: [email protected]
    Date: Tue Feb 02 13:07 CST 1999
    Markus Rosenkranz (guest) wrote:
    : Hi,
    : I tried to rebuild an SQLJ-file with the new JDev. 2.0.
    Whenever
    : there is an iterator definition in a derived class compilation
    : failed. By removing the extends clause in the class definition
    : the compilation error could be avoided. It seems that the
    : iterator definition is ignored. With JDev. 1.1 everthing
    worked
    : fine. How can this problem be solved.
    : TIA Markus
    Hi Markus,
    Your question seems similar to the one that was just resolved.
    Here are the specifics:
    I'm using the production SQLJ and getting a frustrating error
    of:
    -- "Left hand side of assignment does not have a Java type."
    I've reduced my testcase down to the absolute
    minimum, but maybe I'm missing something obvious...
    package oracle.xml.website;
    import java.sql.SQLException;
    import javax.servlet.http.*;
    #sql iterator empiter ( String empname );
    public class WebXSL extends HttpServlet {
    public void foo() throws SQLException {
    empiter myEmps = null;
    #sql myEmps = {SELECT ename empname from EMP order by sal
    desc };
    Hi,
    Could you please check whether the class HttpServlet is
    available
    in your CLASSPATH? The type resolver could be failing to find
    this class in the process of looking for the definition of
    'empiter', which is the type of your iterator variable myEmps.
    The error message is somewhat obscure, we will be working on
    improving it..
    The SQLJ translator does a full type resolution of Java
    variables
    and expressions used in #sql statements, following JLS rules of
    scoping and precedence for class and interface hierarchies. It
    looks for classes in the CLASSPATH, as well as in the .sqlj and
    .java source files specified on the sqlj command-line. So, if
    you have .sqlj and .java files that are mutually dependent, you
    could do:
    sqlj Foo.sqlj Bar.java
    Please let us know if your problem persists.. and see also bug
    801780 for a related discussion.
    - Julie
    Julie,
    Your suggestion helped! Thanks.
    With 20/20 hindsight now, it would have been much more
    helpful if the SQLJ translator reported an error message like:
    -> Left hand side of assignment is not a Java type.
    -> Unable to resolve class "HttpServlet". Check CLASSPATH
    That would have keyed me into the problem many hours ago :-)
    You suggestion lead me to test sqlj-ing my testcase
    both outside and inside the JDeveloper environment.
    Outside the environment, if I make sure J:\lib\jsdk.jar is
    in my classpath, then all is well.
    Inside the environment, I had included the named
    library for "JavaWebServer" in my project libraries
    and its classpath info was properly set to J:\lib\jsdk.jar,
    but it appears that somehow JDev is not properly passing
    this project-level classpath info to the SQLJ translator.
    I was able to solve my problem (a hack!) by adding
    J:\lib\jsdk.jar
    to the:
    IDEClasspath=
    setting in the J:\bin\jdeveloper.ini file which I shouldn't
    have to do. I filed Bug 813116 for the JDev team.
    null

  • Problem related to locking the table

    Hi all,
    i am facing a problem while applying locks on the oracle table.my intention is stop the accessing of table to other users, if the table is locked by one user.
    for this i wrote the code as follows
    Class.forName("oracle.jdbc.driver.OracleDriver");       con = DriverManager.getConnection("jdbc:oracle:thin:@192.168.2.123:1521:xe",         "root", "paridb");   con.setAutoCommit(false);             System.out.println("Successfully connected to " +           "Oracle server using TCP/IP..."); String lock="lock table report@xe in exclusive mode";-------------------------------------->1  query to lock the table Statement stmt1=con.createStatement(); stmt1.executeUpdate(lock); System.out.println("lock is applied"); Statement stmt=con.createStatement();                 for(int i=0;i<6;i++)         {         sql="insert into report values(1921682123,'device','host')";         stmt.executeUpdate(sql);         }
    after locking i inserted some data into table, after insertion i am not commiting it because if i commit,the lock will be release.next i am trying to insert data into that table from another system,acutually the data don't insert.but data is inserted. how it is happening like that ??
    in another scenario, if execute the locking query on the database directly then trying to insert into database through java application, at that time it is not giving permission to access table.
    plz guide me
    thanks&regards,
    nagaraju

    Hi! Thank you so much for your reply. Yes, I´m using ADF. I attach you the iterator´definition from the page definition:
    <iterator id="MovimientosCtbView3Iterator" RangeSize="10"
    Binds="MovimientosCtbView3" DataControl="AppModuleDataControl"/>
    If I set the RangeSize to 11, the problem is solved, but my project manager want to find out why this situation happens with RangeSize=10.
    Thank you so much and sorry for bothering you

  • How to set multple values in cluster with local variable?

    Hello all,
    Ok, I've made my way through Labview for everyone, and have some basic concepts down. I can see with a cluster, if acting directly upon it, you can unbundle, change values, rebundle, etc.
    I'm trying something a bit more complex...and just not sure how to get started on this.
    I have a drop down menu ring. I have set this up as a typedef, with 4 values.  I have used this typedef 7 times, plus some LED bools, in a cluster. I have made this cluster a typedef.
    So, in my main vi I"m starting to design, I've set up an example posted here....and in it, I have two instantiations of the cluster typedef, Left Selector and Right Selector.
    I have dropped into this vi, a copy of the menu ring typedef (same typedef as in the clusters, same values)....called reset all tubes.
    I'm trying now, to figure out how, with an event on the change of value for 'reset all tubes'....that I can start with the left selector, and change all the tubes (these are the menu ring selector)  to the same value as what has been selected with the 'reset all tubes' menu ring.
    I've created a local variable for the left selector. It is set to read values. (I'll be doing the same with the right one too, but just starting with the left).
    In examples I've seen where directly accessing a cluster, you could unbundle the cluster...loop through and change the values...maybe pull out all of the 'tubes' into an array and move through that to update the values.  And when you bundle or unbundle the cluster...you can see the values, etc, when you stretch them out on the block diagram.
    With the local variable..I can't see to 'stretch' it out like I was expecting..so I can access the values for the 'tubes'...and set them all to the value of the 'reset all tubes' ring menu value.
    Can someone put me on the path on the best way to do this....or is there a structure of component I'm missing here ?  Am I on the right track to begin with here?
    This would seem pretty basic to me, but I'm just missing something here on how to start...
    Thank you in advance,
    cayenne
    Solved!
    Go to Solution.
    Attachments:
    example_select_dropdown.ctl ‏5 KB
    public_selector_cluster.ctl ‏6 KB
    laptop_test_public.vi ‏12 KB

    nathand wrote:
    You can't do this with a for loop the way the cluster is structured, but why make it so complicated?  Just bundle the new value into the cluster as shown below:
    If you do want to use a for loop, consider restructuring your cluster.  Group the ring and a boolean into a cluster, then drop 7 of those into the selector cluster.  Then you can use "cluster to array" and "array to cluster" since all elements in the outer cluster will be of the same type.
    Also, be careful using rings as type definitions.  You probably want to use an enumeration instead.  The items in a ring do not update when you update the type definition because they're considered to be cosmetic; the items in an enumeration type definition do update, because the items in an enumeration are considered part of the data type.
    Oh my goodness!!
    What was MUCH easier than I was trying to make it!!
    I was attempting to do this reset, in an incremental fashion, as that later, I'm going to need to change values in this cluster by individual elements....and was using this as a way to try to understand how to iterate between cluster elements, and change the values of each one.
    This solution works much better for this 'reset' all solution.
    One question on this....with regard to the enum vs the ring menu.
    I was actually going to go with the enum, however, I could not find a way to make it LOOK like the ring menu...with the arrow to the side that a user would know to click to present the menu list of choices.
    I see with the enum, that you can remove the increment/decrement indicator.....and if the user clicks the control, it will indeed pop up a menu of choices...but there is no 'arrow' on that control to indicate to the user that it is a menu choice there.....
    Is there a way to make and enum look like a ring with the "drop down menu" control look?
    Again, thank you !!
    This helps!
    C

  • A thought on Style for the sake of Style, and a question: Where to wire constants?

    Lately, I've been trying to hone in on aspects of Style that effect my program's performance, and ignoring stylistic niceties in the sake of meeting deadlines. For example, Local Variables: if they work and don't cause race conditions, what the hey? I used to break my back to use as few locals as possible, but after Profiling some vi's, I've found I can live with 50mS delay here and there. Same for the "one page diagram" idea. Most of my programs take up two screens, while still using several sub-vi's! I've even gone back to using sequences after swearing them off a year ago. Where's the break-even point of using excellent Style and keeping your job?
    Now for a question that I can't s
    eem to profile my way into an answer::
    Most of my programs run in one large loop and use Cases to run events. Many items require constants. Does it make much difference to place these constants OUTSIDE the loop? I'm assuming a constant of 12093.0092 may take more time and memory than, say a boolean True constant or a Not A Path constant. Any thoughts?
    Richard

    Hello. In regard to the first part of your question, it's very important to remain productive and meet all of your deadlines. You can maintain good style and obtain efficient performance and improve your productivity by following some simple guidelines. One such guideline is to use a state machine architecture for most of your top level diagrams. With a state machine, you can avoid local variables by passing data in shift registers, and reading or modifying the data within the appropriate states (frames of the case structure). You also conserve block diagram space by breaking your application into snippets that each fit within one frame of your case structure. Best of all, you can easily expand your application as needed by simply adding more frames to the
    case structure and enumerated type definition.
    To quickly create a state machine using LabVIEW 7.0, choose the Standard State Machine Template from the New... dialog, under Design Patterns.
    For more simple style guidelines, view the presentations at the following link: http://www.bloomy.com/Resources.htm

  • ZipFile and french accent

    Hi,
    I have a problem with using the "java.util.ZipFile" library.
    Imagine that I have a zip file containing text files with names including french accents.
    The code to open and extract the files is simple :
    - I get each "ZipEntry";
    - get an InputStream;
    - convert to a bufferedInputStream;
    - use the read method;
    - save the data.
    But when the read method is executed the "java.io.IOException: Stream closed" message is displayed.
    If my zip file don't have file with name containing french accent, the code run without problem.
    If someone know how to resolve the problem...
    NB : I can't avoid the use of french accent.
    THANKS
    MY CODE :
    try
    String absoluteZipFileName = "C:\\temp\\fichier.zip";
    String destDir = "C:\\temp\\";
    zipfileName = new ZipFile(absoluteZipFileName);
    for (Enumeration iter = zipfileName.entries(); iter.hasMoreElements();)
    FileOutputStream FOS = null;
    BufferedOutputStream BOS = null;
    BufferedInputStream BIS = null;
    try
    int max = 2048;
    ZipEntry zipEntryTest = (ZipEntry) iter.nextElement();
    String fileName = zipEntryTest.getName();
    BIS = new BufferedInputStream(zipfileName.getInputStream(zipEntryTest));
    FOS = new FileOutputStream(destDir + fileName);
    BOS = new BufferedOutputStream(FOS, max);
    int nbr = 0;
    byte data[] = new byte[max];
    while ((nbr = BIS.read(data, 0, max)) != -1)
    BOS.write(data);
    catch (Exception a)
    System.out.println(a.toString());               
    finally
    BOS.close();
    FOS.close();
    catch (Exception e)
    System.out.println(e.toString());
    finally
    try {zipfileName.close();} catch (Exception e) {}
    THE ERRORS :
    java.io.IOException: Stream closed
    java.io.IOException: Stream closed

    Why the java zip classes cannot work with zip files
    created by other utilities (e.g. WinZip or Linux's zip
    program) when they contain accented characters is a
    question that I cannot answer, but it certainly looks
    like a bug within the Java classes. It's not exactly a bug, I don't know what you would call it. When you look at the zip file specification ( http://www.pkware.com/products/enterprise/white_papers/appnote.html for example) you'll notice that the file name needs to be stored in bytes, but there is nothing to indicate which bytes. In particular it doesn't specify what encoding it assumes the file name is in.
    This isn't surprising given that the format dates back to a time when only ASCII characters could occur in file names.
    I suspect that if you used Java to create a zip file containing the file "sacr&eacute;bleu.txt", you would be able to extract that file using Java also. Most likely WinZip and the Java API code use different, incompatible, ways of encoding that file name. Using a hex editor to examine what they produce should display the difference.
    The reason I said it wasn't exactly a bug is that the specification is incomplete. But you could argue that what PKZip actually does is the de facto standard, and presumably WinZip does the same thing that PKZip does.

  • DTD parsing

    hi guys,
    is it possible to get generate a DOM-like tree structure from a dtd parser.
    actually i intend to use a DTD parser to parse a given a DTD file and generate the structure in a JTree format. i thought using DOM wud be good idea.
    i am using a parser from www.wutka.com
    the following code gets me only the elements, without specifying who is the child of whom. as i said above ,can i modify this to get the elements in a hierarchical form.
    FileReader DTDRead = new FileReader("D:\\Documents\\Vineet's Documents\\MYPROG\\GenerateForm.dtd");
              DTDParser  dtdParser = new DTDParser(DTDRead);
              DTD dtd=dtdParser.parse();
              java.util.Hashtable  dtdElements = dtd.elements;
              java.util.Enumeration  iter = dtdElements.elements();
              String a;  int i=0;
              while (iter.hasMoreElements()) {
                   DTDElement  dtdElement = (DTDElement)(iter.nextElement());
                   a=dtdElement.getName();
                   arr=a;
                   i++;
                   System.out.println(dtdElement.getName());

    I know nothing about your www.wutka.com parser.
    If it's me, I'd write a custom parser becuase the structure of DTD is simple.

Maybe you are looking for

  • Can't open iPhoto after iMovie 10.0.3 update

    Hi, I can't open iPhoto after iMovie 10.0.3 update with message: iPhoto is being updated iPhoto can not be opened while it is being updated. But problem is, that nothing idicate there is some iPhoto update. Please help Apple. Pavel

  • HD video

    Hello all, I am new to this forum and haven't been able to find the exact answer to my question. I have a Sony HDR-100 High Def camcorder and I am using Adobe Premiere Elements 7 to try to make movies.  The problem is, the output movies are horrendou

  • Is Z report needed for FBCJ Balance?

    Hi, There are  5 cash journals  and client needs the balance for all cash journals along with Responsible Person, Balance, Debit and Credit. In FBCJ I couldnt found, is there any report available with above requirement?? Anybody can suggest please. R

  • Edit toolbar for personalizing My Sites page only appearing in IE10

    [Using SharePoint 2013 Enterprise SP1] I have noticed that, after I choose "Personalize this Page" (under the username dropdown menu) on my My Sites Newsfeed, I see the "Page" editing toolbar, but only when using IE10. If I am using IE9, IE11, Chrome

  • My MacBook Pro is very slow any suggestions?

    My MacBook Pro is very slow any suggestions?