java.lang.RuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I keep getting the following error when trying to run the code: import javax.xml.transform.Source import javax.xml.transform.TransformerFactory import javax.xml.transform.stream.StreamResult import javax.xml.transform.stream.StreamSource def input = ''' <?xml version="1.0" ?> <persons> <person username="JS1"> <name>John</name> <family_name>Smith</family_name> </person> <person username="ND1"> <name>Nancy</name> <family_name>Davolio</family_name> </person> </persons> '''.trim() def xslt = ''' <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/persons"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Testing XML Example</title> </head> <body> <h1>Persons</h1> <ul> <xsl:apply-templates select="person"> <xsl:sort select="family_name" /> </xsl:apply-templates> </ul> </body> </html> </xsl:template> <xsl:template match="person"> <li> <xsl:value-of select="family_name"/>, <xsl:value-of select="name"/> </li> </xsl:template> </xsl:stylesheet> '''.trim() def factory = TransformerFactory.newInstance() def transformer = factory.newTransformer(new StreamSource(new StringReader(xslt))) transformer.transform(new StreamSource(new StringReader(input)), new StreamResult(System.out)) Error: Error java.lang.RuntimeException: Reloading agent exited via exception, please raise a jira | Error at com.springsource.loaded.agent.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:91) | Error at sun.instrument.TransformerManager.transform(TransformerManager.java:188) | Error at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:424) | Error at java.lang.ClassLoader.defineClass1(Native Method) | Error at java.lang.ClassLoader.defineClass(ClassLoader.java:791) | Error at java.lang.ClassLoader.defineClass(ClassLoader.java:634) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl$TransletClassLoader.defineClass(TemplatesImpl.java:133) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.defineTransletClasses(TemplatesImpl.java:327) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.getTransletInstance(TemplatesImpl.java:364) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.newTransformer(TemplatesImpl.java:398) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:672) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl$newTransformer.call(Unknown Source) | Error at com.rebett.service.downloadProductFeed$$ENlI4q1X.XSLTProcessData(downloadProductFeed.groovy:91) | Error at com.rebett.service.downloadProductFeed$$DNlI4q1X.__execute(Unknown Source) | Error at com.rebett.service.downloadProductFeed$XSLTProcessData.call(Unknown Source) | Error at com.rebett.service.ImportService$$ENlHoCBv.importFromPortal(ImportService.groovy:31) | Error at com.rebett.service.ImportService$$DNlHoCBv.importFromPortal(Unknown Source) | Error at com.rebett.service.ImportService.importFromPortal(ImportService.groovy) | Error at com.rebett.service.ImportService$$FastClassByCGLIB$$610bfcc.invoke(<generated>) | Error at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191) | Error at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689) | Error at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) | Error at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) | Error at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) | Error at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) | Error at com.rebett.service.ImportService$$EnhancerByCGLIB$$3962ade2.importFromPortal(<generated>) | Error at com.rebett.service.ImportService$importFromPortal.call(Unknown Source) | Error at com.rebett.service.PortalService$_executeJob_closure3.doCall(PortalService.groovy:173) | Error at sun.reflect.GeneratedMethodAccessor1200.invoke(Unknown Source) | Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | Error at java.lang.reflect.Method.invoke(Method.java:601) | Error at com.springsource.loaded.ri.OriginalClassInvoker.invoke(OriginalClassInvoker.java:34) | Error at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1260) | Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:226) | Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) | Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) | Error at com.rebett.service.PortalService$_executeJob_closure3.doCall(PortalService.groovy) | Error at sun.reflect.GeneratedMethodAccessor1199.invoke(Unknown Source) | Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | Error at java.lang.reflect.Method.invoke(Method.java:601) | Error at com.springsource.loaded.ri.OriginalClassInvoker.invoke(OriginalClassInvoker.java:34) | Error at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1260) | Error at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) | Error at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) | Error at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047) | Error at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) | Error at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877) | Error at groovy.lang.Closure.call(Closure.java:412) | Error at com.rebett.service.PortalService$_executeJob_closure3.call(PortalService.groovy) | Error at groovy.lang.Closure.call(Closure.java:406) | Error at com.rebett.service.PortalService$_executeJob_closure3.call(PortalService.groovy) | Error at groovy.lang.Closure.run(Closure.java:490) | Error at com.rebett.service.PortalService$_executeJob_closure3.run(PortalService.groovy) | Error at java.lang.Thread.run(Thread.java:722) | Error Caused by: java.lang.NullPointerException | Error at com.springsource.loaded.agent.JVMPlugin.accept(JVMPlugin.java:131) | Error at com.springsource.loaded.agent.SpringLoadedPreProcessor.preProcess(SpringLoadedPreProcessor.java:99) | Error at com.springsource.loaded.agent.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:89) | Error ... 53 more
    via by Sergio Martinez,
  • I keep getting the following error when trying to run the code: import javax.xml.transform.Source import javax.xml.transform.TransformerFactory import javax.xml.transform.stream.StreamResult import javax.xml.transform.stream.StreamSource def input = ''' <?xml version="1.0" ?> <persons> <person username="JS1"> <name>John</name> <family_name>Smith</family_name> </person> <person username="ND1"> <name>Nancy</name> <family_name>Davolio</family_name> </person> </persons> '''.trim() def xslt = ''' <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/persons"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Testing XML Example</title> </head> <body> <h1>Persons</h1> <ul> <xsl:apply-templates select="person"> <xsl:sort select="family_name" /> </xsl:apply-templates> </ul> </body> </html> </xsl:template> <xsl:template match="person"> <li> <xsl:value-of select="family_name"/>, <xsl:value-of select="name"/> </li> </xsl:template> </xsl:stylesheet> '''.trim() def factory = TransformerFactory.newInstance() def transformer = factory.newTransformer(new StreamSource(new StringReader(xslt))) transformer.transform(new StreamSource(new StringReader(input)), new StreamResult(System.out)) Error: Error java.lang.RuntimeException: Reloading agent exited via exception, please raise a jira | Error at com.springsource.loaded.agent.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:91) | Error at sun.instrument.TransformerManager.transform(TransformerManager.java:188) | Error at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:424) | Error at java.lang.ClassLoader.defineClass1(Native Method) | Error at java.lang.ClassLoader.defineClass(ClassLoader.java:791) | Error at java.lang.ClassLoader.defineClass(ClassLoader.java:634) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl$TransletClassLoader.defineClass(TemplatesImpl.java:133) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.defineTransletClasses(TemplatesImpl.java:327) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.getTransletInstance(TemplatesImpl.java:364) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.newTransformer(TemplatesImpl.java:398) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:672) | Error at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl$newTransformer.call(Unknown Source) | Error at com.rebett.service.downloadProductFeed$$ENlI4q1X.XSLTProcessData(downloadProductFeed.groovy:91) | Error at com.rebett.service.downloadProductFeed$$DNlI4q1X.__execute(Unknown Source) | Error at com.rebett.service.downloadProductFeed$XSLTProcessData.call(Unknown Source) | Error at com.rebett.service.ImportService$$ENlHoCBv.importFromPortal(ImportService.groovy:31) | Error at com.rebett.service.ImportService$$DNlHoCBv.importFromPortal(Unknown Source) | Error at com.rebett.service.ImportService.importFromPortal(ImportService.groovy) | Error at com.rebett.service.ImportService$$FastClassByCGLIB$$610bfcc.invoke(<generated>) | Error at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191) | Error at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689) | Error at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) | Error at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) | Error at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) | Error at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) | Error at com.rebett.service.ImportService$$EnhancerByCGLIB$$3962ade2.importFromPortal(<generated>) | Error at com.rebett.service.ImportService$importFromPortal.call(Unknown Source) | Error at com.rebett.service.PortalService$_executeJob_closure3.doCall(PortalService.groovy:173) | Error at sun.reflect.GeneratedMethodAccessor1200.invoke(Unknown Source) | Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | Error at java.lang.reflect.Method.invoke(Method.java:601) | Error at com.springsource.loaded.ri.OriginalClassInvoker.invoke(OriginalClassInvoker.java:34) | Error at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1260) | Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:226) | Error at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) | Error at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) | Error at com.rebett.service.PortalService$_executeJob_closure3.doCall(PortalService.groovy) | Error at sun.reflect.GeneratedMethodAccessor1199.invoke(Unknown Source) | Error at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | Error at java.lang.reflect.Method.invoke(Method.java:601) | Error at com.springsource.loaded.ri.OriginalClassInvoker.invoke(OriginalClassInvoker.java:34) | Error at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1260) | Error at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) | Error at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) | Error at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047) | Error at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) | Error at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877) | Error at groovy.lang.Closure.call(Closure.java:412) | Error at com.rebett.service.PortalService$_executeJob_closure3.call(PortalService.groovy) | Error at groovy.lang.Closure.call(Closure.java:406) | Error at com.rebett.service.PortalService$_executeJob_closure3.call(PortalService.groovy) | Error at groovy.lang.Closure.run(Closure.java:490) | Error at com.rebett.service.PortalService$_executeJob_closure3.run(PortalService.groovy) | Error at java.lang.Thread.run(Thread.java:722) | Error Caused by: java.lang.NullPointerException | Error at com.springsource.loaded.agent.JVMPlugin.accept(JVMPlugin.java:131) | Error at com.springsource.loaded.agent.SpringLoadedPreProcessor.preProcess(SpringLoadedPreProcessor.java:99) | Error at com.springsource.loaded.agent.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:89) | Error ... 53 more
    via by Sergio Martinez,
    • java.lang.RuntimeException: Reloading agent exited via exception, please raise a jira at com.springsource.loaded.agent.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:91) at sun.instrument.TransformerManager.transform(TransformerManager.java:188) at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:424) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl$TransletClassLoader.defineClass(TemplatesImpl.java:133) at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.defineTransletClasses(TemplatesImpl.java:327) at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.getTransletInstance(TemplatesImpl.java:364) at com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl.newTransformer(TemplatesImpl.java:398) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:672) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl$newTransformer.call(Unknown Source) at com.rebett.service.downloadProductFeed$$ENlI4q1X.XSLTProcessData(downloadProductFeed.groovy:91) at com.rebett.service.downloadProductFeed$$DNlI4q1X.__execute(Unknown Source) at com.rebett.service.downloadProductFeed$XSLTProcessData.call(Unknown Source) at com.rebett.service.ImportService$$ENlHoCBv.importFromPortal(ImportService.groovy:31) at com.rebett.service.ImportService$$DNlHoCBv.importFromPortal(Unknown Source) at com.rebett.service.ImportService.importFromPortal(ImportService.groovy) at com.rebett.service.ImportService$$FastClassByCGLIB$$610bfcc.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:191) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:689) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:622) at com.rebett.service.ImportService$$EnhancerByCGLIB$$3962ade2.importFromPortal(<generated>) at com.rebett.service.ImportService$importFromPortal.call(Unknown Source) at com.rebett.service.PortalService$_executeJob_closure3.doCall(PortalService.groovy:173) at sun.reflect.GeneratedMethodAccessor1200.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.springsource.loaded.ri.OriginalClassInvoker.invoke(OriginalClassInvoker.java:34) at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1260) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:226) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at com.rebett.service.PortalService$_executeJob_closure3.doCall(PortalService.groovy) at sun.reflect.GeneratedMethodAccessor1199.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.springsource.loaded.ri.OriginalClassInvoker.invoke(OriginalClassInvoker.java:34) at com.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1260) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047) at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877) at groovy.lang.Closure.call(Closure.java:412) at com.rebett.service.PortalService$_executeJob_closure3.call(PortalService.groovy) at groovy.lang.Closure.call(Closure.java:406) at com.rebett.service.PortalService$_executeJob_closure3.call(PortalService.groovy) at groovy.lang.Closure.run(Closure.java:490) at com.rebett.service.PortalService$_executeJob_closure3.run(PortalService.groovy) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NullPointerException at com.springsource.loaded.agent.JVMPlugin.accept(JVMPlugin.java:131) at com.springsource.loaded.agent.SpringLoadedPreProcessor.preProcess(SpringLoadedPreProcessor.java:99) at com.springsource.loaded.agent.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:89) ... 53 more
    No Bugmate found.