LoadFromXML not present in util.Properties!!!

While trying to read from an xml properties file, i'm not able to get the loadFromXML method of the properties object.
Here is my code.
try {
               Properties prop=new Properties();
               FileInputStream fis=new FileInputStream("database.xml");
               prop.loadFromXML(fis);     
              prop.list(System.out);
              System.out.println("\nThe foo property: " +
                  prop.getProperty("CLASSNAME"));
          } catch (FileNotFoundException e) {               
               e.printStackTrace();
          catch (IOException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          }i'm using eclipse as my editor and its not showing this function in the drop downlist...i wonder y this is happening.
my java version is 1.4.2

if its not in 1.4 can u help me to know how can i read an xml properties file with 1.4.4_06 java version.

Similar Messages

  • TIme  capsule is orange, not present in Airport Utility,

    Hi
    I have been using my time capsule for backing up but today it is not present in Airport Utiltity, it is flashing orange as well.
    Airport utility is searching for it but there's a message stating "no configured airport base stations have been found. airport utility will continue searching".
    Under System preference >  TIme Machine > it states "back disc is not available" and when I click 'Select Disk', it is present under the heading "Backup Discs" but the only available button is "Remove Disk".  And, if I try to search for a new one, it cannot find it.
    I would be very grateful if you would kindly help me.  I have tried switch the TC on and off at the wall, but this did not help…..Have checked with cable and all see ok.
    Thank you

    How old and what model is the TC?
    Have you checked in other devices.. ipad or iphone etc to see if the TC is running ok? Use the airport utility for iOS if you have igadgets.
    Otherwise what OS is on the computer? Did you recently upgrade or update? 10.9.4 just went out and may cause some issues.
    I have tried switch the TC on and off at the wall, but this did not help…..Have checked with cable and all see ok.
    Excellent start. A full network reboot is also in order. Restart the whole network thusly.
    modem.. wait 2min..
    TC.. wait 2min..
    rest of the stuff.
    Everything must boot from off, not sleep/standby.
    No luck. Follow these steps.
    1. Factory reset.
    The Factory Reset universal
    Unplug your TC/AE. Hold in reset. and power the TC/AE back on..  all without releasing reset and keep holding in for about 10sec. The time is not important.. it is the front LED rapid flashing that indicates you are in factory mode.
    Release reset.
    If it doesn’t flash rapidly you have released reset at some point and try again.
    Be Gentle! Feel the switch click on. It has a positive feel..  add no more pressure after that.
    TC/AE will reboot after a couple of minutes with default factory settings and will wipe out previous configurations.
    No files are deleted on the hard disk.. No reset of the TC deletes files.. to do that you use erase from the airport utility.
    2. Ensure ipv6 is turned on to link-local in the computer for both wireless and ethernet if you use it.
    eg wireless.
    3. Go to the airport utility. (or via the wifi icon in the top menu area). It will show a device ready for setup.
    Run through the setup wizard.
    Please do not use the proffered names. eg Fred Blog's Airport Time Capsule (Wireless)
    It is far too long.. it has spaces and it has illegal apostrophe.
    Please use a base station name like TCgenx (I fill in x with the actual generation).. short, no spaces and pure alphanumeric.
    Please use a wireless name like TCwifi (I use TC24ghz and TC5ghz to keep the bands separate).
    Complete the Wizard.
    4. See if you can now mount the TC hard disk in Finder. If it fails, do it manually.
    In the top menu  Go> Connect to Server.
    Type in AFP://TCgenx.local (Replace with your actual name. Local is the domain name and can help)
    or
    Type in AFP://10.0.1.1 (replace with the TC actual IP address .. that is the default when TC is router. This will only work when static though).
    It will request your password. Type that in and store in the keychain.
    5. Reset TM and point it to the newly named TC.
    See A4 here for more details.
    http://pondini.org/TM/Troubleshooting.html
    Do not worry if it shows it is going to start the whole backup. It will find the old backup once it starts. Nothing you are doing here will mess the original backups.
    You are just correcting certain weaknesses is the network standards.
    No luck post back with as much detail as possible.. modem, how the TC is connected to modem and computer, computer type and OS etc.

  • Additional Results not present in Properties in TestStand 4.0

    Hi,
    I wish to use a multimeter to record current values in my TestStand 4.0
    test sequence. I was using TestStand 4.1 and the results were recording
    fine to my report. I had checked the Additional Results option, but this
    option is not present in 4.0. Where can i find this option to record the
    value into my report?
    I had been using TestStand 4.1 but have had to go back to TestStand 4.0
    because some modules i wish to use are not supported in TestStand 4.1 yet.
    Thanks
    Solved!
    Go to Solution.

    If you use numeric limit steps to evaluate the measured value, the result will be part of the report except you deselected "include measurements" in the report options.
    This is anyways the recommended way to include measurement values in your report.
    You can add additional results by using the "ReportText" variable in the Step.Result-Container. Just use a postexpression to convert your measurement value to a string and set this to the ReportText (something like: "Result.ReportText = str(locals.mymeasurement)").
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Java.util.Properties.load() not loading all properties

    Hi,
    I'm trying to load the following properties into my Properties class. However, Im only able to load SOME properties not ALL (11 to be precise)
    This is my properties file :
    ~~~~~~~~~~~~~~~~~~~~~
    gds.host=chissd235.bankofamerica.com
    gds.datasource=gds.310.fob1
    its.dataSource=gds.310.fob1
    adv.dataSource=adv.310.fob1
    gds.port=9650
    gds.dataType=FpML
    maxNumberOfConnectors=1000
    itsConnectionMethod=ejb
    advDB.driverToUse=jConnect2
    advDB.userName=advDev1User
    advDB.password=advDev1User
    advDB.databaseName=advDev1
    advDB.serverName=chisdd30.bankofamerica.com
    advDB.port=2910
    its.user=derivuser
    This is my java code snippet:
    ~~~~~~~~~~~~~~~~~~~~~~~
         private void loadProperties()
              try
                   GDSConfigurationAdapter adapter = new GDSConfigurationAdapter();
                   String configurationResource = adapter.getConfigurationPropertiesResource();
                   load(loadStream(configurationResource));
                   String eventingPropsResource = adapter.getEventingPropertiesResource();
                   load(loadStream(eventingPropsResource));
              } catch (IOException e)
                   throw new RuntimeException("Could not load GDS/Eventing properties");
         private InputStream loadStream(String propFile) throws IOException
    InputStream propStream = ResourceLocator.getResourceAsStream(propFile);
    if (propStream == null)
    logger.warning("could not find in JAR! Looking in classpath: " + propFile);
    propStream = ResourceLocator.getResourceAsStream(propFile);
    if (propStream == null)
    IOException t = new IOException("Failed to load property file: " + propFile);
    logger.throwing(getClass().getName(), "loadProperties", t);
    throw t;
    return propStream;
    Any help will be appreciated.
    Thanks
    Bjork

    Hi,
    I'm trying to load the following properties into my Properties class. However, Im only able to load SOME properties not ALL (11 to be precise)
    This is my properties file :
    ~~~~~~~~~~~~~~~~~~~~~
    gds.host=chissd235.bankofamerica.com
    gds.datasource=gds.310.fob1
    its.dataSource=gds.310.fob1
    adv.dataSource=adv.310.fob1
    gds.port=9650
    gds.dataType=FpML
    maxNumberOfConnectors=1000
    itsConnectionMethod=ejb
    advDB.driverToUse=jConnect2
    advDB.userName=advDev1User
    advDB.password=advDev1User
    advDB.databaseName=advDev1
    advDB.serverName=chisdd30.bankofamerica.com
    advDB.port=2910
    its.user=derivuser
    This is my java code snippet:
    ~~~~~~~~~~~~~~~~~~~~~~~
         private void loadProperties()
              try
                   GDSConfigurationAdapter adapter = new GDSConfigurationAdapter();
                   String configurationResource = adapter.getConfigurationPropertiesResource();
                   load(loadStream(configurationResource));
                   String eventingPropsResource = adapter.getEventingPropertiesResource();
                   load(loadStream(eventingPropsResource));
              } catch (IOException e)
                   throw new RuntimeException("Could not load GDS/Eventing properties");
         private InputStream loadStream(String propFile) throws IOException
    InputStream propStream = ResourceLocator.getResourceAsStream(propFile);
    if (propStream == null)
    logger.warning("could not find in JAR! Looking in classpath: " + propFile);
    propStream = ResourceLocator.getResourceAsStream(propFile);
    if (propStream == null)
    IOException t = new IOException("Failed to load property file: " + propFile);
    logger.throwing(getClass().getName(), "loadProperties", t);
    throw t;
    return propStream;
    Any help will be appreciated.
    Thanks
    Bjork

  • My MacBook Pro doesn't start; in safe mode shift CMD V the message "disk0s2: media is not present" is written on the screen repeatedly but the MacBook doesn't start.  Do you have any ideas of why this should be or what I should do to resolve this?

    My MacBook Pro doesn't start; in safe mode <shift CMD V> the message "disk0s2: media is not present" is written on the screen repeatedly but the MacBook doesn't start.  Do you have any ideas of why this should be or what I should do to resolve this?  Thanks  Eamonn

    Thanks for these suggestions: I have tried safe mode re-starts (both "verbose" and simple "shift" + power) to no avail.  I get the error message "disk0s2: media is not present".  Following this I inserted the installation disc and from there ran disc utility.  The "Verify Disk" indicated an error " invalid sibling link" which it could not repair.
    I also tried to completely re-format/erase the disk, but again got an error message "disk object invalid or unable to serialize".
    Any ideas of what could be causing this or the best solution?  I fear I am fast running out of options.

  • The source or target cluster ID is not present on the system!

    Hi,
    During System copy, we are facing issue "Run Java Migration Tool kit"
    Phase of Sapinst.
    I could found exact error messages sequences which may help you in
    understanding the problem.:
    ==========================================
    #Start preparing switch.
    #The switch.properties could not be read. Reason: switch.properties (No
    such file or directory)
    The source or target cluster ID is not present on the system! The
    current (source) cluster ID is 787075 and the new (target) cluster ID
    is 3137675
    ==========================
    Last error message might be quite familiar to you as this is very
    common error message however just wanted to inform you that the "SAP
    Note 966752 - Java system copy problems with the Java Migration
    Toolkit" could not help me out.
    all the possible entries have been updated and retried but no success.
    Please suggest if you have face similar kind of problem.
    Thanks.
    Cheers !!!
    Ashish

    Hi,
    cluster ID is just combination of below parameters:
    In our case, my source system (ABC) was refreshed from another system (XYZ) recently
    so while installing target system ( DEF), I changed the source system details from ABC to XYZ in below file and retried the
    SAPinst screen. System copy has got completed successfully.
    Open the file <installation directory>/jmt/cluster_id_switch.properties and edit the line
    src.ci.sid=
    src.ci.instance.number=
    src.ci.instance.name=
    src.ci.host=
    If in your case source system is not refreshed recently; You may try with functional host name or OS host name etc. details for above parameters.
    If this does not work check details of "SAP Note 966752 - Java system copy problems with the Java
    Migration Toolkit" which says almost the same thing but I could not get that as the statements related to
    box number are bit confusing and contradictory.
    Cheers !!!
    Ashish

  • Java.util.Properties methods load & store

    Does java.util.Properties methods load & store produce & load platform independent code?

    You mean that it is better to use loadFromXML(InputStream in) and storeToXML(OutputStream os, String comment) methods of this class in order to have platform independent code?

  • Export PDF Error, Java , ...decisions.reports.a.a.(Ljava/util/Properties;)V

    Hi,
    I'm trying to export my reports to pdf using Java Servlets and Crystals is throwing the following error message:
    com.crystaldecisions.report.web.viewer.ReportExportControl
    com.crystaldecisions.reports.a.a.(Ljava/util/Properties;)V
    I really have no idea how to fix this, can't find info anywhere and the error does not help at all. Have you guys even seen this issue before?
    Thank you
    here is my code (used to work with version X):
    IReportSourceFactory2 rptSrcFactory = null;
    IReportSource reportSource = null;
    ReportExportControl exportControl = null;
    try
       rptSrcFactory = new JPEReportSourceFactory();
       reportSource = (IReportSource);
       rptSrcFactory.createReportSource("myreport.rpt",request.getLocale());
       exportControl = new ReportExportControl();
       ExportOptions exportOptions = new ExportOptions();
       exportOptions.setExportFormatType(ReportExportFormat.PDF);
       PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
       PDFExpOpts.setStartPageNumber(1);
       PDFExpOpts.setEndPageNumber(999999999);
       exportOptions.setFormatOptions(PDFExpOpts);
       exportControl.setReportSource(reportSource);
       exportControl.setEnableLogonPrompt(false);
       exportControl.setEnableParameterPrompt(true);
       exportControl.setExportOptions(exportOptions);
       exportControl.setExportAsAttachment(false);
       exportControl.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
    + Netbeans 6
    + JDK 1.6
    + Tomcat 6

    Hi Paul,
    The question you have asked can be best answered in the Business Objects SDK Application Development Forum.
    The Crystal Reports Forum is dedicated to issues arising in Crystal Reports Full Client Software.
    Cheers!

  • JTA transaction is not present or the transaction is not in active state

    Hi,
    I am trying to execute an asynchronous bpel process. the bpel process has 5 OSB calls and is taking approximately 100 seconds for completion. The OSB calls in the BPEL are taking 90 seconds for completion. In the end of the BPEL process, after completion I get the following error:
    [2010/07/22 01:56:44] BPEL process instance "1220007" completed
    [2010/07/22 01:56:44] There is a system exception while performing the BPEL instance, the reason is "JTA transaction is not present or the transaction is not in active state. The current JTA transaction is not present or it is not in active state when processing activity or instance "1,220,007". The reason is The execution of this instance "1220007" for process "BPELProcess1" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information.. Please consult your administrator regarding this error. ". Please check the error log file for more infromation. Please try to use bpel fault handlers to catch the faults in your bpel process. If this is a system exception, please report this to your system administrator. Administrator could perform manual recovery of the instance from last non-idempotent activity or dehydration point.
    We do not want to increase the transaction-timeout properties in the server in the Transaction-manager.xml or in the orion-ejb-jar.xml since we have other projects with synchronous processes running in the same server.
    Can anybody please suggest a workaround to overcome this issue apart from increasing the transaction-timeout?

    Hi 783703,
    As Sridhar suggested for your problem you have to set transaction-time out in j2ee/home/config/transaction-manager.xml.
    If you use Idempotent as false for your partnerlinks, BPEL PM will store the status till that invoke(Proof that this invoke gets executed).
    So better to go for increasing the time instead of going for idempotent as it has some side effects.
    And coming to dehydration ....Ideally performance will be more if there are no much dehydration poitns in our process. But for some scenarios it is better to have dehydration(ex: we can know the status of the process...etc)
    Dehydration store will not get cleared after completion of the process. Here dehydration means ....it will store these dtails in tables(like Cube_instance,cube_scope...etc).
    Regards
    PavanKumar.M

  • Error in Parser.fx file "incompatible types found   : java.util.Properties"

    Hi,
    In parser file "Parser.fx",
    public-read def PROPERTIES_PARSER = StreamParser {
    override public function parse(input : java.io.InputStream) : RecordSet {
    var props = javafx.util.Properties {};
    props.load(input);
    input.close();
    MemoryRecordSet {
    records: [
    MapRecord {
    fields: props
    due to under line portion an error is appearing:
    "incompatible types
    found : javafx.util.Properties
    required: java.util.Map
    fields: props".
    Please suggest some solution.
    Thanks in advance.
    regards,
    Choudhary Nafees Ahmed
    Edited by: ChoudharyNafees on Jul 5, 2010 3:48 AM

    Parser.fx
    package org.netbeans.javafx.datasrc;
    import javafx.data.pull.PullParser;
    import javafx.data.pull.Event;
    import org.netbeans.javafx.datasrc.MemoryRecordSet;
    public-read def PROPERTIES_PARSER = StreamParser {
        override public function parse(input : java.io.InputStream) : RecordSet {
            var props =java.util.Properties{};
            props.load(input);
            input.close();
            MemoryRecordSet {
                records: [
                    MapRecord {
                        fields: props
    public-read def LINE_PARSER_FIELD_LINE = ".line";
    public-read def LINE_PARSER = StreamParser {
        override public function parse(input : java.io.Reader) : RecordSet {
            var line : String;
            var result : Record [] = [];
            line = readLine(input);
            // BEWARE  ("" == null) is true
            while (line != null or "".equals(line)) {
                var map = new java.util.HashMap();
                map.put(LINE_PARSER_FIELD_LINE, line);
                var record = MapRecord {
                    fields: map
                insert record into result;
                line = readLine(input);
            MemoryRecordSet {
                records: result
    function readLine(in : java.io.Reader) : String {
        var str = new java.lang.StringBuilder;
        while (true) {
            var c = in.read();
            if (c == -1) {
                return if (str.length() == 0) then null else str.toString();
            } else if (c == 0x0D) {
                c = in.read();
                if (c == 0x0A or c == -1) {
                    return str.toString();
                str.append(0x0D);
            } else if (c == 0x0A) {
                return str.toString();
            str.append(c as Character);
        str.toString()
    public-read def JSON_PARSER = StreamParser {
        function toSequence(list : java.util.List) : Record [] {
            var result : Record [] = [];
            var ii = list.iterator();
            while (ii.hasNext()) {
                var r = ii.next() as Record;
                insert r into result;
            result
        override public function parse(input : java.io.InputStream) : RecordSet {
            var topLevel : Object;
            def parser = PullParser {
                documentType: PullParser.JSON
                input: input
                var mapStack = new java.util.Stack();
                var currentMap : java.util.Map;
                var recordsStack = new java.util.Stack();
                var currentRecords : java.util.List;
                var lastEvent: Event;
                onEvent: function(event: Event) {
                    if (event.type == PullParser.TEXT) {
                        currentMap.put(event.name, event.text)
                    } else if (event.type == PullParser.INTEGER) {
                        currentMap.put(event.name, event.integerValue)
                    } else if (event.type == PullParser.NULL) {
                        currentMap.put(event.name, null)
                    } else if (event.type == PullParser.START_ELEMENT) {
                        if (lastEvent.type == PullParser.START_ARRAY_ELEMENT) return;
                        var oldMap = currentMap;
                        var temp = new java.util.HashMap();
                        temp.put(new Object(), null);
                        currentMap = temp;
                        currentMap.clear();
                        mapStack.push(currentMap);
                        if (topLevel == null) topLevel = currentMap;
                        if (oldMap != null) {
                            var mr = MapRecord {
                                fields: currentMap
                            if (event.name == "" and lastEvent.type == PullParser.START_VALUE) {
                                oldMap.put(lastEvent.name, mr)
                            } else {
                                oldMap.put(event.name, mr)
                    } else if (event.type == PullParser.START_ARRAY_ELEMENT) {
                        var temp = new java.util.HashMap();
                        temp.put(new Object(), null);
                        currentMap = temp;
                        currentMap.clear();
                        mapStack.push(currentMap);
                        var mr = MapRecord {
                            fields: currentMap
                        currentRecords.add(mr);
                    } else if (event.type == PullParser.END_ELEMENT) {
                        mapStack.pop();
                        if (not mapStack.empty()) {
                            currentMap = mapStack.peek() as java.util.HashMap;
                        } else {
                            currentMap = null;
                    } else if (event.type == PullParser.END_ARRAY_ELEMENT) {
                        if (lastEvent.type == PullParser.END_ELEMENT) return;
                        mapStack.pop();
                        if (not mapStack.empty()) {
                            currentMap = mapStack.peek() as java.util.HashMap;
                        } else {
                            currentMap = null;
                    } else if (event.type == PullParser.START_ARRAY) {
                        currentRecords = new java.util.ArrayList();
                        recordsStack.push(currentRecords);
                        if (topLevel == null) topLevel = currentRecords;
                    } else if (event.type == PullParser.END_ARRAY) {
                        var set = MemoryRecordSet {
                            records: toSequence(currentRecords)
                        currentMap.put(event.name, set);
                        recordsStack.pop();
                        if (not recordsStack.empty()) {
                            currentRecords = recordsStack.peek() as java.util.List;
                        } else {
                            currentRecords = null;
                    lastEvent = event;
            parser.parse();
            if (topLevel instanceof java.util.Map) {
                var mr = MapRecord {
                    fields: topLevel as java.util.Map
                MemoryRecordSet {
                   records: [mr]
            } else {
                // List
                var rs = MemoryRecordSet {
                    records: toSequence(topLevel as java.util.List)
                rs
            parser.parse();
            var mr = MapRecord {
                fields: topLevel as java.util.Map
            MemoryRecordSet {
               records: [mr]

  • Java.util.properties ? Using Config.getProperty

    Hi all,
    This one has been causing me a bit of a headache! I am using the Java.util.properties to create a file which looks like this:
    #Tue Sep 13 19:15:06 GMT+02:00 2002
    User=tristan
    Password=bristol
    Name=Tristan\ Webb
    Rights=Tristan\ Webb
    #Tue Sep 13 19:15:35 GMT+02:00 2002
    User=adam
    Password=newcastle
    Name=Adam\ Jones
    Rights=Adam\ Jones
    The problem comes when I try to read the information back and put it in a Vector. Using the code below, it only ever puts the last users details (i.e. adam, Newcastle etc..) into the file and skips the first one. I have tried adding more users details, but it only ever reads the last entry. Is there anyway of forcing the config.getProperty to read the first entry in the file and then all the subsequesnt user details ?? I am thinking there must be a way of looping through the file, but im not sure where to start and am quite lost!
    Many Thanks,
    Properties config;
    FileInputStream file;
    file = new FileInputStream("password.cfg");
    config = new Properties();
    config.load(file);
    User2 = config.getProperty("User");
    Password = config.getProperty("Password");
    name = config.getProperty("Name");
    rights = config.getProperty("Rights");
    UserDetails user = new UserDetails(User2, Password, name, rights);
    userDetails.add(user);

    The java.util.Properties class works like a dictionary: it stores values, which you can access using the keys.
    The keys must be unique. In your case, the keys are not unique. If you do: String s = config.getProperty("User"); then how do you expect to get two values back (tristan and adam)?
    You must make the keys unique in some way. For example, write your properties file like this:
    #Tue Sep 13 19:15:06 GMT+02:00 2002
    User.1=tristan
    Password=.1bristol
    Name.1=Tristan\ Webb
    Rights.1=Tristan\ Webb
    #Tue Sep 13 19:15:35 GMT+02:00 2002
    User.2=adam
    Password.2=newcastle
    Name.2=Adam\ Jones
    Rights.2=Adam\ Jones
    Now use for example: String s = config.getProperty("User.1"); to get the name of the first user, etc.
    Jesper

  • Debugging on Mac - Active Architecture ppc is not present in AE CS4

    When I try to debug using XCode, I get the message
    "The active architeture ppdc is not present in the executable 'AE CS4' which contains i386."
    So how do I configure the build to allow debugging?

    I was using CS4 sdk and not being able to debug.
    I switched to CS3 SDK as you suggested and found a way to debug.
    In the project build properties I changed architectures from"ppc i86" to "32-bit universal".
    Now I can debug!
    So what architecture should I use for the release version?
    (maybe a stupid question, but I'm not a Mac person)

  • The LOG file \work\dev_jcontrol is not present

    The LOG file \work\dev_jcontrol is not present; even thou I have restarted the server:
    stopsap
    startsap <j2ee_instanse>
    Any idea?

    Hi,
    cluster ID is just combination of below parameters:
    In our case, my source system (ABC) was refreshed from another system (XYZ) recently
    so while installing target system ( DEF), I changed the source system details from ABC to XYZ in below file and retried the
    SAPinst screen. System copy has got completed successfully.
    Open the file <installation directory>/jmt/cluster_id_switch.properties and edit the line
    src.ci.sid=
    src.ci.instance.number=
    src.ci.instance.name=
    src.ci.host=
    If in your case source system is not refreshed recently; You may try with functional host name or OS host name etc. details for above parameters.
    If this does not work check details of "SAP Note 966752 - Java system copy problems with the Java
    Migration Toolkit" which says almost the same thing but I could not get that as the statements related to
    box number are bit confusing and contradictory.
    Cheers !!!
    Ashish

  • Form with key 2 not present (create organization)

    On a brand new installation of OIM 9.1.0.1, after logon as xelsysadm, I try Organization - Create but I get the following error:
    2010-02-18 10:30:57,478 ERROR [XELLERATE.APIS] Class/Method: tcFormDefinitionOperationsBean/getFormFieldsData encounter some problems: Form with key 2 not present
    2010-02-18 10:30:57,478 ERROR [XELLERATE.WEBAPP] Class/Method: tcManageOrganizationAction/prepareNewOrganization encounter some problems: {1}
    Thor.API.Exceptions.tcFormNotFoundException
         at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.getFormFieldsData(Unknown Source)
         at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.getFormFields(Unknown Source)
         at com.thortech.xl.ejb.beans.tcFormDefinitionOperationsSession.getFormFields(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
         at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
         at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
         at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
         at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
         at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
         at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
         at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
         at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
         at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
         at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
         at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
         at org.jboss.ejb.Container.invoke(Container.java:960)
         at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
         at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
         at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
         at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
         at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
         at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
         at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
         at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
         at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
         at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
         at $Proxy623.getFormFields(Unknown Source)
         at Thor.API.Operations.tcFormDefinitionOperationsClient.getFormFields(Unknown Source)
         at sun.reflect.GeneratedMethodAccessor173.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
         at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
         at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
         at $Proxy790.getFormFields(Unknown Source)
         at com.thortech.xl.webclient.actions.tcManageOrganizationAction.setFormFields(Unknown Source)
         at com.thortech.xl.webclient.actions.tcManageOrganizationAction.prepareNewOrganization(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
         at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
         at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
         at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
         at java.lang.Thread.run(Thread.java:619)
    2010-02-18 10:30:57,946 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Running RemoverTask
    2010-02-18 10:30:57,946 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] RemoverTask, PassivatedCount=0
    2010-02-18 10:30:57,946 DEBUG [org.jboss.ejb.plugins.AbstractInstanceCache] removePassivated, now=1266485457946, maxLifeAfterPassivation=1200000
    2010-02-18 10:30:57,946 DEBUG [org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] RemoverTask, done

    The database 11g release 2 is the problem.
    Solution: install Oracle database 11.1.0.6.

  • Retrofitting java.util.Properties

    Hi all,
    why was java.util.Properties in JDK 1.5 not retrofitted to implement java.util.Map<String,String>?
    This would have been the "natural" way to take advantage of typesafety.
    I'm sure this has something to do with backwards compatibility, but what exactly woud it break?
    Thanks

    java.util.Properties extends java.util.Hashtable
    java.util.Properties : private java.util.HashtableWhat does that actually buy you though?
    I mean its really the difference between:
    class Properties {
        final Hashtable m_contents = new Hashtable();
        public String getProperty(String key) {
                return (String) m_contents.get(key);
    }vs.
    class Properties private extends Hashtable {
        public String getProperty(String key) {
                return (String) super.get(key);
    }Which is nice and all, but it strikes me as syntactic sugar more than anything else.
    I don't disagree: Properties should never have extended Hashtable, it should have encapsulated a Hashtable. Also Stack should not extend Vector, Booleans should not have a public constructor, it would even have been nicer if people actually used the Dictionary interface occassionally in 1.0/1.1.
    Its easy to say these things now with the benefit of 20-20 hindsight.

Maybe you are looking for