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 210578 - SFS folder not created once feature is activated
Summary: SFS folder not created once feature is activated
Status: RESOLVED INCOMPLETE
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 7.2
Hardware: All All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2012-04-02 21:02 UTC by schkovich
Modified: 2012-04-24 16:09 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 186577


Attachments
stacktrace (1.42 KB, text/plain)
2012-04-02 21:02 UTC, schkovich
Details
stacktrace (1.42 KB, text/plain)
2012-04-04 16:56 UTC, schkovich
Details
stacktrace (1.46 KB, text/plain)
2012-04-10 18:23 UTC, viggonavarsete
Details
stacktrace (1.42 KB, text/plain)
2012-04-16 10:47 UTC, Martin Fousek
Details
stacktrace (1.42 KB, text/plain)
2012-04-17 13:56 UTC, Martin Fousek
Details
stacktrace (1.20 KB, text/plain)
2012-04-22 20:38 UTC, mago_ebon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schkovich 2012-04-02 21:02:53 UTC
Build: NetBeans IDE Dev (Build 201204021038)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Linux

User Comments:
schkovich: Opening PHP project




Stacktrace: 
java.lang.AssertionError: SFS folder is null
   at org.netbeans.modules.php.project.classpath.CommonPhpSourcePath.getInternalFolders(CommonPhpSourcePath.java:78)
   at org.netbeans.modules.php.project.classpath.CommonPhpSourcePath.getInternalPath(CommonPhpSourcePath.java:66)
   at org.netbeans.modules.php.project.classpath.ClassPathProviderImpl.getBootClassPath(ClassPathProviderImpl.java:264)
   at org.netbeans.modules.php.project.classpath.ClassPathProviderImpl.getProjectClassPaths(ClassPathProviderImpl.java:304)
   at org.netbeans.modules.php.project.PhpProject$PhpOpenedHook.projectOpened(PhpProject.java:865)
   at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:84)
Comment 1 schkovich 2012-04-02 21:02:57 UTC
Created attachment 117702 [details]
stacktrace
Comment 2 Tomas Mysik 2012-04-03 08:02:05 UTC
Can you reproduce also with a clean userdir?

Thanks.
Comment 3 schkovich 2012-04-04 16:54:56 UTC
(In reply to comment #2)
> Can you reproduce also with a clean userdir?
> 
> Thanks.

No I cannot. Clean userdir does not help but checking out project again does.
Comment 4 schkovich 2012-04-04 16:56:22 UTC
Created attachment 117829 [details]
stacktrace

See:: Bug 210578
Comment 5 schkovich 2012-04-04 17:21:26 UTC
I figure it out: It's about switch  --laf javax.swing.plaf.metal.MetalLookAndFeel. When I remove it I was able to open project.
Comment 6 Tomas Mysik 2012-04-05 04:01:43 UTC
(In reply to comment #5)
> I figure it out: It's about switch  --laf
> javax.swing.plaf.metal.MetalLookAndFeel. When I remove it I was able to open
> project.

Unlikely. The error appears if the _internal_ folder with some PHP signature files is missing. This folder is part of NetBeans installation.

However, I will improve the code.
Comment 7 Tomas Mysik 2012-04-05 08:03:08 UTC
Added work around with an info message.

http://hg.netbeans.org/web-main/rev/de79f21192b1
Comment 8 Quality Engineering 2012-04-06 10:07:15 UTC
Integrated into 'main-golden', will be available in build *201204060400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/de79f21192b1
User: Tomas Mysik <tmysik@netbeans.org>
Log: #210578 - AssertionError: SFS folder is null
Comment 9 viggonavarsete 2012-04-10 18:23:24 UTC
Created attachment 118081 [details]
stacktrace

I imported settings from 7.1 the first time I opened Netbeans after installation.
Comment 10 Martin Fousek 2012-04-16 10:47:25 UTC
Created attachment 118317 [details]
stacktrace

- disabled PHP
- opened PHP project (almost empty)
-> exception appeared
Comment 11 Tomas Mysik 2012-04-17 08:43:51 UTC
Apparently it happens from time to time. Steps:
- have full build with ergonomics
- activate php
- create/open project

Sometimes it happens that the SFS folder set in XML layer ("PHP/RuntimeLibraries" in this case) does not exist. Restart will solve this issue.

Thanks.
Comment 12 Martin Fousek 2012-04-17 13:56:24 UTC
Created attachment 118406 [details]
stacktrace

It happened again...
1, I had apparently disabled PHP cluster
2, now, I tried to open some older PHP project
-> exception appeared
Comment 13 Martin Fousek 2012-04-17 14:02:56 UTC
In addition to comment #11...
- have full build (I always already had something enabled - javaee)
- open PHP project (the activation is called automatically)

Happened two times in two days with these steps.
Comment 14 Jaroslav Tulach 2012-04-17 17:55:55 UTC
Works for me. Can you run with:

-J-Dorg.netbeans.core.projects.level=FINE -J-Dorg.netbeans.modules.ide.ergonomics.fod.level=FINE
Comment 15 Martin Fousek 2012-04-18 05:29:00 UTC
(In reply to comment #14)
> Works for me. 

Yeah, I'm afraid that it's still random issue although it happens more often in latest builds. I'll let know once I'll reproduce that with attached switches, thanks.
Comment 16 KhArtNJava 2012-04-18 12:00:03 UTC
Can't open php project - loss of functional
Comment 17 Jaroslav Tulach 2012-04-20 08:54:38 UTC
I need the log file.
Comment 18 mago_ebon 2012-04-22 20:38:26 UTC
Created attachment 118604 [details]
stacktrace

Tried to open a PHP project generated with Netbeans 7.1, having its sources apart from the netbeans files.
Comment 19 Martin Fousek 2012-04-23 05:55:42 UTC
I was not able to reproduce it yet. Anyway it looks that the issue need just more information - so INCOMPLETE looks much appropriate status to me.
Comment 20 Martin Fousek 2012-04-24 06:46:54 UTC
I was not able to reproduce it with better logging yet and I'm just thinking if the logging couldn't prevent some race condition. Isn't there another way how to find what could be wrong? I'll try to redirect my std/err outputs to file to decrease the impact from logging to min.

It looks that it happens quite often since we are getting at about one report daily.
Comment 21 eascott 2012-04-24 16:09:27 UTC
JFTR, I was able to elminate this error by changing my web server to use PHP 2.2.8. I had been using 5.3.10.