JAVA 8 bxml script variables not working

classic Classic list List threaded Threaded
24 messages Options
12
Reply | Threaded
Open this post in threaded view
|

JAVA 8 bxml script variables not working

Ripgiblet
Having the same trouble with upgrade to JAVA 8 as may have been mentioned in PIVOT-965.
Basically variables set in bxml:script are not accessible in the rest of the bxml file.

<bxml:script>
        var vCellWidth = 788/10 - (9*4)/10;
        var vCellHeight = 68;
        var vCellWidth5 = 5*vCellWidth+4*4;
</bxml:script>

    <CardPane bxml:id="logincardpane">
        <BoxPane orientation="vertical">
            <TablePane styleName="tablepanestylelogin" styles="{horizontalSpacing:1, verticalSpacing:10,
                showHorizontalGridLines:false, showVerticalGridLines:false}">
                <columns>
                    <TablePane.Column width="$vCellWidth5"/> 

Returns:
Caused by: org.apache.pivot.serialization.SerializationException: Value "vCellWidth5" is not defined.
        at org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
        at org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
        at org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:442)

Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see if the security changes fixed this? (Or should I recompile from the Trunk? Or a branch?)

or any other ideas on how to make it work?

regards,
Mark.
Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Sandro Martini
Hi mark,
I think you are seeing the problem is this issue: (
https://issues.apache.org/jira/browse/PIVOT-965 ).
Roger some time ago did some commit to start the fix (but I'm not sure
it's already fixed).
I suggest you to build all from the trunk (maybe even from 2.0.5, but
trunk generally speaking has other fixes/improvements) because 2.0.5
and 2.1.0 still are not released.

Keep us updated.

Thanks for now,
Sandro


2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:

> Having the same trouble with upgrade to JAVA 8 as may have been mentioned in
> PIVOT-965.
> Basically variables set in bxml:script are not accessible in the rest of the
> bxml file.
>
> <bxml:script>
>         var vCellWidth = 788/10 - (9*4)/10;
>         var vCellHeight = 68;
>         var vCellWidth5 = 5*vCellWidth+4*4;
> </bxml:script>
>
>     <CardPane bxml:id="logincardpane">
>         <BoxPane orientation="vertical">
>             <TablePane styleName="tablepanestylelogin"
> styles="{horizontalSpacing:1, verticalSpacing:10,
>                 showHorizontalGridLines:false,
> showVerticalGridLines:false}">
>                 <columns>
>                     <TablePane.Column width="$vCellWidth5"/>
>
> Returns:
> Caused by: org.apache.pivot.serialization.SerializationException: Value
> "vCellWidth5" is not defined.
>         at
> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>         at
> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>         at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:442)
>
> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see if the
> security changes fixed this? (Or should I recompile from the Trunk? Or a
> branch?)
>
> or any other ideas on how to make it work?
>
> regards,
> Mark.
>
>
>
>
> --
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-variables-not-working-tp4023027.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

RE: JAVA 8 bxml script variables not working

Ripgiblet
Hi Sandro,

Thank you for the fast response;]
I will build from the trunk and let you know the result.

Regards,
Mark.
-----Original Message-----
From: Sandro Martini [mailto:[hidden email]]
Sent: Monday, 26 October 2015 4:56 PM
To: Users - Apache Pivot
Subject: Re: JAVA 8 bxml script variables not working

Hi mark,
I think you are seeing the problem is this issue: (
https://issues.apache.org/jira/browse/PIVOT-965 ).
Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.

Keep us updated.

Thanks for now,
Sandro


2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:

> Having the same trouble with upgrade to JAVA 8 as may have been
> mentioned in PIVOT-965.
> Basically variables set in bxml:script are not accessible in the rest
> of the bxml file.
>
> <bxml:script>
>         var vCellWidth = 788/10 - (9*4)/10;
>         var vCellHeight = 68;
>         var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>
>     <CardPane bxml:id="logincardpane">
>         <BoxPane orientation="vertical">
>             <TablePane styleName="tablepanestylelogin"
> styles="{horizontalSpacing:1, verticalSpacing:10,
>                 showHorizontalGridLines:false,
> showVerticalGridLines:false}">
>                 <columns>
>                     <TablePane.Column width="$vCellWidth5"/>
>
> Returns:
> Caused by: org.apache.pivot.serialization.SerializationException:
> Value "vCellWidth5" is not defined.
>         at
> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>         at
> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>         at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:4
> 42)
>
> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see if
> the security changes fixed this? (Or should I recompile from the
> Trunk? Or a
> branch?)
>
> or any other ideas on how to make it work?
>
> regards,
> Mark.
>
>
>
>
> --
> View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-vari
> ables-not-working-tp4023027.html Sent from the Apache Pivot - Users
> mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Roger and Beth Whitcomb
Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the
unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still
have problems with your built versions.

BTW, I think this is one good reason to make the push to get 2.0.5 released.

Thanks,
~Roger

On 10/26/15 3:40 AM, [hidden email] wrote:

> Hi Sandro,
>
> Thank you for the fast response;]
> I will build from the trunk and let you know the result.
>
> Regards,
> Mark.
> -----Original Message-----
> From: Sandro Martini [mailto:[hidden email]]
> Sent: Monday, 26 October 2015 4:56 PM
> To: Users - Apache Pivot
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi mark,
> I think you are seeing the problem is this issue: (
> https://issues.apache.org/jira/browse/PIVOT-965 ).
> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>
> Keep us updated.
>
> Thanks for now,
> Sandro
>
>
> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>> Having the same trouble with upgrade to JAVA 8 as may have been
>> mentioned in PIVOT-965.
>> Basically variables set in bxml:script are not accessible in the rest
>> of the bxml file.
>>
>> <bxml:script>
>>          var vCellWidth = 788/10 - (9*4)/10;
>>          var vCellHeight = 68;
>>          var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>
>>      <CardPane bxml:id="logincardpane">
>>          <BoxPane orientation="vertical">
>>              <TablePane styleName="tablepanestylelogin"
>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>                  showHorizontalGridLines:false,
>> showVerticalGridLines:false}">
>>                  <columns>
>>                      <TablePane.Column width="$vCellWidth5"/>
>>
>> Returns:
>> Caused by: org.apache.pivot.serialization.SerializationException:
>> Value "vCellWidth5" is not defined.
>>          at
>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>          at
>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>          at
>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:4
>> 42)
>>
>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see if
>> the security changes fixed this? (Or should I recompile from the
>> Trunk? Or a
>> branch?)
>>
>> or any other ideas on how to make it work?
>>
>> regards,
>> Mark.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-vari
>> ables-not-working-tp4023027.html Sent from the Apache Pivot - Users
>> mailing list archive at Nabble.com.
>
>

Reply | Threaded
Open this post in threaded view
|

RE: JAVA 8 bxml script variables not working

Ripgiblet
Hi Roger,

I am still getting the same error, after building again from trunk...

Any chance you have some compiled jars I can try? (Very likely I have done something wrong in the build process...since I use IntelliJ and sometimes the Eclipse/Maven projects change things...)

Regards,
Mark.

-----Original Message-----
From: Roger and Beth Whitcomb [mailto:[hidden email]]
Sent: Monday, 26 October 2015 11:47 PM
To: [hidden email]
Subject: Re: JAVA 8 bxml script variables not working

Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.

BTW, I think this is one good reason to make the push to get 2.0.5 released.

Thanks,
~Roger

On 10/26/15 3:40 AM, [hidden email] wrote:

> Hi Sandro,
>
> Thank you for the fast response;]
> I will build from the trunk and let you know the result.
>
> Regards,
> Mark.
> -----Original Message-----
> From: Sandro Martini [mailto:[hidden email]]
> Sent: Monday, 26 October 2015 4:56 PM
> To: Users - Apache Pivot
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi mark,
> I think you are seeing the problem is this issue: (
> https://issues.apache.org/jira/browse/PIVOT-965 ).
> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>
> Keep us updated.
>
> Thanks for now,
> Sandro
>
>
> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>> Having the same trouble with upgrade to JAVA 8 as may have been
>> mentioned in PIVOT-965.
>> Basically variables set in bxml:script are not accessible in the rest
>> of the bxml file.
>>
>> <bxml:script>
>>          var vCellWidth = 788/10 - (9*4)/10;
>>          var vCellHeight = 68;
>>          var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>
>>      <CardPane bxml:id="logincardpane">
>>          <BoxPane orientation="vertical">
>>              <TablePane styleName="tablepanestylelogin"
>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>                  showHorizontalGridLines:false,
>> showVerticalGridLines:false}">
>>                  <columns>
>>                      <TablePane.Column width="$vCellWidth5"/>
>>
>> Returns:
>> Caused by: org.apache.pivot.serialization.SerializationException:
>> Value "vCellWidth5" is not defined.
>>          at
>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>          at
>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>          at
>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>> 4
>> 42)
>>
>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see if
>> the security changes fixed this? (Or should I recompile from the
>> Trunk? Or a
>> branch?)
>>
>> or any other ideas on how to make it work?
>>
>> regards,
>> Mark.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-var
>> i ables-not-working-tp4023027.html Sent from the Apache Pivot - Users
>> mailing list archive at Nabble.com.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Roger and Beth Whitcomb
Hi Mark,
     Yes, I do have some built .jar files.  Not sure where to put them
where you could access them.  Let me give that some thought, or do you
have a Dropbox or someplace?

Thanks,
~Roger

On 10/28/15 11:05 PM, [hidden email] wrote:

> Hi Roger,
>
> I am still getting the same error, after building again from trunk...
>
> Any chance you have some compiled jars I can try? (Very likely I have done something wrong in the build process...since I use IntelliJ and sometimes the Eclipse/Maven projects change things...)
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Monday, 26 October 2015 11:47 PM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.
>
> BTW, I think this is one good reason to make the push to get 2.0.5 released.
>
> Thanks,
> ~Roger
>
> On 10/26/15 3:40 AM, [hidden email] wrote:
>> Hi Sandro,
>>
>> Thank you for the fast response;]
>> I will build from the trunk and let you know the result.
>>
>> Regards,
>> Mark.
>> -----Original Message-----
>> From: Sandro Martini [mailto:[hidden email]]
>> Sent: Monday, 26 October 2015 4:56 PM
>> To: Users - Apache Pivot
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Hi mark,
>> I think you are seeing the problem is this issue: (
>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
>> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>>
>> Keep us updated.
>>
>> Thanks for now,
>> Sandro
>>
>>
>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>> mentioned in PIVOT-965.
>>> Basically variables set in bxml:script are not accessible in the rest
>>> of the bxml file.
>>>
>>> <bxml:script>
>>>           var vCellWidth = 788/10 - (9*4)/10;
>>>           var vCellHeight = 68;
>>>           var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>
>>>       <CardPane bxml:id="logincardpane">
>>>           <BoxPane orientation="vertical">
>>>               <TablePane styleName="tablepanestylelogin"
>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>                   showHorizontalGridLines:false,
>>> showVerticalGridLines:false}">
>>>                   <columns>
>>>                       <TablePane.Column width="$vCellWidth5"/>
>>>
>>> Returns:
>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>> Value "vCellWidth5" is not defined.
>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>> 4
>>> 42)
>>>
>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see if
>>> the security changes fixed this? (Or should I recompile from the
>>> Trunk? Or a
>>> branch?)
>>>
>>> or any other ideas on how to make it work?
>>>
>>> regards,
>>> Mark.
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-var
>>> i ables-not-working-tp4023027.html Sent from the Apache Pivot - Users
>>> mailing list archive at Nabble.com.
>>
>
>
>

Reply | Threaded
Open this post in threaded view
|

RE: JAVA 8 bxml script variables not working

Ripgiblet
Hi Roger,

You can just email them to me;]

Regards,
Mark.

-----Original Message-----
From: Roger and Beth Whitcomb [mailto:[hidden email]]
Sent: Thursday, 29 October 2015 1:25 PM
To: [hidden email]
Subject: Re: JAVA 8 bxml script variables not working

Hi Mark,
     Yes, I do have some built .jar files.  Not sure where to put them where you could access them.  Let me give that some thought, or do you have a Dropbox or someplace?

Thanks,
~Roger

On 10/28/15 11:05 PM, [hidden email] wrote:

> Hi Roger,
>
> I am still getting the same error, after building again from trunk...
>
> Any chance you have some compiled jars I can try? (Very likely I have
> done something wrong in the build process...since I use IntelliJ and
> sometimes the Eclipse/Maven projects change things...)
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Monday, 26 October 2015 11:47 PM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.
>
> BTW, I think this is one good reason to make the push to get 2.0.5 released.
>
> Thanks,
> ~Roger
>
> On 10/26/15 3:40 AM, [hidden email] wrote:
>> Hi Sandro,
>>
>> Thank you for the fast response;]
>> I will build from the trunk and let you know the result.
>>
>> Regards,
>> Mark.
>> -----Original Message-----
>> From: Sandro Martini [mailto:[hidden email]]
>> Sent: Monday, 26 October 2015 4:56 PM
>> To: Users - Apache Pivot
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Hi mark,
>> I think you are seeing the problem is this issue: (
>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
>> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>>
>> Keep us updated.
>>
>> Thanks for now,
>> Sandro
>>
>>
>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>> mentioned in PIVOT-965.
>>> Basically variables set in bxml:script are not accessible in the
>>> rest of the bxml file.
>>>
>>> <bxml:script>
>>>           var vCellWidth = 788/10 - (9*4)/10;
>>>           var vCellHeight = 68;
>>>           var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>
>>>       <CardPane bxml:id="logincardpane">
>>>           <BoxPane orientation="vertical">
>>>               <TablePane styleName="tablepanestylelogin"
>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>                   showHorizontalGridLines:false,
>>> showVerticalGridLines:false}">
>>>                   <columns>
>>>                       <TablePane.Column width="$vCellWidth5"/>
>>>
>>> Returns:
>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>> Value "vCellWidth5" is not defined.
>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>> 4
>>> 42)
>>>
>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>> if the security changes fixed this? (Or should I recompile from the
>>> Trunk? Or a
>>> branch?)
>>>
>>> or any other ideas on how to make it work?
>>>
>>> regards,
>>> Mark.
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-va
>>> r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>> Users mailing list archive at Nabble.com.
>>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Roger Whitcomb-2
Hi Mark,
I have emailed the .zip file to your personal email (i.e., not the list).

~Roger

________________________________________
From: [hidden email] <[hidden email]>
Sent: Thursday, October 29, 2015 12:37 AM
To: [hidden email]
Subject: RE: JAVA 8 bxml script variables not working

Hi Roger,

You can just email them to me;]

Regards,
Mark.

-----Original Message-----
From: Roger and Beth Whitcomb [mailto:[hidden email]]
Sent: Thursday, 29 October 2015 1:25 PM
To: [hidden email]
Subject: Re: JAVA 8 bxml script variables not working

Hi Mark,
     Yes, I do have some built .jar files.  Not sure where to put them where you could access them.  Let me give that some thought, or do you have a Dropbox or someplace?

Thanks,
~Roger

On 10/28/15 11:05 PM, [hidden email] wrote:

> Hi Roger,
>
> I am still getting the same error, after building again from trunk...
>
> Any chance you have some compiled jars I can try? (Very likely I have
> done something wrong in the build process...since I use IntelliJ and
> sometimes the Eclipse/Maven projects change things...)
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Monday, 26 October 2015 11:47 PM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.
>
> BTW, I think this is one good reason to make the push to get 2.0.5 released.
>
> Thanks,
> ~Roger
>
> On 10/26/15 3:40 AM, [hidden email] wrote:
>> Hi Sandro,
>>
>> Thank you for the fast response;]
>> I will build from the trunk and let you know the result.
>>
>> Regards,
>> Mark.
>> -----Original Message-----
>> From: Sandro Martini [mailto:[hidden email]]
>> Sent: Monday, 26 October 2015 4:56 PM
>> To: Users - Apache Pivot
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Hi mark,
>> I think you are seeing the problem is this issue: (
>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
>> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>>
>> Keep us updated.
>>
>> Thanks for now,
>> Sandro
>>
>>
>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>> mentioned in PIVOT-965.
>>> Basically variables set in bxml:script are not accessible in the
>>> rest of the bxml file.
>>>
>>> <bxml:script>
>>>           var vCellWidth = 788/10 - (9*4)/10;
>>>           var vCellHeight = 68;
>>>           var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>
>>>       <CardPane bxml:id="logincardpane">
>>>           <BoxPane orientation="vertical">
>>>               <TablePane styleName="tablepanestylelogin"
>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>                   showHorizontalGridLines:false,
>>> showVerticalGridLines:false}">
>>>                   <columns>
>>>                       <TablePane.Column width="$vCellWidth5"/>
>>>
>>> Returns:
>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>> Value "vCellWidth5" is not defined.
>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>> 4
>>> 42)
>>>
>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>> if the security changes fixed this? (Or should I recompile from the
>>> Trunk? Or a
>>> branch?)
>>>
>>> or any other ideas on how to make it work?
>>>
>>> regards,
>>> Mark.
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-va
>>> r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>> Users mailing list archive at Nabble.com.
>>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Sandro Martini
Hi all and sorry for the delay ...
I have a staging area public (one in my account at Apache, and another
at BinTray), next time tell me so I can build and publish there
snapshot artifacts ... just for info, Roger, how did you build those
jars (using latest JDK 7 or 8) and usual build task in ant, right ?

Bye,
Sandro


2015-10-29 21:56 GMT+01:00 Roger Whitcomb <[hidden email]>:

> Hi Mark,
> I have emailed the .zip file to your personal email (i.e., not the list).
>
> ~Roger
>
> ________________________________________
> From: [hidden email] <[hidden email]>
> Sent: Thursday, October 29, 2015 12:37 AM
> To: [hidden email]
> Subject: RE: JAVA 8 bxml script variables not working
>
> Hi Roger,
>
> You can just email them to me;]
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Thursday, 29 October 2015 1:25 PM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi Mark,
>      Yes, I do have some built .jar files.  Not sure where to put them where you could access them.  Let me give that some thought, or do you have a Dropbox or someplace?
>
> Thanks,
> ~Roger
>
> On 10/28/15 11:05 PM, [hidden email] wrote:
>> Hi Roger,
>>
>> I am still getting the same error, after building again from trunk...
>>
>> Any chance you have some compiled jars I can try? (Very likely I have
>> done something wrong in the build process...since I use IntelliJ and
>> sometimes the Eclipse/Maven projects change things...)
>>
>> Regards,
>> Mark.
>>
>> -----Original Message-----
>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>> Sent: Monday, 26 October 2015 11:47 PM
>> To: [hidden email]
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.
>>
>> BTW, I think this is one good reason to make the push to get 2.0.5 released.
>>
>> Thanks,
>> ~Roger
>>
>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>> Hi Sandro,
>>>
>>> Thank you for the fast response;]
>>> I will build from the trunk and let you know the result.
>>>
>>> Regards,
>>> Mark.
>>> -----Original Message-----
>>> From: Sandro Martini [mailto:[hidden email]]
>>> Sent: Monday, 26 October 2015 4:56 PM
>>> To: Users - Apache Pivot
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Hi mark,
>>> I think you are seeing the problem is this issue: (
>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
>>> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>>>
>>> Keep us updated.
>>>
>>> Thanks for now,
>>> Sandro
>>>
>>>
>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>> mentioned in PIVOT-965.
>>>> Basically variables set in bxml:script are not accessible in the
>>>> rest of the bxml file.
>>>>
>>>> <bxml:script>
>>>>           var vCellWidth = 788/10 - (9*4)/10;
>>>>           var vCellHeight = 68;
>>>>           var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>
>>>>       <CardPane bxml:id="logincardpane">
>>>>           <BoxPane orientation="vertical">
>>>>               <TablePane styleName="tablepanestylelogin"
>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>                   showHorizontalGridLines:false,
>>>> showVerticalGridLines:false}">
>>>>                   <columns>
>>>>                       <TablePane.Column width="$vCellWidth5"/>
>>>>
>>>> Returns:
>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>> Value "vCellWidth5" is not defined.
>>>>           at
>>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>>           at
>>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>>           at
>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>> 4
>>>> 42)
>>>>
>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>> if the security changes fixed this? (Or should I recompile from the
>>>> Trunk? Or a
>>>> branch?)
>>>>
>>>> or any other ideas on how to make it work?
>>>>
>>>> regards,
>>>> Mark.
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-va
>>>> r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>> Users mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

RE: JAVA 8 bxml script variables not working

Ripgiblet
In reply to this post by Roger Whitcomb-2
Hi Roger,

Thankyou I really appreciate the jars;] But I still get the same errors,
seems that the bxml:script variables are still not accessible.
Works if compiled under JAVA1.7

Error details are below:
15/10/30-09:34:53.072-[.TRNGUIPivot.<init>]-[INFO]-Loading GUI Configuration
Files...
Exception: An error occurred at line number 29 in file
/C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/gui/pp
login.bxml:
org.apache.pivot.serialization.SerializationException: An error occurred at
line number 29 in file
/C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/gui/pp
login.bxml:
        at
org.apache.pivot.beans.BXMLSerializer.logException(BXMLSerializer.java:1440)
        at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:464)
        at
org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.jav
a:889)
        at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
        at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:620)
        at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:585)
        at mrc.base.trn.TRNGUIPivot.<init>(TRNGUIPivot.java:169)
        at mrc.base.trn.TRNPanel.startup(TRNPanel.java:329)
        at
org.apache.pivot.wtk.DesktopApplicationContext$2.run(DesktopApplicationConte
xt.java:669)
        at
org.apache.pivot.wtk.ApplicationContext$QueuedCallback.run(ApplicationContex
t.java:1687)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivileg
e(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
        at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java
:201)
        at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:11
6)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:105)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: org.apache.pivot.serialization.SerializationException: Value
"vCellWidth5" is not defined.
        at
org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:
1072)
        at
org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.jav
a:800)
        at
org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
        ... 22 more

The start of full ppLogin.bxml is:
<!--
  ~
//==========================================================================
=//
  ~ // //
  ~
//==========================================================================
=//
  -->
<BoxPane bxml:id="pplogin" styleName="boxpanestylelogin"
orientation="vertical"
         xmlns:bxml="http://pivot.apache.org/bxml"
         xmlns="org.apache.pivot.wtk">
    <bxml:script>
        var vCellWidth = 788/10 - (9*4)/10;
        var vCellHeight = 68;
        var vCellHeight2 = vCellHeight*2;
        var vCellHeight5 = vCellHeight*5;
        var vCellWidth2 = 2*vCellWidth+4;
        var vCellWidth3 = 3*vCellWidth+2*4;
        var vCellWidth4 = 4*vCellWidth+3*4;
        var vCellWidth5 = 5*vCellWidth+4*4;
        var vCellWidth6 = 6*vCellWidth+5*4;
        var vInfoHeight = 50;
        var vInfoHeight2 = vInfoHeight*2;
        var vInfoHeight6 = vInfoHeight*6;
        var vInfoHeight8 = vInfoHeight*8;
    </bxml:script>
    <CardPane bxml:id="logincardpane">
        <BoxPane orientation="vertical">
            <TablePane styleName="tablepanestylelogin"
styles="{horizontalSpacing:1, verticalSpacing:10,
                showHorizontalGridLines:false,
showVerticalGridLines:false}">
                <columns>
                    <TablePane.Column width="$vCellWidth5"/>
                    <TablePane.Column width="$vCellWidth4"/>
                </columns>


Regards,
Mark.

-----Original Message-----
From: Roger Whitcomb [mailto:[hidden email]]
Sent: Friday, 30 October 2015 3:56 AM
To: [hidden email]
Subject: Re: JAVA 8 bxml script variables not working

Hi Mark,
I have emailed the .zip file to your personal email (i.e., not the list).

~Roger

________________________________________
From: [hidden email] <[hidden email]>
Sent: Thursday, October 29, 2015 12:37 AM
To: [hidden email]
Subject: RE: JAVA 8 bxml script variables not working

Hi Roger,

You can just email them to me;]

Regards,
Mark.

-----Original Message-----
From: Roger and Beth Whitcomb [mailto:[hidden email]]
Sent: Thursday, 29 October 2015 1:25 PM
To: [hidden email]
Subject: Re: JAVA 8 bxml script variables not working

Hi Mark,
     Yes, I do have some built .jar files.  Not sure where to put them where
you could access them.  Let me give that some thought, or do you have a
Dropbox or someplace?

Thanks,
~Roger

On 10/28/15 11:05 PM, [hidden email] wrote:

> Hi Roger,
>
> I am still getting the same error, after building again from trunk...
>
> Any chance you have some compiled jars I can try? (Very likely I have
> done something wrong in the build process...since I use IntelliJ and
> sometimes the Eclipse/Maven projects change things...)
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Monday, 26 October 2015 11:47 PM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the
unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still
have problems with your built versions.
>
> BTW, I think this is one good reason to make the push to get 2.0.5
released.

>
> Thanks,
> ~Roger
>
> On 10/26/15 3:40 AM, [hidden email] wrote:
>> Hi Sandro,
>>
>> Thank you for the fast response;]
>> I will build from the trunk and let you know the result.
>>
>> Regards,
>> Mark.
>> -----Original Message-----
>> From: Sandro Martini [mailto:[hidden email]]
>> Sent: Monday, 26 October 2015 4:56 PM
>> To: Users - Apache Pivot
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Hi mark,
>> I think you are seeing the problem is this issue: (
>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>> Roger some time ago did some commit to start the fix (but I'm not sure
it's already fixed).
>> I suggest you to build all from the trunk (maybe even from 2.0.5, but
trunk generally speaking has other fixes/improvements) because 2.0.5 and
2.1.0 still are not released.

>>
>> Keep us updated.
>>
>> Thanks for now,
>> Sandro
>>
>>
>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>> mentioned in PIVOT-965.
>>> Basically variables set in bxml:script are not accessible in the
>>> rest of the bxml file.
>>>
>>> <bxml:script>
>>>           var vCellWidth = 788/10 - (9*4)/10;
>>>           var vCellHeight = 68;
>>>           var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>
>>>       <CardPane bxml:id="logincardpane">
>>>           <BoxPane orientation="vertical">
>>>               <TablePane styleName="tablepanestylelogin"
>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>                   showHorizontalGridLines:false,
>>> showVerticalGridLines:false}">
>>>                   <columns>
>>>                       <TablePane.Column width="$vCellWidth5"/>
>>>
>>> Returns:
>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>> Value "vCellWidth5" is not defined.
>>>           at
>>>
org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:
1092)
>>>           at
>>>
org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.jav
a:818)

>>>           at
>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>> 4
>>> 42)
>>>
>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>> if the security changes fixed this? (Or should I recompile from the
>>> Trunk? Or a
>>> branch?)
>>>
>>> or any other ideas on how to make it work?
>>>
>>> regards,
>>> Mark.
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-va
>>> r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>> Users mailing list archive at Nabble.com.
>>
>
>
>



Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Roger and Beth Whitcomb
Hi Mark,
     That's weird, and what's more weird is that these line numbers
don't match up with the "trunk" source....
     So, I'm thinking I either sent you out-of-date .jar files, which
would be odd because I built them just today/yesterday.  Or somehow you
have old .jar files in your classpath....

     Let me check similar BXML code with what I sent you and also check
the source of what I built.

Thanks,
~Roger

On 10/29/15 7:47 PM, [hidden email] wrote:

> Hi Roger,
>
> Thankyou I really appreciate the jars;] But I still get the same errors,
> seems that the bxml:script variables are still not accessible.
> Works if compiled under JAVA1.7
>
> Error details are below:
> 15/10/30-09:34:53.072-[.TRNGUIPivot.<init>]-[INFO]-Loading GUI Configuration
> Files...
> Exception: An error occurred at line number 29 in file
> /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/gui/pp
> login.bxml:
> org.apache.pivot.serialization.SerializationException: An error occurred at
> line number 29 in file
> /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/gui/pp
> login.bxml:
> at
> org.apache.pivot.beans.BXMLSerializer.logException(BXMLSerializer.java:1440)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:464)
> at
> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.jav
> a:889)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:620)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:585)
> at mrc.base.trn.TRNGUIPivot.<init>(TRNGUIPivot.java:169)
> at mrc.base.trn.TRNPanel.startup(TRNPanel.java:329)
> at
> org.apache.pivot.wtk.DesktopApplicationContext$2.run(DesktopApplicationConte
> xt.java:669)
> at
> org.apache.pivot.wtk.ApplicationContext$QueuedCallback.run(ApplicationContex
> t.java:1687)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:709)
> at java.awt.EventQueue$3.run(EventQueue.java:703)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivileg
> e(ProtectionDomain.java:76)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
> at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java
> :201)
> at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:11
> 6)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
> :105)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> Caused by: org.apache.pivot.serialization.SerializationException: Value
> "vCellWidth5" is not defined.
> at
> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:
> 1072)
> at
> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.jav
> a:800)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
> ... 22 more
>
> The start of full ppLogin.bxml is:
> <!--
>    ~
> //==========================================================================
> =//
>    ~ // //
>    ~
> //==========================================================================
> =//
>    -->
> <BoxPane bxml:id="pplogin" styleName="boxpanestylelogin"
> orientation="vertical"
>           xmlns:bxml="http://pivot.apache.org/bxml"
>           xmlns="org.apache.pivot.wtk">
>      <bxml:script>
>          var vCellWidth = 788/10 - (9*4)/10;
>          var vCellHeight = 68;
>          var vCellHeight2 = vCellHeight*2;
>          var vCellHeight5 = vCellHeight*5;
>          var vCellWidth2 = 2*vCellWidth+4;
>          var vCellWidth3 = 3*vCellWidth+2*4;
>          var vCellWidth4 = 4*vCellWidth+3*4;
>          var vCellWidth5 = 5*vCellWidth+4*4;
>          var vCellWidth6 = 6*vCellWidth+5*4;
>          var vInfoHeight = 50;
>          var vInfoHeight2 = vInfoHeight*2;
>          var vInfoHeight6 = vInfoHeight*6;
>          var vInfoHeight8 = vInfoHeight*8;
>      </bxml:script>
>      <CardPane bxml:id="logincardpane">
>          <BoxPane orientation="vertical">
>              <TablePane styleName="tablepanestylelogin"
> styles="{horizontalSpacing:1, verticalSpacing:10,
>                  showHorizontalGridLines:false,
> showVerticalGridLines:false}">
>                  <columns>
>                      <TablePane.Column width="$vCellWidth5"/>
>                      <TablePane.Column width="$vCellWidth4"/>
>                  </columns>
>
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger Whitcomb [mailto:[hidden email]]
> Sent: Friday, 30 October 2015 3:56 AM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi Mark,
> I have emailed the .zip file to your personal email (i.e., not the list).
>
> ~Roger
>
> ________________________________________
> From: [hidden email] <[hidden email]>
> Sent: Thursday, October 29, 2015 12:37 AM
> To: [hidden email]
> Subject: RE: JAVA 8 bxml script variables not working
>
> Hi Roger,
>
> You can just email them to me;]
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Thursday, 29 October 2015 1:25 PM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi Mark,
>       Yes, I do have some built .jar files.  Not sure where to put them where
> you could access them.  Let me give that some thought, or do you have a
> Dropbox or someplace?
>
> Thanks,
> ~Roger
>
> On 10/28/15 11:05 PM, [hidden email] wrote:
>> Hi Roger,
>>
>> I am still getting the same error, after building again from trunk...
>>
>> Any chance you have some compiled jars I can try? (Very likely I have
>> done something wrong in the build process...since I use IntelliJ and
>> sometimes the Eclipse/Maven projects change things...)
>>
>> Regards,
>> Mark.
>>
>> -----Original Message-----
>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>> Sent: Monday, 26 October 2015 11:47 PM
>> To: [hidden email]
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the
> unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still
> have problems with your built versions.
>> BTW, I think this is one good reason to make the push to get 2.0.5
> released.
>> Thanks,
>> ~Roger
>>
>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>> Hi Sandro,
>>>
>>> Thank you for the fast response;]
>>> I will build from the trunk and let you know the result.
>>>
>>> Regards,
>>> Mark.
>>> -----Original Message-----
>>> From: Sandro Martini [mailto:[hidden email]]
>>> Sent: Monday, 26 October 2015 4:56 PM
>>> To: Users - Apache Pivot
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Hi mark,
>>> I think you are seeing the problem is this issue: (
>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>> Roger some time ago did some commit to start the fix (but I'm not sure
> it's already fixed).
>>> I suggest you to build all from the trunk (maybe even from 2.0.5, but
> trunk generally speaking has other fixes/improvements) because 2.0.5 and
> 2.1.0 still are not released.
>>> Keep us updated.
>>>
>>> Thanks for now,
>>> Sandro
>>>
>>>
>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>> mentioned in PIVOT-965.
>>>> Basically variables set in bxml:script are not accessible in the
>>>> rest of the bxml file.
>>>>
>>>> <bxml:script>
>>>>            var vCellWidth = 788/10 - (9*4)/10;
>>>>            var vCellHeight = 68;
>>>>            var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>
>>>>        <CardPane bxml:id="logincardpane">
>>>>            <BoxPane orientation="vertical">
>>>>                <TablePane styleName="tablepanestylelogin"
>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>                    showHorizontalGridLines:false,
>>>> showVerticalGridLines:false}">
>>>>                    <columns>
>>>>                        <TablePane.Column width="$vCellWidth5"/>
>>>>
>>>> Returns:
>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>> Value "vCellWidth5" is not defined.
>>>>            at
>>>>
> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:
> 1092)
>>>>            at
>>>>
> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.jav
> a:818)
>>>>            at
>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>> 4
>>>> 42)
>>>>
>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>> if the security changes fixed this? (Or should I recompile from the
>>>> Trunk? Or a
>>>> branch?)
>>>>
>>>> or any other ideas on how to make it work?
>>>>
>>>> regards,
>>>> Mark.
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-va
>>>> r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>> Users mailing list archive at Nabble.com.
>>
>>
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

RE: JAVA 8 bxml script variables not working

Ripgiblet
Hi Roger,

I added this to the start of the apps main method:
System.out.println("JVM
Version:"+DesktopApplicationContext.getJVMVersion());
System.out.println("Pivot Version:" +
DesktopApplicationContext.getPivotVersion());

Output is:
JVM Version:25.60.0_00-b23
Pivot Version:2.1.0_00

So looks like it is using new Pivot Version...

PS-Thank you for the rapid response, I am really impressed by the support I
get from the Pivot community.
Regards,
Mark.
-----Original Message-----
From: Roger and Beth Whitcomb [mailto:[hidden email]]
Sent: Friday, 30 October 2015 11:16 AM
To: [hidden email]
Subject: Re: JAVA 8 bxml script variables not working

Hi Mark,
     That's weird, and what's more weird is that these line numbers don't
match up with the "trunk" source....
     So, I'm thinking I either sent you out-of-date .jar files, which would
be odd because I built them just today/yesterday.  Or somehow you have old
.jar files in your classpath....

     Let me check similar BXML code with what I sent you and also check the
source of what I built.

Thanks,
~Roger

On 10/29/15 7:47 PM, [hidden email] wrote:

> Hi Roger,
>
> Thankyou I really appreciate the jars;] But I still get the same
> errors, seems that the bxml:script variables are still not accessible.
> Works if compiled under JAVA1.7
>
> Error details are below:
> 15/10/30-09:34:53.072-[.TRNGUIPivot.<init>]-[INFO]-Loading GUI
> Configuration Files...
> Exception: An error occurred at line number 29 in file
> /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/
> gui/pp
> login.bxml:
> org.apache.pivot.serialization.SerializationException: An error
> occurred at line number 29 in file
> /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/
> gui/pp
> login.bxml:
> at
>
org.apache.pivot.beans.BXMLSerializer.logException(BXMLSerializer.java:1440)

> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:464)
> at
> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializ
> er.jav
> a:889)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:620)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:585)
> at mrc.base.trn.TRNGUIPivot.<init>(TRNGUIPivot.java:169)
> at mrc.base.trn.TRNPanel.startup(TRNPanel.java:329)
> at
> org.apache.pivot.wtk.DesktopApplicationContext$2.run(DesktopApplicatio
> nConte
> xt.java:669)
> at
> org.apache.pivot.wtk.ApplicationContext$QueuedCallback.run(Application
> Contex
> t.java:1687)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:709)
> at java.awt.EventQueue$3.run(EventQueue.java:703)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPr
> ivileg
> e(ProtectionDomain.java:76)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
> at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea
> d.java
> :201)
> at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
> ava:11
> 6)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
> d.java
> :105)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> Caused by: org.apache.pivot.serialization.SerializationException:
> Value "vCellWidth5" is not defined.
> at
>
org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:

> 1072)
> at
> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializ
> er.jav
> a:800)
> at
> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
> ... 22 more
>
> The start of full ppLogin.bxml is:
> <!--
>    ~
> //====================================================================
> ======
> =//
>    ~ // //
>    ~
> //====================================================================
> ======
> =//
>    -->
> <BoxPane bxml:id="pplogin" styleName="boxpanestylelogin"
> orientation="vertical"
>           xmlns:bxml="http://pivot.apache.org/bxml"
>           xmlns="org.apache.pivot.wtk">
>      <bxml:script>
>          var vCellWidth = 788/10 - (9*4)/10;
>          var vCellHeight = 68;
>          var vCellHeight2 = vCellHeight*2;
>          var vCellHeight5 = vCellHeight*5;
>          var vCellWidth2 = 2*vCellWidth+4;
>          var vCellWidth3 = 3*vCellWidth+2*4;
>          var vCellWidth4 = 4*vCellWidth+3*4;
>          var vCellWidth5 = 5*vCellWidth+4*4;
>          var vCellWidth6 = 6*vCellWidth+5*4;
>          var vInfoHeight = 50;
>          var vInfoHeight2 = vInfoHeight*2;
>          var vInfoHeight6 = vInfoHeight*6;
>          var vInfoHeight8 = vInfoHeight*8;
>      </bxml:script>
>      <CardPane bxml:id="logincardpane">
>          <BoxPane orientation="vertical">
>              <TablePane styleName="tablepanestylelogin"
> styles="{horizontalSpacing:1, verticalSpacing:10,
>                  showHorizontalGridLines:false,
> showVerticalGridLines:false}">
>                  <columns>
>                      <TablePane.Column width="$vCellWidth5"/>
>                      <TablePane.Column width="$vCellWidth4"/>
>                  </columns>
>
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger Whitcomb [mailto:[hidden email]]
> Sent: Friday, 30 October 2015 3:56 AM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi Mark,
> I have emailed the .zip file to your personal email (i.e., not the list).
>
> ~Roger
>
> ________________________________________
> From: [hidden email] <[hidden email]>
> Sent: Thursday, October 29, 2015 12:37 AM
> To: [hidden email]
> Subject: RE: JAVA 8 bxml script variables not working
>
> Hi Roger,
>
> You can just email them to me;]
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Thursday, 29 October 2015 1:25 PM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi Mark,
>       Yes, I do have some built .jar files.  Not sure where to put
> them where you could access them.  Let me give that some thought, or
> do you have a Dropbox or someplace?
>
> Thanks,
> ~Roger
>
> On 10/28/15 11:05 PM, [hidden email] wrote:
>> Hi Roger,
>>
>> I am still getting the same error, after building again from trunk...
>>
>> Any chance you have some compiled jars I can try? (Very likely I have
>> done something wrong in the build process...since I use IntelliJ and
>> sometimes the Eclipse/Maven projects change things...)
>>
>> Regards,
>> Mark.
>>
>> -----Original Message-----
>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>> Sent: Monday, 26 October 2015 11:47 PM
>> To: [hidden email]
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so
>> the
> unreleased 2.1 and 2.0.5 versions).  So, please let me know if you
> still have problems with your built versions.
>> BTW, I think this is one good reason to make the push to get 2.0.5
> released.
>> Thanks,
>> ~Roger
>>
>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>> Hi Sandro,
>>>
>>> Thank you for the fast response;]
>>> I will build from the trunk and let you know the result.
>>>
>>> Regards,
>>> Mark.
>>> -----Original Message-----
>>> From: Sandro Martini [mailto:[hidden email]]
>>> Sent: Monday, 26 October 2015 4:56 PM
>>> To: Users - Apache Pivot
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Hi mark,
>>> I think you are seeing the problem is this issue: (
>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>> Roger some time ago did some commit to start the fix (but I'm not
>>> sure
> it's already fixed).
>>> I suggest you to build all from the trunk (maybe even from 2.0.5,
>>> but
> trunk generally speaking has other fixes/improvements) because 2.0.5
> and
> 2.1.0 still are not released.
>>> Keep us updated.
>>>
>>> Thanks for now,
>>> Sandro
>>>
>>>
>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>> mentioned in PIVOT-965.
>>>> Basically variables set in bxml:script are not accessible in the
>>>> rest of the bxml file.
>>>>
>>>> <bxml:script>
>>>>            var vCellWidth = 788/10 - (9*4)/10;
>>>>            var vCellHeight = 68;
>>>>            var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>
>>>>        <CardPane bxml:id="logincardpane">
>>>>            <BoxPane orientation="vertical">
>>>>                <TablePane styleName="tablepanestylelogin"
>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>                    showHorizontalGridLines:false,
>>>> showVerticalGridLines:false}">
>>>>                    <columns>
>>>>                        <TablePane.Column width="$vCellWidth5"/>
>>>>
>>>> Returns:
>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>> Value "vCellWidth5" is not defined.
>>>>            at
>>>>
>
org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:

> 1092)
>>>>            at
>>>>
> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializ
> er.jav
> a:818)
>>>>            at
>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>> 4
>>>> 42)
>>>>
>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>> if the security changes fixed this? (Or should I recompile from the
>>>> Trunk? Or a
>>>> branch?)
>>>>
>>>> or any other ideas on how to make it work?
>>>>
>>>> regards,
>>>> Mark.
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-v
>>>> a r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>> Users mailing list archive at Nabble.com.
>>
>>
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Roger and Beth Whitcomb
Hi Mark,
     I think I see why the line numbers in your stack trace don't match
the current source:  I made some updates to fix Javadoc warnings (found
by Java 8) and hadn't rebuilt with those changes. So, I will send you a
new set of .jar files that should give me an accurate stack trace so we
can track down where (probably) some other changes need to be made.
     The basic issue that was (partially) fixed is that under the
Nashorn scripting engine in Java 8 (which is different than the Rhino
engine from earlier releases) is that the global variables go into a
separate namespace (the "nashorn.global" space) and that needs to be
searched for variables, methods, etc.  So, likely the problem you're
having is because there is another place in the code that needs this
workaround (see the new "substituteGlobals" private method in
BXMLSerializer.java) that I missed in my earlier changes. Having an
accurate stack trace from your failure should pinpoint the place.
     So, expect those new .jar files separately shortly.

Thanks,
~Roger

On 10/29/15 9:38 PM, [hidden email] wrote:

> Hi Roger,
>
> I added this to the start of the apps main method:
> System.out.println("JVM
> Version:"+DesktopApplicationContext.getJVMVersion());
> System.out.println("Pivot Version:" +
> DesktopApplicationContext.getPivotVersion());
>
> Output is:
> JVM Version:25.60.0_00-b23
> Pivot Version:2.1.0_00
>
> So looks like it is using new Pivot Version...
>
> PS-Thank you for the rapid response, I am really impressed by the support I
> get from the Pivot community.
> Regards,
> Mark.
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Friday, 30 October 2015 11:16 AM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi Mark,
>       That's weird, and what's more weird is that these line numbers don't
> match up with the "trunk" source....
>       So, I'm thinking I either sent you out-of-date .jar files, which would
> be odd because I built them just today/yesterday.  Or somehow you have old
> .jar files in your classpath....
>
>       Let me check similar BXML code with what I sent you and also check the
> source of what I built.
>
> Thanks,
> ~Roger
>
> On 10/29/15 7:47 PM, [hidden email] wrote:
>> Hi Roger,
>>
>> Thankyou I really appreciate the jars;] But I still get the same
>> errors, seems that the bxml:script variables are still not accessible.
>> Works if compiled under JAVA1.7
>>
>> Error details are below:
>> 15/10/30-09:34:53.072-[.TRNGUIPivot.<init>]-[INFO]-Loading GUI
>> Configuration Files...
>> Exception: An error occurred at line number 29 in file
>> /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/
>> gui/pp
>> login.bxml:
>> org.apache.pivot.serialization.SerializationException: An error
>> occurred at line number 29 in file
>> /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/
>> gui/pp
>> login.bxml:
>> at
>>
> org.apache.pivot.beans.BXMLSerializer.logException(BXMLSerializer.java:1440)
>> at
>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:464)
>> at
>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializ
>> er.jav
>> a:889)
>> at
>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
>> at
>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:620)
>> at
>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:585)
>> at mrc.base.trn.TRNGUIPivot.<init>(TRNGUIPivot.java:169)
>> at mrc.base.trn.TRNPanel.startup(TRNPanel.java:329)
>> at
>> org.apache.pivot.wtk.DesktopApplicationContext$2.run(DesktopApplicatio
>> nConte
>> xt.java:669)
>> at
>> org.apache.pivot.wtk.ApplicationContext$QueuedCallback.run(Application
>> Contex
>> t.java:1687)
>> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
>> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
>> at java.awt.EventQueue.access$500(EventQueue.java:97)
>> at java.awt.EventQueue$3.run(EventQueue.java:709)
>> at java.awt.EventQueue$3.run(EventQueue.java:703)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPr
>> ivileg
>> e(ProtectionDomain.java:76)
>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
>> at
>> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea
>> d.java
>> :201)
>> at
>> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
>> ava:11
>> 6)
>> at
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
>> d.java
>> :105)
>> at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
>> at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>> Caused by: org.apache.pivot.serialization.SerializationException:
>> Value "vCellWidth5" is not defined.
>> at
>>
> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:
>> 1072)
>> at
>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializ
>> er.jav
>> a:800)
>> at
>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
>> ... 22 more
>>
>> The start of full ppLogin.bxml is:
>> <!--
>>     ~
>> //====================================================================
>> ======
>> =//
>>     ~ // //
>>     ~
>> //====================================================================
>> ======
>> =//
>>     -->
>> <BoxPane bxml:id="pplogin" styleName="boxpanestylelogin"
>> orientation="vertical"
>>            xmlns:bxml="http://pivot.apache.org/bxml"
>>            xmlns="org.apache.pivot.wtk">
>>       <bxml:script>
>>           var vCellWidth = 788/10 - (9*4)/10;
>>           var vCellHeight = 68;
>>           var vCellHeight2 = vCellHeight*2;
>>           var vCellHeight5 = vCellHeight*5;
>>           var vCellWidth2 = 2*vCellWidth+4;
>>           var vCellWidth3 = 3*vCellWidth+2*4;
>>           var vCellWidth4 = 4*vCellWidth+3*4;
>>           var vCellWidth5 = 5*vCellWidth+4*4;
>>           var vCellWidth6 = 6*vCellWidth+5*4;
>>           var vInfoHeight = 50;
>>           var vInfoHeight2 = vInfoHeight*2;
>>           var vInfoHeight6 = vInfoHeight*6;
>>           var vInfoHeight8 = vInfoHeight*8;
>>       </bxml:script>
>>       <CardPane bxml:id="logincardpane">
>>           <BoxPane orientation="vertical">
>>               <TablePane styleName="tablepanestylelogin"
>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>                   showHorizontalGridLines:false,
>> showVerticalGridLines:false}">
>>                   <columns>
>>                       <TablePane.Column width="$vCellWidth5"/>
>>                       <TablePane.Column width="$vCellWidth4"/>
>>                   </columns>
>>
>>
>> Regards,
>> Mark.
>>
>> -----Original Message-----
>> From: Roger Whitcomb [mailto:[hidden email]]
>> Sent: Friday, 30 October 2015 3:56 AM
>> To: [hidden email]
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Hi Mark,
>> I have emailed the .zip file to your personal email (i.e., not the list).
>>
>> ~Roger
>>
>> ________________________________________
>> From: [hidden email] <[hidden email]>
>> Sent: Thursday, October 29, 2015 12:37 AM
>> To: [hidden email]
>> Subject: RE: JAVA 8 bxml script variables not working
>>
>> Hi Roger,
>>
>> You can just email them to me;]
>>
>> Regards,
>> Mark.
>>
>> -----Original Message-----
>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>> Sent: Thursday, 29 October 2015 1:25 PM
>> To: [hidden email]
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Hi Mark,
>>        Yes, I do have some built .jar files.  Not sure where to put
>> them where you could access them.  Let me give that some thought, or
>> do you have a Dropbox or someplace?
>>
>> Thanks,
>> ~Roger
>>
>> On 10/28/15 11:05 PM, [hidden email] wrote:
>>> Hi Roger,
>>>
>>> I am still getting the same error, after building again from trunk...
>>>
>>> Any chance you have some compiled jars I can try? (Very likely I have
>>> done something wrong in the build process...since I use IntelliJ and
>>> sometimes the Eclipse/Maven projects change things...)
>>>
>>> Regards,
>>> Mark.
>>>
>>> -----Original Message-----
>>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>>> Sent: Monday, 26 October 2015 11:47 PM
>>> To: [hidden email]
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so
>>> the
>> unreleased 2.1 and 2.0.5 versions).  So, please let me know if you
>> still have problems with your built versions.
>>> BTW, I think this is one good reason to make the push to get 2.0.5
>> released.
>>> Thanks,
>>> ~Roger
>>>
>>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>>> Hi Sandro,
>>>>
>>>> Thank you for the fast response;]
>>>> I will build from the trunk and let you know the result.
>>>>
>>>> Regards,
>>>> Mark.
>>>> -----Original Message-----
>>>> From: Sandro Martini [mailto:[hidden email]]
>>>> Sent: Monday, 26 October 2015 4:56 PM
>>>> To: Users - Apache Pivot
>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>
>>>> Hi mark,
>>>> I think you are seeing the problem is this issue: (
>>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>>> Roger some time ago did some commit to start the fix (but I'm not
>>>> sure
>> it's already fixed).
>>>> I suggest you to build all from the trunk (maybe even from 2.0.5,
>>>> but
>> trunk generally speaking has other fixes/improvements) because 2.0.5
>> and
>> 2.1.0 still are not released.
>>>> Keep us updated.
>>>>
>>>> Thanks for now,
>>>> Sandro
>>>>
>>>>
>>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>>> mentioned in PIVOT-965.
>>>>> Basically variables set in bxml:script are not accessible in the
>>>>> rest of the bxml file.
>>>>>
>>>>> <bxml:script>
>>>>>             var vCellWidth = 788/10 - (9*4)/10;
>>>>>             var vCellHeight = 68;
>>>>>             var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>>
>>>>>         <CardPane bxml:id="logincardpane">
>>>>>             <BoxPane orientation="vertical">
>>>>>                 <TablePane styleName="tablepanestylelogin"
>>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>>                     showHorizontalGridLines:false,
>>>>> showVerticalGridLines:false}">
>>>>>                     <columns>
>>>>>                         <TablePane.Column width="$vCellWidth5"/>
>>>>>
>>>>> Returns:
>>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>>> Value "vCellWidth5" is not defined.
>>>>>             at
>>>>>
> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:
>> 1092)
>>>>>             at
>>>>>
>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializ
>> er.jav
>> a:818)
>>>>>             at
>>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>>> 4
>>>>> 42)
>>>>>
>>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>>> if the security changes fixed this? (Or should I recompile from the
>>>>> Trunk? Or a
>>>>> branch?)
>>>>>
>>>>> or any other ideas on how to make it work?
>>>>>
>>>>> regards,
>>>>> Mark.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-v
>>>>> a r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>>> Users mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
>
>

Reply | Threaded
Open this post in threaded view
|

RE: JAVA 8 bxml script variables not working

Roger Whitcomb-2
In reply to this post by Sandro Martini
Ciao Sandro,
        I built the .jars I sent using JDK 7 (build 25, that is, not the latest), and using "ant".  But I did find that what I sent Mark earlier was not the latest source (due to my Javadoc changes).  So, I'm going to build again with all the latest source so we can get accurate stack traces.

Thanks,
~Roger

-----Original Message-----
From: Sandro Martini [mailto:[hidden email]]
Sent: Thursday, October 29, 2015 2:31 PM
To: Users - Apache Pivot <[hidden email]>
Subject: Re: JAVA 8 bxml script variables not working

Hi all and sorry for the delay ...
I have a staging area public (one in my account at Apache, and another at BinTray), next time tell me so I can build and publish there snapshot artifacts ... just for info, Roger, how did you build those jars (using latest JDK 7 or 8) and usual build task in ant, right ?

Bye,
Sandro


2015-10-29 21:56 GMT+01:00 Roger Whitcomb <[hidden email]>:

> Hi Mark,
> I have emailed the .zip file to your personal email (i.e., not the list).
>
> ~Roger
>
> ________________________________________
> From: [hidden email] <[hidden email]>
> Sent: Thursday, October 29, 2015 12:37 AM
> To: [hidden email]
> Subject: RE: JAVA 8 bxml script variables not working
>
> Hi Roger,
>
> You can just email them to me;]
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Thursday, 29 October 2015 1:25 PM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi Mark,
>      Yes, I do have some built .jar files.  Not sure where to put them where you could access them.  Let me give that some thought, or do you have a Dropbox or someplace?
>
> Thanks,
> ~Roger
>
> On 10/28/15 11:05 PM, [hidden email] wrote:
>> Hi Roger,
>>
>> I am still getting the same error, after building again from trunk...
>>
>> Any chance you have some compiled jars I can try? (Very likely I have
>> done something wrong in the build process...since I use IntelliJ and
>> sometimes the Eclipse/Maven projects change things...)
>>
>> Regards,
>> Mark.
>>
>> -----Original Message-----
>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>> Sent: Monday, 26 October 2015 11:47 PM
>> To: [hidden email]
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.
>>
>> BTW, I think this is one good reason to make the push to get 2.0.5 released.
>>
>> Thanks,
>> ~Roger
>>
>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>> Hi Sandro,
>>>
>>> Thank you for the fast response;]
>>> I will build from the trunk and let you know the result.
>>>
>>> Regards,
>>> Mark.
>>> -----Original Message-----
>>> From: Sandro Martini [mailto:[hidden email]]
>>> Sent: Monday, 26 October 2015 4:56 PM
>>> To: Users - Apache Pivot
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Hi mark,
>>> I think you are seeing the problem is this issue: (
>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
>>> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>>>
>>> Keep us updated.
>>>
>>> Thanks for now,
>>> Sandro
>>>
>>>
>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>> mentioned in PIVOT-965.
>>>> Basically variables set in bxml:script are not accessible in the
>>>> rest of the bxml file.
>>>>
>>>> <bxml:script>
>>>>           var vCellWidth = 788/10 - (9*4)/10;
>>>>           var vCellHeight = 68;
>>>>           var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>
>>>>       <CardPane bxml:id="logincardpane">
>>>>           <BoxPane orientation="vertical">
>>>>               <TablePane styleName="tablepanestylelogin"
>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>                   showHorizontalGridLines:false,
>>>> showVerticalGridLines:false}">
>>>>                   <columns>
>>>>                       <TablePane.Column width="$vCellWidth5"/>
>>>>
>>>> Returns:
>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>> Value "vCellWidth5" is not defined.
>>>>           at
>>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>>           at
>>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>>           at
>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>> 4
>>>> 42)
>>>>
>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>> if the security changes fixed this? (Or should I recompile from the
>>>> Trunk? Or a
>>>> branch?)
>>>>
>>>> or any other ideas on how to make it work?
>>>>
>>>> regards,
>>>> Mark.
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-v
>>>> a r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>> Users mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Sandro Martini
Hi all,

Roger, don't worry, it was just to better understand if needed to do a
build of committed sources, and put in a public place as a snapshot
:-) ... tell me if could be useful.

Today I started to update my dev environments to latest JDK 8 Update
65/66, so I'm ready even for that now, because for all my projects
really I have to start to move from JDK 7 (Update 80, latest public)
to JDK 8 ...


Stay well.

Ciao


2015-10-30 17:21 GMT+01:00 Roger Whitcomb <[hidden email]>:

> Ciao Sandro,
>         I built the .jars I sent using JDK 7 (build 25, that is, not the latest), and using "ant".  But I did find that what I sent Mark earlier was not the latest source (due to my Javadoc changes).  So, I'm going to build again with all the latest source so we can get accurate stack traces.
>
> Thanks,
> ~Roger
>
> -----Original Message-----
> From: Sandro Martini [mailto:[hidden email]]
> Sent: Thursday, October 29, 2015 2:31 PM
> To: Users - Apache Pivot <[hidden email]>
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi all and sorry for the delay ...
> I have a staging area public (one in my account at Apache, and another at BinTray), next time tell me so I can build and publish there snapshot artifacts ... just for info, Roger, how did you build those jars (using latest JDK 7 or 8) and usual build task in ant, right ?
>
> Bye,
> Sandro
>
>
> 2015-10-29 21:56 GMT+01:00 Roger Whitcomb <[hidden email]>:
>> Hi Mark,
>> I have emailed the .zip file to your personal email (i.e., not the list).
>>
>> ~Roger
>>
>> ________________________________________
>> From: [hidden email] <[hidden email]>
>> Sent: Thursday, October 29, 2015 12:37 AM
>> To: [hidden email]
>> Subject: RE: JAVA 8 bxml script variables not working
>>
>> Hi Roger,
>>
>> You can just email them to me;]
>>
>> Regards,
>> Mark.
>>
>> -----Original Message-----
>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>> Sent: Thursday, 29 October 2015 1:25 PM
>> To: [hidden email]
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Hi Mark,
>>      Yes, I do have some built .jar files.  Not sure where to put them where you could access them.  Let me give that some thought, or do you have a Dropbox or someplace?
>>
>> Thanks,
>> ~Roger
>>
>> On 10/28/15 11:05 PM, [hidden email] wrote:
>>> Hi Roger,
>>>
>>> I am still getting the same error, after building again from trunk...
>>>
>>> Any chance you have some compiled jars I can try? (Very likely I have
>>> done something wrong in the build process...since I use IntelliJ and
>>> sometimes the Eclipse/Maven projects change things...)
>>>
>>> Regards,
>>> Mark.
>>>
>>> -----Original Message-----
>>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>>> Sent: Monday, 26 October 2015 11:47 PM
>>> To: [hidden email]
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.
>>>
>>> BTW, I think this is one good reason to make the push to get 2.0.5 released.
>>>
>>> Thanks,
>>> ~Roger
>>>
>>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>>> Hi Sandro,
>>>>
>>>> Thank you for the fast response;]
>>>> I will build from the trunk and let you know the result.
>>>>
>>>> Regards,
>>>> Mark.
>>>> -----Original Message-----
>>>> From: Sandro Martini [mailto:[hidden email]]
>>>> Sent: Monday, 26 October 2015 4:56 PM
>>>> To: Users - Apache Pivot
>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>
>>>> Hi mark,
>>>> I think you are seeing the problem is this issue: (
>>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>>> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
>>>> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>>>>
>>>> Keep us updated.
>>>>
>>>> Thanks for now,
>>>> Sandro
>>>>
>>>>
>>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>>> mentioned in PIVOT-965.
>>>>> Basically variables set in bxml:script are not accessible in the
>>>>> rest of the bxml file.
>>>>>
>>>>> <bxml:script>
>>>>>           var vCellWidth = 788/10 - (9*4)/10;
>>>>>           var vCellHeight = 68;
>>>>>           var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>>
>>>>>       <CardPane bxml:id="logincardpane">
>>>>>           <BoxPane orientation="vertical">
>>>>>               <TablePane styleName="tablepanestylelogin"
>>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>>                   showHorizontalGridLines:false,
>>>>> showVerticalGridLines:false}">
>>>>>                   <columns>
>>>>>                       <TablePane.Column width="$vCellWidth5"/>
>>>>>
>>>>> Returns:
>>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>>> Value "vCellWidth5" is not defined.
>>>>>           at
>>>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>>>           at
>>>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>>>           at
>>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>>> 4
>>>>> 42)
>>>>>
>>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>>> if the security changes fixed this? (Or should I recompile from the
>>>>> Trunk? Or a
>>>>> branch?)
>>>>>
>>>>> or any other ideas on how to make it work?
>>>>>
>>>>> regards,
>>>>> Mark.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-v
>>>>> a r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>>> Users mailing list archive at Nabble.com.
>>>>
>>>
>>>
>>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Roger and Beth Whitcomb
Ciao Sandro,
     Actually, yes, I think a snapshot of current sources could be useful.

Thanks,
~Roger

On 10/30/15 9:52 AM, Sandro Martini wrote:

> Hi all,
>
> Roger, don't worry, it was just to better understand if needed to do a
> build of committed sources, and put in a public place as a snapshot
> :-) ... tell me if could be useful.
>
> Today I started to update my dev environments to latest JDK 8 Update
> 65/66, so I'm ready even for that now, because for all my projects
> really I have to start to move from JDK 7 (Update 80, latest public)
> to JDK 8 ...
>
>
> Stay well.
>
> Ciao
>
>
> 2015-10-30 17:21 GMT+01:00 Roger Whitcomb <[hidden email]>:
>> Ciao Sandro,
>>          I built the .jars I sent using JDK 7 (build 25, that is, not the latest), and using "ant".  But I did find that what I sent Mark earlier was not the latest source (due to my Javadoc changes).  So, I'm going to build again with all the latest source so we can get accurate stack traces.
>>
>> Thanks,
>> ~Roger
>>
>> -----Original Message-----
>> From: Sandro Martini [mailto:[hidden email]]
>> Sent: Thursday, October 29, 2015 2:31 PM
>> To: Users - Apache Pivot <[hidden email]>
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Hi all and sorry for the delay ...
>> I have a staging area public (one in my account at Apache, and another at BinTray), next time tell me so I can build and publish there snapshot artifacts ... just for info, Roger, how did you build those jars (using latest JDK 7 or 8) and usual build task in ant, right ?
>>
>> Bye,
>> Sandro
>>
>>
>> 2015-10-29 21:56 GMT+01:00 Roger Whitcomb <[hidden email]>:
>>> Hi Mark,
>>> I have emailed the .zip file to your personal email (i.e., not the list).
>>>
>>> ~Roger
>>>
>>> ________________________________________
>>> From: [hidden email] <[hidden email]>
>>> Sent: Thursday, October 29, 2015 12:37 AM
>>> To: [hidden email]
>>> Subject: RE: JAVA 8 bxml script variables not working
>>>
>>> Hi Roger,
>>>
>>> You can just email them to me;]
>>>
>>> Regards,
>>> Mark.
>>>
>>> -----Original Message-----
>>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>>> Sent: Thursday, 29 October 2015 1:25 PM
>>> To: [hidden email]
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Hi Mark,
>>>       Yes, I do have some built .jar files.  Not sure where to put them where you could access them.  Let me give that some thought, or do you have a Dropbox or someplace?
>>>
>>> Thanks,
>>> ~Roger
>>>
>>> On 10/28/15 11:05 PM, [hidden email] wrote:
>>>> Hi Roger,
>>>>
>>>> I am still getting the same error, after building again from trunk...
>>>>
>>>> Any chance you have some compiled jars I can try? (Very likely I have
>>>> done something wrong in the build process...since I use IntelliJ and
>>>> sometimes the Eclipse/Maven projects change things...)
>>>>
>>>> Regards,
>>>> Mark.
>>>>
>>>> -----Original Message-----
>>>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>>>> Sent: Monday, 26 October 2015 11:47 PM
>>>> To: [hidden email]
>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>
>>>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.
>>>>
>>>> BTW, I think this is one good reason to make the push to get 2.0.5 released.
>>>>
>>>> Thanks,
>>>> ~Roger
>>>>
>>>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>>>> Hi Sandro,
>>>>>
>>>>> Thank you for the fast response;]
>>>>> I will build from the trunk and let you know the result.
>>>>>
>>>>> Regards,
>>>>> Mark.
>>>>> -----Original Message-----
>>>>> From: Sandro Martini [mailto:[hidden email]]
>>>>> Sent: Monday, 26 October 2015 4:56 PM
>>>>> To: Users - Apache Pivot
>>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>>
>>>>> Hi mark,
>>>>> I think you are seeing the problem is this issue: (
>>>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>>>> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
>>>>> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>>>>>
>>>>> Keep us updated.
>>>>>
>>>>> Thanks for now,
>>>>> Sandro
>>>>>
>>>>>
>>>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>>>> mentioned in PIVOT-965.
>>>>>> Basically variables set in bxml:script are not accessible in the
>>>>>> rest of the bxml file.
>>>>>>
>>>>>> <bxml:script>
>>>>>>            var vCellWidth = 788/10 - (9*4)/10;
>>>>>>            var vCellHeight = 68;
>>>>>>            var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>>>
>>>>>>        <CardPane bxml:id="logincardpane">
>>>>>>            <BoxPane orientation="vertical">
>>>>>>                <TablePane styleName="tablepanestylelogin"
>>>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>>>                    showHorizontalGridLines:false,
>>>>>> showVerticalGridLines:false}">
>>>>>>                    <columns>
>>>>>>                        <TablePane.Column width="$vCellWidth5"/>
>>>>>>
>>>>>> Returns:
>>>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>>>> Value "vCellWidth5" is not defined.
>>>>>>            at
>>>>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>>>>            at
>>>>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>>>>            at
>>>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>>>> 4
>>>>>> 42)
>>>>>>
>>>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>>>> if the security changes fixed this? (Or should I recompile from the
>>>>>> Trunk? Or a
>>>>>> branch?)
>>>>>>
>>>>>> or any other ideas on how to make it work?
>>>>>>
>>>>>> regards,
>>>>>> Mark.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-v
>>>>>> a r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>>>> Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>

Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Sandro Martini
Hi Roger,
if possible tomorrow (or later) I'll generate a snapshot for 2.0.5
(with jdk 7u80) and another for 2.1.0 (with jdk 8u66 or with 7u80 if
needed) and post here related URL.
Of course they are snapshot and will be deleted before final releases :-) .

Let's update.

Bye


2015-10-30 18:46 GMT+01:00 Roger and Beth Whitcomb
<[hidden email]>:

> Ciao Sandro,
>     Actually, yes, I think a snapshot of current sources could be useful.
>
> Thanks,
> ~Roger
>
>
> On 10/30/15 9:52 AM, Sandro Martini wrote:
>>
>> Hi all,
>>
>> Roger, don't worry, it was just to better understand if needed to do a
>> build of committed sources, and put in a public place as a snapshot
>> :-) ... tell me if could be useful.
>>
>> Today I started to update my dev environments to latest JDK 8 Update
>> 65/66, so I'm ready even for that now, because for all my projects
>> really I have to start to move from JDK 7 (Update 80, latest public)
>> to JDK 8 ...
>>
>>
>> Stay well.
>>
>> Ciao
>>
>>
>> 2015-10-30 17:21 GMT+01:00 Roger Whitcomb <[hidden email]>:
>>>
>>> Ciao Sandro,
>>>          I built the .jars I sent using JDK 7 (build 25, that is, not the
>>> latest), and using "ant".  But I did find that what I sent Mark earlier was
>>> not the latest source (due to my Javadoc changes).  So, I'm going to build
>>> again with all the latest source so we can get accurate stack traces.
>>>
>>> Thanks,
>>> ~Roger
>>>
>>> -----Original Message-----
>>> From: Sandro Martini [mailto:[hidden email]]
>>> Sent: Thursday, October 29, 2015 2:31 PM
>>> To: Users - Apache Pivot <[hidden email]>
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Hi all and sorry for the delay ...
>>> I have a staging area public (one in my account at Apache, and another at
>>> BinTray), next time tell me so I can build and publish there snapshot
>>> artifacts ... just for info, Roger, how did you build those jars (using
>>> latest JDK 7 or 8) and usual build task in ant, right ?
>>>
>>> Bye,
>>> Sandro
>>>
>>>
>>> 2015-10-29 21:56 GMT+01:00 Roger Whitcomb <[hidden email]>:
>>>>
>>>> Hi Mark,
>>>> I have emailed the .zip file to your personal email (i.e., not the
>>>> list).
>>>>
>>>> ~Roger
>>>>
>>>> ________________________________________
>>>> From: [hidden email] <[hidden email]>
>>>> Sent: Thursday, October 29, 2015 12:37 AM
>>>> To: [hidden email]
>>>> Subject: RE: JAVA 8 bxml script variables not working
>>>>
>>>> Hi Roger,
>>>>
>>>> You can just email them to me;]
>>>>
>>>> Regards,
>>>> Mark.
>>>>
>>>> -----Original Message-----
>>>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>>>> Sent: Thursday, 29 October 2015 1:25 PM
>>>> To: [hidden email]
>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>
>>>> Hi Mark,
>>>>       Yes, I do have some built .jar files.  Not sure where to put them
>>>> where you could access them.  Let me give that some thought, or do you have
>>>> a Dropbox or someplace?
>>>>
>>>> Thanks,
>>>> ~Roger
>>>>
>>>> On 10/28/15 11:05 PM, [hidden email] wrote:
>>>>>
>>>>> Hi Roger,
>>>>>
>>>>> I am still getting the same error, after building again from trunk...
>>>>>
>>>>> Any chance you have some compiled jars I can try? (Very likely I have
>>>>> done something wrong in the build process...since I use IntelliJ and
>>>>> sometimes the Eclipse/Maven projects change things...)
>>>>>
>>>>> Regards,
>>>>> Mark.
>>>>>
>>>>> -----Original Message-----
>>>>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>>>>> Sent: Monday, 26 October 2015 11:47 PM
>>>>> To: [hidden email]
>>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>>
>>>>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so
>>>>> the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still
>>>>> have problems with your built versions.
>>>>>
>>>>> BTW, I think this is one good reason to make the push to get 2.0.5
>>>>> released.
>>>>>
>>>>> Thanks,
>>>>> ~Roger
>>>>>
>>>>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>>>>>
>>>>>> Hi Sandro,
>>>>>>
>>>>>> Thank you for the fast response;]
>>>>>> I will build from the trunk and let you know the result.
>>>>>>
>>>>>> Regards,
>>>>>> Mark.
>>>>>> -----Original Message-----
>>>>>> From: Sandro Martini [mailto:[hidden email]]
>>>>>> Sent: Monday, 26 October 2015 4:56 PM
>>>>>> To: Users - Apache Pivot
>>>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>>>
>>>>>> Hi mark,
>>>>>> I think you are seeing the problem is this issue: (
>>>>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>>>>> Roger some time ago did some commit to start the fix (but I'm not sure
>>>>>> it's already fixed).
>>>>>> I suggest you to build all from the trunk (maybe even from 2.0.5, but
>>>>>> trunk generally speaking has other fixes/improvements) because 2.0.5 and
>>>>>> 2.1.0 still are not released.
>>>>>>
>>>>>> Keep us updated.
>>>>>>
>>>>>> Thanks for now,
>>>>>> Sandro
>>>>>>
>>>>>>
>>>>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>>>>>
>>>>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>>>>> mentioned in PIVOT-965.
>>>>>>> Basically variables set in bxml:script are not accessible in the
>>>>>>> rest of the bxml file.
>>>>>>>
>>>>>>> <bxml:script>
>>>>>>>            var vCellWidth = 788/10 - (9*4)/10;
>>>>>>>            var vCellHeight = 68;
>>>>>>>            var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>>>>
>>>>>>>        <CardPane bxml:id="logincardpane">
>>>>>>>            <BoxPane orientation="vertical">
>>>>>>>                <TablePane styleName="tablepanestylelogin"
>>>>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>>>>                    showHorizontalGridLines:false,
>>>>>>> showVerticalGridLines:false}">
>>>>>>>                    <columns>
>>>>>>>                        <TablePane.Column width="$vCellWidth5"/>
>>>>>>>
>>>>>>> Returns:
>>>>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>>>>> Value "vCellWidth5" is not defined.
>>>>>>>            at
>>>>>>>
>>>>>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>>>>>            at
>>>>>>>
>>>>>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>>>>>            at
>>>>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>>>>> 4
>>>>>>> 42)
>>>>>>>
>>>>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>>>>> if the security changes fixed this? (Or should I recompile from the
>>>>>>> Trunk? Or a
>>>>>>> branch?)
>>>>>>>
>>>>>>> or any other ideas on how to make it work?
>>>>>>>
>>>>>>> regards,
>>>>>>> Mark.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> View this message in context:
>>>>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-v
>>>>>>> a r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>>>>> Users mailing list archive at Nabble.com.
>>>>>
>>>>>
>>>>>
>>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Sandro Martini
Ok, got some time today so snapshot files are (using updated svn sources):

for 2.0.5 (built with jdk7u80):
https://bintray.com/smartiniontray/Apache-Pivot-related-downloads/pivot-snapshots-2.0.5/2015-10-30-snapshot/view#files

and for 2.1.0 (build with jdk 8u66):
https://bintray.com/smartiniontray/Apache-Pivot-related-downloads/pivot-snapshots-2.1.0/2015-10-30-snapshot/view#files

for simplicity I put there only Pivot usual jars (not the source and
doc versions, nor the pack200 version ... all this stuff required a
lot more time so it will be done just for convenience for real
releases, if needed); anyway I hope they will be good the same  :-) .

Keep us updated.

Bye


2015-10-30 22:17 GMT+01:00 Sandro Martini <[hidden email]>:

> Hi Roger,
> if possible tomorrow (or later) I'll generate a snapshot for 2.0.5
> (with jdk 7u80) and another for 2.1.0 (with jdk 8u66 or with 7u80 if
> needed) and post here related URL.
> Of course they are snapshot and will be deleted before final releases :-) .
>
> Let's update.
>
> Bye
>
>
> 2015-10-30 18:46 GMT+01:00 Roger and Beth Whitcomb
> <[hidden email]>:
>> Ciao Sandro,
>>     Actually, yes, I think a snapshot of current sources could be useful.
>>
>> Thanks,
>> ~Roger
>>
>>
>> On 10/30/15 9:52 AM, Sandro Martini wrote:
>>>
>>> Hi all,
>>>
>>> Roger, don't worry, it was just to better understand if needed to do a
>>> build of committed sources, and put in a public place as a snapshot
>>> :-) ... tell me if could be useful.
>>>
>>> Today I started to update my dev environments to latest JDK 8 Update
>>> 65/66, so I'm ready even for that now, because for all my projects
>>> really I have to start to move from JDK 7 (Update 80, latest public)
>>> to JDK 8 ...
>>>
>>>
>>> Stay well.
>>>
>>> Ciao
>>>
>>>
>>> 2015-10-30 17:21 GMT+01:00 Roger Whitcomb <[hidden email]>:
>>>>
>>>> Ciao Sandro,
>>>>          I built the .jars I sent using JDK 7 (build 25, that is, not the
>>>> latest), and using "ant".  But I did find that what I sent Mark earlier was
>>>> not the latest source (due to my Javadoc changes).  So, I'm going to build
>>>> again with all the latest source so we can get accurate stack traces.
>>>>
>>>> Thanks,
>>>> ~Roger
>>>>
>>>> -----Original Message-----
>>>> From: Sandro Martini [mailto:[hidden email]]
>>>> Sent: Thursday, October 29, 2015 2:31 PM
>>>> To: Users - Apache Pivot <[hidden email]>
>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>
>>>> Hi all and sorry for the delay ...
>>>> I have a staging area public (one in my account at Apache, and another at
>>>> BinTray), next time tell me so I can build and publish there snapshot
>>>> artifacts ... just for info, Roger, how did you build those jars (using
>>>> latest JDK 7 or 8) and usual build task in ant, right ?
>>>>
>>>> Bye,
>>>> Sandro
>>>>
>>>>
>>>> 2015-10-29 21:56 GMT+01:00 Roger Whitcomb <[hidden email]>:
>>>>>
>>>>> Hi Mark,
>>>>> I have emailed the .zip file to your personal email (i.e., not the
>>>>> list).
>>>>>
>>>>> ~Roger
>>>>>
>>>>> ________________________________________
>>>>> From: [hidden email] <[hidden email]>
>>>>> Sent: Thursday, October 29, 2015 12:37 AM
>>>>> To: [hidden email]
>>>>> Subject: RE: JAVA 8 bxml script variables not working
>>>>>
>>>>> Hi Roger,
>>>>>
>>>>> You can just email them to me;]
>>>>>
>>>>> Regards,
>>>>> Mark.
>>>>>
>>>>> -----Original Message-----
>>>>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>>>>> Sent: Thursday, 29 October 2015 1:25 PM
>>>>> To: [hidden email]
>>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>>
>>>>> Hi Mark,
>>>>>       Yes, I do have some built .jar files.  Not sure where to put them
>>>>> where you could access them.  Let me give that some thought, or do you have
>>>>> a Dropbox or someplace?
>>>>>
>>>>> Thanks,
>>>>> ~Roger
>>>>>
>>>>> On 10/28/15 11:05 PM, [hidden email] wrote:
>>>>>>
>>>>>> Hi Roger,
>>>>>>
>>>>>> I am still getting the same error, after building again from trunk...
>>>>>>
>>>>>> Any chance you have some compiled jars I can try? (Very likely I have
>>>>>> done something wrong in the build process...since I use IntelliJ and
>>>>>> sometimes the Eclipse/Maven projects change things...)
>>>>>>
>>>>>> Regards,
>>>>>> Mark.
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>>>>>> Sent: Monday, 26 October 2015 11:47 PM
>>>>>> To: [hidden email]
>>>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>>>
>>>>>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so
>>>>>> the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still
>>>>>> have problems with your built versions.
>>>>>>
>>>>>> BTW, I think this is one good reason to make the push to get 2.0.5
>>>>>> released.
>>>>>>
>>>>>> Thanks,
>>>>>> ~Roger
>>>>>>
>>>>>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>>>>>>
>>>>>>> Hi Sandro,
>>>>>>>
>>>>>>> Thank you for the fast response;]
>>>>>>> I will build from the trunk and let you know the result.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Mark.
>>>>>>> -----Original Message-----
>>>>>>> From: Sandro Martini [mailto:[hidden email]]
>>>>>>> Sent: Monday, 26 October 2015 4:56 PM
>>>>>>> To: Users - Apache Pivot
>>>>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>>>>
>>>>>>> Hi mark,
>>>>>>> I think you are seeing the problem is this issue: (
>>>>>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>>>>>> Roger some time ago did some commit to start the fix (but I'm not sure
>>>>>>> it's already fixed).
>>>>>>> I suggest you to build all from the trunk (maybe even from 2.0.5, but
>>>>>>> trunk generally speaking has other fixes/improvements) because 2.0.5 and
>>>>>>> 2.1.0 still are not released.
>>>>>>>
>>>>>>> Keep us updated.
>>>>>>>
>>>>>>> Thanks for now,
>>>>>>> Sandro
>>>>>>>
>>>>>>>
>>>>>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>>>>>>
>>>>>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>>>>>> mentioned in PIVOT-965.
>>>>>>>> Basically variables set in bxml:script are not accessible in the
>>>>>>>> rest of the bxml file.
>>>>>>>>
>>>>>>>> <bxml:script>
>>>>>>>>            var vCellWidth = 788/10 - (9*4)/10;
>>>>>>>>            var vCellHeight = 68;
>>>>>>>>            var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>>>>>
>>>>>>>>        <CardPane bxml:id="logincardpane">
>>>>>>>>            <BoxPane orientation="vertical">
>>>>>>>>                <TablePane styleName="tablepanestylelogin"
>>>>>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>>>>>                    showHorizontalGridLines:false,
>>>>>>>> showVerticalGridLines:false}">
>>>>>>>>                    <columns>
>>>>>>>>                        <TablePane.Column width="$vCellWidth5"/>
>>>>>>>>
>>>>>>>> Returns:
>>>>>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>>>>>> Value "vCellWidth5" is not defined.
>>>>>>>>            at
>>>>>>>>
>>>>>>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>>>>>>            at
>>>>>>>>
>>>>>>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>>>>>>            at
>>>>>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>>>>>> 4
>>>>>>>> 42)
>>>>>>>>
>>>>>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>>>>>> if the security changes fixed this? (Or should I recompile from the
>>>>>>>> Trunk? Or a
>>>>>>>> branch?)
>>>>>>>>
>>>>>>>> or any other ideas on how to make it work?
>>>>>>>>
>>>>>>>> regards,
>>>>>>>> Mark.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> View this message in context:
>>>>>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-v
>>>>>>>> a r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>>>>>> Users mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

RE: JAVA 8 bxml script variables not working

Ripgiblet
In reply to this post by Roger Whitcomb-2
Hi Roger,

Thanks again I used the jar file snapshots that Sandro uploaded. Hopefully they included your source changes.
(Not sure why but this time the email stripped the jars...)

For:
JVM Version:25.60.0_00-b23
Pivot Version:2.1.0_00

Exception: An error occurred at line number 29 in file /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/gui/pplogin.bxml:
org.apache.pivot.serialization.SerializationException: An error occurred at line number 29 in file /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/gui/pplogin.bxml:
        at org.apache.pivot.beans.BXMLSerializer.logException(BXMLSerializer.java:1461)
        at org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:464)
        at org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:909)
        at org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
        at org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:640)
        at org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:598)
        at mrc.base.trn.TRNGUIPivot.<init>(TRNGUIPivot.java:169)
        at mrc.base.trn.TRNPanel.startup(TRNPanel.java:331)
        at org.apache.pivot.wtk.DesktopApplicationContext$2.run(DesktopApplicationContext.java:669)
        at org.apache.pivot.wtk.ApplicationContext$QueuedCallback.run(ApplicationContext.java:1687)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

regards,
Mark.

-----Original Message-----
From: Roger Whitcomb [mailto:[hidden email]]
Sent: Friday, 30 October 2015 11:21 PM
To: [hidden email]
Subject: RE: JAVA 8 bxml script variables not working

Ciao Sandro,
        I built the .jars I sent using JDK 7 (build 25, that is, not the latest), and using "ant".  But I did find that what I sent Mark earlier was not the latest source (due to my Javadoc changes).  So, I'm going to build again with all the latest source so we can get accurate stack traces.

Thanks,
~Roger

-----Original Message-----
From: Sandro Martini [mailto:[hidden email]]
Sent: Thursday, October 29, 2015 2:31 PM
To: Users - Apache Pivot <[hidden email]>
Subject: Re: JAVA 8 bxml script variables not working

Hi all and sorry for the delay ...
I have a staging area public (one in my account at Apache, and another at BinTray), next time tell me so I can build and publish there snapshot artifacts ... just for info, Roger, how did you build those jars (using latest JDK 7 or 8) and usual build task in ant, right ?

Bye,
Sandro


2015-10-29 21:56 GMT+01:00 Roger Whitcomb <[hidden email]>:

> Hi Mark,
> I have emailed the .zip file to your personal email (i.e., not the list).
>
> ~Roger
>
> ________________________________________
> From: [hidden email] <[hidden email]>
> Sent: Thursday, October 29, 2015 12:37 AM
> To: [hidden email]
> Subject: RE: JAVA 8 bxml script variables not working
>
> Hi Roger,
>
> You can just email them to me;]
>
> Regards,
> Mark.
>
> -----Original Message-----
> From: Roger and Beth Whitcomb [mailto:[hidden email]]
> Sent: Thursday, 29 October 2015 1:25 PM
> To: [hidden email]
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi Mark,
>      Yes, I do have some built .jar files.  Not sure where to put them where you could access them.  Let me give that some thought, or do you have a Dropbox or someplace?
>
> Thanks,
> ~Roger
>
> On 10/28/15 11:05 PM, [hidden email] wrote:
>> Hi Roger,
>>
>> I am still getting the same error, after building again from trunk...
>>
>> Any chance you have some compiled jars I can try? (Very likely I have
>> done something wrong in the build process...since I use IntelliJ and
>> sometimes the Eclipse/Maven projects change things...)
>>
>> Regards,
>> Mark.
>>
>> -----Original Message-----
>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>> Sent: Monday, 26 October 2015 11:47 PM
>> To: [hidden email]
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.
>>
>> BTW, I think this is one good reason to make the push to get 2.0.5 released.
>>
>> Thanks,
>> ~Roger
>>
>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>> Hi Sandro,
>>>
>>> Thank you for the fast response;]
>>> I will build from the trunk and let you know the result.
>>>
>>> Regards,
>>> Mark.
>>> -----Original Message-----
>>> From: Sandro Martini [mailto:[hidden email]]
>>> Sent: Monday, 26 October 2015 4:56 PM
>>> To: Users - Apache Pivot
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Hi mark,
>>> I think you are seeing the problem is this issue: (
>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
>>> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>>>
>>> Keep us updated.
>>>
>>> Thanks for now,
>>> Sandro
>>>
>>>
>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>> mentioned in PIVOT-965.
>>>> Basically variables set in bxml:script are not accessible in the
>>>> rest of the bxml file.
>>>>
>>>> <bxml:script>
>>>>           var vCellWidth = 788/10 - (9*4)/10;
>>>>           var vCellHeight = 68;
>>>>           var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>
>>>>       <CardPane bxml:id="logincardpane">
>>>>           <BoxPane orientation="vertical">
>>>>               <TablePane styleName="tablepanestylelogin"
>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>                   showHorizontalGridLines:false,
>>>> showVerticalGridLines:false}">
>>>>                   <columns>
>>>>                       <TablePane.Column width="$vCellWidth5"/>
>>>>
>>>> Returns:
>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>> Value "vCellWidth5" is not defined.
>>>>           at
>>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>>           at
>>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>>           at
>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>> 4
>>>> 42)
>>>>
>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>> if the security changes fixed this? (Or should I recompile from the
>>>> Trunk? Or a
>>>> branch?)
>>>>
>>>> or any other ideas on how to make it work?
>>>>
>>>> regards,
>>>> Mark.
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-v
>>>> a r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>> Users mailing list archive at Nabble.com.
>>>
>>
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: JAVA 8 bxml script variables not working

Roger and Beth Whitcomb
Hi Mark,
     Okay, I think we have the source in sync with your .jar files now.  
But, I'm not sure exactly what's going on this time.  Do you have a more
complete stack trace?  The cause isn't listed and this trace isn't
showing the exact error.

Thanks,
~Roger

On 10/31/15 12:47 AM, [hidden email] wrote:

> Hi Roger,
>
> Thanks again I used the jar file snapshots that Sandro uploaded. Hopefully they included your source changes.
> (Not sure why but this time the email stripped the jars...)
>
> For:
> JVM Version:25.60.0_00-b23
> Pivot Version:2.1.0_00
>
> Exception: An error occurred at line number 29 in file /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/gui/pplogin.bxml:
> org.apache.pivot.serialization.SerializationException: An error occurred at line number 29 in file /C:/Users/mark_000/Documents/DEVL/IdeaProjects/mrc/out/production/trn/gui/pplogin.bxml:
> at org.apache.pivot.beans.BXMLSerializer.logException(BXMLSerializer.java:1461)
> at org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:464)
> at org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:909)
> at org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:443)
> at org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:640)
> at org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:598)
> at mrc.base.trn.TRNGUIPivot.<init>(TRNGUIPivot.java:169)
> at mrc.base.trn.TRNPanel.startup(TRNPanel.java:331)
> at org.apache.pivot.wtk.DesktopApplicationContext$2.run(DesktopApplicationContext.java:669)
> at org.apache.pivot.wtk.ApplicationContext$QueuedCallback.run(ApplicationContext.java:1687)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> at java.awt.EventQueue.access$500(EventQueue.java:97)
> at java.awt.EventQueue$3.run(EventQueue.java:709)
> at java.awt.EventQueue$3.run(EventQueue.java:703)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
> at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
>
> regards,
> Mark.
>
> -----Original Message-----
> From: Roger Whitcomb [mailto:[hidden email]]
> Sent: Friday, 30 October 2015 11:21 PM
> To: [hidden email]
> Subject: RE: JAVA 8 bxml script variables not working
>
> Ciao Sandro,
> I built the .jars I sent using JDK 7 (build 25, that is, not the latest), and using "ant".  But I did find that what I sent Mark earlier was not the latest source (due to my Javadoc changes).  So, I'm going to build again with all the latest source so we can get accurate stack traces.
>
> Thanks,
> ~Roger
>
> -----Original Message-----
> From: Sandro Martini [mailto:[hidden email]]
> Sent: Thursday, October 29, 2015 2:31 PM
> To: Users - Apache Pivot <[hidden email]>
> Subject: Re: JAVA 8 bxml script variables not working
>
> Hi all and sorry for the delay ...
> I have a staging area public (one in my account at Apache, and another at BinTray), next time tell me so I can build and publish there snapshot artifacts ... just for info, Roger, how did you build those jars (using latest JDK 7 or 8) and usual build task in ant, right ?
>
> Bye,
> Sandro
>
>
> 2015-10-29 21:56 GMT+01:00 Roger Whitcomb <[hidden email]>:
>> Hi Mark,
>> I have emailed the .zip file to your personal email (i.e., not the list).
>>
>> ~Roger
>>
>> ________________________________________
>> From: [hidden email] <[hidden email]>
>> Sent: Thursday, October 29, 2015 12:37 AM
>> To: [hidden email]
>> Subject: RE: JAVA 8 bxml script variables not working
>>
>> Hi Roger,
>>
>> You can just email them to me;]
>>
>> Regards,
>> Mark.
>>
>> -----Original Message-----
>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>> Sent: Thursday, 29 October 2015 1:25 PM
>> To: [hidden email]
>> Subject: Re: JAVA 8 bxml script variables not working
>>
>> Hi Mark,
>>       Yes, I do have some built .jar files.  Not sure where to put them where you could access them.  Let me give that some thought, or do you have a Dropbox or someplace?
>>
>> Thanks,
>> ~Roger
>>
>> On 10/28/15 11:05 PM, [hidden email] wrote:
>>> Hi Roger,
>>>
>>> I am still getting the same error, after building again from trunk...
>>>
>>> Any chance you have some compiled jars I can try? (Very likely I have
>>> done something wrong in the build process...since I use IntelliJ and
>>> sometimes the Eclipse/Maven projects change things...)
>>>
>>> Regards,
>>> Mark.
>>>
>>> -----Original Message-----
>>> From: Roger and Beth Whitcomb [mailto:[hidden email]]
>>> Sent: Monday, 26 October 2015 11:47 PM
>>> To: [hidden email]
>>> Subject: Re: JAVA 8 bxml script variables not working
>>>
>>> Yes, this is completely fixed in "trunk" and in "branches/2.0.x" (so the unreleased 2.1 and 2.0.5 versions).  So, please let me know if you still have problems with your built versions.
>>>
>>> BTW, I think this is one good reason to make the push to get 2.0.5 released.
>>>
>>> Thanks,
>>> ~Roger
>>>
>>> On 10/26/15 3:40 AM, [hidden email] wrote:
>>>> Hi Sandro,
>>>>
>>>> Thank you for the fast response;]
>>>> I will build from the trunk and let you know the result.
>>>>
>>>> Regards,
>>>> Mark.
>>>> -----Original Message-----
>>>> From: Sandro Martini [mailto:[hidden email]]
>>>> Sent: Monday, 26 October 2015 4:56 PM
>>>> To: Users - Apache Pivot
>>>> Subject: Re: JAVA 8 bxml script variables not working
>>>>
>>>> Hi mark,
>>>> I think you are seeing the problem is this issue: (
>>>> https://issues.apache.org/jira/browse/PIVOT-965 ).
>>>> Roger some time ago did some commit to start the fix (but I'm not sure it's already fixed).
>>>> I suggest you to build all from the trunk (maybe even from 2.0.5, but trunk generally speaking has other fixes/improvements) because 2.0.5 and 2.1.0 still are not released.
>>>>
>>>> Keep us updated.
>>>>
>>>> Thanks for now,
>>>> Sandro
>>>>
>>>>
>>>> 2015-10-26 10:22 GMT+01:00 Ripgiblet <[hidden email]>:
>>>>> Having the same trouble with upgrade to JAVA 8 as may have been
>>>>> mentioned in PIVOT-965.
>>>>> Basically variables set in bxml:script are not accessible in the
>>>>> rest of the bxml file.
>>>>>
>>>>> <bxml:script>
>>>>>            var vCellWidth = 788/10 - (9*4)/10;
>>>>>            var vCellHeight = 68;
>>>>>            var vCellWidth5 = 5*vCellWidth+4*4; </bxml:script>
>>>>>
>>>>>        <CardPane bxml:id="logincardpane">
>>>>>            <BoxPane orientation="vertical">
>>>>>                <TablePane styleName="tablepanestylelogin"
>>>>> styles="{horizontalSpacing:1, verticalSpacing:10,
>>>>>                    showHorizontalGridLines:false,
>>>>> showVerticalGridLines:false}">
>>>>>                    <columns>
>>>>>                        <TablePane.Column width="$vCellWidth5"/>
>>>>>
>>>>> Returns:
>>>>> Caused by: org.apache.pivot.serialization.SerializationException:
>>>>> Value "vCellWidth5" is not defined.
>>>>>            at
>>>>> org.apache.pivot.beans.BXMLSerializer.processAttributes(BXMLSerializer.java:1092)
>>>>>            at
>>>>> org.apache.pivot.beans.BXMLSerializer.processStartElement(BXMLSerializer.java:818)
>>>>>            at
>>>>> org.apache.pivot.beans.BXMLSerializer.readObject(BXMLSerializer.java:
>>>>> 4
>>>>> 42)
>>>>>
>>>>> Do you have a link to the 2.0.5.jar or 2.1.jar so I can try to see
>>>>> if the security changes fixed this? (Or should I recompile from the
>>>>> Trunk? Or a
>>>>> branch?)
>>>>>
>>>>> or any other ideas on how to make it work?
>>>>>
>>>>> regards,
>>>>> Mark.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://apache-pivot-users.399431.n3.nabble.com/JAVA-8-bxml-script-v
>>>>> a r i ables-not-working-tp4023027.html Sent from the Apache Pivot -
>>>>> Users mailing list archive at Nabble.com.
>>>
>>>
>>
>
>
>

12