Saturday May 02, 2009

Using GlassFish v3 in NetBeans 6.7... now even easier

I have described a magic flag that allows folks to register GlassFish v3 builds in NetBeans 6.7.

Some folks have been using this flag and demonstrating the power of Java EE 6.

Others have asked for an easier way to activate the functionality. So, I got off my good intentions and implemented a marker module that lets the user activate the functionality.

The module is available in the 'Dev' update center, today.

After you install the plugin, 'GlassFish v3 Enabler', the IDE will restart and you will be able to work with v3 as I described earlier.

Friday May 01, 2009

Debug usability improvement for v3 servers

Sometimes, it is easy to be blind to an obvious use-case.

In this case, I had gotten so 'trained' to Debug a project, that I completely forgotten about how hard it is to attach the debugger to the server when the user does a 'Start in Debug Mode'.

Luckily, someone made it clear and I was able to make the situation a bit better, by exposing a new Server property for servers based on the GlassFish v3 code.

The property, Address to use, starts off undefined. The first time you debug a project or start the server in debug mode, the port is selected, if you haven't defined it already. After the value is set, it remains constant unless you...

  • uncheck the 'Address to use' check box
  • change the value by hand.

While I was working on this, I discovered something that surprised me. If you start the JPDA debugger with a bogus address (when you are using the socket transport), the JVM and debugger will start. A random port is selected and you can proceed. I like interfaces that are forgiving and try to succeed where I have failed.

I was pretty excited about this at first, but soon realized that I could not leverage this 'forgiveness' in the IDE.

Oh, well.

Wednesday Apr 22, 2009

SIP Application Development and 6.7

I recently tried to load the SIP Application development support modules into a recent 6.7 build and there were some modules that would not load. There is an issue tracker entry with the gory details for the curious.

The problem was easy to track down, so I have updated the SailFin build to create modules that can be loaded into 6.7.

To get the updated modules, you should follow these directions.

Sunday Apr 12, 2009

Freedom gets faster

I switched to Google WiFi in Mountain View, CA as my ISP nearly two years ago. The speed was decent. The selling point for me was the fact that the upload and download speeds were comparable. Oh... and FREE did not hurt either.

I have been happy with it for nearly two years... AND THEN...

It started to go faster for downloads.

I am currently getting about 1900 Kb/s download and 950 Kb/s upload. The new upload speed is double what I had been averaging. The upload speed is about 30% faster, too.

Monday Mar 16, 2009

Now Compatible! NetBeans and JDK 6 Update 12

We ran into an embarrassing spat of issues when JDK 6 Update 12 was released. Some sloppy coding practices that had not been causing issues with earlier JDK releases came up and bit us. Ouch!

A lot of folks got the wake-up call and scrambled to address the problems... and have helped roll a new release of NetBeans... 6.5.1. Once you download this new release, you should be able to use JDK 6 update 12 and NetBeans together.

Friday Mar 06, 2009

Import Woes

I have seen a number of reports of this exception...

java.lang.IllegalStateException: Common server instance not found for [/opt/glassfish-v3-prelude-b28c/glassfish]deployer:gfv3:localhost:8080
        at org.netbeans.modules.glassfish.javaee.Hk2DeploymentManager.getServerInstance(Hk2DeploymentManager.java:476)
        at org.netbeans.modules.glassfish.javaee.Hk2StartServer.getCommonServerSupport(Hk2StartServer.java:106)
        at org.netbeans.modules.glassfish.javaee.Hk2StartServer.isRunning(Hk2StartServer.java:239)
        at org.netbeans.modules.j2ee.deployment.impl.ServerInstance$3.run(ServerInstance.java:794)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)

Many of them appear to be because the code that imports/upgrades the userdir from 6.5 to 6.7 misses a very important subdirectory, .netbeans/conf/GlassFish. I fixed the issue in the code, so it should be available in nightly builds of NetBeans 6.7 soon. If you run into the exception with builds younger than 7 March 2009, please let me know.

A very useful day

Every now and then, you look back at 'What did I do today?' and the answer is mighty depressing. Today was not one of those days for me.

For my accomplishments today, I:

I wish that I had been able to work a bug fix into the mix today, but that did not happen. Maybe Monday.

About


Vince Kraemer writes the entries in this blog.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
News
Blogroll

No bookmarks in folder

automarks