Why is my unmarshal output so strange?
Any ideas?
This is my unmarshal code:
When I run this, I got this error.
Unmarshal output is
Why is my unmarshal output so strange?
Any ideas?
This is my unmarshal code:
When I run this, I got this error.
Unmarshal output is
FuzzyController fct=(FuzzyController) jaxbUnmarshaller.unmarshal(file);
System.out.println(fct);
You are getting object fct. which is testfuzzy.FuzzyController@2f678f0e
. It is not error, it's object.
Use this code:
FuzzyController fct=(FuzzyController) jaxbUnmarshaller.unmarshal(file);
System.out.println(fct.toString());
This will give you all in a array.
For better understanding, follow the tutorials: