FileInputStream problem

I have a problem for inserting image to database from my client machine to server machine. In my webapplication I use the following implamentation using jsp:
page: upload.jsp
<form id="myform" name="myform" method="post" action="uploadprocess.jsp">
Attach: <input type="file" name="attach"/>
<input type="submit" name="BtnSend" value="Send" />
</form>
page: uploadprocess.jsp
File anexo = new File(attach);
FileInputStream fis = new FileInputStream(attach);
[..] //here I have more codes that are ok...
the problema is:
when I'm using my webapplication in server machine (where java application server is running), it works perfect when the code line "FileInputStream fis = new FileInputStream(attach);" is read, because the application can recognize the path passed in var "attach". But, where I'm using in another client machine, where the webapplication isn't running, this recognize the file system of the server machine and not the client (local) machine....
Could anybody help me to solve this problem?!

I believe your problem is how you're trying to access the file... You should be accessing it via a data stream, not it's filename!
Anyway, have a look at the following link, you should find it useful.
http://commons.apache.org/fileupload/
HTH.
Edited by: munyul on Jun 3, 2008 1:37 AM

Similar Messages

  • File and FileInputStream problem

    Hi all
    I have downloaded from developpez.com a sample code to zip files. I modified it a bit to suit with my needs, and when I launched it, there was an exception. So I commented all the lines except for the first executable one; and when it succeeds then I uncomment the next executable line; and so on. When I arrived at the FileInputStream line , the exception raised. When I looked at the code, it seemed normal. So I want help how to solve it. Here is the code with the last executable line uncommented, and the exception stack :
    // Copyright (c) 2001
    package pack_zip;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import oracle.jdeveloper.layout.*;
    import java.io.*;
    import java.util.*;
    import java.util.zip.*;
    import java.text.*;
    * A Swing-based top level window class.
    * <P>
    * @author a
    public class fzip extends JFrame implements ActionListener{
    JPanel jPanel1 = new JPanel();
    XYLayout xYLayout1 = new XYLayout();
    JTextField szdir = new JTextField();
    JButton btn = new JButton();
    JButton bzip = new JButton();
         * Taille générique du tampon en lecture et écriture
    static final int BUFFER = 2048;
    * Constructs a new instance.
    public fzip() {
    super("Test zip");
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    * Initializes the state of this instance.
    private void jbInit() throws Exception {
    this.getContentPane().setLayout(xYLayout1);
         this.setSize(new Dimension(400, 300));
    btn.setText("btn");
    btn.setActionCommand("browse");
    btn.setLabel("Browse ...");
    btn.setFont(new Font("Dialog", 0, 14));
    bzip.setText("bzip");
    bzip.setActionCommand("zipper");
    bzip.setLabel("Zipper");
    bzip.setFont(new Font("Dialog", 0, 14));
    btn.addActionListener(this);
    bzip.addActionListener(this);
    bzip.setEnabled(false);
         this.getContentPane().add(jPanel1, new XYConstraints(0, 0, -1, -1));
    this.getContentPane().add(szdir, new XYConstraints(23, 28, 252, 35));
    this.getContentPane().add(btn, new XYConstraints(279, 28, 103, 38));
    this.getContentPane().add(bzip, new XYConstraints(128, 71, 103, 38));
    public void actionPerformed(ActionEvent e)
    if(e.getActionCommand() == "browse")
    FileDialog fd = new FileDialog(this);
    fd.setVisible(true);
    szdir.setText(fd.getDirectory());
    bzip.setEnabled(true);
    else
              * Compression
         try {
              // création d'un flux d'écriture sur fichier
         FileOutputStream dest = new FileOutputStream("Test_archive.zip");
              // calcul du checksum : Adler32 (plus rapide) ou CRC32
         CheckedOutputStream checksum = new CheckedOutputStream(dest, new Adler32());
              // création d'un buffer d'écriture
         BufferedOutputStream buff = new BufferedOutputStream(checksum);
              // création d'un flux d'écriture Zip
         ZipOutputStream out = new ZipOutputStream(buff);
         // spécification de la méthode de compression
         out.setMethod(ZipOutputStream.DEFLATED);
              // spécifier la qualité de la compression 0..9
         out.setLevel(Deflater.BEST_COMPRESSION);
         // buffer temporaire des données à écriture dans le flux de sortie
         byte data[] = new byte[BUFFER];
              // extraction de la liste des fichiers du répertoire courant
         File f = new File(szdir.getText());
         String files[] = f.list();
              // pour chacun des fichiers de la liste
         for (int i=0; i<files.length; i++) {
                   // en afficher le nom
              System.out.println("Adding: "+files);
    // création d'un flux de lecture
    FileInputStream fi = new FileInputStream(files[i]);
    /* // création d'un tampon de lecture sur ce flux
    BufferedInputStream buffi = new BufferedInputStream(fi, BUFFER);
    // création d'en entrée Zip pour ce fichier
    ZipEntry entry = new ZipEntry(files[i]);
    // ajout de cette entrée dans le flux d'écriture de l'archive Zip
    out.putNextEntry(entry);
    // écriture du fichier par paquet de BUFFER octets
    // dans le flux d'écriture
    int count;
    while((count = buffi.read(data, 0, BUFFER)) != -1) {
              out.write(data, 0, count);
                   // Close the current entry
    out.closeEntry();
    // fermeture du flux de lecture
              buffi.close();*/
    /*     // fermeture du flux d'écriture
         out.close();
         buff.close();
         checksum.close();
         dest.close();
         System.out.println("checksum: " + checksum.getChecksum().getValue());*/
         // traitement de toute exception
    catch(Exception ex) {
              ex.printStackTrace();
    And here is the error stack :
    "D:\jdev32\java1.2\jre\bin\javaw.exe" -mx50m -classpath "D:\jdev32\myclasses;D:\jdev32\lib\jdev-rt.zip;D:\jdev32\jdbc\lib\oracle8.1.7\classes12.zip;D:\jdev32\lib\connectionmanager.zip;D:\jdev32\lib\jbcl2.0.zip;D:\jdev32\lib\jgl3.1.0.jar;D:\jdev32\java1.2\jre\lib\rt.jar" pack_zip.czip
    Adding: accueil188.cfm
    java.io.FileNotFoundException: accueil188.cfm (Le fichier spécifié est introuvable.
         void java.io.FileInputStream.open(java.lang.String)
         void java.io.FileInputStream.<init>(java.lang.String)
         void pack_zip.fzip.actionPerformed(java.awt.event.ActionEvent)
         void javax.swing.AbstractButton.fireActionPerformed(java.awt.event.ActionEvent)
         void javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(java.awt.event.ActionEvent)
         void javax.swing.DefaultButtonModel.fireActionPerformed(java.awt.event.ActionEvent)
         void javax.swing.DefaultButtonModel.setPressed(boolean)
         void javax.swing.plaf.basic.BasicButtonListener.mouseReleased(java.awt.event.MouseEvent)
         void java.awt.Component.processMouseEvent(java.awt.event.MouseEvent)
         void java.awt.Component.processEvent(java.awt.AWTEvent)
         void java.awt.Container.processEvent(java.awt.AWTEvent)
         void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
         void java.awt.LightweightDispatcher.retargetMouseEvent(java.awt.Component, int, java.awt.event.MouseEvent)
         boolean java.awt.LightweightDispatcher.processMouseEvent(java.awt.event.MouseEvent)
         boolean java.awt.LightweightDispatcher.dispatchEvent(java.awt.AWTEvent)
         void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
         void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
         void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
         boolean java.awt.EventDispatchThread.pumpOneEvent()
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
         void java.awt.EventDispatchThread.run()
    Thank you very much

    One easy way to send a file through RMI is to read all bytes of a file to a byte array and send this array as a parameter of a remote method. But of course you may have problems with memory when you send large files. The receive is simillary.
    Other way is to split the file and getting slices of the file, sending slices and re-assemble at destination. This assume that the file isn't changed through the full transfering is concluded.
    I hope these could help you.

  • Fileinputstream problem in session bean

    Hi i m using fileInputStream in Seesion bean to read one file. but i want to give relative path of that file according to ear. but it give me fileNotFound Exception.. i cant give physical path of that file.. the file i m trying to read exists in the ear..
    can u help me out?
    Venky

    I have read some good number of XMLs and property files. Make use of Class.getResourceAsStream()method by passing the file name as argument. From the InputStream construct FileInputStream.

  • Transferring files from users mashines on the server. Uploading with applet

    I'm trying to create applet that would do uploading of user file on the server.
    I'm woundering, Is there any ways to use java applet to open a file on user mashine into a stream and transfer it thought socket into
    server? Is there any good solution that do uploading with java applet? (I can't use CGI or PHP)
    I just noticed that applets don't support FileInputStream. How could I in general get information from user file?
    Ok. Thanks for ideas that you gave me. But there are useless. All that I can use is only HTTP. Unfortunately no FTP, no Web Start application.
    looking for help

    well, i don't work a lot with applets because of their inherent limitations. but my guess would be that you have to somehow use a signed applet. of course that doesn't help with the FileInputStream problem you are talking about.
    if i were going to do it and i couldn't use FTP, i'd write a WebStart app that calls servlets (sending it byte arrays) and the servlets will construct the files on the server...
    i have no clue how you are going to do what you want...

  • FileInputStream read problem

    Hi!
    I have a problem with reading a byte[] buffer from a file using the FileInputStream:
    ----- code example -----
    File = new FileInputStream(filename);
    data = new byte[File.available()];
    File.read(data);
    String test = new String(data);
    ----- end example -----
    So, when I print the bytes of the array "data", some chars are strange (negative numbers).
    When I convert the byte array into a string, some of the ASCII codes of the string's chars are wrong (like 65533).
    What can I do?

    It totally depends on what kind of data you're trying to read in choosing between a reader and an input stream. If you're reading binary data (like an image), use the input stream and read bytes. If you're trying to read character data, use a reader:BufferedReader reader = new BufferedReader (new FileReader ("test.txt"));
    String line;
    while ((line = reader.readLine ()) != null) {
        // process line
    }Kind regards,
      Levi

  • EntityResolver problem with InputStream other than FileInputStream

    Hi everybody,
    I have problems with resolving entities. I tried parsing xml-data with JAXP / Xerces 2.6 Sax and needed an EntityResolver for including xml-data, stored in an external-file:
    <!ENTITY test SYSTEM "test.xml">
    <a>
    &test;
    </a>It was working, as long as I put the xml above in a file and used a fileInputStream for creating the inputSource-object. Of course I set a SystemId with the path to test.xml. When I used a fileInputStream, the EntityResolver was called (I implemented it just for tracing reasons) and my data was processed correctly. As soon as I put the xml above e.g. in a ByteArrayInputStream, and used this for creating a InputSource-object, the my EntityResolver wasn't called and it didn't work. So why is this problem with EntityResolver and other Streams but FileInputStream?? Is it a bug? Did I miss something??
    Thanks for any help!!!

    I appologize for my mistake with my first post.
    While I was copying the code for this forum today, I recognized a typing error in my xml-string:
    String xmlString = "<?xml version=\"1.0\"?> <!DOCTYPE staticinc [ <!ENTITY test SYSTEM \"test.xml\">]><a>%test;</a>";I used a percent-sign instead of amp for the test-entity, and as stupid this is - this was of course the reason for my entity resolver not being called. I get a warning by xml-editors if I have this error in a file, but not during parse of a string.
    Somehow I got on the wrong track, because of the description I found in the other thread about entityResolver problems for "none-file-sources" and it seemed to fit.
    Again, sorry !! Thanks for your offer to help!!

  • Problem retrieving a list of values with XPATH

    Hi,
    I am trying to get a list of all 'Fields' (under the SubscriptionList -> EconomicIndicator -> Code) which have 'Provider' =DJ.
    I am using the below xpath expression. But It is not working. I tried other variations but none of them return mulitple items.
    Can some one please tell me if Iam missing something.
                   XPathExpression xPathExpression= xpath.compile("/SubscriptionList/EconomicIndicator[*]/Code[Provider=DJ]/Fields");
                   NodeList result = (NodeList)xPathExpression.evaluate(doc, XPathConstants.NODESET);
              for (int i = 0; i < result.getLength(); i++) {
                   Element element = (Element)result.item(i);
              System.out.println(element.getNodeValue());
    <?xml version="1.0" encoding="UTF-8"?>
    <SubscriptionList>
    <DefaultEconomicIndicatorName>US ADP Employment Change</DefaultEconomicIndicatorName>
    <!--GE IFO - Business Climate-->
    <EconomicIndicator>
    <Name>GE IFO - Business Climate</Name>
    <Active>0</Active>
    <OutputFormat></OutputFormat>
    <OutputUnits>1</OutputUnits>
    <StartDate>2007-06-22T03:50:00</StartDate>
    <EndDate>2007-06-22T04:10:00</EndDate>
    <Code>
    <Provider>BB</Provider>
    <Service>Index</Service>
    <InstrumentCode>GRIFPBUS</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>BB1</Provider>
    <Service>Index</Service>
    <InstrumentCode>GRIFPBUS</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>BB2</Provider>
    <Service>Index</Service>
    <InstrumentCode>GRIFPBUS</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>BB3</Provider>
    <Service>Index</Service>
    <InstrumentCode>GRIFPBUS</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>RFA</Provider>
    <Service>IDN_SELECTFEED</Service>
    <InstrumentCode>DEBUSS=ECI</InstrumentCode>
    <FID>356</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>DJ</Provider>
    <Service></Service>
    <InstrumentCode>GM_IFO</InstrumentCode>
    <FID></FID>
    <Units>1</Units>
    <Fields>GM_IFO_BUSSENTIMENT_Cur</Fields>
    </Code>
    <Code>
    <Provider>DJS</Provider>
    <Service></Service>
    <InstrumentCode>GM_IFO</InstrumentCode>
    <FID></FID>
    <Units>1</Units>
    <Fields>GM_IFO_BUSSENTIMENT_Cur</Fields>
    </Code>
    </EconomicIndicator>
    <!--GE Producer Prices (MoM)-->
    <EconomicIndicator>
    <Name>GE Producer Prices (MoM)</Name>
    <Active>0</Active>
    <OutputFormat></OutputFormat>
    <OutputUnits>1</OutputUnits>
    <StartDate>2007-06-20T01:50:00</StartDate>
    <EndDate>2007-06-20T02:10:00</EndDate>
    <Code>
    <Provider>BB</Provider>
    <Service>Index</Service>
    <InstrumentCode>GRPFIMOM</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>BB1</Provider>
    <Service>Index</Service>
    <InstrumentCode>GRPFIMOM</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>BB2</Provider>
    <Service>Index</Service>
    <InstrumentCode>GRPFIMOM</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>BB3</Provider>
    <Service>Index</Service>
    <InstrumentCode>GRPFIMOM</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>RFA</Provider>
    <Service>IDN_SELECTFEED</Service>
    <InstrumentCode>DEPPI=ECI</InstrumentCode>
    <FID>356</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    </EconomicIndicator>
    <!--UK CBI Industrial Trend-->
    <EconomicIndicator>
    <Name>UK CBI Trends - Orders</Name>
    <Active>0</Active>
    <OutputFormat></OutputFormat>
    <OutputUnits>1</OutputUnits>
    <StartDate>2007-06-21T05:50:00</StartDate>
    <EndDate>2007-06-21T06:10:00</EndDate>
    <Code>
    <Provider>RFA</Provider>
    <Service>IDN_SELECTFEED</Service>
    <InstrumentCode>GBCBIO=ECI</InstrumentCode>
    <FID>356</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    </EconomicIndicator>
    <!--UK CBI Industrial Trend-->
    <EconomicIndicator>
    <Name>UK CBI Distributive - Trades</Name>
    <Active>0</Active>
    <OutputFormat></OutputFormat>
    <OutputUnits>1</OutputUnits>
    <StartDate>2007-06-21T05:50:00</StartDate>
    <EndDate>2007-06-21T06:10:00</EndDate>
    <Code>
    <Provider>RFA</Provider>
    <Service>IDN_SELECTFEED</Service>
    <InstrumentCode>GBCBIS=ECI</InstrumentCode>
    <FID>356</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    </EconomicIndicator>
    <!--US Unit Labor Costs-->
    <EconomicIndicator>
    <Name>US Unit Labor Costs</Name>
    <Active>0</Active>
    <OutputFormat></OutputFormat>
    <OutputUnits>1</OutputUnits>
    <StartDate>2007-09-06T08:20:00</StartDate>
    <EndDate>2007-09-06T08:40:00</EndDate>
    <Code>
    <Provider>BB</Provider>
    <Service>Index</Service>
    <InstrumentCode>COSTNFR%</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>BB1</Provider>
    <Service>Index</Service>
    <InstrumentCode>COSTNFR%</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>BB2</Provider>
    <Service>Index</Service>
    <InstrumentCode>COSTNFR%</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>BB3</Provider>
    <Service>Index</Service>
    <InstrumentCode>COSTNFR%</InstrumentCode>
    <FID>PX_LAST</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>RFA</Provider>
    <Service>IDN_SELECTFEED</Service>
    <InstrumentCode>USLCTS=ECI</InstrumentCode>
    <FID>356</FID>
    <Units>1</Units>
    <Fields></Fields>
    </Code>
    <Code>
    <Provider>DJ</Provider>
    <Service></Service>
    <InstrumentCode>US_PROD2_REV</InstrumentCode>
    <FID></FID>
    <Units>1</Units>
    <Fields>US_PROD2_REV_UNITLABORCOST_CurQChgPct</Fields>
    </Code>
    <Code>
    <Provider>DJS</Provider>
    <Service></Service>
    <InstrumentCode>US_PROD2_REV</InstrumentCode>
    <FID></FID>
    <Units>1</Units>
    <Fields>US_PROD2_REV_UNITLABORCOST_CurQChgPct</Fields>
    </Code>
    </EconomicIndicator>
    </SubscriptionList>

    Hi DrClap,
    I have a similar problem again. This time I am trying to extract a list of values from a xsd. Below is the code that I am using.
              try{
                   djxsd = new FileInputStream("djei-3.1.xsd");
                   XPathFactory factory = XPathFactory.newInstance();
                   XPath xpath = factory.newXPath();
                   SimpleNamespaceContext nsContext = new SimpleNamespaceContext();
                   xpath.setNamespaceContext(nsContext);
                   nsContext.addNamespace("xs", "http://www.w3.org/2001/XMLSchema");
                   nsContext.addNamespace("xsi","http://www.w3.org/2001/XMLSchema-instance");
                   +//String exp = "//xs:element/@name/text()";+               
    String exp = "/xs:schema/xs:group/xs:sequence/xs:element";
                   XPathExpression xPathExpression= xpath.compile(exp);
                   NodeList result = (NodeList)xPathExpression.evaluate(doc, XPathConstants.NODESET);
                   FileOutputStream outputfile = new FileOutputStream("log.txt");
              for (int i = 0; i < result.getLength(); i++) {
                   Element element = (Element)result.item(i);
                   String output = element.getTextContent().trim();
                   if(output.length() > 0)
                        outputfile.write(output.getBytes());
                        //System.out.println(output);
    Highlighted in Itlalics is the actual expression that I want to use. For some reason this is not working .. it returns nothing.
    The other expression works. Please let me know if there is anything wrong with the expression.
    THE XSD FILE
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" elementFormDefault="qualified">
         <xs:element name="DJEconomicIndicator">
              <xs:complexType>
                   <xs:sequence minOccurs="0" maxOccurs="unbounded">
                        <xs:group ref="allgroup"/>
                   </xs:sequence>
                   <xs:attributeGroup ref="TopGrp-Attributes"/>
              </xs:complexType>
         </xs:element>
         <xs:group name="allgroup">
              <xs:sequence>
                   <!-- ==================== CPI ========================== -->
                   <xs:element name="US_CPI_CurMonChgPct" minOccurs="0">
                        <xs:annotation>
                             <xs:documentation> US Consumer Price Index </xs:documentation>
                             <xs:appinfo> CPI </xs:appinfo>
                        </xs:annotation>
                        <xs:complexType>
                             <xs:annotation>
                                  <xs:appinfo> MoM Pct Change (Current Period) </xs:appinfo>
                             </xs:annotation>
                             <xs:simpleContent>
                                  <xs:extension base="xs:double">
                                       <xs:attributeGroup ref="common-month"/>
                                       <xs:attributeGroup ref="common-attributes"/>
                                  </xs:extension>
                             </xs:simpleContent>
                        </xs:complexType>
                   </xs:element>
                   <xs:element name="US_CPI_ExpMonChgPct" minOccurs="0">
                        <xs:annotation>
                             <xs:documentation> US Consumer Price Index </xs:documentation>
                             <xs:appinfo> CPI </xs:appinfo>
                        </xs:annotation>
                        <xs:complexType>
                             <xs:annotation>
                                  <xs:appinfo> Forecast MoM Pct Change (Current Period) </xs:appinfo>
                             </xs:annotation>
                             <xs:simpleContent>
                                  <xs:extension base="xs:double">
                                       <xs:attributeGroup ref="common-month"/>
                                       <xs:attributeGroup ref="common-attributes"/>
                                  </xs:extension>
                             </xs:simpleContent>
                        </xs:complexType>
                   </xs:element>
                   <!-- ==================CPI Unrounded==================== -->
                   <xs:element name="US_CPI_Unrounded_CurMonChgPct" minOccurs="0">
                        <xs:annotation>
                             <xs:documentation> US Consumer Price Index </xs:documentation>
                             <xs:appinfo> CPI UnRounded</xs:appinfo>
                        </xs:annotation>
                        <xs:complexType>
                             <xs:annotation>
                                  <xs:appinfo> MoM Pct Change (Current Period) </xs:appinfo>
                             </xs:annotation>
                             <xs:simpleContent>
                                  <xs:extension base="xs:double">
                                       <xs:attributeGroup ref="common-month"/>
                                       <xs:attributeGroup ref="common-attributes"/>
                                  </xs:extension>
                             </xs:simpleContent>
                        </xs:complexType>
                   </xs:element>
                   <!-- ==================CPI Core Index==================== -->
                   <xs:element name="US_CPI_Core_CurMonChgPct" minOccurs="0">
                        <xs:annotation>
                             <xs:documentation> US Consumer Price Index </xs:documentation>
                             <xs:appinfo> CPI Core </xs:appinfo>
                        </xs:annotation>
                        <xs:complexType>
                             <xs:annotation>
                                  <xs:appinfo> MoM Pct Change (Current Period) </xs:appinfo>
                             </xs:annotation>
                             <xs:simpleContent>
                                  <xs:extension base="xs:double">
                                       <xs:attributeGroup ref="common-month"/>
                                       <xs:attributeGroup ref="common-attributes"/>
                                  </xs:extension>
                             </xs:simpleContent>
                        </xs:complexType>
                   </xs:element>
                   <xs:element name="US_CPI_Core_ExpMonChgPct" minOccurs="0">
                        <xs:annotation>
                             <xs:documentation> US Consumer Price Index </xs:documentation>
                             <xs:appinfo> CPI Core </xs:appinfo>
                        </xs:annotation>
                        <xs:complexType>
                             <xs:annotation>
                                  <xs:appinfo> Forecast MoM Pct Change (Current Period) </xs:appinfo>
                             </xs:annotation>
                             <xs:simpleContent>
                                  <xs:extension base="xs:double">
                                       <xs:attributeGroup ref="common-month"/>
                                       <xs:attributeGroup ref="common-attributes"/>
                                  </xs:extension>
                             </xs:simpleContent>
                        </xs:complexType>
                   </xs:element>

  • Java Threads Problem

    Hi, I am trying to write a simple java threads program where in one thread reads a file and another thread writes the data into a second file....
    Here is my code, although i think i am correct, my program still runs in a sequential fashion help help help!!!
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    class MyThread extends Thread{
    private int a;
    private int c;
    FileInputStream in;
    FileOutputStream out;
    public MyThread(int a){
    this.a = a;
    public void run(){
    if(this.a==5)
         try {
         in = new FileInputStream("Britney.txt");
    } catch (FileNotFoundException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
    try {
         while((c=in.read())!=-1)
              a = (char) c;
              System.out.println(a);
    catch (IOException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
    if(this.a==10)
         try {
              out = new FileOutputStream("romi.txt");
         } catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         for(int i = 0;i<50;i++)
              try {
                   System.out.println(c);
                   out.write(c);
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    class MainMyThread{
    public static void main(String args[]){
    MyThread thr1, thr2;
    thr1 = new MyThread(5);
    thr2 = new MyThread(10);
    thr1.start();
    thr2.start();
    }

    Encephalopathic wrote:
    malcolmmc wrote:
    ... Chances of getting any kind of reply except "me too" can be pretty remote. ....there's actually a better chance of getting a reply on a general forum like this one, ....Can't you just post in both the narrow and the general forum, but include links one to the other in each thread? Or is that against the forum rules/etiquette? Most people here are ok with a crosspost IF those links are included.
    I would also ask that the OP designate one of those threads as the real discussion thread and just direct folks there from the other threads, so that we have one coherent discussion. If he does that, there's no problem with trying to reach out to as broad an audience as possible.
    I would figure that if the poster were upfront about what they are doing, folks wouldn't mind, but I could be wrong.I think that's generally the case. As long as the discussion is confined to one thread (and pointed there from the crossposts) or at the very least all the participants can see all the discussions, I think most people don't have a problem with it. It's when we waste our time answering when he's already got the answer elsewhere that's annoying.

  • Reading into ArrayList problem - what is wrong?

    Hi, I am trying to read a list of strings into an ArrayList and am having some problems. I have created a main() which at the moment does nothing, its just to make sure that the array's content is genuine (meaning consistent with the string in the text file) so I am having it simply printed out to screen. The error I am getting is "cannot resolve symbol, variable array" by my compiler (Jcreator). I will paste the code below:
    import java.io.*;
    import java.util.*;
    public class hostList{
    public hostList()
    try
    File input = new File("hosts.txt");
    BufferedReader in=new BufferedReader(
         new InputStreamReader(new FileInputStream(input)));
         ArrayList list=new ArrayList();
         String line;
         while((line=in.readLine())!=null)
              list.add(line);
         String[] array=new String[list.size()];
         list.toArray(array);
         in.close();
    catch(FileNotFoundException e)
    System.err.println("File not found...");
    catch(IOException e)
    System.err.println("IO Problem");
    }//hostLst()
         public static void main (String [] args){
              System.out.println("Array content:");
              System.out.println("array " + array[0]);
              for (int i=0; array[i] !=null; i++)
                   System.out.println(array);
         }//main
    }//class
    Also, how would I use the array objects in another class, say class B. How can I access the arrays in class B so that i can use its methods? eg. array[i].doSomething(); where doSomething() is a method in class B. What libraries would i need to import (if any) ?
    Help is appreciated, thanks.

    this code wont compile bcas in main method u r not creating the object of this class also the var array is not globally declared hence wont be accesibile outside
    u can try this modified code
    import java.io.*;
    import java.util.*;
    public class hostList{
    String[] array=null;
    public hostList()
    try
    File input = new File("hosts.txt");
    BufferedReader in=new BufferedReader(
    new InputStreamReader(new FileInputStream(input)));
    ArrayList list=new ArrayList();
    String line;
    while((line=in.readLine())!=null)
    list.add(line);
    array=new String[list.size()];
    list.toArray(array);
    in.close();
    catch(FileNotFoundException e)
    System.err.println("File not found...");
    catch(IOException e)
    System.err.println("IO Problem");
    }//hostLst()
    public static void main (String [] args){
    hostList h=new hostList();
    System.out.println("Array content:");
    System.out.println("array " + h.array[0]);
    }//main
    }//class

  • XML parsing problem

    Hi, my problem is :
    In my Application i want to parse an XML file with DOM parser. The problem is that in my Project "MyProject -> Project Properties -> Libraries and Classpath"
    I have included some 15 libraries which are useful for my Application: ADF Faces Runtime 11, ADF Web Runtime and etc.
    Problems are causing the libraries: BC4J Runtime,ADF Model Runtime, MDS Runtime Dependencies
    because when added my source which is parsing an XML file stops working.The source code is:
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    File file =
    new File("C:\\Documents and Settings\\ilia\\Desktop\\begin.xml");
    Document doc = db.parse(file);
    Element root = doc.getDocumentElement();
    NodeList dots = root.getElementsByTagName("w:t");
    Element firstDot = (Element)dots.item(0);
    String textValue = firstDot.getFirstChild().getNodeValue();
    I use DOM because i need to change some values in the XML file, but its not working neither for reading nor for writing.When debugging I see that it gets the root of the xml but " firstDot.getFirstChild().getNodeValue() " returns null and it breaks with NullPointerException. And that's only when the libraries mentioned above are added to the project. Without them it works just fine !
    I don't know, it's like when added the parser validates my xml against some schema and returns null.
    The xml file is very simple MS Word Document saved as .xml .But I don't think that's the problem.
    Thanks in advance !
    iliya

    Hi all,
    I found the solution to my problem.The right way to parse and change an XML file with DOM parser using the Oracle XML Parser v2 should look like this:
    JXDocumentBuilderFactory factory =
    (JXDocumentBuilderFactory)JXDocumentBuilderFactory.newInstance();
    JXDocumentBuilder documentBuilder =
    (JXDocumentBuilder)factory.newDocumentBuilder();
    File file = new File("c:/Documents and Settings/ilia/Desktop/begin.xml");
    InputStream input =
    new FileInputStream(file);
    XMLDocument xmlDocument = (XMLDocument)(documentBuilder.parse(input));
    System.out.println("Encoding: " + xmlDocument.getEncoding());
    System.out.println("Version: " + xmlDocument.getVersion());
    NodeList namespaceNodeList =
    xmlDocument.getElementsByTagNameNS("http://schemas.microsoft.com/office/word/2003/wordml","t");
    XMLElement namespaceElement17 = (XMLElement)namespaceNodeList.item(17);
    namespaceElement17.getFirstChild().setNodeValue("someString");

  • [Solved] Installation problem on HP-UX

    Hi there,
    I try to install Oracle Database 10g Release 2 on an HP-UX system.
    You'll find below the result of uname -a if it can help.
    HP-UX c3750 B.11.11 U9000/785 2015203204 unlimited-user licenseWhen I run "runInstaller" in a terminal, here is what is being displayed.
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be B.11.23 or B.11.11.    Actual B.11.11
                                          Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-03-22_12-13-41PM. Please wait ...$ Oracle Universal Installer, Version 10.2.0.1.0 Production
    Copyright (C) 1999, 2005, Oracle. All rights reserved.Then, I got a new window appearing asking me where to install Oracle DB and if I want to create a database.
    Of course, I leave the default choice for the installation directory (the oracle $HOME is correctly setup and selected)
    Then, when I press "Next", the window closes and here is what I have in the terminal. ps : The same thing is happening if I decide to create a database or not.
    java.io.FileNotFoundException: /tmp/OraInstall2012-03-22_12-13-41PM/oui/instImages/images.properties (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at java.io.FileInputStream.<init>(FileInputStream.java:66)
            at oracle.sysman.oii.oiif.oiifm.OiifmSplashScreen.loadProperties(OiifmSplashScreen.java:444)
            at oracle.sysman.oii.oiif.oiifm.OiifmSplashScreen.<clinit>(OiifmSplashScreen.java:93)
            at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:259)
            at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
            at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
            at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
            at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
            at oracle.sysman.oio.oioc.OiocOneClickInstaller.runInstaller(OiocOneClickInstaller.java:1957)
            at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2185)
    Exception java.lang.ExceptionInInitializerError occurred..
    java.lang.ExceptionInInitializerError
            at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:259)
            at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
            at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
            at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
            at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
            at oracle.sysman.oio.oioc.OiocOneClickInstaller.runInstaller(OiocOneClickInstaller.java:1957)
            at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2185)
    Caused by: java.lang.NumberFormatException: null
            at java.lang.Integer.parseInt(Integer.java:436)
            at java.lang.Integer.<init>(Integer.java:609)
            at oracle.sysman.oii.oiif.oiifm.OiifmSplashScreen.<clinit>(OiifmSplashScreen.java:103)
            ... 7 more
    Exception in thread "main" java.lang.NoClassDefFoundError
            at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.<init>(OiifmGraphicInterfaceManager.java:259)
            at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
            at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
            at oracle.sysman.oii.oiif.oiifm.OiifmAlert.<clinit>(OiifmAlert.java:151)
            at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)
            at oracle.sysman.oio.oioc.OiocOneClickInstaller.runInstaller(OiocOneClickInstaller.java:1957)
            at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:2185)And that's it, nothing more is happening :(.
    After searching on the internet, some messages said it might be because the dowload is corrupted, so they suggested to download it again. I have done so but the same problem appears again.
    Have you got any idea what is going wrong there.
    Thank you VERY much in advance and sorry for my bad English (this is not my native language).
    Edited by: 916761 on 23 mars 2012 03:36

    Hi;
    You have to login https://support.oracle.com/CSP/ui/flash.html and you have to CSI account.
    This site is oracle site for tech. documents for can rise SR etc.. for more details please check Re: Installing Oracle Database 10.2.0.4
    you need to customer support identifier which is called CSI for can login metalink(https://support.oracle.com/CSP/ui/flash.html)
    If you dont have metalink account there is no legal way to see this doc
    Pretty simple process:
    1) You purchase a perpetual or term license from Oracle;
    2) At the beginning of the period, during the valid term you purchase
    Support for the period (1 year);
    3) Oracle sends you the CSI.
    Easy to do at http://store.oracle.com armed with a credit card.
    Sorry, I'm sure you'll think I'm stupidNo I dont think mate :)
    Regard
    Helios

  • Problem on windows xp with downloaded zip file

    Hi,
    I have written a JSP to download file which is as follows
    try
    response.setContentType("application/download");
    response.setHeader("Content-Disposition","attachment;filename=<FileName>");
    int iRead;
    FileInputStream stream = null;
    try
    File f = new File(<FilePath>);
    stream = new FileInputStream(f);
    while ((iRead = stream.read()) != -1)
    out.write(iRead);
    out.flush();
    finally
    if (stream != null)
    stream.close();
    catch(Exception e)
    //out.println("Exception : "+e);
    After downloading zip file, could not extract files on windows XP by using any tool or built-in extractor i.e. compressed(zipped)folders (error: compressed folder invalid or corrupted).
    But this works on win2k or win98
    How can i work with it or can anyone tell me a solution to handle such a problem.
    Thanks in advance.
    Rajesh
    [email protected]

    This could be a problem with the built-in ZIP program in Win XP - it's possible that the ZIP you are downloading (uploading?) is simply incompatible with the XP program. In Win 98 & 2000, you would have to use your own ZIP program, e.g. Winzip, and that can handle more formats that the XP program.
    Try installing the same ZIP program that you have on w98/2k on your XP machine, and see if you can open the uploaded file using it.

  • FILE UPLOAD PROBLEM SHOWING THE CONTENTS IN THE SAME BROWSER WINDOW

    Hi,
    This is amit Joshi
    I have uploaded content using input tag of type file and posted to jsp as multipart/form-data type
    in that jsp i am using following code to display the content in browser but only first content is displayed How can i modify it to show all content in the file ..
    <html>
    <head>
    <title>File Upload Display</title>
    </head>
    <body>
    <%
    //ServletOutputStream sout=response.getOutputStream();
    StringBuilder strBuilder = new StringBuilder();
    int count=0;
    String f;
    f=request.getParameter("filedb");
    DBManager dbm = new DBManager();
    //dbm.createTable("mms3");
    //log.info("In JSP : "+ f);
    //dbm.insert_data(f,"mms3");
    %>
    <%
    if (ServletFileUpload.isMultipartContent(request)){
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    strBuilder.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>").append('\r').append('\n').append("<xpage version=\"1.0\">").append('\r').append('\n');
    String optionalFileName = "";
    FileItem fileItem = null;
    Iterator it = fileItemsList.iterator();
    ServletOutputStream outputStream=null;
    while (it.hasNext()){
    FileItem fileItemTemp = (FileItem)it.next();
    if (fileItemTemp.isFormField()){
    %>
    <b>Name-value Pair Info:</b>
    Field name: <%= fileItemTemp.getFieldName() %>
    Field value: <%= fileItemTemp.getString() %>
    <%
    if (fileItemTemp.getFieldName().equals("filename"))
    optionalFileName = fileItemTemp.getString();
    else
    fileItem = fileItemTemp;
    if (fileItem!=null){
    String fileName = fileItem.getName();
    %>
    <b>Uploaded File Info:</b>
    Content type: <%= fileItem.getContentType() %>
    Field name: <%= fileItem.getFieldName() %>
    File name: <%= fileName %>
    <%
    if(fileItem.getContentType().equals("image/jpeg")) { %>
    File : <p><%
         //response.setContentType("image/gif");
         byte[] bArray=fileItem.get();
         response.setContentType("image/jpeg");
         outputStream=null;
         outputStream= response.getOutputStream();
         outputStream.write(bArray);
         outputStream.flush();
         outputStream.close();
    else if(fileItem.getContentType().equals("text/plain"))
         %> File : <%= fileItem.getString() %>
    <%
    byte[] bArray=fileItem.get();
    response.setContentType("text/plain");
         outputStream = response.getOutputStream();
         out.println();
         outputStream.write(bArray);
         outputStream.flush();
         outputStream.close();
    %> </p> <%
    %>
    </body>
    </html>
    Edited by: Amit_Joshi on Nov 13, 2007 10:58 PM

    Well Well Well..
    That would not work...
    What you have to do is save the uploaded file content on to a location and then pass the fileName as a request parameter to a deidicated which displays the contents of that file.
    Just as an example
    <html>
    <head>
    <title>File Upload Display</title>
    </head>
    <body>
    <%
    //ServletOutputStream sout=response.getOutputStream();
    StringBuilder strBuilder = new StringBuilder();
    int count=0;
    String f;
    f=request.getParameter("filedb");
    DBManager dbm = new DBManager();
    //dbm.createTable("mms3");
    //log.info("In JSP : "+ f);
    //dbm.insert_data(f,"mms3");
    %>
    <%
    if (ServletFileUpload.isMultipartContent(request)){
    ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());
    List fileItemsList = servletFileUpload.parseRequest(request);
    strBuilder.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>").append('\r').append('\n').append("<xpage version=\"1.0\">").append('\r').append('\n');
    String optionalFileName = "";
    FileItem fileItem = null;
    Iterator it = fileItemsList.iterator();
    ServletOutputStream outputStream=null;
    while (it.hasNext()){
       FileItem fileItemTemp = (FileItem)it.next();
    %>
    Name-value Pair Info:
    Field name: <%= fileItemTemp.getFieldName() %><br/>
    Field value: <%= fileItemTemp.getString() %><br/>
    <%
    if (fileItemTemp.getFieldName().equals("filename"))
        optionalFileName = fileItemTemp.getString();
    if(!fileTempItem.isFormFiled()){
       String fileName = fileItem.getName();
       fileItem.write(optionalFileName);
    %>
    Uploaded File Info:
    Content type: <%= fileItem.getContentType() %><br/>
    Field name: <%= fileItem.getFieldName() %><br/>
    File name: <%= fileName %><br/>
    <%
    if(fileItem.getContentType().equals("image/jpeg") || fileItem.getContentType().equals("image/pjeg")) {
    %>
      <img src="FileServlet?fileName=<%=optionalFileName%>"   
    <%
    %>
    </body>
    </html>a sample code snippet for FileServlet.
    String fileName =  request.getParameter(fileName);
      File file = new File(fileName);
       if(!file.exists())
         return;
      // If JSP
      String mimeType = application.getMimeType("fileName");
           If you are using servlet
           String mimeType = this.getServletContext().getMimeType(fileName);
         response.setContentType(mimeType);  
         response.setHeader("Content-Disposition","inline;filename=\\"+fileName+"\\");
      BufferedOutputStream out1 = null;
      InputStream in = null;
      if(mimeType == null)
         mimeType = "application/octet-stream";
      try{
         in = new FileInputStream(f);
         response.setContentLength(in.available());
         BufferedOutputStream out1 = new BufferedOutputStream(response.getOutputStream(),1024);
         int size = 0;
         byte[] b = new byte[1024];
         while ((size = in.read(b, 0, 1024)) > 0)
            out1.write(b, 0, size);
      }catch(Exception exp){
      }finally{
          if(out1 != null){
             try{
                out1.flush();               
                out1.close();
             }catch(Exception e){}
          if(in != null){
            try{in.close();}catch(Exception e){}
      } Hope that might answer your question :)
    However,this is not the recommended way of doing this make use of MVC pattern.Would be a better approach.
    you might think of googling on this and can findout what is the best practise followed for problems of this sort
    REGARDS,
    RaHuL

  • Problem with FILE DELETE.

    Hi,
    I am facing a wierd problem here, my requirement is to FTP the file to another server and then delete it from the directory if the FTP is successful.
    Here is my code.
    FTPClient ftp = new FTPClient();
    ftp.connect("IP_ADDRESS_OF_FTP_SERVER");
    ftp.login("userId","password");
    int ftpReply = ftp.getReplyCode();
    if(FTPReply.isPositiveCompletion(ftpReply)){
    boolean deleteSuccessful ;
    sourceFile = "C:\\FILEDELETE\\ABCD123455.csv";
    inputStream = new FileInputStream(sourceFile);
    ftpSuccessful = ftp.storeFile(completeGDGName,inputStream);
    inputStream.close();
    if(ftpSuccessful){
    fileToBeDeleted = new File"C:\\FILEDELETE\\", "ABCD123455.csv");
    System.out.println("DELETE THE FILE");
    deleteSuccessful = fileToBeDeleted.delete();
    if(deleteSuccessful){
    //Perform some other operation
    This actually deletes the the file, but "deleteSuccessful" is always 'false', when I debugged I realised that the file is deleted from the directory on my machine when 'fileToBeDeleted = new File"C:\\FILEDELETE\\", "ABCD123455.csv")' is executed. I am not sure how this is deleted before the comman delete().
    Anybody ???

    import java.io.BufferedWriter;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileWriter;
    import java.util.ArrayList;
    import org.apache.commons.net.ftp.FTPClient;
    import org.apache.commons.net.ftp.FTPReply;
    * Created on 01-Nov-2007
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    public class FPT_BatchFile {
         public static void main(String[] args) {
         FTPClient ftp = new FTPClient();
         ftp.connect("IP_ADDRESS_OF_FTP_SERVER");
         ftp.login("userId","password");
         int ftpReply = ftp.getReplyCode();
         if(FTPReply.isPositiveCompletion(ftpReply)){
         boolean deleteSuccessful ;
         sourceFile = "C:\\FILEDELETE\\ABCD123455.csv";
         FileInputStream inputStream = new FileInputStream(sourceFile);
         ftpSuccessful = ftp.storeFile(completeGDGName,inputStream);
         inputStream.close();
              if(ftpSuccessful){
                   fileToBeDeleted = new File("C:\\FILEDELETE\\", "ABCD123455.csv");
                   System.out.println("DELETE THE FILE");
                   deleteSuccessful = fileToBeDeleted.delete();
    }Here you go, Yeah I doubt it will compile as this is not the complete code and for the FTPClient you would need commons.net jar file from apache. For more clarity I added more code. The problem is only with
    fileToBeDeleted = new File("C:\\FILEDELETE\\", "ABCD123455.csv");which is just deleting off the file from the directory. So any idea what wrong with that ?
    Edited by: hector on Nov 6, 2007 4:02 PM

  • Problems creating a new project

    I just installed Creator 2.1 on a Fedora Core 4 workstation. It installed with no problems, but when I go to create a new project the wizard hangs after pressing finish. The only thing that is created is WebApplication1/nbproject/project.xml. The following is what was placed in the log.
    Log Session: Thursday, May 4, 2006 2:58:18 PM UTC
    System Info: Product Version = Java Studio Creator 2 Update 1 (Build 060417)
    Operating System = Linux version 2.6.16-1.2096_FC4 running on i386
    Java; VM; Vendor = 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b05; Sun Microsystems Inc.
    Java Home = /opt/sun/Creator2_1/java/jre
    System Locale; Encod. = en_US (rave); UTF-8
    Home Dir; Current Dir = /home/raykl; /home/raykl
    IDE Install; User Dir = /opt/sun/Creator2_1/platform5; /home/raykl/.Creator/2_1
    CLASSPATH = /opt/sun/Creator2_1/platform5/lib/boot.jar:/opt/sun/Creator2_1/platform5/lib/locale/boot_es.jar:/opt/sun/Creator2_1/platform5/lib/locale/boot_fr.jar:/opt/sun/Creator2_1/platform5/lib/locale/boot_ja.jar:/opt/sun/Creator2_1/platform5/lib/locale/boot_ko.jar:/opt/sun/Creator2_1/platform5/lib/locale/boot_zh_CN.jar:/opt/sun/Creator2_1/java/lib/dt.jar:/opt/sun/Creator2_1/java/lib/tools.jar
    Boot & ext classpath = /opt/sun/Creator2_1/patches/6311051.jar:/opt/sun/Creator2_1/java/jre/lib/rt.jar:/opt/sun/Creator2_1/java/jre/lib/i18n.jar:/opt/sun/Creator2_1/java/jre/lib/sunrsasign.jar:/opt/sun/Creator2_1/java/jre/lib/jsse.jar:/opt/sun/Creator2_1/java/jre/lib/jce.jar:/opt/sun/Creator2_1/java/jre/lib/charsets.jar:/opt/sun/Creator2_1/java/jre/classes:/opt/sun/Creator2_1/java/jre/lib/ext/localedata.jar:/opt/sun/Creator2_1/java/jre/lib/ext/sunjce_provider.jar:/opt/sun/Creator2_1/java/jre/lib/ext/dnsns.jar:/opt/sun/Creator2_1/java/jre/lib/ext/sunpkcs11.jar
    Dynamic classpath = /opt/sun/Creator2_1/platform5/core/core.jar:/opt/sun/Creator2_1/platform5/core/openide.jar:/opt/sun/Creator2_1/platform5/core/org-netbeans-swing-plaf.jar:/opt/sun/Creator2_1/platform5/core/openide-loaders.jar:/opt/sun/Creator2_1/platform5/core/updater.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_rave.jar:/opt/sun/Creator2_1/platform5/core/locale/org-netbeans-swing-plaf_es.jar:/opt/sun/Creator2_1/platform5/core/locale/openide-loaders_es.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_zh_CN.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_es.jar:/opt/sun/Creator2_1/platform5/core/locale/core_fr.jar:/opt/sun/Creator2_1/platform5/core/locale/org-netbeans-swing-plaf_zh_CN.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_ko.jar:/opt/sun/Creator2_1/platform5/core/locale/openide_fr.jar:/opt/sun/Creator2_1/platform5/core/locale/org-netbeans-swing-plaf_ja.jar:/opt/sun/Creator2_1/platform5/core/locale/core_zh_CN.jar:/opt/sun/Creator2_1/platform5/core/locale/org-netbeans-swing-plaf_fr.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_rave_ko.jar:/opt/sun/Creator2_1/platform5/core/locale/core_es.jar:/opt/sun/Creator2_1/platform5/core/locale/openide_ja.jar:/opt/sun/Creator2_1/platform5/core/locale/openide_ko.jar:/opt/sun/Creator2_1/platform5/core/locale/openide-loaders_zh_CN.jar:/opt/sun/Creator2_1/platform5/core/locale/org-netbeans-swing-plaf_ko.jar:/opt/sun/Creator2_1/platform5/core/locale/openide-loaders_ja.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_rave_fr.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_rave_es.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_rave_ja.jar:/opt/sun/Creator2_1/platform5/core/locale/openide_es.jar:/opt/sun/Creator2_1/platform5/core/locale/openide_zh_CN.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_ja.jar:/opt/sun/Creator2_1/platform5/core/locale/core_ko.jar:/opt/sun/Creator2_1/platform5/core/locale/openide-loaders_fr.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_fr.jar:/opt/sun/Creator2_1/platform5/core/locale/openide-loaders_ko.jar:/opt/sun/Creator2_1/platform5/core/locale/core_ja.jar:/opt/sun/Creator2_1/platform5/core/locale/updater_rave_zh_CN.jar:/opt/sun/Creator2_1/rave2.0/core/smresource.jar:/opt/sun/Creator2_1/rave2.0/core/rowset.jar:/opt/sun/Creator2_1/rave2.0/core/smdb2.jar:/opt/sun/Creator2_1/rave2.0/core/derbyclient.jar:/opt/sun/Creator2_1/rave2.0/core/naming.jar:/opt/sun/Creator2_1/rave2.0/core/smoracle.jar:/opt/sun/Creator2_1/rave2.0/core/com-sun-rave-extension-ide-launcher-upgrade.jar:/opt/sun/Creator2_1/rave2.0/core/smspy.jar:/opt/sun/Creator2_1/rave2.0/core/sqlx.jar:/opt/sun/Creator2_1/rave2.0/core/jgraph.jar:/opt/sun/Creator2_1/rave2.0/core/sminformix.jar:/opt/sun/Creator2_1/rave2.0/core/smbase.jar:/opt/sun/Creator2_1/rave2.0/core/smsybase.jar:/opt/sun/Creator2_1/rave2.0/core/smsqlserver.jar:/opt/sun/Creator2_1/rave2.0/core/sql.jar:/opt/sun/Creator2_1/rave2.0/core/smutil.jar:/opt/sun/Creator2_1/rave2.0/core/locale/naming_zh_CN.jar:/opt/sun/Creator2_1/rave2.0/core/locale/naming_es.jar:/opt/sun/Creator2_1/rave2.0/core/locale/com-sun-rave-extension-ide-launcher-upgrade_fr.jar:/opt/sun/Creator2_1/rave2.0/core/locale/openide_rave_fr.jar:/opt/sun/Creator2_1/rave2.0/core/locale/core_rave_es.jar:/opt/sun/Creator2_1/rave2.0/core/locale/core_rave.jar:/opt/sun/Creator2_1/rave2.0/core/locale/openide_rave_es.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sqlx_zh_CN.jar:/opt/sun/Creator2_1/rave2.0/core/locale/core_rave_zh_CN.jar:/opt/sun/Creator2_1/rave2.0/core/locale/openide_rave_zh_CN.jar:/opt/sun/Creator2_1/rave2.0/core/locale/com-sun-rave-extension-ide-launcher-upgrade_ja.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sql_fr.jar:/opt/sun/Creator2_1/rave2.0/core/locale/naming_ja.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sqlx_ja.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sqlx_fr.jar:/opt/sun/Creator2_1/rave2.0/core/locale/core_rave_fr.jar:/opt/sun/Creator2_1/rave2.0/core/locale/openide_rave.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sqlx_ko.jar:/opt/sun/Creator2_1/rave2.0/core/locale/openide_rave_ko.jar:/opt/sun/Creator2_1/rave2.0/core/locale/naming_ko.jar:/opt/sun/Creator2_1/rave2.0/core/locale/openide-loaders_rave.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sqlx_es.jar:/opt/sun/Creator2_1/rave2.0/core/locale/openide_rave_ja.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sql_ko.jar:/opt/sun/Creator2_1/rave2.0/core/locale/com-sun-rave-extension-ide-launcher-upgrade_ko.jar:/opt/sun/Creator2_1/rave2.0/core/locale/com-sun-rave-extension-ide-launcher-upgrade_zh_CN.jar:/opt/sun/Creator2_1/rave2.0/core/locale/naming_fr.jar:/opt/sun/Creator2_1/rave2.0/core/locale/core_rave_ja.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sql_zh_CN.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sql_es.jar:/opt/sun/Creator2_1/rave2.0/core/locale/com-sun-rave-extension-ide-launcher-upgrade_es.jar:/opt/sun/Creator2_1/rave2.0/core/locale/core_rave_ko.jar:/opt/sun/Creator2_1/rave2.0/core/locale/sql_ja.jar:/opt/sun/Creator2_1/nb4.1/core/org-netbeans-upgrader.jar:/opt/sun/Creator2_1/nb4.1/core/locale/org-netbeans-upgrader_ko.jar:/opt/sun/Creator2_1/nb4.1/core/locale/org-netbeans-upgrader_ja.jar:/opt/sun/Creator2_1/nb4.1/core/locale/org-netbeans-upgrader_es.jar:/opt/sun/Creator2_1/nb4.1/core/locale/org-netbeans-upgrader_zh_CN.jar:/opt/sun/Creator2_1/nb4.1/core/locale/org-netbeans-upgrader_fr.jar:/opt/sun/Creator2_1/ide5/core/org-netbeans-modules-utilities-cli.jar
    [org.netbeans.core.modules #4] Warning: module com.sun.rave.libs.jsf does not declare OpenIDE-Module-Public-Packages in its manifest, so all packages are considered public by default: http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/upgrade.html#3.4-public-packages
    Error getting db Port from file: /opt/sun/Creator2_1/rave2.0/config/com-sun-rave-install.properties (Permission denied)
    java.io.FileNotFoundException: /opt/sun/Creator2_1/rave2.0/config/com-sun-rave-install.properties (Permission denied)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at com.sun.rave.dataconnectivity.utils.DbPortUtilities.getPropFromFile(DbPortUtilities.java:43)
    at com.sun.rave.dataconnectivity.DataconnectivityModuleInstaller.setBundledDBPort(DataconnectivityModuleInstaller.java:194)
    at com.sun.rave.dataconnectivity.DataconnectivityModuleInstaller.restored(DataconnectivityModuleInstaller.java:61)
    at org.netbeans.core.modules.NbInstaller.loadCode(NbInstaller.java:322)
    at org.netbeans.core.modules.NbInstaller.load(NbInstaller.java:240)
    at org.netbeans.core.modules.ModuleManager.enable(ModuleManager.java:869)
    at org.netbeans.core.modules.ModuleList.installNew(ModuleList.java:382)
    at org.netbeans.core.modules.ModuleList.trigger(ModuleList.java:316)
    at org.netbeans.core.modules.ModuleSystem.restore(ModuleSystem.java:253)
    at org.netbeans.core.NonGui.run(NonGui.java:355)
    at org.netbeans.core.Main.run(Main.java:185)
    at org.netbeans.core.NbTopManager.getNbTopManager(NbTopManager.java:241)
    at org.netbeans.core.NbTopManager.get(NbTopManager.java:190)
    at org.netbeans.core.Main.start(Main.java:311)
    at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
    at java.lang.Thread.run(Thread.java:595)
    You are trying to access file: jndi.properties from the default package.
    Please see http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/doc-files/classpath.html#default_package
    Turning on modules:
    org.openide/1 [5.9.1.1 060417]
    org.netbeans.modules.queries/1 [1.4.1 060417]
    org.netbeans.modules.projectapi/1 [1.3.1 060417]
    org.openide.loaders [5.2.1.1 060417]
    org.netbeans.spi.viewmodel/2 [1.4.1 060417]
    org.netbeans.api.debugger/1 [1.3.1 060417]
    org.netbeans.api.debugger.jpda/1 [1.3.1 060417]
    org.netbeans.modules.j2eeapis/1 [1.3.1 060417]
    org.netbeans.bootstrap/1 [1.0.1 060417]
    org.netbeans.swing.plaf [1.2.1 060417]
    org.netbeans.core/1 [1.27.1 060417]
    org.netbeans.modules.settings/1 [1.7.1 060417]
    org.netbeans.api.xml/1 [1.8 3.999.4 060417]
    org.netbeans.modules.schema2beans/1 [1.11.1 060417]
    org.openide.io [1.6.1 060417]
    org.openide.execution [1.5.1 060417]
    org.netbeans.api.java/1 [1.7.1 060417]
    org.netbeans.modules.project.libraries/1 [1.10.1 060417]
    org.openide.src [1.5.1 060417]
    org.netbeans.libs.j2eeeditor/1 [1.4.1 060417]
    org.netbeans.modules.j2eeserver/3 [1.6.1 060417]
    org.netbeans.libs.xerces/1 [1.5.1 2.6.2]
    org.netbeans.modules.j2ee.dd/1 [1.3.1 1.0 060417]
    com.sun.rave.portlet.container/1 [1.0 1.0]
    com.sun.rave.portlet.container.pluto/1 [1.0 1.0]
    javax.jmi.reflect/1 [1.4.1 060417]
    org.netbeans.jmi.javamodel/1 [1.13.1 060417]
    javax.jmi.model/1 [1.4.1 060417]
    org.netbeans.api.mdr/1 [1.1.1 060417]
    org.netbeans.modules.jmiutils/1 [1.1.1 release41 060417]
    org.netbeans.modules.mdr/1 [1.1.1 release41 060417]
    org.netbeans.core.output2/1 [1.3.1 060417]
    org.netbeans.core.execution/1 [1.6.1 060417]
    org.apache.tools.ant.module/3 [3.17.1 060417]
    org.openidex.util/3 [3.6.1 060417]
    org.netbeans.modules.java.platform/1 [1.3.1 060417]
    org.netbeans.swing.tabcontrol [1.3.1 060417]
    org.netbeans.core.windows/2 [2.4.1 060417]
    org.netbeans.core.ui/1 [1.6.1 060417]
    org.netbeans.modules.xml.core/2 [1.7 3.999.4 060417]
    org.netbeans.modules.xml.catalog/2 [1.6 3.999.4 060417]
    org.netbeans.modules.masterfs/1 [1.4.1.1 060417]
    org.netbeans.modules.projectuiapi/1 [1.5.4.0.0 4.0.0 060417]
    org.netbeans.modules.projectui [1.3.4.0.0.1 060417]
    org.netbeans.modules.project.ant/1 [1.6.1 060417]
    org.netbeans.modules.classfile/1 [1.14.1 060417]
    org.netbeans.modules.javacore/1 [1.5.1 060417]
    org.netbeans.modules.java/1 [1.20.1.1 1.0.0 060417]
    org.netbeans.modules.java.project/1 [1.3.1 060417]
    org.netbeans.modules.javahelp/1 [2.5.1 060417]
    org.netbeans.modules.refactoring/1 [1.1.1 1.0 060417]
    org.netbeans.modules.servletapi24/1 [2.3.1 2.3.1 060417]
    org.netbeans.modules.autoupdate/1 [2.12.1.2 060417]
    com.sun.rave.extension.autoupdate/1 [1.2.1.1.0 060417]
    com.sun.rave.api.portlet.dd/1 [1.0 1.0]
    com.sun.rave.api.jsf.project/1 [1.2 060417]
    org.netbeans.libs.commons_logging/1 [1.0.1 1.0.4 060417]
    com.sun.rave.designer.markup/1 [1.0 060417]
    com.sun.rave.extension.openide/1 [1.0 060417]
    com.sun.rave.designtime/1 [1.0.0 060417]
    com.sun.rave.jsfsupport/1 [1.0.5 060417]
    org.netbeans.modules.editor.util/1 [1.4.1 060417]
    org.netbeans.modules.editor.fold/1 [1.2.1 060417]
    org.netbeans.modules.editor.lib/1 [1.3.1 0.1 060417]
    com.sun.rave.api.insync/1 [1.0 060417]
    org.netbeans.core.multiview/1 [1.5.1 060417]
    com.sun.rave.api.designer/1 [1.0 060417]
    org.apache.batik/1 [1.5 1.5]
    org.netbeans.modules.editor.plain.lib/1 [1.0.1 060417]
    org.netbeans.modules.editor/3 [1.19.1 060417]
    org.netbeans.modules.html.editor.lib/1 [1.0.1 060417]
    com.sun.rave.css/1 [1.0 060417]
    com.sun.rave.insync/1 [1.0.7 060417]
    com.sun.rave.dataprovider.runtime/1 [1.0 060417]
    com.sun.rave.jsfmetadata/1 [1.0.5 060417]
    com.sun.rave.toolbox/1 [1.0.5 060417]
    org.netbeans.modules.ant.freeform [1.5.1 060417]
    com.sun.rave.branding.projects.projectui/1 [1.0 060417]
    org.netbeans.tasklistapi/1 [1.16.6 6 060417]
    org.netbeans.modules.tasklist.core/2 [1.33.615 15 060417]
    org.netbeans.modules.suggestions_framework/2 [1.11.6158 8 060417]
    org.netbeans.modules.tasklist.docscan/2 [1.19.61584 4 060417]
    com.sun.rave.extension.tasklist.docscan/1 [1.0 060417]
    com.sun.rave.extension.ide.launcher.upgrade [4.1 060417]
    com.sun.rave.extension.core/1 [1.0 060417]
    com.sun.rave.corepackage/1 [1.1 060417]
    com.sun.rave.extension.java.platform/1 [1.0 060417]
    com.sun.rave.extension.core.javahelp/1 [1.0 060417]
    com.sun.rave.ravehelp/1 [1.0.3.1 060417]
    com.sun.rave.propertyeditors/1 [1.0.0 060417]
    org.netbeans.modules.ant.grammar/1 [1.10 060417]
    org.netbeans.spi.debugger.ui/1 [2.5.1 060417]
    com.sun.rave.extension.debuggercore/1 [1.0 060417]
    org.netbeans.modules.xml.text/2 [1.7 3.999.4 060417]
    org.netbeans.modules.javadoc/1 [1.14.1 060417]
    org.netbeans.modules.beans/1 [1.14.1 060417]
    com.sun.rave.branding.beans/1 [1.0 060417]
    org.netbeans.modules.image/1 [1.14.1.1 060417]
    org.netbeans.modules.utilities/1 [1.18.1 060417]
    com.sun.rave.branding.utilities/1 [1.0 060417]
    com.sun.rave.branding.openidex/1 [1.0 060417]
    org.netbeans.modules.vcscore/1 [1.14.1 promotionE 060417]
    org.netbeans.modules.vcscore.javacorebridge/1 [1.0.1 060417]
    org.netbeans.modules.properties/1 [1.14.1.1 060417]
    org.netbeans.modules.properties.syntax/1 [1.14.1 060417]
    org.netbeans.modules.debugger.jpda/2 [1.13.1.0.0.1 060417]
    org.netbeans.modules.debugger.jpda.ui/1 [1.2.1.0.0.1 060417]
    org.netbeans.modules.navigator/2 [4.1.1 promoe 060417]
    org.netbeans.core.ide/1 [1.6.1 060417]
    org.netbeans.modules.javanavigation/1 [4.1.1 060417]
    com.sun.rave.servernav/1 [1.1 060417]
    com.sun.rave.dataconnectivity/1 [1.0.4.1 060417]
    org.netbeans.modules.java.j2seplatform/1 [1.2.1 1.2.0 060417]
    org.netbeans.modules.servletapi/1 [1.6.1 060417]
    org.netbeans.modules.httpserver/2 [2.1.1 release41 060417]
    org.netbeans.upgrader [4.2.1 060417]
    org.netbeans.modules.java.freeform [1.0.1 060417]
    com.sun.rave.extension.java.freeform/1 [1.0 060417]
    org.netbeans.api.web.webmodule [1.2.1 060417]
    org.netbeans.modules.j2ee.api.ejbmodule [1.0.1 060417]
    org.netbeans.lib.cvsclient/1 [1.11.1 060417]
    com.sun.rave.branding.openide/1 [1.0 060417]
    org.netbeans.modules.clazz/1 [1.16.1 060417]
    com.sun.rave.extension.projects.projectui/1 [1.0 060417]
    org.netbeans.modules.web.jspparser/2 [2.2.1 060417]
    org.netbeans.modules.ant.browsetask [1.8.1 060417]
    org.netbeans.modules.j2ee.dd.webservice [1.0.1 060417]
    org.netbeans.modules.websvc.websvcapi [1.0.1 060417]
    org.netbeans.modules.junit/2 [2.14.1 060417]
    org.netbeans.modules.j2ee.common/1 [1.0.1 1.0.1 060417]
    org.netbeans.modules.servletapi23/1 [1.7.1 060417]
    org.netbeans.modules.xml.multiview/1 [1.0 1.0-release41 060417]
    org.netbeans.modules.editor.plain/1 [1.0.1 060417]
    org.netbeans.modules.html.editor/1 [1.0.1 060417]
    org.netbeans.modules.java.editor.lib/1 [1.0.1 060417]
    org.netbeans.modules.java.editor/1 [1.0.1 060417]
    org.netbeans.modules.html/1 [1.15.1 060417]
    org.netbeans.modules.web.core.syntax/1 [1.17.1.1 060417]
    org.netbeans.modules.web.core/1 [1.20.1 release41 060417]
    org.netbeans.modules.web.project [1.4.3 1.1.1.1 060417]
    org.netbeans.modules.web.jstl11/1 [2.3.1 2.3.1 060417]
    com.sun.rave.project.jsfportlet/1 [1.0 1.0]
    com.sun.rave.welcome/1 [1.0.1 060417]
    com.sun.rave.extension.web.project/1 [1.0 060417]
    org.netbeans.modules.web.freeform [1.0.2 060417]
    com.sun.rave.extension.core.execution/1 [1.0 060417]
    com.sun.rave.branding.core.windows/1 [1.0.1 060417]
    com.sun.rave.branding.xml.text/1 [1.0 060417]
    com.sun.rave.branding.autoupdate/1 [1.0 060417]
    com.sun.rave.extension.core.windows/1 [1.0 060417]
    com.sun.rave.branding.java/1 [1.0 060417]
    com.sun.rave.branding.vcscore/1 [1.0 060417]
    org.netbeans.modules.j2ee.sun.dd/1 [1.2 1.0]
    org.netbeans.modules.j2ee.sun.ide/1 [2.1.1.1 060417]
    org.netbeans.modules.debugger.jpda.ant [1.4.1 060417]
    org.netbeans.modules.java.j2seproject [1.2.2 1.2.0 060417]
    com.sun.rave.extension.vcscore/1 [1.0 060417]
    com.sun.rave.ejbsupport/1 [1.0 060417]
    com.sun.rave.jwsdpsupport/1 [1.1 060417]
    com.sun.rave.websvc/1 [1.0.6 060417]
    com.sun.rave.extension.core.output2/1 [1.0 060417]
    com.sun.rave.extension.web.freeform/1 [1.0 060417]
    org.netbeans.modules.web.monitor/1 [1.12.1 060417]
    org.netbeans.modules.diff/1 [1.10.1 promotionE 060417]
    org.netbeans.modules.vcs.advanced/1 [1.12.1 060417]
    com.sun.rave.extension.vcsgeneric/1 [1.0 060417]
    com.sun.rave.extension.objectbrowser.navigator/1 [1.0 060417]
    com.sun.rave.branding.core/1 [1.0.1 060417]
    com.sun.rave.branding.web.jspsyntax/1 [1.0 060417]
    com.sun.rave.extension.xml.catalog/1 [1.0 060417]
    com.sun.rave.extension.properties/1 [1.0 060417]
    com.sun.rave.extension.java.j2seproject/1 [1.0 060417]
    com.sun.rave.libs.jsf/1 [1.0.5 060417]
    com.sun.rave.extension.xml.core/1 [1.0 060417]
    com.sun.rave.project.migration/1 [1.0 1.0]
    com.sun.rave.navigation/1 [1.0.5 060417]
    com.sun.rave.project.navigationloader/1 [1.0 060417]
    org.netbeans.modules.vcs.profiles.cvsprofiles/1 [1.6.1 060417]
    com.sun.rave.ejb/1 [1.0.1 060417]
    org.netbeans.modules.vcs.profiles.vss/1 [1.6.1 060417]
    com.sun.rave.extension.editor/1 [1.0 060417]
    com.sun.rave.extension.core.ide/1 [1.0 060417]
    com.sun.rave.jsfcl/1 [1.1.1 060417]
    com.sun.rave.extension.core.multiview/1 [1.0 060417]
    com.sun.rave.extension.core.ui/1 [1.0 060417]
    com.sun.rave.modules.jsf.examples.postrelease/1 [1.0 060424]
    com.sun.rave.extension.debuggerjpda.ui/1 [1.0 060417]
    com.sun.rave.modules.jsf.examples.bundled/1 [1.0.1 060417]
    com.sun.rave.extension.javadoc/1 [1.0 060417]
    com.sun.rave.branding.web.project/1 [1.0 060417]
    com.sun.rave.extension.utilities/1 [1.0 060417]
    com.sun.rave.portlet.container.ant/1 [1.0 1.0]
    com.sun.rave.branding.tasklist.docscan/1 [1.0 060417]
    com.sun.rave.project.jsfloader/1 [1.1 060417]
    com.sun.rave.branding.image/1 [1.0 060417]
    com.sun.rave.extension.api.xml/1 [1.0 060417]
    com.sun.rave.branding.editor/1 [1.0 060417]
    com.sun.rave.extension.web.core/1 [1.0 060417]
    com.sun.rave.extension.xml.text/1 [1.0 060417]
    org.netbeans.modules.utilities.project/1 [1.2.1 060417]
    com.sun.rave.extension.utilities.project/1 [1.0 060417]
    com.sun.rave.extension.java/1 [1.0 060417]
    com.sun.rave.extension.java.editor/1 [1.0 060417]
    org.netbeans.modules.j2ee.ant [1.3.1 060417]
    org.netbeans.modules.j2ee.sun.ws61/1 [1.0 060417]
    com.sun.rave.extension.beans/1 [1.0 060417]
    com.sun.rave.designer/1 [1.0.6 060417]
    com.sun.rave.webui.samples.calendar/1 [0.1 060412_5]
    org.netbeans.modules.extbrowser/1 [1.6.1 060417]
    com.sun.rave.branding.extbrowser/1 [1.0 060417]
    com.sun.rave.branding.xml.core/1 [1.0 060417]
    com.sun.rave.webui.samples.ajax/1 [0.2 060410]
    com.sun.rave.branding.html/1 [1.0 060417]
    com.sun.rave.branding.xml.catalog/1 [1.0 060417]
    com.sun.rave.extension.html/1 [1.0 060417]
    com.sun.rave.extension.monitor/1 [1.0 060417]
    com.sun.rave.errorhandler.server/1 [0.2 060417]
    com.sun.rave.extension.refactoring/1 [1.0 060417]
    com.sun.rave.branding.openide.loaders/1 [1.0 060417]
    java.io.FileNotFoundException: /opt/sun/Creator2_1/rave2.0/config/com-sun-rave-install.properties (Permission denied)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at com.sun.rave.errorhandler.DebugServerThread.run(DebugServerThread.java:55)
    java.io.FileNotFoundException: /opt/sun/Creator2_1/rave2.0/config/com-sun-rave-install.properties (Permission denied)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties.getRaveInstallProperties(PluginProperties.java:736)
    at org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties.getRaveInstallProperty(PluginProperties.java:720)
    at org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties.getRaveRoot(PluginProperties.java:716)
    at org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties.makeAbsolute(PluginProperties.java:674)
    at org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties.loadPluginProperties(PluginProperties.java:174)
    at org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties.<init>(PluginProperties.java:109)
    at org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties.getDefault(PluginProperties.java:91)
    at org.netbeans.modules.j2ee.sun.ide.Installer.getPluginLoader81(Installer.java:525)
    at org.netbeans.modules.j2ee.sun.ide.Installer.initFacade(Installer.java:272)
    at org.netbeans.modules.j2ee.sun.ide.Installer.create(Installer.java:84)
    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:585)
    at org.netbeans.core.projects.cache.BinaryFS$AttrImpl.methodValue(BinaryFS.java:484)
    at org.netbeans.core.projects.cache.BinaryFS$AttrImpl.getValue(BinaryFS.java:396)
    at org.netbeans.core.projects.cache.BinaryFS$BFSBase.getAttribute(BinaryFS.java:312)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:721)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:689)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:717)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:689)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:618)
    at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1175)
    at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:692)
    at org.netbeans.modules.j2ee.deployment.impl.Server.<init>(Server.java:92)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.addPlugin(ServerRegistry.java:154)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.init(ServerRegistry.java:88)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.instancesMap(ServerRegistry.java:145)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.getServerInstances(ServerRegistry.java:279)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.getDefaultInstance(ServerRegistry.java:591)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.getDefaultInstance(ServerRegistry.java:573)
    at org.netbeans.modules.j2ee.deployment.impl.ui.RaveDefaultInstanceProvider.getDefaultInstanceNode(RaveDefaultInstanceProvider.java:20)
    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:585)
    at org.netbeans.core.projects.cache.BinaryFS$AttrImpl.methodValue(BinaryFS.java:484)
    at org.netbeans.core.projects.cache.BinaryFS$AttrImpl.getValue(BinaryFS.java:396)
    at org.netbeans.core.projects.cache.BinaryFS$BFSBase.getAttribute(BinaryFS.java:312)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:721)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:689)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:717)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:689)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:618)
    at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1175)
    at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:692)
    at org.openide.loaders.FolderInstance.instanceForCookie(FolderInstance.java:515)
    at org.openide.loaders.FolderInstance$HoldInstance.instanceCreate(FolderInstance.java:998)
    at com.sun.rave.servernav.ServerNavigator$ServerNavigatorFolder.createInstance(ServerNavigator.java:182)
    at org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:736)
    at org.openide.loaders.FolderInstance.access$000(FolderInstance.java:68)
    at org.openide.loaders.FolderInstance$2.run(FolderInstance.java:622)
    at org.openide.util.Task.run(Task.java:189)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)
    [org.netbeans.modules.j2ee.sun] PluginProperties: See http://www.netbeans.org/issues/show_bug.cgi?id=55741 !
    Warning: use of system property netbeans.home in org.netbeans.modules.j2ee.sun.ide.j2ee.PluginProperties has been obsoleted in favor of InstalledFileLocator
    INFORMATIONAL *********** Exception occurred ************ at 2:58 PM on May 4, 2006
    javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: The Application Server installation directory is not correctly set up. (Use the properties sheet of the "Java System Application Server 8" node to enter a correct value.)
    at org.netbeans.modules.j2ee.sun.ide.Installer$FacadeDeploymentFactory.getDisconnectedDeploymentManager(Installer.java:233)
    [catch] at org.netbeans.modules.j2ee.deployment.impl.Server.getDeploymentManager(Server.java:135)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.addInstanceImpl(ServerRegistry.java:387)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.addInstance(ServerRegistry.java:416)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.init(ServerRegistry.java:135)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.instancesMap(ServerRegistry.java:145)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.getServerInstances(ServerRegistry.java:279)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.getDefaultInstance(ServerRegistry.java:591)
    at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.getDefaultInstance(ServerRegistry.java:573)
    at org.netbeans.modules.j2ee.deployment.impl.ui.RaveDefaultInstanceProvider.getDefaultInstanceNode(RaveDefaultInstanceProvider.java:20)
    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:585)
    at org.netbeans.core.projects.cache.BinaryFS$AttrImpl.methodValue(BinaryFS.java:484)
    at org.netbeans.core.projects.cache.BinaryFS$AttrImpl.getValue(BinaryFS.java:396)
    at org.netbeans.core.projects.cache.BinaryFS$BFSBase.getAttribute(BinaryFS.java:312)
    at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:721)
    at org.openide.filesystems.MultiFileObjec

    OK, I have figured it out. When I initally installed Creator I did not pay attention to what the dialogs said. I just pushed the "Finish" button when it came up. After re-installing as root and my user I realized thet the last dialog said "Application Server could not be installed correctly. The following RPM packages need to be installed: compat-libstdc++, compat-libstdc++-devel"
    I had compat-libstdc++-33-3.2.3-47installed.
    I installed compat-libstdc++-296-2.96-132.
    Afterwards I installed Creator under "root" without an error, and I was able to create a new project.
    I hope this help some others. I saw several posts concerning Fedora.
    KLR

Maybe you are looking for

  • Why is Coldplay Live 2012 no longer available in the iTune store, and did my previous purchase of that content vanish from my iCloud ? library

    Still wondering the same thing. Why is Coldplay's beautiful LIVE 2012 content no longer available on iTunes ? Since I have previously purchased this concert movie , why is it no longer in the iCloud servers available to download or even more strange

  • Error while importing tpz file into XI Design

    Hi All, When i am trying to import latest exported tpz file from Dev system into Q system i am getting below error. Also the tpz file i am importing , with same file name already i have imported earlier into Q system through other Dev system. Now i a

  • DVD Burner not found

    I have recently installed a new DVD burner on my PC however when I tried to burn a DVD from Premier Elements it states that the burner is not found. I have however been able to burn a disc when using AVCHD as it finds the burner. The drop down for th

  • Doubt regarding flashback versions  query

    I am working with Oracle 10g database on Oracle Enterprise Linux I was trying this query both as sysdba and connected as the respective user . When connected as sysdba I was of course appending schema name to the table name while running the query so

  • Report-to-Report Interface problem with default values

    Hi all. I have RTR interface where target query has default values, so when I jump to target query it doesn't return whole data because of this default filter. Is it possible to remove this default filter in query in case it is executed through Repor