This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206946 - Can't deploy to remote GlassFish 3.1.1 server
Summary: Can't deploy to remote GlassFish 3.1.1 server
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.1
Hardware: PC Linux
: P1 normal with 3 votes (vote)
Assignee: Vince Kraemer
URL:
Keywords:
: 206224 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-05 15:54 UTC by smvda
Modified: 2012-02-14 09:56 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
File (78.17 KB, text/x-log)
2012-01-05 19:50 UTC, smvda
Details
the log file (78.17 KB, text/plain)
2012-01-05 20:28 UTC, Vince Kraemer
Details
Logs Netbeans 7.0.1 (85.65 KB, text/x-log)
2012-01-06 10:37 UTC, smvda
Details
Logs Glassfish 3.1.1 - Netbeans 7.0.1 (1.15 MB, text/x-log)
2012-01-06 10:38 UTC, smvda
Details
second log file (85.65 KB, text/plain)
2012-01-07 01:01 UTC, Vince Kraemer
Details
server log (1.15 MB, text/plain)
2012-01-07 01:02 UTC, Vince Kraemer
Details
server logs -netbeans 7.1 (8.23 KB, text/x-log)
2012-02-01 18:24 UTC, smvda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description smvda 2012-01-05 15:54:58 UTC
In an attempt to run the application on the error

*
Desimplantando...
Initializing...
Distribuindo /home/rettore/Projetos_JAVA/Serhmatica/SrhCooperativa/SrhCooperativa-ear/target/SrhCooperativa-ear.ear para [GlassFish Server 3.1.1-18]
Initializing...


Error writing request body to server


O módulo não foi implementado.
Verifique o registro do servidor para mais detalhes.
*
Comment 1 Vince Kraemer 2012-01-05 18:01:14 UTC
Please attach the IDE log and the server log for the remote server.

Please provide information about the registered remote server. OS? JDK? Ports? Does it have a password?

Can you expand the server's node in the services explorer?

Without this info it is impossible to diagnose the issue that you are running into.

Please reopen this issue when the info is available.
Comment 2 smvda 2012-01-05 18:07:43 UTC
Logs go are the ones who put the opening of the bug.

The IDE is not enough to register on the server logs, but the server has no password and is configured correctly in the IDE trouble-free use with version 7.0.1

The only answer I have is the failure to put in BUG.

The operating system is Linux x64 (Ubuntu) 3.1.1 JDK 1.7.0_02 Glassfish running on port 4848.

All rotianas worked without problems with netbeans 7.0.1

You need to log in more detail could help me recover the logs?
Comment 3 smvda 2012-01-05 18:08:40 UTC
The only error I get is "Error writing request body to server"
Comment 4 smvda 2012-01-05 18:09:02 UTC
The only error I get is "Error writing request body to server"
Comment 5 smvda 2012-01-05 18:11:54 UTC
Glassfish 3.1.1 updated.
Comment 6 Vince Kraemer 2012-01-05 19:14:10 UTC
(In reply to comment #2)
> Logs go are the ones who put the opening of the bug.
> 
> The IDE is not enough to register on the server logs, but the server has no
> password and is configured correctly in the IDE trouble-free use with version
> 7.0.1

Did you import settings from 7.0.1 or is this a new registration of the 3.1.1
server that you have used with 7.0.1?

> 
> The only answer I have is the failure to put in BUG.
> 
> The operating system is Linux x64 (Ubuntu) 3.1.1 JDK 1.7.0_02 Glassfish running
> on port 4848.

OK. What is the info in the dialog that opens when you activate the About item
from the Help menu?

> 
> All rotianas worked without problems with netbeans 7.0.1
> 
> You need to log in more detail could help me recover the logs?

The IDE log is available from the 'IDE Log' item of the View menu.

You have to get the log for the remote server via FTP or some other way.
Comment 7 smvda 2012-01-05 19:22:22 UTC
(In reply to comment #6)
> (In reply to comment #2)
> > Logs go are the ones who put the opening of the bug.
> > 
> > The IDE is not enough to register on the server logs, but the server has no
> > password and is configured correctly in the IDE trouble-free use with version
> > 7.0.1
> 
> Did you import settings from 7.0.1 or is this a new registration of the 3.1.1
> server that you have used with 7.0.1?

I tried both of the two possibilities when importing new record from the server without success.

> 
> > 
> > The only answer I have is the failure to put in BUG.
> > 
> > The operating system is Linux x64 (Ubuntu) 3.1.1 JDK 1.7.0_02 Glassfish running
> > on port 4848.
> 
> OK. What is the info in the dialog that opens when you activate the About item
> from the Help menu?
> 

Versão do produto: NetBeans IDE 7.1 (Build 201112071828)
Java: 1.7.0_02; Java HotSpot(TM) 64-Bit Server VM 22.0-b10
Sistema: Linux versão 3.0.0-14-generic executando em amd64; UTF-8; pt_BR (nb)
Diretório de usuário: /home/rettore/.netbeans/7.1
Diretório de cache: /home/rettore/.netbeans/7.1/var/cache

> > 
> > All rotianas worked without problems with netbeans 7.0.1
> > 
> > You need to log in more detail could help me recover the logs?
> 
> The IDE log is available from the 'IDE Log' item of the View menu.
> 
> You have to get the log for the remote server via FTP or some other way.

The server fails to register when I make the logs deploy.

It seems to me that the failure occurs when the netbeans will talk to deploy to Glassfish.
Comment 8 Vince Kraemer 2012-01-05 19:30:54 UTC
Please attach the data that is in the IDE log to this issue.  I cannot continue to assist you without it.

Get the file /home/rettore/.netbeans/7.1/var/log/messages.log and attach it.

Reopen the issue when you have provided the attachment.
Comment 9 smvda 2012-01-05 19:44:02 UTC
(In reply to comment #8)
> Please attach the data that is in the IDE log to this issue.  I cannot continue
> to assist you without it.
> 
> Get the file /home/rettore/.netbeans/7.1/var/log/messages.log and attach it.
> 
> Reopen the issue when you have provided the attachment.

Friend below the logs for analysis copied part of it, if you need the entire file can provide.

logs.


WARNING [org.netbeans.modules.masterfs.watcher.Watcher]: Cannot add filesystem watch for /home/rettore/Projetos_JAVA/Serhmatica/SrhCooperativa/SrhCooperativa-ejb/target/generated-sources/annotations/br/com/serhmatica/ejb/entidades: java.i
WARNING [org.netbeans.modules.masterfs.watcher.Watcher]: Cannot add filesystem watch for /home/rettore/Projetos_JAVA/Serhmatica/SrhCooperativa/SrhCooperativa-ejb/target/generated-sources/annotations/br/com/serhmatica/ejb: java.io.IOExcept
WARNING [org.netbeans.modules.masterfs.watcher.Watcher]: Cannot add filesystem watch for /home/rettore/Projetos_JAVA/Serhmatica/SrhCooperativa/SrhCooperativa-ejb/target/generated-sources/annotations/br/com/serhmatica: java.io.IOException:
WARNING [glassfish-eecommon]: Deployment plan not supported in GlassfishConfiguration.save()
INFO [glassfish]: Requested Entity: public id = -//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions//EN, system id = http://glassfish.org/dtds/glassfish-resources_1_5.dtd
INFO [glassfish]: __locations timed out. 1 of 1
java.util.concurrent.TimeoutException
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:258)
        at java.util.concurrent.FutureTask.get(FutureTask.java:119)
[catch] at org.netbeans.modules.glassfish.common.CommonServerSupport.isReady(CommonServerSupport.java:698)
        at org.netbeans.modules.glassfish.common.CommonServerSupport.isReallyRunning(CommonServerSupport.java:661)
        at org.netbeans.modules.glassfish.common.CommonServerSupport$4.run(CommonServerSupport.java:771)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1411)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1991)
INFO [glassfish]: Error writing request body to server
java.io.IOException: Error writing request body to server
        at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError(HttpURLConnection.java:3098)
        at sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write(HttpURLConnection.java:3081)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
        at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126)
        at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:253)
        at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:238)
        at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:343)
        at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:238)
        at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:360)
[catch] at org.netbeans.modules.glassfish.common.CommandRunner.handleSend(CommandRunner.java:805)
        at org.netbeans.modules.glassfish.common.CommandRunner.call(CommandRunner.java:648)
        at org.netbeans.modules.glassfish.common.CommandRunner.call(CommandRunner.java:106)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)
INFO [org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment]
O módulo não foi implementado.
Verifique o registro do servidor para mais detalhes.
[catch] at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
        at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:179)
        at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:131)
        at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:211)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
WARNING [org.netbeans.modules.progress.spi.InternalHandle]: Cannot call finish twice on a handle at org.netbeans.modules.j2ee.deployment.impl.ui.ProgressUI.finish(ProgressUI.java:176)
Comment 10 smvda 2012-01-05 19:50:03 UTC
Created attachment 114670 [details]
File
Comment 11 smvda 2012-01-05 19:50:15 UTC
Complete File.
Comment 12 Vince Kraemer 2012-01-05 20:28:07 UTC
Created attachment 114673 [details]
the log file
Comment 13 Vince Kraemer 2012-01-05 21:13:19 UTC
Hmm. Please verify that the NB 7.0.1 can deploy your app (SrhCooperativa-ear) onto the remote 3.1.1 IF the server and NetBeans are using jdk 7 update 2.

Please use FTP or some other program to get the server log file from remote GlassFish server.

I am concerned that http://java.net/jira/browse/GLASSFISH-15773 has resurfaced.
Comment 14 smvda 2012-01-06 10:37:55 UTC
Created attachment 114681 [details]
Logs Netbeans 7.0.1
Comment 15 smvda 2012-01-06 10:38:38 UTC
Created attachment 114682 [details]
Logs Glassfish 3.1.1 - Netbeans 7.0.1
Comment 16 smvda 2012-01-06 10:39:32 UTC
Logs Glassfish 3.1.1 - Netbeans 7.0.1
Comment 17 Vince Kraemer 2012-01-07 01:01:54 UTC
Created attachment 114699 [details]
second log file

redid attachment so it is readable from inside the browser
Comment 18 Vince Kraemer 2012-01-07 01:02:46 UTC
Created attachment 114700 [details]
server log
Comment 19 Vince Kraemer 2012-01-07 01:05:35 UTC
about how large is the SrhCooperativa-ear.ear file?
Comment 20 smvda 2012-01-09 10:28:19 UTC
The size is 32,6 mb.
Comment 21 Vince Kraemer 2012-02-01 17:54:19 UTC
did you ever get the log file from your 3.1.1 server that show the deploy failing?  I see the IDE log from a failed deploy... but I need to have the log from the server to have the details that I need.
Comment 22 smvda 2012-02-01 17:59:14 UTC
But when I make deploy the same does not generate logs on the server simply generates error directly.
Comment 23 smvda 2012-02-01 18:24:33 UTC
Created attachment 115442 [details]
server logs -netbeans 7.1
Comment 24 smvda 2012-02-01 18:24:51 UTC
Here are the logs when I deploy the glassfish netbeans 7.1
Comment 25 Vince Kraemer 2012-02-01 21:22:19 UTC
*** Bug 206224 has been marked as a duplicate of this bug. ***
Comment 26 Vince Kraemer 2012-02-01 21:43:09 UTC
this should fix dev: http://hg.netbeans.org/web-main/rev/f229e5cb610b

try out the dev build after the 'quality' user updates the issue.
Comment 27 Vince Kraemer 2012-02-01 23:59:13 UTC
back out first change: http://hg.netbeans.org/web-main/rev/3d15ed50ed04
   too dependent on magic.

better change : http://hg.netbeans.org/web-main/rev/4ce3368c6f9d
  all 3.1 servers use https if they are remote and that was contributing to this...
Comment 28 Vince Kraemer 2012-02-02 01:16:23 UTC
mistakenly set the version, when I meant to set the target...
Comment 29 Vince Kraemer 2012-02-02 15:57:08 UTC
one important factor on this... the app that is being deployed needs to be large (larger than about 3 mb)
Comment 30 Vince Kraemer 2012-02-06 17:22:19 UTC
the update from quality seems to be stalled.  Try the nightly build from http://bits.netbeans.org/download/trunk/nightly/latest/ to see if the update has propagated.

Otherwise, please verify this fix using http://bertram-tst.netbeans.org:8080/job/web-main/lastSuccessfulBuild/artifact/nbbuild/NetBeans-dev-web-main-6858-on-20120206-full.zip
Comment 31 smvda 2012-02-06 17:25:50 UTC
I'll try and return
Comment 32 smvda 2012-02-06 18:49:06 UTC
The version of the link worked fine, could do deply successfully.
Comment 33 Vince Kraemer 2012-02-06 19:05:35 UTC
filer claims verified in http://netbeans.org/bugzilla/show_bug.cgi?id=206946#c32
Comment 34 smvda 2012-02-06 19:10:11 UTC
Also many thanks to everyone who helped, and anxiously await the patch / release.
Comment 35 Vince Kraemer 2012-02-07 00:35:53 UTC
http://hg.netbeans.org/releases/rev/ca96d53153f8
Comment 36 Quality Engineering 2012-02-08 02:32:27 UTC
Integrated into 'releases', will be available in build *201202072200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/ca96d53153f8
User: vince kraemer <vkraemer@netbeans.org>
Log: #206946: secure admin and large files does not mix well. better fix
Comment 37 Jiri Skrivanek 2012-02-14 09:56:45 UTC
Verified in 7.1.1 build. Please, increase module spec. version. Found bug 208376 during verification.