Project

General

Profile

GUI Demo application setup problem

Added by Kenny Chan over 6 years ago

Hi Greg,

I successfully completed the source code analytics for Hotel sample application.

Thus, I tried to complete the GUI Demo application setup and build.

I ran "Ant deploy.all" and the error messages are prompted.

[javac] Compiling 101 source files to C:\FWD\hotel\build\classes
[javac] C:\FWD\hotel\src\com\goldencode\hotel\ui\UpdateGuestDialogGdialog.java:242: error: unmappable character for encoding MS950_HKSCS
[javac] new ControlSetItem(new character("Cote D嚙質voire"), new character("Cote D嚙質voire")),
[javac]

BUILD FAILED

C:\FWD\hotel\build.xml:344: Compile failed; see the compiler error output for details.
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1416)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:1121)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:857)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)


Replies (13)

RE: GUI Demo application setup problem - Added by Eugenie Lyzenko over 6 years ago

Please unzip attached fix into your C:\FWD\hotel\ and re-run ant deploy.all.

invalid_char_fix_gui_demo_146_fwd_31.zip - Invalid char fix for GUI demo (5.2 KB)

RE: GUI Demo application setup problem - Added by Kenny Chan over 6 years ago

Hi Greg,

I saved the fix and re-run ant deploy.all.

But the process stops running. Please refer to the attached dump screens.

RE: GUI Demo application setup problem - Added by Kenny Chan over 6 years ago

Please find dump screens.

screenshot0.bmp (844 KB)

screenshot1.bmp (842 KB)

RE: GUI Demo application setup problem - Added by Eric Faulhaber over 6 years ago

Kenny, looks like we have some DBCS issues to resolve. We will look into this.

The screen shots you posted have given us some clues to follow, but it would be helpful if, in addition, you could provide the full logs associated with the demo application build/import. They would be named cvt_<timestamp>.log, create_db_h2_hotel_<timestamp>.log, and import_db_h2_hotel<timestamp>.log.

Also, can you please provide a listing of the contents of your p2j.jar file (jar -tf C:\FWD\p2j\build\lib\p2j.jar)? I want to make sure all the classes we would expect to be there were built into the jar.

RE: GUI Demo application setup problem - Added by Kenny Chan over 6 years ago

Hi Eric,

I cannot find create_db_h2_hotel<timestamp>.log and import_db_h2_hotel<timestamp>.log. in the folder and subfolders of c:\FWD\Hotel. Where can these files be located?

Please find the other files for reference.

cvt_20180212_100535.log Magnifier (1.99 MB)

p2j.out (183 KB)

RE: GUI Demo application setup problem - Added by Eric Faulhaber over 6 years ago

Hi Kenny,

Normally, they would be located in the same directory as the cvt_20180212_100535.log (in your case, C:\FWD\hotel\) when you run ant deploy.all. Maybe they were not written due to the failure. Thanks for providing the others. We are looking into the DBCS issue.

Thanks,
Eric

RE: GUI Demo application setup problem - Added by Eugenie Lyzenko about 6 years ago

Hi Kenny,

We are investigating the issue you have reported but for now have not enough info to exactly identify the command of the DB import stage you have the problem.

Please re-run the DB importing command sending the console output to the file and publish the result here. The command to do:

ant import.db.h2 > import_h2_db.log

This must be executed in the same directory as ant deploy.all you have executed previously.

Then share the import_h2_db.log with us.

RE: GUI Demo application setup problem - Added by Kenny Chan about 6 years ago

Hi Eugenie,

Please find the attached file.

import.h2.db.log Magnifier (5.13 KB)

RE: GUI Demo application setup problem - Added by Eugenie Lyzenko about 6 years ago

Hi Kenny,

Thanks for info.

Please verify you have properly did the required step described in: https://proj.goldencode.com/projects/p2j/wiki/Development_Environment_Setup#Install-FWD-Collation-Services-for-H2-Database

1. Locate all your JRE locations. Both "public" and "private" for Java you planning to use with demo.
2. Copy p2jspi.jar created on FWD build stage into \lib\ext subdirectories of your JRE install locations.
3. Re-run ant deploy.all.

4. Is the problem gone?

RE: GUI Demo application setup problem - Added by Kenny Chan about 6 years ago

Hi Eugenie,

I only copy to private JRE location as the public JRE location is restricted for saving the p2jspi.jar as in company PC.

I will try this in my home PC by following the steps.

Sorry for any inconvenience to you.

RE: GUI Demo application setup problem - Added by Kenny Chan about 6 years ago

Hi Eugenie,

Tried but the problem still exists.

Please find the attached files for your reference.

p2j.out (181 KB)

cvt_20180224_232448.log Magnifier (1.99 MB)

import_db_h2.log Magnifier (11.8 KB)

RE: GUI Demo application setup problem - Added by Eugenie Lyzenko about 6 years ago

Hi Kenny,

Please:
1. Make backup copy of the build_db.xml you have in hotel gui demo root.
2. Replace the file you have with attached here.
3. Re-run ant import.db.
4. Let me know if the problem is gone.

build_db.xml Magnifier - DB creation fix (8.13 KB)

RE: GUI Demo application setup problem - Added by Kenny Chan about 6 years ago

Hi Eugenie,

The problem has been solved. Please find the import log files for your reference.

Thanks for your support.

    (1-13/13)