dev@glassfish.java.net

Re: how to debug ACC code

From: Tim Quinn <Timothy.Quinn_at_Sun.COM>
Date: Thu, 11 Feb 2010 07:18:45 -0600

Hi, Dies.

A few things....

1. You may be running into issue 11287
<https://glassfish.dev.java.net/issues/show_bug.cgi?id=11287>. When I
created the issue, though, I forgot to add in the stack trace. That
problem can occur when the app client JAR is missing a manifest, or the
manifest is missing the main attributes, or the main attributes are
missing the Main-Class setting. The error actually happens as the ACC
tries to format an error message. If I have the line numbers correct,
at 345 the code has decided that the app client JAR file specified is
missing a manifest.

2. About VMARGS... Strange. GlassFish v3 should continue to work with
VMARGS. I'll look into that separately.

3. In the meantime, you should be able to supply the debugging settings
on the appclient command itself; in v3 we have tried to make the
appclient command as much "like" the java command as possible.

What I typically use is

    appclient
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=12345 ...

although I would think


    -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=12345


would work as well.

- Tim

Dies Koper wrote:
> Hi Tim,
>
> I'm trying to run an EJB client in last week's V3.1 nightly.
> This application worked in GFv2.1 but now I get the following error:
>
> C:\sun\glassfishv3\bin>C:/sun/glassfishv3/glassfish/bin/appclient.bat
> -client D:/1944/ConnectionPoolValClient.jar returnSetSizeOne
> java.lang.IllegalArgumentException: URI scheme is not "file"
> at java.io.File.<init>(File.java:366)
> at
> org.glassfish.appclient.client.acc.FacadeLaunchable.selectFacadeFromGroup(FacadeLaunchable.java:345)
> at
> org.glassfish.appclient.client.acc.FacadeLaunchable.newFacade(FacadeLaunchable.java:233)
> at
> org.glassfish.appclient.client.acc.Launchable$LaunchableUtil.newLaunchable(Launchable.java:101)
>
> As the error message doesn't help me to determine what's wrong I'm
> trying to debug it. I've tried setting VMARGS, but the VM won't halt.
>
> set VMARGS=-Xdebug
> -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=12345
>
> What's the trick with GFv3's ACC script to debug it remotely?
>
> Thanks,
> Dies
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>
>