Weird Issue with Saxon in Java Environment

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Weird Issue with Saxon in Java Environment

Vasu Chakkera
Dear Saxon Group.
I had something very weird happening in my dev environment.
we just bought the latest Saxon 9.7.0.8 and the following are my observations
1. XSLTs running on command line run like expected.
2. While running in my dev environment( Java) , we first compile XSLTs using the Saxon XSLT Compiler.. Some of these XSLTs make calls to Java methods. While we do this, we are now getting an exception saying "Saxon-HE does not support reflexive calls"

Now the weird bit is I am *not* using saxon HE anywhere in my Dev env.. we have Saxon EE 9.7.0.8 .. We searched the entire Maven directory for any saxon He folders or dependencies, and we found none.. I am not sure what is happening here.

Any pointers will be greatly appreciated..

Vasu C

------------------------------------------------------------------------------

_______________________________________________
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
|  
Report Content as Inappropriate

Re: Weird Issue with Saxon in Java Environment

Andrew Welch

On 11 Sep 2016 18:34, "Vasu Chakkera" <[hidden email]> wrote:
>
> Dear Saxon Group.
> I had something very weird happening in my dev environment.
> we just bought the latest Saxon 9.7.0.8 and the following are my observations
> 1. XSLTs running on command line run like expected.
> 2. While running in my dev environment( Java) , we first compile XSLTs using the Saxon XSLT Compiler.. Some of these XSLTs make calls to Java methods. While we do this, we are now getting an exception saying "Saxon-HE does not support reflexive calls"
>
> Now the weird bit is I am *not* using saxon HE anywhere in my Dev env.. we have Saxon EE 9.7.0.8 .. We searched the entire Maven directory for any saxon He folders or dependencies, and we found none.. I am not sure what is happening here.
>
> Any pointers will be greatly appreciated..

You need to make sure the license is on the classpath. 


------------------------------------------------------------------------------

_______________________________________________
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
|  
Report Content as Inappropriate

Re: Weird Issue with Saxon in Java Environment

Michael Kay
In reply to this post by Vasu Chakkera
The two things you need to look for are

(a) you must be running an EnterpriseConfiguration. Perhaps the most common failure here is that when you initialize s9api you must start with "new Processor(true)"

(b) you must make sure that Saxon picks up the license file correctly. There are many ways to get this wrong (from the command line a common one is to use "java -jar ..." rather than "java -cp ..."; but you're not running from the command line.

Without these two prerequisites, the Saxon-EE software basically falls back to behaving like Saxon-HE.

Michael Kay
Saxonica


> On 11 Sep 2016, at 18:31, Vasu Chakkera <[hidden email]> wrote:
>
> Dear Saxon Group.
> I had something very weird happening in my dev environment.
> we just bought the latest Saxon 9.7.0.8 and the following are my observations
> 1. XSLTs running on command line run like expected.
> 2. While running in my dev environment( Java) , we first compile XSLTs using the Saxon XSLT Compiler.. Some of these XSLTs make calls to Java methods. While we do this, we are now getting an exception saying "Saxon-HE does not support reflexive calls"
>
> Now the weird bit is I am *not* using saxon HE anywhere in my Dev env.. we have Saxon EE 9.7.0.8 .. We searched the entire Maven directory for any saxon He folders or dependencies, and we found none.. I am not sure what is happening here.
>
> Any pointers will be greatly appreciated..
>
> Vasu C
> ------------------------------------------------------------------------------
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



------------------------------------------------------------------------------
_______________________________________________
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
|  
Report Content as Inappropriate

Re: Weird Issue with Saxon in Java Environment

Vasu Chakkera

Thanks mike , Andrew..
This is educative..
Vasu


On Sep 11, 2016 3:35 PM, "Michael Kay" <[hidden email]> wrote:
The two things you need to look for are

(a) you must be running an EnterpriseConfiguration. Perhaps the most common failure here is that when you initialize s9api you must start with "new Processor(true)"

(b) you must make sure that Saxon picks up the license file correctly. There are many ways to get this wrong (from the command line a common one is to use "java -jar ..." rather than "java -cp ..."; but you're not running from the command line.

Without these two prerequisites, the Saxon-EE software basically falls back to behaving like Saxon-HE.

Michael Kay
Saxonica


> On 11 Sep 2016, at 18:31, Vasu Chakkera <[hidden email]> wrote:
>
> Dear Saxon Group.
> I had something very weird happening in my dev environment.
> we just bought the latest Saxon 9.7.0.8 and the following are my observations
> 1. XSLTs running on command line run like expected.
> 2. While running in my dev environment( Java) , we first compile XSLTs using the Saxon XSLT Compiler.. Some of these XSLTs make calls to Java methods. While we do this, we are now getting an exception saying "Saxon-HE does not support reflexive calls"
>
> Now the weird bit is I am *not* using saxon HE anywhere in my Dev env.. we have Saxon EE 9.7.0.8 .. We searched the entire Maven directory for any saxon He folders or dependencies, and we found none.. I am not sure what is happening here.
>
> Any pointers will be greatly appreciated..
>
> Vasu C
> ------------------------------------------------------------------------------
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



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

------------------------------------------------------------------------------

_______________________________________________
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
|  
Report Content as Inappropriate

Re: Weird Issue with Saxon in Java Environment

Vasu Chakkera

I did what you asked me to do. Thankfully the saxon HE exception is gone.
Now I see one more issue ..
When i use a wildcard namespace..
The command line xslt wins but the same xslt within java environment throws the following exception..
XTDE0830: Undeclared Prefix in element name: *

This is pointing to the xpath on xslt that says something like
<xsl:value-of select ="*:schedule"/>

Did we miss anything here ? I know xpath 1 does not support wildcard namespace... is there some setting/ configuration i may be missing ?

Thanks in advance for your help

Vasu Chakkera


On Sep 11, 2016 6:27 PM, "Vasu Chakkera" <[hidden email]> wrote:

Thanks mike , Andrew..
This is educative..
Vasu


On Sep 11, 2016 3:35 PM, "Michael Kay" <[hidden email]> wrote:
The two things you need to look for are

(a) you must be running an EnterpriseConfiguration. Perhaps the most common failure here is that when you initialize s9api you must start with "new Processor(true)"

(b) you must make sure that Saxon picks up the license file correctly. There are many ways to get this wrong (from the command line a common one is to use "java -jar ..." rather than "java -cp ..."; but you're not running from the command line.

Without these two prerequisites, the Saxon-EE software basically falls back to behaving like Saxon-HE.

Michael Kay
Saxonica


> On 11 Sep 2016, at 18:31, Vasu Chakkera <[hidden email]> wrote:
>
> Dear Saxon Group.
> I had something very weird happening in my dev environment.
> we just bought the latest Saxon 9.7.0.8 and the following are my observations
> 1. XSLTs running on command line run like expected.
> 2. While running in my dev environment( Java) , we first compile XSLTs using the Saxon XSLT Compiler.. Some of these XSLTs make calls to Java methods. While we do this, we are now getting an exception saying "Saxon-HE does not support reflexive calls"
>
> Now the weird bit is I am *not* using saxon HE anywhere in my Dev env.. we have Saxon EE 9.7.0.8 .. We searched the entire Maven directory for any saxon He folders or dependencies, and we found none.. I am not sure what is happening here.
>
> Any pointers will be greatly appreciated..
>
> Vasu C
> ------------------------------------------------------------------------------
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



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

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
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
|  
Report Content as Inappropriate

Re: Weird Issue with Saxon in Java Environment

Vasu Chakkera

Please ignore. I found the issue. Everything is fine


On Sep 12, 2016 11:45 AM, "Vasu Chakkera" <[hidden email]> wrote:

I did what you asked me to do. Thankfully the saxon HE exception is gone.
Now I see one more issue ..
When i use a wildcard namespace..
The command line xslt wins but the same xslt within java environment throws the following exception..
XTDE0830: Undeclared Prefix in element name: *

This is pointing to the xpath on xslt that says something like
<xsl:value-of select ="*:schedule"/>

Did we miss anything here ? I know xpath 1 does not support wildcard namespace... is there some setting/ configuration i may be missing ?

Thanks in advance for your help

Vasu Chakkera


On Sep 11, 2016 6:27 PM, "Vasu Chakkera" <[hidden email]> wrote:

Thanks mike , Andrew..
This is educative..
Vasu


On Sep 11, 2016 3:35 PM, "Michael Kay" <[hidden email]> wrote:
The two things you need to look for are

(a) you must be running an EnterpriseConfiguration. Perhaps the most common failure here is that when you initialize s9api you must start with "new Processor(true)"

(b) you must make sure that Saxon picks up the license file correctly. There are many ways to get this wrong (from the command line a common one is to use "java -jar ..." rather than "java -cp ..."; but you're not running from the command line.

Without these two prerequisites, the Saxon-EE software basically falls back to behaving like Saxon-HE.

Michael Kay
Saxonica


> On 11 Sep 2016, at 18:31, Vasu Chakkera <[hidden email]> wrote:
>
> Dear Saxon Group.
> I had something very weird happening in my dev environment.
> we just bought the latest Saxon 9.7.0.8 and the following are my observations
> 1. XSLTs running on command line run like expected.
> 2. While running in my dev environment( Java) , we first compile XSLTs using the Saxon XSLT Compiler.. Some of these XSLTs make calls to Java methods. While we do this, we are now getting an exception saying "Saxon-HE does not support reflexive calls"
>
> Now the weird bit is I am *not* using saxon HE anywhere in my Dev env.. we have Saxon EE 9.7.0.8 .. We searched the entire Maven directory for any saxon He folders or dependencies, and we found none.. I am not sure what is happening here.
>
> Any pointers will be greatly appreciated..
>
> Vasu C
> ------------------------------------------------------------------------------
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/saxon-help



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

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Loading...