Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (565)
Games in Android Showcase (151)
games submitted by our members
Games in WIP (605)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Profile GL_DEFAULT is not available on null, but: []  (Read 2818 times)
0 Members and 1 Guest are viewing this topic.
Offline loicus

Senior Newbie

« Posted 2011-12-13 06:34:47 »

Dear all,

one of my user is experiencing the following error:
    at jfrog.Displayer.<init>(
    at jfrog.Displayer.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at com.sun.javaws.Launcher.executeApplication(
    at com.sun.javaws.Launcher.executeMainClass(
    at com.sun.javaws.Launcher.doLaunchApp(

Displayer line 117, is the first one of that block, it doesn't seems to be very complex...
      GLProfile glp = GLProfile.getDefault();      
       GLCapabilities caps = new GLCapabilities(glp);
       System.out.printf("%s\n", caps.toString());
       GLCanvas canvas = new GLCanvas(caps);

the user is running on a mac, but I don't have  more details...

anyone has any experience about this?

Thanks in advance for sharing the tricks,
Offline Grand Poeba

Junior Devvie

« Reply #1 - Posted 2011-12-13 10:02:17 »

Have u tried with

GLProfile glp = GLProfile.getMaxFixedFunc();

Are the libraries and jars correctly linked?
Offline gouessej

« In padded room »

« Reply #2 - Posted 2011-12-13 11:12:10 »

Which version of JOGL 2 do you use? Can you tell us more about the hardware?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline loicus

Senior Newbie

« Reply #3 - Posted 2011-12-13 17:32:10 »

so far I have been using build:2.0-b41-20110916 and for deployement,
should I need to update to a more recent build ?

I will try with:
(and ask info about user's hardware)

Offline gouessej

« In padded room »

« Reply #4 - Posted 2011-12-13 18:02:11 »

Maybe give a try to the latest dev build. You should talk about your problem on the official forum of JogAmp, some contributors of JOGL don't come often here except me.
Offline loicus

Senior Newbie

« Reply #5 - Posted 2011-12-14 10:07:07 »

Ok, I've tried

GLProfile glp = GLProfile.getMaxFixedFunc();

but the problem is still there:

More info about the user's configuration:
OS = "Leopard"
Version : Mac OS X 10.5.8 (9L31a)
Kernel Version : Darwin 9.8.0

same user has been sucesfully using my program on a "snow leopard" system

where is the "official" jogl forum?  I tought it was this one...

Offline lhkbob

JGO Knight

Medals: 32

« Reply #6 - Posted 2011-12-14 20:11:36 »

The official forum for JOGL and it's parent library, JOGAMP, is here:

Have you considered selecting a specific profile?  If you're coding to fixed function, you could just use the GL2 profile.  If there are multiple possibilities, use the GLProfile code to get the list of available profiles and iterate through to find the best available match.

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

theagentd (11 views)
2015-03-27 23:08:20

wxwsk8er (52 views)
2015-03-20 15:39:46

Fairy Tailz (46 views)
2015-03-15 21:52:20

Olo (28 views)
2015-03-13 17:51:59

Olo (30 views)
2015-03-13 17:50:51

Olo (37 views)
2015-03-13 17:50:16

Olo (43 views)
2015-03-13 17:47:07

ClaasJG (40 views)
2015-03-10 11:36:42

ClaasJG (41 views)
2015-03-10 11:33:01

Pippogeek (47 views)
2015-03-05 14:36:23
How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!