FYI, the fix for this ticket has committed to the repo and a new nightly 
zip has been published:

http://www.mach-ii.com/nightly

Best,
.pjf

Peter J. Farrell said the following on 3/30/2009 1:45 PM:
> You're both experiencing the same issue which I've logged as this ticket:
> http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/ticket/262
>
> Fix to becoming shortly.
>
> .pjf
>
> Brian FitzGerald said the following on 3/30/2009 9:40 AM:
>> Just so everyone is on the same page, I think Jorge and I are talking
>> about the same issue :)
>>
>> Thanks,
>> Brian
>>
>> On Mar 30, 10:39 am, Brian FitzGerald <fitzgeraldme...@gmail.com>
>> wrote:
>>   
>>> Hey Peter,
>>>
>>> I'm working with the updated EnvironmentProperty and trying to get up
>>> to speed so that I can get the wiki updated.  I'm having a bit of an
>>> issue with it though. In my xml configuration for the environment
>>> properties, if I simply send in parameters for each environment I want
>>> to define, everything works ok, like so:
>>>
>>> <parameters>
>>>
>>> <parameter name="development">
>>>   <struct>
>>>     <key name="environmentGroup" value="development" />
>>>     <key name="servers" value="localhost, mysite.loc" />
>>>     <key name="properties">
>>>      <struct>
>>>        <key name="devMode" value="true" />
>>>        <key name="dsn" value="devDsn" />
>>>      </struct>
>>>     </key>
>>>    </struct>
>>> </parameter>
>>>
>>> <parameter name="production">
>>>   <struct>
>>>     <key name="environmentGroup" value="production" />
>>>     <key name="servers" value="mysite.com" />
>>>     <key name="properties">
>>>      <struct>
>>>        <key name="devMode" value="false" />
>>>        <key name="dsn" value="proDsn" />
>>>      </struct>
>>>     </key>
>>>    </struct>
>>> </parameter>
>>>
>>> </parameters>
>>>
>>> If, however, I send in the environment parameters (like above) AND I
>>> also send in the additional parameters, such as
>>> defaultEnvironmentName, and serverPropertyName, things blow up:
>>>
>>> <parameters>
>>>
>>>   <parameter name="defaultEnvironmentName" value="production" />
>>>   <parameter name="serverPropertyName" value="serverName" />
>>>
>>>   <parameter name="development">
>>>     <struct>
>>>       <key name="environmentGroup" value="development" />
>>>       <key name="servers" value="localhost, mysite.loc" />
>>>       <key name="properties">
>>>        <struct>
>>>          <key name="devMode" value="true" />
>>>          <key name="dsn" value="devDsn" />
>>>        </struct>
>>>       </key>
>>>      </struct>
>>>   </parameter>
>>>
>>>   <parameter name="production">
>>>     <struct>
>>>       <key name="environmentGroup" value="production" />
>>>       <key name="servers" value="mysite.com" />
>>>       <key name="properties">
>>>        <struct>
>>>          <key name="devMode" value="false" />
>>>          <key name="dsn" value="proDsn" />
>>>        </struct>
>>>       </key>
>>>      </struct>
>>>   </parameter>
>>>
>>> </parameters>
>>>
>>> </parameters>
>>>
>>> It looks like on line 245 in the EnvironmentProperty.cfc, as it's
>>> looping through all the parameters in the xml block, it's trying to
>>> pass in the string value of whatever the defaultEnvironmentName and/or
>>> the serverName parameters were set to, into the loadEnvironment
>>> method, which is in fact expecting a struct of properties (such as
>>> those defined by the development or production block above).
>>>
>>> The Error is: You have attempted to dereference a scalar variables of
>>> type class.java.lang.String as a structure with members
>>> (EnvironmentProperty.cfc line 276)
>>>
>>> Does this look like I have something configured incorrectly in my
>>> EnvironmentProperty xml block, or a bug?  If it's a bug, I will file a
>>> ticket.
>>>
>>> Thanks,
>>> Brian
>>>
>>> On Mar 30, 7:23 am, "Brian Sadler" <brian.sad...@gmail.com> wrote:
>>>
>>>     
>>>> Fcuyy uj
>>>> ------------------
>>>>       
>>>> -----Original Message-----
>>>> From: "Peter J. Farrell" <pe...@mach-ii.com>
>>>>       
>>>> Date: Sun, 29 Mar 2009 14:53:26
>>>> To: <mach-ii-develop...@googlegroups.com>; 
>>>> <mach-ii-for-coldfusion@googlegroups.com>
>>>> Subject: [Mach-II] Environment Property Improvements
>>>>       
>>>> The latest BER of 1.8 now support unlimited environments via the
>>>> EnvironmentProperty.  See the file header comments for how to setup.  
>>>> Wiki entry will updated soon.
>>>>       
>>>> If you have already been using the EnvironmentProperty, these changes
>>>> WILL BREAK your application as the configuration has changed.  See the
>>>> file header comments for more information on the new configuration.  The
>>>> time to make your changes your configuration should be less than 5
>>>> minutes total.
>>>>       
>>>> As always, the latest nightly zips are available here (for those who are
>>>> not updating from SVN):http://www.mach-ii.com/nightly/
>>>>       
>>>> Best,
>>>> Peter
>>>>       
>>   
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com 
>> Version: 8.0.238 / Virus Database: 270.11.32/2030 - Release Date: 03/30/09 
>> 08:40:00
>>
>>   
>>
>>     
>
>
> >
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com 
> Version: 8.0.238 / Virus Database: 270.11.32/2030 - Release Date: 03/30/09 
> 08:40:00
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to mach-ii-for-coldfusion@googlegroups.com
To unsubscribe from this group, send email to 
mach-ii-for-coldfusion-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
SVN: http://greatbiztoolsllc.svn.cvsdude.com/mach-ii/
Wiki / Documentation / Tickets: 
http://greatbiztoolsllc.trac.cvsdude.com/mach-ii/
-~----------~----~----~----~------~----~------~--~---

Reply via email to