Login  Register

Re: Users - xml file import problems. Jacopo?

Posted by Hans Bakker on Dec 03, 2005; 3:44am
URL: http://ofbiz.116.s1.nabble.com/Users-xml-file-import-problems-Jacopo-tp136629p136634.html

Hi Jacopo,
it is working now thanks....however......

1.
when the file does not exist there is NPE at webtoolsservices.java at line 111

2.
errors in the xml file are not reported on screen, only in the log file. the
message on-screen will still say: The action was performed successfully.

3.
you disabled most 'catch' messages in the file causing point 1,2?

regards,
Hans

On Friday 02 December 2005 13:35, Jacopo Cappellato wrote:

> Hans,
>
> with rev 6228 it should be fixed.
>
> Please let me know!
>
> Jacopo
>
> Hans Bakker wrote:
> > I just checked, but it not yet working....I use this pretty often to
> > create initial datafiles and see if they are properly loaded....
> >
> > Jacopo, can you please check?
> >
> > On Thursday 01 December 2005 15:01, David E. Jones wrote:
> >>The patch that I applied was the one attached to OFBIZ-595, but
> >>perhaps not everything made it through. I just re-applied the patch
> >>to my latest checkout (which anyone can play with if they'd like) and
> >>if looks like some stuff in the services.xml file and the
> >>WebToolsServices.java file didn't make it through. There is also an
> >>error about the end of the file saying the "patch unexpectedly ends
> >>in middle of line" and that the patch is malformed. It may be that
> >>not having an empty line at the end of the file is causing problems,
> >>and it look like the last file in the set is the EntityImport.ftl
> >>file, so maybe something there didn't make it through.
> >>
> >>Okay, nevermind about the files I mentioned above that had changes
> >>after re-applying the patch. It just screwed them up by appending the
> >>full file to the end of the existing file.
> >>
> >>-David
> >>
> >>On Nov 30, 2005, at 1:57 AM, Jacopo Cappellato wrote:
> >>>Hans,
> >>>
> >>>thanks for the report.
> >>>
> >>>It seems that David has only partially committed a wrong (older)
> >>>patch instead of the one attached to OFBIZ-595.
> >>>If you apply that patch everything should work fine.
> >>>
> >>>David, could you please verify what went wrong?
> >>>
> >>>Thanks,
> >>>
> >>>Jacopo
> >>>
> >>>Hans Bakker wrote:
> >>>>when importing xml files in the webtools component i get the
> >>>>problem below....going back to version 6209 resolves the
> >>>>problem.... Expression messages is undefined on line 50, column 10
> >>>>in EntityImport.ftl. The problematic instruction: ---------- ==>
> >>>>list messages as message [on line 50, column 3 in
> >>>>EntityImport.ftl] ---------- Java backtrace for programmers:
> >>>>---------- freemarker.core.InvalidReferenceException: Expression
> >>>>messages is undefined on line 50, column 10 in EntityImport.ftl.
> >>>>at freemarker.core.TemplateObject.assertNonNull
> >>>>(TemplateObject.java:124) at freemarker.core.IteratorBlock.accept
> >>>>(IteratorBlock.java:93) at freemarker.core.Environment.visit
> >>>>(Environment.java:196) at freemarker.core.MixedContent.accept
> >>>>(MixedContent.java:92) at freemarker.core.Environment.visit
> >>>>(Environment.java:196) at
> >>>>---------------------------------------------------------------------
> >>>>---
> >>>> _______________________________________________
> >>>>Users mailing list
> >>>>[hidden email]
> >>>>http://lists.ofbiz.org/mailman/listinfo/users
> >>>
> >>>_______________________________________________
> >>>Users mailing list
> >>>[hidden email]
> >>>http://lists.ofbiz.org/mailman/listinfo/users
> >
> > ------------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > Users mailing list
> > [hidden email]
> > http://lists.ofbiz.org/mailman/listinfo/users
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users
--
Regards,
Hans Bakker
ANT Websystems Co.,Ltd (http://www.antwebsystems.com)

If you want to verify that this message really originates from
from the above person, download the public key from:
http://www.antwebsystems.com/hbakkerAntwebsystems.asc

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

attachment0 (196 bytes) Download Attachment