Menu

enhancer end with error

Help
2003-08-19
2003-08-21
  • Fabrizio Fabbri

    Fabrizio Fabbri - 2003-08-19

    I have a class that persist.
    Edit metadata first time and it's OK.
    But if I open metadata change sometime and save eclipse ask me to rebuil.
    I select "ok"  and :

    2003-08-19 10:36:29  Enhancement ends withs errors
    IO Error while enhancing: pippo/*.class (No such file or directory)
    java.io.FileNotFoundException: pippo/*.class (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:103)
        at com.sun.jdori.enhancer.Main.openFileInputStream(Unknown Source)
        at com.sun.jdori.enhancer.Main.enhanceInputFiles(Unknown Source)
        at com.sun.jdori.enhancer.Main.process(Unknown Source)
        at com.sun.jdori.enhancer.Main.main(Unknown Source)

    ---------------
    If I open the class I  persist modify (like add a blanck space) and save, enancher run and :

    2003-08-19 10:38:13  Enhancement succeed

    bix

     
    • Yves YANG

      Yves YANG - 2003-08-19

      Is pippo a package ?
      Does it contain some classes ?

      I guess it is empty.

      yves yang

       
    • Fabrizio Fabbri

      Fabrizio Fabbri - 2003-08-19

      no its not empty

      ~/workspace/caz/bin/pippo>

      -rw-r--r--    1 fbix     users        2141 2003-08-19 11:02 PersonPersister.class
      -rw-r--r--    1 fbix     users        6430 2003-08-19 11:02 Pippo.class

      I must force a rebuild of class pippo do enhance correctly, but the class file pippo exist.

      bix

       
      • Xiao-Ta Huang

        Xiao-Ta Huang - 2003-08-19

        Actually your metadata file pippo.jdo MUST BE in the same repository than pippo.java. (caz/src).

        Did u create the metadata with eclipsejdo wizard (file/new/others/jdo/metadata file) ?

        xiaota

         
        • Fabrizio Fabbri

          Fabrizio Fabbri - 2003-08-19

          yes

          bix

           
          • Xiao-Ta Huang

            Xiao-Ta Huang - 2003-08-19

            It is a little bit strange that the wizard didn't put the metadata in the right repository, unless u don't use the alpha fix version. I use this eclipsejdo feature almost every day and i ve met no probleme with it.

            Otherwise, i hope your probleme got away.

            xiaota

             
    • Yves YANG

      Yves YANG - 2003-08-19

      Could you send me a testcase ? I need test it.

      yves yang

       
    • Fabrizio Fabbri

      Fabrizio Fabbri - 2003-08-19

      Yes I can send but what fille I must send to you?

      All the test project zipped?

       
      • Yves YANG

        Yves YANG - 2003-08-19

        Yes, that's helpful !

        Yves YANG

         
    • Xiao-Ta Huang

      Xiao-Ta Huang - 2003-08-19

      hi fbix,
      Look at the enhancer run configuration of your jdo project (run.../JDO_GLAXXX_Enhancement/(x)=Arguments). Verify that they are no metadata file that not exist in the program arguments nor declared packages that not exist.

      xiaota

       
    • Fabrizio Fabbri

      Fabrizio Fabbri - 2003-08-19

      -v   pippo/PersonPersister.class pippo/Pippo.class    /home/fbix/workspace/caz/src/pippo.jdo

      this is the arg.

      I think it's correct.

       
    • Fabrizio Fabbri

      Fabrizio Fabbri - 2003-08-19

      The error look like a problem with version build.

      If i modify metadata but not the class, eclipse don't recompile the .class so is like the enancher not found a new version of .class to enhance and tell no file.
      If I force a eclipse source recompile the enhanche start and find a new version of file and enhance it.

      bix

       
    • Yves YANG

      Yves YANG - 2003-08-19

      I mean the entire project.

      yves yang

       
    • Fabrizio Fabbri

      Fabrizio Fabbri - 2003-08-19

      To reproduce error try this:

      - Open project caz
      - Open pippo.jdo
      - Change some on metadata for example some key or persistance checkbox on attibute "nome" on class Pippo
      - CTRL+s to save
      - Confirm OK

      Can you see the error
      2003-08-19 15:10:56  Enhancement ends withs errors
      IO Error while enhancing: pippo/*.class (No such file or directory)

      but on bin/pippo can you find Pippo.class

       
    • Fabrizio Fabbri

      Fabrizio Fabbri - 2003-08-19

      this is a bug or my fault ?

       
    • Yves YANG

      Yves YANG - 2003-08-19

      I didn't make any tests yet. I'm pretty sure it is relative to TJDO enhancer, which doesn't take the current working location into consideration.

      yves yang

       
    • Fabrizio Fabbri

      Fabrizio Fabbri - 2003-08-19

      In the test I use the Sun enhancer embedded on eclipsejdo plugins.
      TJDO not have develpped a anhancer they wrap around the Sun Reference Enhancer, but for my configuratione and test I use directly the Sun enhancer.

      bix

       
    • Fabrizio Fabbri

      Fabrizio Fabbri - 2003-08-20

      I installed last version 9.4,  I continue to have problem with auto enhancer.
      I've try with the Sun Reference the .log is:
      !ENTRY com.versant.eclipse.jdo 1 0 ago 20, 2003 16:25:22.97
      !MESSAGE Project caz will be enhanced with
      -v   pippo/*.class    /home/fbix/workspace/caz/src/pippo.jdo
      additional jars :
      /home/fbix/eclipse/plugins/com.versant.eclipse.jdo_0.9.4/jdo.jar
      /home/fbix/Development/java/jdo/pg73b1jdbc3.jar

      !ENTRY com.versant.eclipse.jdo 4 0 ago 20, 2003 16:25:23.192
      !MESSAGE Enhancement ends withs errors
      IO Error while enhancing: pippo/*.class (No such file or directory)
      java.io.FileNotFoundException: pippo/*.class (No such file or directory)
              at java.io.FileInputStream.open(Native Method)
              at java.io.FileInputStream.<init>(FileInputStream.java:103)
              at com.sun.jdori.enhancer.Main.openFileInputStream(Unknown Source)
              at com.sun.jdori.enhancer.Main.enhanceInputFiles(Unknown Source)
              at com.sun.jdori.enhancer.Main.process(Unknown Source)
              at com.sun.jdori.enhancer.Main.main(Unknown Source)

       
      • Xiao-Ta Huang

        Xiao-Ta Huang - 2003-08-21

        Until now, i work with eclipsejdo under windows os and it works fine. However it seems the enhancement feature doesn't work fully under linux os. I got the same error msg under linux. Thus it is a bug that should be fixed.

        xiaota

         

Log in to post a comment.