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 230098 - Cannot start IDE based on NB platform on Solaris 10
Summary: Cannot start IDE based on NB platform on Solaris 10
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.4
Hardware: PC Solaris
: P1 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-05-22 10:21 UTC by Alexander Simon
Modified: 2013-05-30 01:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
run log (64.89 KB, text/plain)
2013-05-23 07:24 UTC, Alexander Simon
Details
a script (83 bytes, text/plain)
2013-05-23 08:42 UTC, Jiri Rechtacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2013-05-22 10:21:33 UTC

    
Comment 1 Alexander Simon 2013-05-22 10:22:55 UTC
Regression was introduced while fixing bug #204214
Comment 2 Alexander Simon 2013-05-22 10:29:47 UTC
It seems changes in the:
http://hg.netbeans.org/core-main/rev/6dc6517ce7bc
are wrong on Solaris 10
Comment 3 Jiri Rechtacek 2013-05-22 13:33:12 UTC
Alexander, could you past of output when starting IDE on Sol10? Thanks
Comment 4 Libor Fischmeistr 2013-05-22 14:30:30 UTC
I tried the latest daily build and NetBeans successfully launched.

OS: SunOS unknown 5.10 Generic_147148-26 i86pc i386 i86pc
Comment 5 Alexander Simon 2013-05-23 06:26:09 UTC
(In reply to comment #4)
> I tried the latest daily build and NetBeans successfully launched.
> 
> OS: SunOS unknown 5.10 Generic_147148-26 i86pc i386 i86pc

Bug about "OSS IDE does not start in Netbeans IDE".
You are right: Netbeans IDE successfully starts in Netbeans IDE
Comment 6 Alexander Simon 2013-05-23 07:07:10 UTC
Sorry, I realized that my first comment missed.
So...
I'm trying to start OSS IDE (Oracle Solaris Studio IDE based on Netbeans platform) from Netbeans IDE, info:

Product Version: NetBeans IDE 7.3.1 RC (Build 20130521-abccacf64976)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: SunOS version 5.10 running on x86; ISO646-US; en (nb)

Since May 13 I cannot start IDE.
The roll backing of change set:
http://hg.netbeans.org/core-main/rev/6dc6517ce7bc
fixes the problem.
IMHO changes:

-   if echo $jargs | grep -v -- "-XX:HeapDumpPath=" > /dev/null ; then
+   if ! echo $jargs | grep -s -- "-XX:HeapDumpPath=" ; then
-                if echo "$paths" | fgrep -v "$subpath$subx" > /dev/null ; then
+                if ! echo "$paths" | egrep -s "$subpath$subx" ; then

looks suspicious from sh POSIX syntax point of view.
As result NB cannot start OSS IDE.
Comment 7 Alexander Simon 2013-05-23 07:24:48 UTC
Created attachment 134777 [details]
run log

Attachment contains run log with additional "set -x" in the nbexec.

Short log is:

build:
suite.run:
run.run:
/export/home/as204739/cnd-main/nbbuild/netbeans/platform/lib/nbexec: !: not found
/export/home/as204739/cnd-main/nbbuild/netbeans/platform/lib/nbexec: !: not found
/export/home/as204739/cnd-main/nbbuild/netbeans/platform/lib/nbexec: !: not found
/export/home/as204739/cnd-main/nbbuild/netbeans/platform/lib/nbexec: !: not found
/export/home/as204739/cnd-main/nbbuild/netbeans/platform/lib/nbexec: !: not found
Error: Could not find or load main class org.netbeans.Main
Result: 1
Comment 8 Jiri Rechtacek 2013-05-23 07:54:07 UTC
(In reply to comment #6)
> Sorry, I realized that my first comment missed.
> So...
> I'm trying to start OSS IDE (Oracle Solaris Studio IDE based on Netbeans
> platform) from Netbeans IDE, info:
> 
> Product Version: NetBeans IDE 7.3.1 RC (Build 20130521-abccacf64976)
7.3.1 RC should not contain the changeset 6dc6517ce7bc, it was in applied in trunk only.

> Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
> Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
> System: SunOS version 5.10 running on x86; ISO646-US; en (nb)
> 
> Since May 13 I cannot start IDE.
> The roll backing of change set:
> http://hg.netbeans.org/core-main/rev/6dc6517ce7bc
> fixes the problem.
> IMHO changes:
> 
> -   if echo $jargs | grep -v -- "-XX:HeapDumpPath=" > /dev/null ; then
> +   if ! echo $jargs | grep -s -- "-XX:HeapDumpPath=" ; then
> -                if echo "$paths" | fgrep -v "$subpath$subx" > /dev/null ; then
> +                if ! echo "$paths" | egrep -s "$subpath$subx" ; then
> 
> looks suspicious from sh POSIX syntax point of view.
> As result NB cannot start OSS IDE.
Comment 9 Jiri Rechtacek 2013-05-23 08:06:09 UTC
(In reply to comment #8)
> (In reply to comment #6)
> > Sorry, I realized that my first comment missed.
> > So...
> > I'm trying to start OSS IDE (Oracle Solaris Studio IDE based on Netbeans
> > platform) from Netbeans IDE, info:
> > 
> > Product Version: NetBeans IDE 7.3.1 RC (Build 20130521-abccacf64976)
> 7.3.1 RC should not contain the changeset 6dc6517ce7bc, it was in applied in
> trunk only.

I'm right - release73 branch doesn't contain it - see http://hg.netbeans.org/releases/file/6bad519406f5/o.n.bootstrap/launcher/unix/nbexec

It might be a problem in trunk only.(In reply to comment #5)

> (In reply to comment #4)
> > I tried the latest daily build and NetBeans successfully launched.
> > 
> > OS: SunOS unknown 5.10 Generic_147148-26 i86pc i386 i86pc
> 
> Bug about "OSS IDE does not start in Netbeans IDE".
> You are right: Netbeans IDE successfully starts in Netbeans IDE

I'm sorry. I don't understand this comment. The IDE uses nbexec for launch so if there is a problem with syntax it must affect the start of IDE.

The report became a little confusing for me. Please, describe the exact steps to reproduce it.
Comment 10 Alexander Simon 2013-05-23 08:09:59 UTC
Again:
I use 7.3.1 RC as a working IDE.
I open in the working IDE:
- NB trunk sources
- OSS suite that build on NB trunk platform
I start OSS suite in the working IDE.
So your comment #8 is not relevant to the problem.
Comment 11 Jiri Rechtacek 2013-05-23 08:42:28 UTC
Created attachment 134781 [details]
a script

Could you run the attached script:
# ./x.sh AAA BBB
and check the result. It works on -bash-3.00$ uname -a
SunOS hovnival.czech.sun.com 5.10 Generic_142901-13 i86pc i386 i86pc

What is the output on your Solaris?
Comment 12 Alexander Simon 2013-05-23 09:26:06 UTC
(In reply to comment #11)
> Created attachment 134781 [details]
> a script
> 
> Could you run the attached script:
> # ./x.sh AAA BBB
> and check the result. It works on -bash-3.00$ uname -a
> SunOS hovnival.czech.sun.com 5.10 Generic_142901-13 i86pc i386 i86pc
> 
> What is the output on your Solaris?

Script prints:
{2} bash-3.00#./test.sh AAA BBB
AAA does not contain BBB

if change first line to #!/bin/sh script prints:

{2} bash-3.00#./test.sh AAA BBB
./test.sh: !: not found
Comment 13 Jiri Rechtacek 2013-05-28 12:36:10 UTC
http://hg.netbeans.org/core-main/rev/0355f3115a1b
Comment 14 Quality Engineering 2013-05-30 01:35:40 UTC
Integrated into 'main-golden', will be available in build *201305292301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0355f3115a1b
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #230098: Cannot start IDE based on NB platform on Solaris 10