Bug: Validation with eclipse Plug-In fails

Having trouble installing Oxygen? Got a bug to report? Post it all here.

Problems with the eclipse plugin but not with the oxygen application???

Poll ended at Fri Sep 15, 2006 11:16 am

Yes, validation only.
0
No votes
Other Problems are occurring.
0
No votes
 
Total votes: 0

York
Posts: 4
Joined: Wed Aug 16, 2006 11:12 am

Bug: Validation with eclipse Plug-In fails

Post by York »

Hi,

often I need to start Oxygen as separat application next to my eclipse plug-in
because validation is not possible.

Can you help, is this a bug.

Thank you
regards
York
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

You should get the same result and the same validation errors in oXygen standalone and in the Eclipse plugin. What do you mean validation is not possible in the Eclipse plugin ? You don't have the toolbar containing the Validate Document button when you open an XML file with the Oxygen XML Editor ? Do you get different validation errors in the Eclipse plugin ? Can you give an example ?

Regards,
Sorin
York
Posts: 4
Joined: Wed Aug 16, 2006 11:12 am

Validation with eclipse plugin

Post by York »

Hello Sorin,

thank you for your soon reply. I want to explain my problem:

While working out the errors of my XML transformations according to the relating DTD the validation process with Oxygen(Eclipse) is clear and ok:

Errors in the XML are shown in the problems view, they are directly red marked in the XML code and are shown as red marker lines on the right of the XML edior.

But at a specific point ?? I am missing any of this hints but there are still errors left.

The only information at this point is a error message in the status line in the bottom left of eclipse with red letters:

--> "Validation failed. errors: 2".

When I validate the XML in the standalone version of Oxygene I will get the appropriate error hints in the XML Code and I get the red markers on the right of the editor again.

I'm using the Oxygen Eclipse plug-in 7.2 build 2006060615 and Eclipse Version: 3.1.0, Build id: I20050627-1435.

I'm sure that this behavior does not depends on my XML.

Thank you in advance.
York
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Validation with eclipse plugin

Post by sorin_ristache »

York wrote:error message in the status line in the bottom left of eclipse with red letters:

--> "Validation failed. errors: 2".
The message displayed in the status line specifies just the result of validation. It is green when there are no errors and red when there are errors.
York wrote:But at a specific point ?? I am missing any of this hints but there are still errors left.
Can you post a small sample file as example ? I tried on an XML document and the Eclipse plugin shows the correct hints for all the errors.

Regards,
Sorin
York
Posts: 4
Joined: Wed Aug 16, 2006 11:12 am

Post by York »

My file is 31.000 lines long and there were perhaps hundreds of errors as this error occurs.
Therefore a small sample file could not help nor can I send you the complete file.

The problems may be originated by this kind of complexity or by the error message I got BEFORE reloading and pressing the validation button:
"The entity "element-maintenance" was referenced, but not declared."

But believe me, the dtd is valid but uses a lot of entities.

I will track on this behavior and will send you samples when it's allowed by my company.

Thanks!
York
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

You should look at the option Maximum number of errors reported per document in Window -> Preferences -> oXygen -> Editor -> Document Checking. That is the limit of the reported number of errors. I think you should increase that limit for large documents with hundreds of errors.

Regards,
Sorin
York
Posts: 4
Joined: Wed Aug 16, 2006 11:12 am

Post by York »

Hello again,

I set the error limit on 1000. But the situation now is different:

The XML-file is now valid in the Oxygen application.

But in the Eclipse environment Oxygen still tells me that
"Validation failed. errors: 2".

I can send you screenshots, if you send me your email.

Regards
York
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Thank you for the files and the screenshots. I tested your XML file with the same Eclipse build and the same oXygen plugin build and it is valid. Also it is valid in oXygen standalone. I sent you a screenshot where you can see the build ID of the oXygen plugin and the validation result in Eclipse specifying that the document is valid.

Do you see an error dialog about a wrong Xerces version already existing in your Eclipse installation when you start Eclipse or when you open an XML file with the oXygen plugin the first time ? If yes please specify the full error message in order to provide a solution for you. The full error message contains the path to a jar file which creates a conflict with the oXygen plugin. If not please apply the following steps:

1. Remove all error messages from the Error Log view. This view is a built-in view of Eclipse and you can open it from Window -> Show View -> Error Log. You can remove all error messages from this view with the Delete Log button available in the view.

2. Validate again the XML file in the Eclipse XML editor contributed by the oXygen plugin in order to obtain the 2 validation errors again.

3. Post here the messages of all the errors added by the validate operation to the Error Log view. These errors may not be validation errors related with your XML file but they can help to understand why you get a different behavior when validation the XML file.

Also tell us the full messages of the validation errors. You did not specify the validation error messages.

Regards,
Sorin
Post Reply