Hi

I added your scenario's to the integration tests, and all succeeded in the
1.5 branch :-)

but in trunk they fail :-(

are you 100% sure that you have a 1.5 build ?



with kind regards
Ruben Willems

On Thu, Apr 22, 2010 at 5:21 PM, johnman <[email protected]> wrote:

> Hi Ruben,
>
> I've uploaded 5 different test scenarios here:
>
>
> http://groups.google.com/group/ccnet-devel/web/ccnet-configuration-issue-test-scenarios.zip
>
> Thanks,
>
> John
>
> On Apr 22, 3:45 pm, Ruben Willems <[email protected]> wrote:
> > Hi
> >
> > can you mail me a ccnet.config and xml file whitch shows this?
> > So I can check it via a test.
> >
> > with kind regards
> > Ruben Willems
> >
> >
> >
> > On Thu, Apr 22, 2010 at 4:40 PM, johnman <[email protected]> wrote:
> > > Thanks!
> >
> > > If all projects are inline it works but if you try to include a file
> > > via xml entity include or the cb:include it doesn't seem to work
> > > (although it did seem to work with an earlier release).
> >
> > > On Apr 22, 11:25 am, Ruben Willems <[email protected]> wrote:
> > > > Hi
> >
> > > > there was not a real patch, I had a bug in my integration test :-(
> > > > so your problem still remains it seems.
> >
> > > > I'll make an extra integration test with your setup, and see what
> that
> > > > gives.
> >
> > > > with kind regards
> > > > Ruben Willems
> >
> > > > On Thu, Apr 22, 2010 at 10:56 AM, johnman <[email protected]>
> wrote:
> > > > > Hi Ruben,
> >
> > > > > I just pulled down the latest version of 1.5 from the ccnet live
> > > > > dashboard and I am still getting a similar error.
> >
> > > > > Was this patch applied to the 1.5 branch?
> >
> > > > > Thanks,
> >
> > > > > John
> >
> > > > > On Apr 21, 7:18 pm, Ruben Willems <[email protected]> wrote:
> > > > > > Hi all
> >
> > > > > > patch has been applied
> > > > > > and integration test added.
> >
> > > > > > with kind regards
> > > > > > Ruben Willems
> >
> > > > > > On Wed, Apr 21, 2010 at 5:12 PM, johnman <[email protected]>
> > > wrote:
> > > > > > > Hi I seem to be having a problem with cb include.
> >
> > > > > > > I'm on 1.5.7180.4:
> >
> > > > > > > ccnet.config looks like this:
> >
> > > > > > > <cruisecontrol xmlns:cb="urn:ccnet.config.builder">
> > > > > > > <cb:include href="myproj.config"/>
> > > > > > > </cruisecontrol>
> >
> > > > > > > also tried:
> >
> > > > > > > <cruisecontrol xmlns:cb="urn:ccnet.config.builder">
> > > > > > > <cb:include href="myproj.config"
> > > xmlns:cb="urn:ccnet.config.builder"/>
> > > > > > > </cruisecontrol>
> >
> > > > > > > myproj.config
> >
> > > > > > > <cb:config-template xmlns:cb="urn:ccnet.config.builder">
> > > > > > > <project name="MyFirstProject" />
> > > > > > > </cb:config-template>
> >
> > > > > > > This fails as well:
> >
> > > > > > > <project name="MyFirstProject" />
> >
> > > > > > > and so does this:
> >
> > > > > > > <project name="MyFirstProject"
> > > xmlns:cb="urn:ccnet.config.builder"/>
> >
> > > > > > > This is the error I get:
> >
> > > > > > > [CCNet Server:ERROR] INTERNAL ERROR: Object reference not set
> to an
> > > > > > > instance of an object.
> > > > > > > ----------
> > > > > > > System.NullReferenceException: Object reference not set to an
> > > instance
> > > > > > > of an object.
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.PreprocessorEnvironment­­­.PushInclude(String
> > > > > > > href)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ElementProcessors.Inclu­­­deProcessor.Process(XNode
> > > > > > > node)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ElementProcessors.Defau­­­ltProcessor._ProcessPpElement(XElement
> > > > > > > element)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ElementProcessors.Defau­­­ltProcessor._ProcessElement(XElement
> > > > > > > element)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ElementProcessors.Defau­­­ltProcessor.Process(XNode
> > > > > > > node)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ElementProcessors.Defau­­­ltProcessor._ProcessNonPpElement(XElement
> > > > > > > element)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ElementProcessors.Defau­­­ltProcessor._ProcessElement(XElement
> > > > > > > element)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ElementProcessors.Defau­­­ltProcessor.Process(XNode
> > > > > > > node)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessor.<Pre­­­Process>b__1(XNode
> > > > > > > node)
> > > > > > >   at
> System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.Preprocessor.ConfigPreprocessor.PreP­­­rocess(XmlReader
> > > > > > > input, XmlWriter output, XmlUrlResolver resolver, Uri
> input_uri)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.Creat­­­eXmlValidatingLoader(FileInfo
> > > > > > > configFile)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.Attem­­­ptLoadConfiguration(FileInfo
> > > > > > > configFile)
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.DefaultConfigurationFileLoader.Load(­­­FileInfo
> > > > > > > configFile)
> > > > > > >   at
> >
> > > ThoughtWorks.CruiseControl.Core.Config.FileConfigurationService.Load()
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.FileWatcherConfigurationService.Load­­­()
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.Config.CachingConfigurationService.Load()
> > > > > > >   at
> >
> > >
> ThoughtWorks.CruiseControl.Core.CruiseServer..ctor(IConfigurationService
> > > > > > > configurationService, IProjectIntegratorListFactory
> > > > > > > projectIntegratorListFactory, IProjectSerializer
> projectSerializer,
> > > > > > > IProjectStateManager stateManager, IFileSystem fileSystem,
> > > > > > > IExecutionEnvironment executionEnvironment
> > > > > > > , List`1 extensionList)
> > > > > > >   at
> >
> > > ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateLocal(String
> > > > > > > configFile)
> > > > > > >   at
> >
> > > ThoughtWorks.CruiseControl.Core.CruiseServerFactory.CreateRemote(String
> > > > > > > configFile)
> > > > > > >   at
> > > > > > >
> ThoughtWorks.CruiseControl.Core.CruiseServerFactory.Create(Boolean
> > > > > > > remote, String configFile)
> > > > > > >   at
> ThoughtWorks.CruiseControl.Core.ConsoleRunner.LaunchServer()
> > > > > > >   at ThoughtWorks.CruiseControl.Core.ConsoleRunner.Run()
> > > > > > >   at ThoughtWorks.CruiseControl.Console.AppRunner.Run(String[]
> > > args,
> > > > > > > Boolean usesShadowCopying)
> > > > > > > ----------
> >
> > > > > > > If I paste this project inline it works.
> >
> > > > > > > I've used:
> >
> > > > > > > <!DOCTYPE cruisecontrol [
> > > > > > > <!ENTITY X.Projects SYSTEM "file:BT.P4.Dev.Projects.xml">
> >
> > > > > > > ]>
> >
> > > > > > > to include a list of projects from an external file in the past
> and
> > > > > > > this doesn't seem to work any more either.
> >
> > > > > > > Any idea why it is failing?
> >
> > > > > > > Do you need to use the preprocessor
> > > xmlns:cb="urn:ccnet.config.builder
> > > > > > > for CC.NET to work?
> >
> > > > > > > Thanks,
> >
> > > > > > > John
> >
> > > > > > > On Apr 19, 9:40 am, Ruben Willems <[email protected]>
> wrote:
> > > > > > > > Hi
> >
> > > > > > > > that explains it , there is indeed a bug in the 1.6, and
> there is
> > > > > also a
> > > > > > > > patch available,
> > > > > > > > just need the time to commit it.
> >
> > > > > > > > the 1.5 branch jas my priority, so we can get the release out
> end
> > > > > this
> > > > > > > month
> >
> > > > > > > > with kind regards
> > > > > > > > Ruben Willems
> >
> > > > > > > > On Mon, Apr 19, 2010 at 9:56 AM, Cedric <
> > > > > [email protected]
> > > > > > > >wrote:
> >
> > > > > > > > > Ruben,
> >
> > > > > > > > > Thanks for looking into this. the 1.5 build was never an
> issue.
> > > I
> > > > > seem
> > > > > > > > > to be having this problem with 1.6.
> >
> > > > > > > > > On Apr 13, 7:59 pm, Ruben Willems <[email protected]
> >
> > > wrote:
> > > > > > > > > > Hi
> >
> > > > > > > > > > that integration test I added had a bug in it, thanks to
> > > Jermey
> > > > > for
> > > > > > > > > finding
> > > > > > > > > > it.
> > > > > > > > > > so the pre-processor seems to work!
> >
> > > > > > > > > > Next I copied the config files you provided into the
> involved
> > > > > > > filenames,
> > > > > > > > > and
> > > > > > > > > > these are parsed ok.
> > > > > > > > > > CCValidator says : all ok
> >
> > > > > > > > > > Attached are the files I used to validate.
> > > > > > > > > > I would suggest to install the latest 1.5 build, and see
> if
> > > you
> > > > > still
> > > > > > > > > have
> > > > > > > > > > the problem.
> > > > > > > > > > you can just unzip the ccvalidator to a separate folder,
> and
> > > > > check if
> > > > > > > > > your
> > > > > > > > > > config passes validation.
> >
> > > > > > > > > > If not, can you provide me your config files? (off list
> is
> > > also
> > > > > ok)
> >
> > > > > > > > > > with kind regards
> > > > > > > > > > Ruben Willems
> >
> > > > > > > > > > On Mon, Apr 12, 2010 at 11:22 AM, Cedric <
> > > > > > > > > [email protected]>wrote:
> >
> > > > > > > > > > > Chaps,
> >
> > > > > > > > > > > I've trimmed the config files that I use for the
> server. I
> > > have
> > > > > > > also
> > > > > > > > > > > downloaded the latest build and it does still fail.
> >
> > > > > > > > > > > There are three files here and are typical of our usage
> of
> > > > > CCNET.
> >
> > > > > > > > > > > Hope this helps.
> >
> > > > > > > > > > > Cedric
> >
> > > > > > > > > > > CCNET.CONFIG
> > > > > > > > > > > <cruisecontrol xmlns:cb="urn:ccnet.config.builder">
> >
> > > > > > > > > > >   <!-- Definition Blocks -->
> > > > > > > > > > >   <cb:include href="Definitions.xml"
> > > > > > > > > > > xmlns:cb="urn:ccnet.config.builder"/>
> >
> > > > > > > > > > >   <!-- Project files -->
> > > > > > > > > > >  <cb:include href="project.xml"
> > > > > > > xmlns:cb="urn:ccnet.config.builder"/>
> >
> > > > > > > > > > > </cruisecontrol>
> >
> > > > > > > > > > > DEFINITIONS.XML
> > > > > > > > > > > <cb:config-template
> xmlns:cb="urn:ccnet.config.builder">
> > > > > > > > > > >   <!--# Location of the tools folder on the server-->
> > > > > > > > > > >  <cb:define rootPath="C:" />
> >
> > > > > > > > > > >  <!--# Location of the tools folder on the server-->
> > > > > > > > > > >  <cb:define outputRootPath="C:" />
> >
> > > > > > > > > > >  <!--# Location of the program files folder on the
> > > server-->
> > > > > > > > > > >  <cb:define
> >
> > ...
> >
> > read more »- Hide quoted text -
> >
> > - Show quoted text -
>

Reply via email to