Project

Profile

Help

Bug #2392

closed

java.lang.RuntimeException: Cannot instantiate a Configuration

Added by O'Neil Delpratt almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
.NET API
Sprint/Milestone:
Start date:
2015-06-06
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

Reported by user:

On 9.6.0.6 .Net, the following snippet does not work:

       Processor proc;

       using( FileStream cfgstream = File.OpenRead("p:\\config.xml")) {

           proc = new Processor( cfgstream );

       }

Unhandled Exception: java.lang.RuntimeException: Cannot instantiate a Configuration ---> java.lang.NullPointerException

  at java.lang.Class.newInstance0(CallerID )

  at java.lang.Class.newInstance(CallerID )

  at net.sf.saxon.Configuration.newConfiguration()

  --- End of inner exception stack trace ---

  at net.sf.saxon.Configuration.newConfiguration()

  at net.sf.saxon.Configuration.readConfiguration(Source source)

  at Saxon.Api.Processor..ctor(Stream configurationFile)

Something has changed on 9.6.0.6?

It used to work on 9.6.0.5 .Net.


Related issues

Related to Saxon - Bug #2111: setConfigurationProperty prevents propagation of ModuleURIResolverClosedMichael Kay2014-07-23

Actions

Please register to edit this issue

Also available in: Atom PDF