Re: Eclipse 3.5.2 and WOLips 3.5.6049 - "list must not be a constant" build error

From: Amiel Montecillo (bosyotec..mail.com)
Date: Thu May 20 2010 - 02:44:57 UTC

  • Next message: Stefan Klein: "Eclipse 3.5 - html to wod"

    In 3.5, I just changed them in the project's -> Properties -> WOLips
    Development -> Components and do a clean->build = no errors.

    But there's another problem I encountered when launching the app though.

    Amiel

    On Thu, May 20, 2010 at 10:34 AM, Lachlan Deck <lachlan.dec..mail.com>wrote:

    > So should the build.properties file get updated automatically if you
    > close/reopen a project. Or do you need to re-import?
    >
    > On 20/05/2010, at 4:22 AM, Mike Schrag wrote:
    >
    > > Yeah I wrote all the jar framework impls, too (AbstractJarFramework,
    > ExternalJarFramework, EclipseJarFramework, etc):
    > >
    > > public synchronized Map<String, Object> getInfoPlist() {
    > > if (infoPList == null) {
    > > try {
    > > JarFile jarFileObj = new JarFile(jarFile);
    > > JarEntry infoPListEntry =
    > jarFileObj.getJarEntry("Resources/Info.plist");
    > > if (infoPListEntry != null) {
    > > InputStream infoPListStream =
    > jarFileObj.getInputStream(infoPListEntry);
    > > try {
    > > infoPList = (Map<String, Object>)
    > WOLXMLPropertyListSerialization.propertyListWithContentsOfInputStream(infoPListStream,
    > new SimpleParserDataStructureFactory());
    > > }
    > > catch (Throwable t) {
    > > throw new RuntimeException("Failed
    > to parse an XML plist from '" + jarFile.getAbsolutePath() + "'.", t);
    > > }
    > > finally {
    > > infoPListStream.close();
    > > }
    > > }
    > > }
    > > catch (IOException e) {
    > > throw new RuntimeException("Failed to load
    > a framework from the jar '" + jarFile.getAbsolutePath() + "'.", e);
    > > }
    > > }
    > > return infoPList;
    > > }
    > >
    > > the code that upgrades build.properties asks if you're linked to WOOgnl
    > framework (IFramework), and if so, use $ instead of [] .... oh well. I never
    > test on jar frameworks, so if someone wants to take an older project and do
    > some controlled openings with 3.5 to see when it does and doesn't work, that
    > would be helpful.
    > >
    > > ms
    > >
    > > On May 19, 2010, at 1:32 PM, Henrique Prange wrote:
    > >
    > >> Hi Mike,
    > >>
    > >> Yes. If you rely on JARs instead of *.frameworks. :)
    > >>
    > >> Every logic that relies on *.framework doesn't work for me (and probably
    > for all Maven users).
    > >>
    > >> Cheers,
    > >>
    > >> Henrique
    > >>
    > >> On 19/05/10 13:16, Mike Schrag wrote:
    > >>> This should have been autodetected if your framework/app were linking
    > >>> against WOOgnl ... Is there a chance this frameworks in question
    > weren't?
    > >>>
    > >>> ms
    > >>>
    > >>> On May 19, 2010, at 12:08 PM, David Holt wrote:
    > >>>
    > >>>>
    > >>>> On 2010-05-19, at 7:52 AM, Dev WO wrote:
    > >>>>
    > >>>>> Hello Amiel,
    > >>>>>
    > >>>>> I had the same "issues" and it happened to be a problem with the
    > >>>>> build.properties file of the project.
    > >>>>> Try creating a new project to see the format of that file and adjust
    > >>>>> the one of the project having issues. Restart Eclipse;)
    > >>>>>
    > >>>>> The actual lines that were creating issues were:
    > >>>>> component.inlineBindingPrefix=$
    > >>>>> component.inlineBindingSuffix=
    > >>>>
    > >>>> Instead of
    > >>>> component.inlineBindingPrefix=[
    > >>>> component.inlineBindingSuffix=]
    > >>>>
    > >>>> Thanks Xavier, that's been bugging me for days!
    > >>>>
    > >>>> David
    > >>>>
    > >>>>>
    > >>>>> Hope that helps,
    > >>>>>
    > >>>>> Xavier
    > >>>>>
    > >>>>>
    > >>>>>
    > >>>>>> Hi,
    > >>>>>>
    > >>>>>> I just installed eclipse 3.5.2 and latest wolips 3.5 stable and now
    > >>>>>> I got weird build errors.
    > >>>>>>
    > >>>>>> Errors:
    > >>>>>>
    > >>>>>> - 'list' must not be a constant
    > >>>>>> - 'item' may not be a constant when 'displayString' or 'value' is
    > bound
    > >>>>>>
    > >>>>>> I am using WOGnl inline bindings and I'm pretty sure these aren't
    > >>>>>> coding errors and I do not get these errors in eclipse 3.4 and
    > >>>>>> corresponding wolips plugin.
    > >>>>>>
    > >>>>>> Anyone have an idea why? I am on windows if anyone cares.
    > >>>>>>
    > >>>>>> Thanks,
    > >>>>>> Amiel
    > >>>>>>
    > >>>>>>
    > >>>>>> --
    > >>>>>> socket error: unable to connect to 127.0.0.1
    > >>>>>
    > >>>>
    > >>>
    > >
    >
    > with regards,
    > --
    >
    > Lachlan Deck
    >
    >
    >
    >

    -- 
    socket error: unable to connect to 127.0.0.1
    



    This archive was generated by hypermail 2.0.0 : Thu May 20 2010 - 02:46:22 UTC