Skip to main content

[JAVA3D-INTEREST] NullPointerException, Sun Ultra60, J3D 1.3.2-beta1

6 replies [Last post]
Anonymous

Hello,

Our application works fine on our Sun Ultra60/Creator3D when it is using
Java3D 1.3.1_01, but it fails on startup with NullPointerException when
using 1.3.2 beta1 (build 9). The same thing does not happen on a
SunBlade 2500 with XVR-1200. Both machines are running Solaris 9.

Here is the exception:

java.lang.NullPointerException: Canvas3D: null GraphicsConfiguration
at javax.media.j3d.Canvas3D.(Unknown Source)
at javax.media.j3d.Canvas3D.(Unknown Source)
at com.esri.our.stuff.Map3d.constructCanvas(Map3d.java:438)

and the code in question is this:

434 GraphicsConfigTemplate3D tmpl = new GraphicsConfigTemplate3D();
435 GraphicsEnvironment env =
GraphicsEnvironment.getLocalGraphicsEnvironment();
436 GraphicsDevice device = env.getDefaultScreenDevice();
437 GraphicsConfiguration config = device.getBestConfiguration(tmpl);
438 Canvas3D canvas = new Canvas3D(config);

Maybe it's time to upgrade our Ultra60?

-- Russell

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kcr
Offline
Joined: 2004-03-17

Are there any other error messages from Java 3D? We did make some changes to require GLX 1.3 in order to run Java 3D 1.3.2. To see what your GLX version is, try:

/usr/openwin/demo/GL/ogl_install_check

Also, you could run:

/usr/openwin/demo/GL/xglinfo

and see what the list of OpenGL-capable visuals is.

Russell East

There are no other error messages.
Attached are the outputs you suggested. How do you read them?
-- Russell

java3d-interest@javadesktop.org wrote:

> Are there any other error messages from Java 3D? We did make some
> changes to require GLX 1.3 in order to run Java 3D 1.3.2. To see what
> your GLX version is, try:
>
> /usr/openwin/demo/GL/ogl_install_check
>
> Also, you could run:
>
> /usr/openwin/demo/GL/xglinfo
>
> and see what the list of OpenGL-capable visuals is.
> ---
> [Message sent by forum member 'kcr' (Kevin Rushforth)]
>
> http: //www.javadesktop.org/forums/thread.jspa?messageID=45759늿
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>

[ogl_install_check.txt]
[xglinfo.txt]
---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Russell East

Oh, duh. Our Ultra60 has OpenGL v1.2 - no wonder...
I guess OpenGL is not distributed with Solaris?
I will look for whatever patch/upgrade is needed. Thanks.
-- Russell

Russell East wrote:

> There are no other error messages.
> Attached are the outputs you suggested. How do you read them?
> -- Russell
>
>
> java3d-interest@javadesktop.org wrote:
>
> > Are there any other error messages from Java 3D? We did make some
> > changes to require GLX 1.3 in order to run Java 3D 1.3.2. To see what
> > your GLX version is, try:
> >
> > /usr/openwin/demo/GL/ogl_install_check
> >
> > Also, you could run:
> >
> > /usr/openwin/demo/GL/xglinfo
> >
> > and see what the list of OpenGL-capable visuals is.
> > ---
> > [Message sent by forum member 'kcr' (Kevin Rushforth)]
> >
> > http: //www.javadesktop.org/forums/thread.jspa?messageID=45759늿
> >
>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> > For additional commands, e-mail: interest-help@java3d.dev.java.net
> >
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
>For additional commands, e-mail: interest-help@java3d.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Russell East

Hmm, now I'm confused. The "ogl_install_check.txt" says
OpenGL API Standard Version: 1.2
Sun OpenGL Product Version: Sun OpenGL 1.2.3 patch 112629-10 for
Solaris

but then it also says
OpenGL GLX Client Version: 1.3 Sun OpenGL 1.2.3 patch 112629-10 for
Solaris

So, wouldn't that mean I have GLX 1.3 as you required?

-- Russell

Russell East wrote:

> Oh, duh. Our Ultra60 has OpenGL v1.2 - no wonder...
> I guess OpenGL is not distributed with Solaris?
> I will look for whatever patch/upgrade is needed. Thanks.
> -- Russell
>
> Russell East wrote:
>
> > There are no other error messages.
> > Attached are the outputs you suggested. How do you read them?
> > -- Russell
> >
> >
> > java3d-interest@javadesktop.org wrote:
> >
> > > Are there any other error messages from Java 3D? We did make some
> > > changes to require GLX 1.3 in order to run Java 3D 1.3.2. To see what
> > > your GLX version is, try:
> > >
> > > /usr/openwin/demo/GL/ogl_install_check
> > >
> > > Also, you could run:
> > >
> > > /usr/openwin/demo/GL/xglinfo
> > >
> > > and see what the list of OpenGL-capable visuals is.
> > > ---
> > > [Message sent by forum member 'kcr' (Kevin Rushforth)]
> > >
> > > http: //www.javadesktop.org/forums/thread.jspa?messageID=45759늿
> > >
> >
>
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> > > For additional commands, e-mail: interest-help@java3d.dev.java.net
> > >
> >
> >------------------------------------------------------------------------
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> >For additional commands, e-mail: interest-help@java3d.dev.java.net
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Matthew Hilliard

Yes.
GL is the core specification whereas GLX is an extension library for UNIX
machines.

That said, I don't know if 1.2.3 GL is new enough (JOGL for example, needs
1.4 and newer) --kcr would have some better about what the core
requirements are.

I do know that the Creator3D video card in that machine is supposed to be
upgradable to 1.3 "core" GL, which may be worth a shot.

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

kcr
Offline
Joined: 2004-03-17

As Matthew indicated, your GLX version is 1.3, which is new enough. So either we've introduced a dependency in our native Solaris code on OpenGL 1.3 (which wouldn't surprise me at all, since we haven't run anything on Solaris OpenGL 1.2.3 for well over a year), or there is a bug in either Java 3D or Solaris OpenGL 1.2.3. I could probably dig up an old Solaris machine with a Creator 3D, install 1.2.3 on it, and give it a spin, but it will have to wait until after the first of the year. You'd be better off upgrading to OpenGL 1.3 anyway. Unless the bug/problem is in Java 3D (and is simple to fix), the chances of getting it fixed are pretty slim. In any case, Java 3D 1.4 will require OpenGL 1.3 or better.

-- Kevin