This is a migrated thread and some comments may be shown as answers.

[Solved] JDOM attribute 'name' has no value when generating classes

3 Answers 166 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jørn Topnes
Top achievements
Rank 1
Jørn Topnes asked on 16 Sep 2010, 06:20 PM
Hello,

I just stumbled into an errormessage when regenerating my ORM classes:

"Following error occured while saving the settings:
The data "" is not legal for JDOM attribute 'name': A null is not a legal XML value."

I have checked my App.config and reversemappings.config but there is no empty name attributes in them. And also all the validations prior to generating the classes were automatically set to 'Ok'. Is there any known procedure to bypass this?

Best Regards
Jørn

3 Answers, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 17 Sep 2010, 10:05 AM
Hello Jørn Topnes,

 Is it possible that one of the class or field names is not set (empty string) in the Reverse mapping wizard? Is it possible to send us your reversemapping.config file so that we can ascertain the exact cause?

Best wishes,
Ady
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jørn Topnes
Top achievements
Rank 1
answered on 28 Sep 2010, 12:49 PM
Hi Ady,

This project has been finished now, so I do not have access to the environment in order to test things, but you may have a look at the JDOM components to see if you could prevent this happening, or use something else than JDOM.

My last generated reversemapping.config does not have the error as it was generated fine. This happens only in memory when a merge is selected. After the merge, the error appears when trying to save the changes. The save operation only displays the error above, and does not result in any changes to the file. If I choose to not merge, and simply click 'generate and save', the files are updated as they should. 
0
Jan Blessenohl
Telerik team
answered on 07 Oct 2010, 08:52 AM
Hello Jørn Topnes,
The cause of the error is that there is a missing string somewhere, if this error is thrown by something named JDOM or something else does not matter from my perspective.

We would really like to fix such problems. If you see the error the next time, can you just send us the actual reversemapping.config plus your changed database schema? That would really help us to reproduce and fix it.

Sincerely yours,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jørn Topnes
Top achievements
Rank 1
Answers by
Ady
Telerik team
Jørn Topnes
Top achievements
Rank 1
Jan Blessenohl
Telerik team
Share this question
or