NexJ Studio Tutorial Problems

From CDOT Wiki
Revision as of 13:44, 6 May 2011 by Brianlim (talk | contribs)
Jump to: navigation, search

Problem 1

User root is not recognized,or message likes "Can't find any matching row in the user table"

Solution: Use other account that has sufficient privileges to the new created databases.

Problem 2

Cannot deploy on server, get Error Message: Unknown component "HTTPServer.WSRP" in repository "Training 101".

Solution: Use new version core model and new Eclipse plugin.

Problem 3

It only upgrade the database correctly, but it doesn't upgrade the dump file.

When run recreate, I get error message Error: Version mismatch: dump version http:// www.nexj.com/ns/gwtsample-login#1.15, metadata version http:// www.nexj.com/ns/gwtsample-login#1.16

Solution: Publish a model before create any class, and Upgrade UnitTest dump before upgrade the database.


Summer 2011

Problem 4

Null pointer exception when creating a new class (P. 19) Null pointers randomly throughout use of IDE

Nexjproblem5.png

Solution: Revert to NexJ Core 7.x.x and do not use 7.1.0 (known issue from previous versions)

Problem 5

Non-matching core files

Solution: Latest versions of NexJ Studio Plugin have Optional JBoss libraries built in. Do not replace with other versions.

Problem 6

Error with Model Browser in Eclipse

Nexjcoreblock.png

Solution: File is "blocked" on Windows 7. Right click on file and click "unblock"

Problem 7

Problem upgrading database

Solution: nexj user not created yet. Create nexj user in mysql database with the appropriate commands. Grant privileges to the nexj user

CREATE USER 'nexj@localhost' IDENTIFIED BY 'nexj';
GRANT CREATE, INSERT, DELETE, UPDATE, SELECT on train101.* to nexj@localhost;
GRANT CREATE, INSERT, DELETE, UPDATE, SELECT on unittest.* to nexj@localhost;

Check with SHOW DATABASES and SHOW TABLES that appropriate tables and databases have been created