Re: [Ikvm-developers] Crash in OpenJDK native method
Brought to you by:
jfrijters
From: Jeroen F. <je...@su...> - 2013-04-30 19:50:52
|
The C# pattern for this is: using ikvm.extensions; try { ... } catch (Exception x) { x.printStackTrace(); } > -----Original Message----- > From: Michael Kay [mailto:mi...@sa...] > Sent: Tuesday, April 30, 2013 18:32 > To: Jeroen Frijters > Cc: ikv...@li... > Subject: Re: [Ikvm-developers] Crash in OpenJDK native method > > Thanks for the response. They've since reported that the same condition > is occurring on a second machine. > > Any suggestions how we go about getting the Java stack trace (short of > doing a diagnostic Saxon build to catch the exception in the Java code)? > I'm not sure how the exception object that they eventually catch in > their .NET code relates to the Java exception object that has worked its > way down the stack. Will it be the same object, with a method to get the > Java stack trace? Or will the .NET exception encapsulate the Java > exception in some way? > > Michael Kay > Saxonica > > On 30 Apr 2013, at 10:02, Jeroen Frijters wrote: > > > Hi Michael, > > > > That's the .NET stack trace (which only includes the part from the > last rethrow site), the Java stack trace will have the real location of > the exception. > > > > My guess is that this is caused by a heap corruption (not IKVM > related). > > > > Regards, > > Jeroen > > > >> -----Original Message----- > >> From: Michael Kay [mailto:mi...@sa...] > >> Sent: Tuesday, April 30, 2013 10:02 > >> To: ikv...@li... > >> Subject: Re: [Ikvm-developers] Crash in OpenJDK native method > >> > >> Does the stack trace posted on the plan.io site help? > >> > >> Message: Index was outside the bounds of the array. > >> 3 > >> 4 at java.security.AccessController.doPrivileged(Object , > >> AccessControlContext , CallerID ) > >> 5 at java.security.AccessController.doPrivileged(PrivilegedAction > >> action, CallerID ) > >> 6 at sun.util.resources.LocaleData.getBundle(String , Locale ) > >> 7 at sun.util.resources.LocaleData.getCalendarData(Locale locale) > >> 8 at java.util.Calendar.setWeekCountData(Locale ) > >> 9 at java.util.Calendar..ctor(TimeZone zone, Locale aLocale) > >> 10 at java.util.GregorianCalendar..ctor(TimeZone zone, Locale > aLocale) > >> 11 at java.util.GregorianCalendar..ctor() > >> 12 at > net.sf.saxon.value.DateTimeValue.getCurrentDateTime(XPathContext > >> context) > >> 13 at net.sf.saxon.style.UseWhenFilter..ctor(Receiver next) > >> 14 at net.sf.saxon.PreparedStylesheet.loadStylesheetModule(Source > >> styleSource) > >> 15 at net.sf.saxon.PreparedStylesheet.prepare(Source styleSource) > >> 16 at net.sf.saxon.TransformerFactoryImpl.newTemplates(Source > source, > >> CompilerInfo info) > >> 17 at Saxon.Api.XsltCompiler.Compile(TextReader input) > >> 18 at HCIM.DataFilter.DataRestrictionFilter.Filter(XmlDocument > >> toFilter) > >> 19 at HCIM.Messaging.MessagingBase.run(XmlNode node) > >> 20 > >> If not, any suggestions as to how to get the diagnostics needed? > >> > >> > >> Note also the user's observation that after an IIS restart, the > >> problem only occurred again after 47 minutes running. > >> > >> > >> All that Saxon is doing is getting the current date and time by > >> calling new GregorianCalendar(), but behind the scenes there would > >> appear to be some kind of problem with access to Locale data. > >> > >> > >> Michael Kay > >> Saxonica > >> > >> > >> On 29 Apr 2013, at 20:11, Michael Kay wrote: > >> > >> > >> A Saxon user has reported a problem here: > >> > >> https://saxonica.plan.io/boards/3/topics/5612?r=5614 > >> > >> which manifests itself as an index out of bounds exception in > >> ,java.security.AccessController.doPrivileged > >> > >> which appears to be a native method. > >> > >> This is with Saxon 9.4.0.2, which is built using ikvm-0.46.0.2 > >> > >> It's failing one one of their servers and not others, so it must > >> depend on something in the .NET configuration. > >> > >> Any insights gratefully received! > >> > >> Michael Kay > >> Saxonica > >> > >> ------------------------------------------------------------------- > >> ----------- > >> Try New Relic Now & We'll Send You this Cool Shirt > >> New Relic is the only SaaS-based application performance monitoring > >> service > >> that delivers powerful full stack analytics. Optimize and monitor > >> your > >> browser, app, & servers with just a few lines of code. Try New > Relic > >> and get this awesome Nerd Life shirt! > >> http://p.sf.net/sfu/newrelic_d2d_apr_________________________________ > >> ___ > >> ___________ > >> Ikvm-developers mailing list > >> Ikv...@li... <mailto:Ikvm- > >> dev...@li...> > >> https://lists.sourceforge.net/lists/listinfo/ikvm-developers > >> > >> > > > > > > ---------------------------------------------------------------------- > > -------- Introducing AppDynamics Lite, a free troubleshooting tool for > > Java/.NET Get 100% visibility into your production application - at no > > cost. > > Code-level diagnostics for performance bottlenecks with <2% overhead > > Download for free and get started troubleshooting in minutes. > > http://p.sf.net/sfu/appdyn_d2d_ap1 > > _______________________________________________ > > Ikvm-developers mailing list > > Ikv...@li... > > https://lists.sourceforge.net/lists/listinfo/ikvm-developers |