Different behaviors for the same program in different appli

Have jReality programming problems or questions? Post them here.
Post Reply
karunaMaitri
Posts: 90
Joined: Sun 16. Nov 2008, 00:24

Different behaviors for the same program in different appli

Post by karunaMaitri » Tue 1. Sep 2009, 02:00

My java application program (program1) that draws a curve works fine when run as a Java project (project1) from IntelliJ IDEA. I have another Java project (project2) with program1 included. When I run program1 from project2 uisng IntelliJ IDEA, I get the following error. Both projects have identical dependencies set up and run from the same computer (Windows XP).
java.lang.NullPointerException
at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.getLineNumber(Parser.java:1388)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parseTopLevel(Parser.java:1087)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parsePattern(Parser.java:1078)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Template.parseContents(Template.java:213)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:590)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:562)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:381)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:344)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:792)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:136)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultDesktopConfiguration(ToolSystemConfiguration.java:100)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:588)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:579)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:49)
at de.jreality.ui.viewerapp.ViewerApp.loadToolSystemConfiguration(ViewerApp.java:579)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:555)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:107)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:466)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:463)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:49)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:463)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:225)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:189)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:159)
at BasicNurbsClasses.VISUALIZERS.XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at BasicNurbsClasses.BSplineCurve.drawCurve(BSplineCurve.java:54)
at BasicNurbsClasses.BSplineCurve.<init>(BSplineCurve.java:37)
at BasicNurbsClasses.BSplineCurve.main(BSplineCurve.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
ERROR: 'null'
FATAL ERROR: 'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:825)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:136)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultDesktopConfiguration(ToolSystemConfiguration.java:100)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:588)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:579)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:49)
at de.jreality.ui.viewerapp.ViewerApp.loadToolSystemConfiguration(ViewerApp.java:579)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:555)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:107)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:466)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:463)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:49)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:463)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:225)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:189)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:159)
at BasicNurbsClasses.VISUALIZERS.XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at BasicNurbsClasses.BSplineCurve.drawCurve(BSplineCurve.java:54)
at BasicNurbsClasses.BSplineCurve.<init>(BSplineCurve.java:37)
at BasicNurbsClasses.BSplineCurve.main(BSplineCurve.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
java.lang.NullPointerException
at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.getLineNumber(Parser.java:1388)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parseTopLevel(Parser.java:1087)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parsePattern(Parser.java:1078)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Template.parseContents(Template.java:213)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:590)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:562)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:381)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:344)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:792)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:136)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultConfiguration(ToolSystemConfiguration.java:86)
at de.jreality.toolsystem.ToolSystem.loadConfiguration(ToolSystem.java:250)
at de.jreality.toolsystem.ToolSystem.<init>(ToolSystem.java:265)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:559)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:107)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:466)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:463)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:49)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:463)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:225)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:189)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:159)
at BasicNurbsClasses.VISUALIZERS.XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at BasicNurbsClasses.BSplineCurve.drawCurve(BSplineCurve.java:54)
at BasicNurbsClasses.BSplineCurve.<init>(BSplineCurve.java:37)
at BasicNurbsClasses.BSplineCurve.main(BSplineCurve.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
ERROR: 'null'
FATAL ERROR: 'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:825)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:136)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultConfiguration(ToolSystemConfiguration.java:86)
at de.jreality.toolsystem.ToolSystem.loadConfiguration(ToolSystem.java:250)
at de.jreality.toolsystem.ToolSystem.<init>(ToolSystem.java:265)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:559)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:107)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:466)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:463)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:49)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:463)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:225)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:189)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:159)
at BasicNurbsClasses.VISUALIZERS.XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at BasicNurbsClasses.BSplineCurve.drawCurve(BSplineCurve.java:54)
at BasicNurbsClasses.BSplineCurve.<init>(BSplineCurve.java:37)
at BasicNurbsClasses.BSplineCurve.main(BSplineCurve.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Exception in thread "main" java.lang.NullPointerException
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:471)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:225)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:189)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:159)
at BasicNurbsClasses.VISUALIZERS.XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at BasicNurbsClasses.BSplineCurve.drawCurve(BSplineCurve.java:54)
at BasicNurbsClasses.BSplineCurve.<init>(BSplineCurve.java:37)
at BasicNurbsClasses.BSplineCurve.main(BSplineCurve.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
The class that uses jReality (part of program1) is given below.

Code: Select all

public class XYCurve_jReality {
    private IndentingPrinter printer;
    private String title;

    public XYCurve_jReality(String title, IndentingPrinter printer) {
        this.printer = printer;
        this.title = title;
    }

    public void setUpPlots(double[][][] curvePoints) {
        ViewerApp va = new ViewerApp(createCurveGeometry(curvePoints));
        CameraUtility.encompass(va.getCurrentViewer());
        JFrame f = new JFrame(title);
        f.getContentPane().add((Component) va.getViewingComponent());
        f.setSize(512, 512);
        f.validate();
        f.setVisible(true);
    }

    public SceneGraphComponent createCurveGeometry(double[][][] curvePoints) {
        SceneGraphComponent sgc = new SceneGraphComponent();
        IndexedLineSetFactory factory = new IndexedLineSetFactory();
        double[][] vertices = generatePoints();
        int[][] edgeIndices = createEdgeIndices(vertices);

        factory.setVertexCount(vertices.length);
        factory.setVertexCoordinates(vertices);
        factory.setLineCount(edgeIndices.length);
        factory.setEdgeIndices(edgeIndices);

        factory.update();

        sgc.setGeometry(factory.getPointSet());
        sgc.setGeometry(factory.getIndexedLineSet());
        //setUpCoordinateAxes(sgc);
        return sgc;
    }

    public int[][] createEdgeIndices(double[][] points) {
        int[][] edges = new int[points.length - 1][2];

        for (int i = 0; i < points.length - 1; i++) {
            edges[i][0] = i;
            edges[i][1] = i + 1;
        }
        return edges;
    }

    public void setUpCoordinateAxes(SceneGraphComponent sgc) {
        double axisScale = 5.0;
        Font font = new Font("TimesRoman", Font.PLAIN, 50);
        int[][] edges = new int[][]{{-1, 1}, {-1, 1}, {1, 1}};
        Color green = new Color(0, 255, 0);
        Color blue = new Color(0, 0, 255);
        Color red = new Color(255, 0, 0);
        CoordinateSystemFactory factory2 = new CoordinateSystemFactory(sgc, axisScale);
        factory2.setLabelBoxEdges(edges);
        factory2.setLabelScale(.02);
        factory2.setLabelFont(font);
        factory2.showAxes(true);
        factory2.setLabelColor(blue);
        factory2.showLabels(true);
        factory2.showAxesArrows(true);
        factory2.setColor(green);
        factory2.setGridColor(red);

        factory2.showBox(true);
        factory2.beautify(true);
    }

     public double[][] generatePoints() {
        double[][] points = new double[13][3];
        double[] point1 = new double[3];
        point1 = new double[]{0.0, 0.0, 0.0};
        points[0] = point1;

        double[] point2 = new double[3];
        point2 = new double[]{2.0, 2.0, 0.0};
        points[1] = point2;

        double[] point3 = new double[3];
        point3 = new double[]{5.0, 9.0, 0.0};
        points[2] = point3;

        double[] point4 = new double[3];
        point4 = new double[]{10.0, 10.0, 0.0};
        points[3] = point4;

        double[] point5 = new double[3];
        point5 = new double[]{12.0, 8.0, 0.0};
        points[4] = point5;

        double[] point6 = new double[3];
        point6 = new double[]{18.0, 2.0, 0.0};
        points[5] = point6;

        double[] point7 = new double[3];
        point7 = new double[]{20.0, 0.0, 0.0};
        points[6] = point7;

        double[] point8 = new double[3];
        point8 = new double[]{22.0, 2.0, 0.0};
        points[7] = point8;

        double[] point9 = new double[3];
        point9 = new double[]{25.0, 9.0, 0.0};
        points[8] = point9;

        double[] point10 = new double[3];
        point10 = new double[]{30.0, 10.0, 0.0};
        points[9] = point10;

        double[] point11 = new double[3];
        point11 = new double[]{32.0, 8.0, 0.0};
        points[10] = point11;

        double[] point12 = new double[3];
        point12 = new double[]{38.0, 2.0, 0.0};
        points[11] = point12;

        double[] point13 = new double[3];
        point13 = new double[]{40.0, 0.0, 0.0};
        points[12] = point13;

        return points;
    }
}
I shall appreciate if you can let me know how to fix this problem.

Thanks,
Karuna

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Different behaviors for the same program in different appli

Post by steffen » Tue 1. Sep 2009, 12:47

Hi, it looks like the xslt stylesheet is not found. I am sorry but I do not use Idea (also the other core developers), so I have no idea what is wrong. Maybe stepping through the code with a debugger might help? You can also try to see if you can directly locate the stylesheet, see what

Code: Select all

System.out.println(ToolSystemConfiguration.class.getResource("toolconfig.xsl"));
prints...

Steffen.

karunaMaitri
Posts: 90
Joined: Sun 16. Nov 2008, 00:24

Re: Different behaviors for the same program in different appli

Post by karunaMaitri » Wed 2. Sep 2009, 02:11

Hi Steffen,

I have stepped through the program in debugger. I did not get any more new information other than the one present in the stack trace (posted in my earlier message).

As you suggested, I put the print command. Here is the result:
ToolSystemConfiguration.class.getResource: jar:file:/...path.../jReality_July1_2009/Binaries/jReality.jar!/de/jreality/toolsystem/config/toolconfig.xsl


I am not sure what to do with it.

Thanks,
Karuna

karunaMaitri
Posts: 90
Joined: Sun 16. Nov 2008, 00:24

Re: Different behaviors for the same program in different appli

Post by karunaMaitri » Wed 2. Sep 2009, 06:20

Hi Steffen, my second project also has developed the same problem. Now I am concerned. Please help! The problem is arising in jReality classes I am not familiar with.

Here is the stack trace for the second project.

Many Thanks!
Karuna
java.lang.NullPointerException
at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.getLineNumber(Parser.java:1388)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parseTopLevel(Parser.java:1087)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parsePattern(Parser.java:1078)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Template.parseContents(Template.java:213)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:590)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:562)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:381)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:344)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:792)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:138)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultDesktopConfiguration(ToolSystemConfiguration.java:102)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:610)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.loadToolSystemConfiguration(ViewerApp.java:601)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:577)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:129)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:488)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:485)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:485)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at NURBS.XYSurface_jReality.setUpPlots(XYSurface_jReality.java:38)
at NURBS.NURBSSurface.drawSurface(NURBSSurface.java:66)
at NURBS.NURBSSurface.<init>(NURBSSurface.java:43)
at NURBS.NURBSSurface.main(NURBSSurface.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
ERROR: 'null'
FATAL ERROR: 'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:825)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:138)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultDesktopConfiguration(ToolSystemConfiguration.java:102)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:610)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:601)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.loadToolSystemConfiguration(ViewerApp.java:601)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:577)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:129)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:488)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:485)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:485)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at NURBS.XYSurface_jReality.setUpPlots(XYSurface_jReality.java:38)
at NURBS.NURBSSurface.drawSurface(NURBSSurface.java:66)
at NURBS.NURBSSurface.<init>(NURBSSurface.java:43)
at NURBS.NURBSSurface.main(NURBSSurface.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
java.lang.NullPointerException
at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.getLineNumber(Parser.java:1388)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parseTopLevel(Parser.java:1087)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parsePattern(Parser.java:1078)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Template.parseContents(Template.java:213)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:590)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:562)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:381)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:344)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:792)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:138)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultConfiguration(ToolSystemConfiguration.java:88)
at de.jreality.toolsystem.ToolSystem.loadConfiguration(ToolSystem.java:248)
at de.jreality.toolsystem.ToolSystem.<init>(ToolSystem.java:263)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:581)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:129)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:488)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:485)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:485)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at NURBS.XYSurface_jReality.setUpPlots(XYSurface_jReality.java:38)
at NURBS.NURBSSurface.drawSurface(NURBSSurface.java:66)
at NURBS.NURBSSurface.<init>(NURBSSurface.java:43)
at NURBS.NURBSSurface.main(NURBSSurface.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
ERROR: 'null'
FATAL ERROR: 'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:825)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:138)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultConfiguration(ToolSystemConfiguration.java:88)
at de.jreality.toolsystem.ToolSystem.loadConfiguration(ToolSystem.java:248)
at de.jreality.toolsystem.ToolSystem.<init>(ToolSystem.java:263)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:581)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:129)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:488)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:485)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:485)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at NURBS.XYSurface_jReality.setUpPlots(XYSurface_jReality.java:38)
at NURBS.NURBSSurface.drawSurface(NURBSSurface.java:66)
at NURBS.NURBSSurface.<init>(NURBSSurface.java:43)
at NURBS.NURBSSurface.main(NURBSSurface.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Exception in thread "main" java.lang.NullPointerException
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:493)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at NURBS.XYSurface_jReality.setUpPlots(XYSurface_jReality.java:38)
at NURBS.NURBSSurface.drawSurface(NURBSSurface.java:66)
at NURBS.NURBSSurface.<init>(NURBSSurface.java:43)
at NURBS.NURBSSurface.main(NURBSSurface.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

karunaMaitri
Posts: 90
Joined: Sun 16. Nov 2008, 00:24

Re: Different behaviors for the same program in different appli

Post by karunaMaitri » Wed 2. Sep 2009, 08:54

Hi Steffen, I tried my programs using Eclipse. I get the same error. The error is not due to IntelliJ IDEA. Here is the error produced by Eclipse.
java.lang.NullPointerException
at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.getLineNumber(Parser.java:1388)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parseTopLevel(Parser.java:1087)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parsePattern(Parser.java:1078)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Template.parseContents(Template.java:213)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:590)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:562)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:381)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:344)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:792)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:138)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultDesktopConfiguration(ToolSystemConfiguration.java:102)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:610)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:602)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.loadToolSystemConfiguration(ViewerApp.java:601)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:577)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:129)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:488)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:486)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:485)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at NURBSCurve.drawCurve(NURBSCurve.java:50)
at NURBSCurve.<init>(NURBSCurve.java:32)
at NURBSCurve.main(NURBSCurve.java:25)
ERROR: 'null'
FATAL ERROR: 'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:825)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:138)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultDesktopConfiguration(ToolSystemConfiguration.java:102)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:610)
at de.jreality.ui.viewerapp.ViewerApp$3.run(ViewerApp.java:602)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.loadToolSystemConfiguration(ViewerApp.java:601)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:577)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:129)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:488)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:486)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:485)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at NURBSCurve.drawCurve(NURBSCurve.java:50)
at NURBSCurve.<init>(NURBSCurve.java:32)
at NURBSCurve.main(NURBSCurve.java:25)
java.lang.NullPointerException
at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.getLineNumber(Parser.java:1388)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parseTopLevel(Parser.java:1087)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.parsePattern(Parser.java:1078)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Template.parseContents(Template.java:213)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseOwnChildren(Stylesheet.java:590)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.parseContents(Stylesheet.java:562)
at com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.createAST(Parser.java:381)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:344)
at com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compile(XSLTC.java:429)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:792)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:138)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultConfiguration(ToolSystemConfiguration.java:88)
at de.jreality.toolsystem.ToolSystem.loadConfiguration(ToolSystem.java:248)
at de.jreality.toolsystem.ToolSystem.<init>(ToolSystem.java:263)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:581)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:129)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:488)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:486)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:485)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at NURBSCurve.drawCurve(NURBSCurve.java:50)
at NURBSCurve.<init>(NURBSCurve.java:32)
at NURBSCurve.main(NURBSCurve.java:25)
ERROR: 'null'
FATAL ERROR: 'Could not compile stylesheet'
javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:825)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:614)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadConfiguration(ToolSystemConfiguration.java:138)
at de.jreality.toolsystem.config.ToolSystemConfiguration.loadDefaultConfiguration(ToolSystemConfiguration.java:88)
at de.jreality.toolsystem.ToolSystem.loadConfiguration(ToolSystem.java:248)
at de.jreality.toolsystem.ToolSystem.<init>(ToolSystem.java:263)
at de.jreality.ui.viewerapp.ViewerApp.createToolSystem(ViewerApp.java:581)
at de.jreality.ui.viewerapp.ViewerApp.access$000(ViewerApp.java:129)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:488)
at de.jreality.ui.viewerapp.ViewerApp$1.run(ViewerApp.java:486)
at java.security.AccessController.doPrivileged(Native Method)
at de.jreality.util.Secure.doPrivileged(Secure.java:42)
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:485)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at NURBSCurve.drawCurve(NURBSCurve.java:50)
at NURBSCurve.<init>(NURBSCurve.java:32)
at NURBSCurve.main(NURBSCurve.java:25)
Exception in thread "main" java.lang.NullPointerException
at de.jreality.ui.viewerapp.ViewerApp.setupViewer(ViewerApp.java:493)
at de.jreality.ui.viewerapp.ViewerApp.init(ViewerApp.java:247)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:211)
at de.jreality.ui.viewerapp.ViewerApp.<init>(ViewerApp.java:181)
at XYCurve_jReality.setUpPlots(XYCurve_jReality.java:31)
at NURBSCurve.drawCurve(NURBSCurve.java:50)
at NURBSCurve.<init>(NURBSCurve.java:32)
at NURBSCurve.main(NURBSCurve.java:25)
Thanks!
Karuna

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Different behaviors for the same program in different appli

Post by steffen » Wed 2. Sep 2009, 09:30

Which JDK do you use?

karunaMaitri
Posts: 90
Joined: Sun 16. Nov 2008, 00:24

Re: Different behaviors for the same program in different appli

Post by karunaMaitri » Wed 2. Sep 2009, 21:02

Sun JDK 6 Update 16.

Karuna

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Different behaviors for the same program in different appli

Post by steffen » Wed 2. Sep 2009, 21:09

Is it possible that you create an eclipse project that reproduces the problem? Otherwise I have no idea how I can help... It is probably related to some Classloader issue. How is the setup? jReality jars as referenced libraries? In eclipse you can simply check out the svn as a java project, it is explained in the wiki. Then you can also add debug output into the ToolSystemConfiguration class...

karunaMaitri
Posts: 90
Joined: Sun 16. Nov 2008, 00:24

Re: Different behaviors for the same program in different appli

Post by karunaMaitri » Fri 4. Sep 2009, 08:03

Hi Steffen,

Thanks for your suggestions. I followed your suggestions and did a number of tests. The result is the same. I keep getting the same error. Essentially the error arises while transforming XML via an XSL stylesheet. I have listed here the tests I have done and the results so that it can help your group identify the problem.


1. I searched internet for some clues as how the
java.lang.NullPointerException
at gnu.xml.aelfred2.SAXDriver.getLineNumber(SAXDriver.java:1165)
problem arises. This problem arises during XSLT transformation.
Please see the following web site for some interesting information.
The author suggests the problem as arising due to gnujaxp.jar. But I cannot find it in jReality.

2. I have installed Eclipse track of jReality as you suggested. I created a project as suggested in the wiki and put all my files in the src folder. I got the same error. I even used the JOGL (jni) supplied with the eclipse track.

3. I did the same (eclipse track installation) on another Windows XP machine. I get the same error.

4. I uninstalled JDK and reinstalled it. But I still get the same error.

5. I copied two classes (SimpleViewer and QuadMeshExample) from tutorials of eclipse track into my project. They work fine in the eclipse track. But they give the same error I have been getting before when I pasted these classes in my project. They show the window. The user interaction is disabled though. That is, I cannot make the rendered objects to rotate. This implies that the classes in eclipse track have some dependencies which have not been carried over to the project in the same work space.

6. I stepped though the debugger in eclipse track. I have not got any more information other than that given by the stack trace.


My programs have stopped working only a few days ago. I have not updated jReality in the past few days, only JDK. I think, there is some interaction between jReality and JDK that is causing the problem.

I do not know anything about XML, XSL and their transformations. Since jReality is working in Eclipse track, you must have taken care of this interaction between JDK and jReality. I shall appreciate if you can let me know how to eliminate the error.

I shall also appreciate if you have any other suggestions.

Thanks,
Karuna

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Different behaviors for the same program in different appli

Post by steffen » Fri 4. Sep 2009, 08:39

Please post the result out of

Code: Select all

System.out.println(System.getProperty("java.class.path"));
here. It looks like you have some strange Classpath entries, from gnu jaxp or gnu classpath...

karunaMaitri
Posts: 90
Joined: Sun 16. Nov 2008, 00:24

Re: Different behaviors for the same program in different appli

Post by karunaMaitri » Fri 4. Sep 2009, 09:08

C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\NURBS\bin;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\bin;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\antlr.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\jogl.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\jterm.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\smrj.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\janino.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\sunflow.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\xpp3.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\xstream.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\jinput.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\smrj-app.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\bsh.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\iText-2.1.3.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\colorpicker.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\jRWorkspacePluginSDK.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\gluegen-rt.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\vrData.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\jjack_min.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\netutil.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\vrExamples.jar;C:\Program Files\eclipse\plugins\org.junit_3.8.2.v20090203-1005\junit.jar;C:\PRABHAKAR\PROGRAMS\TOOLS\jReality_Eclipse\jreality\lib\jtem-beans.jar;C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\swtgraphics2d.jar;C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\gnujaxp.jar;C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\iText-2.1.1.jar;C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\jcommon-1.0.13.jar;C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\jfreechart-1.0.10.jar;C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\jfreechart-1.0.10-experimental.jar;C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\jfreechart-1.0.10-swt.jar;C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\junit.jar;C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\servlet.jar

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Different behaviors for the same program in different appli

Post by steffen » Fri 4. Sep 2009, 09:24

ah, there it is:

Code: Select all

C:\PRABHAKAR\RESOURCES\PROGRAMMING\JAVA\APIs\JFreeChart\jfreechart-1.0.10\lib\gnujaxp.jar
Can you remove the jfreechart libraries for testing and see if it works then?

karunaMaitri
Posts: 90
Joined: Sun 16. Nov 2008, 00:24

Re: Different behaviors for the same program in different appli

Post by karunaMaitri » Fri 4. Sep 2009, 10:28

It is working! Many, many thanks Steffen!

Karuna

User avatar
steffen
Posts: 186
Joined: Fri 16. Jun 2006, 13:30
Location: TU Berlin
Contact:

Re: Different behaviors for the same program in different appli

Post by steffen » Fri 4. Sep 2009, 11:53

You are wellcome! Nevertheless we should see that jreality can coexist with jfreechart in the classpath...

Steffen.

Post Reply