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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
- 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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Is pippo a package ?
Does it contain some classes ?
I guess it is empty.
yves yang
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
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
yes
bix
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
Could you send me a testcase ? I need test it.
yves yang
Yes I can send but what fille I must send to you?
All the test project zipped?
Yes, that's helpful !
Yves YANG
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
-v pippo/PersonPersister.class pippo/Pippo.class /home/fbix/workspace/caz/src/pippo.jdo
this is the arg.
I think it's correct.
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
I mean the entire project.
yves yang
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
this is a bug or my fault ?
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
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
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)
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