Pipeline

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

Pipeline

Frank Weenink

Dear Saxon Help,

 

Trying to setup a processing pipeline in .NET (Latest stable 9.0.7.4) I get the following error:

 

An unhandled exception of type 'java.lang.IllegalStateException' occurred in saxon9he.dll

Additional information: The Controller has not been initialized

 

I have tried to setup the pipeline in the following manner:

 

            var p = new Processor();

            var c = p.NewXsltCompiler();

            var xsltStep1 = c.Compile(new Uri(@"p1.xsl"));

            var xsltStep2 = c.Compile(new Uri(@"p2.xsl"));           

 

            var step1 = xsltStep1.Load();           

            var step2 = xsltStep2.Load();

 

            var dest = new Serializer();

            dest.SetOutputFile(@"OutputStep2.xml");

 

            step2.Destination = dest;

 

            var inputFilePath = @"input.xml";

            using (var input = System.IO.File.OpenRead(inputFilePath))

            {

                step1.SetInputStream(input, new Uri(inputFilePath));

                step1.Run(step2);

            }

 

 

Is this the way to setup a pipeline?

 

Regards,

 

Frank

 


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline

cmarchand

 

 

You can consider using gaulois-pipe (https://github.com/cmarchand/gaulois-pipe) which provides a way to define your pipeline in a config file.

 

In Java, we do 

Processor proc = new Processor(Configuration.newConfiguration());

if this can help...

 

Best regards,

Christophe

Le 2016-05-20 12:51, Frank Weenink a écrit :

Dear Saxon Help,

 

Trying to setup a processing pipeline in .NET (Latest stable 9.0.7.4) I get the following error:

 

An unhandled exception of type 'java.lang.IllegalStateException' occurred in saxon9he.dll

Additional information: The Controller has not been initialized

 

I have tried to setup the pipeline in the following manner:

 

            var p = new Processor();

            var c = p.NewXsltCompiler();

            var xsltStep1 = c.Compile(new Uri(@"p1.xsl"));

            var xsltStep2 = c.Compile(new Uri(@"p2.xsl"));           

 

            var step1 = xsltStep1.Load();           

            var step2 = xsltStep2.Load();

 

            var dest = new Serializer();

            dest.SetOutputFile(@"OutputStep2.xml");

 

            step2.Destination = dest;

 

            var inputFilePath = @"input.xml";

            using (var input = System.IO.File.OpenRead(inputFilePath))

            {

                step1.SetInputStream(input, new Uri(inputFilePath));

                step1.Run(step2);

            }

 

 

Is this the way to setup a pipeline?

 

Regards,

 

Frank

 


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline

O'Neil Delpratt
In reply to this post by Frank Weenink
Hi Frank,

Thanks for reporting the error that you found.

I have create a bug issue to keep track on the investigation. 

Please see link below:


On 20 May 2016, at 11:51, Frank Weenink <[hidden email]> wrote:

Dear Saxon Help,
 
Trying to setup a processing pipeline in .NET (Latest stable 9.0.7.4) I get the following error: 
 
An unhandled exception of type 'java.lang.IllegalStateException' occurred in saxon9he.dll
Additional information: The Controller has not been initialized
 
I have tried to setup the pipeline in the following manner:
 
            var p = new Processor();
            var c = p.NewXsltCompiler();
            var xsltStep1 = c.Compile(new Uri(@"p1.xsl"));
            var xsltStep2 = c.Compile(new Uri(@"p2.xsl"));            
 
            var step1 = xsltStep1.Load();            
            var step2 = xsltStep2.Load();
 
            var dest = new Serializer();
            dest.SetOutputFile(@"OutputStep2.xml");
 
            step2.Destination = dest;
 
            var inputFilePath = @"input.xml";
            using (var input = System.IO.File.OpenRead(inputFilePath))
            {
                step1.SetInputStream(input, new Uri(inputFilePath));
                step1.Run(step2);
            }
 
 
Is this the way to setup a pipeline?
 
Regards,
 
Frank
 
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline

O'Neil Delpratt
Hi Frank,

Update on issue:

This is indeed a bug which we have now resolved with a patch which will be available in the next maintenance release.

See bug issue for details: https://saxonica.plan.io/issues/2755

Thanks again and kind regards,

O'Neil

On 23 May 2016, at 17:16, O'Neil Delpratt <[hidden email]> wrote:

Hi Frank,

Thanks for reporting the error that you found.

I have create a bug issue to keep track on the investigation. 

Please see link below:


On 20 May 2016, at 11:51, Frank Weenink <[hidden email]> wrote:

Dear Saxon Help,
 
Trying to setup a processing pipeline in .NET (Latest stable 9.0.7.4) I get the following error: 
 
An unhandled exception of type 'java.lang.IllegalStateException' occurred in saxon9he.dll
Additional information: The Controller has not been initialized
 
I have tried to setup the pipeline in the following manner:
 
            var p = new Processor();
            var c = p.NewXsltCompiler();
            var xsltStep1 = c.Compile(new Uri(@"p1.xsl"));
            var xsltStep2 = c.Compile(new Uri(@"p2.xsl"));            
 
            var step1 = xsltStep1.Load();            
            var step2 = xsltStep2.Load();
 
            var dest = new Serializer();
            dest.SetOutputFile(@"OutputStep2.xml");
 
            step2.Destination = dest;
 
            var inputFilePath = @"input.xml";
            using (var input = System.IO.File.OpenRead(inputFilePath))
            {
                step1.SetInputStream(input, new Uri(inputFilePath));
                step1.Run(step2);
            }
 
 
Is this the way to setup a pipeline?
 
Regards,
 
Frank
 
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help