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 235530 - Build 201309040001 cannot properly start
Summary: Build 201309040001 cannot properly start
Status: RESOLVED DUPLICATE of bug 235536
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-04 21:02 UTC by alied
Modified: 2013-09-05 16:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE messages.log (53.31 KB, text/plain)
2013-09-04 21:02 UTC, alied
Details
metrics (114.75 KB, application/octet-stream)
2013-09-04 21:03 UTC, alied
Details
uigestures (297.47 KB, application/octet-stream)
2013-09-04 21:04 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2013-09-04 21:02:50 UTC
Created attachment 139677 [details]
IDE messages.log

I have just installed Build 201309040001 and have a start up exception. Then the windows do not work properly and I can't even access the network to report.
Comment 1 alied 2013-09-04 21:03:31 UTC
Created attachment 139678 [details]
metrics
Comment 2 alied 2013-09-04 21:04:20 UTC
Created attachment 139679 [details]
uigestures
Comment 3 alied 2013-09-05 13:00:26 UTC
I did not mention before, but I tried it both with my previous userdir and with a new one (renamed dev to dev.old)
Comment 4 alied 2013-09-05 13:19:11 UTC
Just installed current build (see below) and it seems to work ok.

Product Version: NetBeans IDE Dev (Build 201309050001)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 5 Tomas Zezula 2013-09-05 16:17:38 UTC
Looking at the messages.log there are 2 problems:

1st)
org.openide.filesystems.FileAlreadyLockedException: C:\Users\alied.perez\AppData\Roaming\NetBeans\dev\build.properties
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(LockForFile.java:114)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(LockForFile.java:103)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(FileObj.java:382)
	at org.openide.filesystems.FileObject.getOutputStream(FileObject.java:803)
	at org.netbeans.spi.project.support.ant.PropertyUtils$2.run(PropertyUtils.java:199)
	at org.netbeans.spi.project.support.ant.PropertyUtils$2.run(PropertyUtils.java:167)
	at org.openide.util.Mutex.writeAccess(Mutex.java:443)
	at org.netbeans.spi.project.support.ant.PropertyUtils.putGlobalProperties(PropertyUtils.java:167)
[catch] at org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryTypeProvider$1.run(J2SELibraryTypeProvider.java:141)
	at org.openide.util.Mutex.postRequest(Mutex.java:1263)
	at org.openide.util.Mutex.postWriteRequest(Mutex.java:592)
	at org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryTypeProvider.libraryCreated(J2SELibraryTypeProvider.java:133)


The C:\Users\alied.perez\AppData\Roaming\NetBeans\dev\build.properties is already locked. However the caller thread does the putGlobalProperties in exclusive mode -> no other thread should access the build.properties if there is such a thread the problem is in it. The FileAlreadyLockedException should provide info about the thread holding the file lock when asserts are enabled.
Also this exception is harmless on the IDE is affects only project building.


2nd) Several AME from JNA called both from FS, Network Proxy.
java.lang.AbstractMethodError: com.sun.jna.Structure.getFieldOrder()Ljava/util/List;
	at com.sun.jna.Structure.fieldOrder(Structure.java:868)
	at com.sun.jna.Structure.getFields(Structure.java:894)
	at com.sun.jna.Structure.deriveLayout(Structure.java:1042)
	at com.sun.jna.Structure.calculateSize(Structure.java:966)
	at com.sun.jna.Structure.calculateSize(Structure.java:933)
	at com.sun.jna.Structure.allocateMemory(Structure.java:360)
	at com.sun.jna.Structure.<init>(Structure.java:184)
	at com.sun.jna.Structure.<init>(Structure.java:172)
	at com.sun.jna.Structure.<init>(Structure.java:159)
	at com.sun.jna.Structure.<init>(Structure.java:151)

which caused the problem. Looking at the jna-3.4.0.jar!/com/sun/jna/Structure the com.sun.jna.Structure.getFieldOrder()Ljava/util/List is not an abstract method. Seems that the IDE is linked with some other jna library.
Comment 6 Ondrej Vrabec 2013-09-05 16:29:59 UTC
inconsistency between update center and daily build:
org.netbeans.libs.jna/1 [1.32 nbms-and-javadoc-405-on-20130904]
org.netbeans.core.network [1.1 201309040001]

workaround for now: do not upgrade via update center today (or at least do not download jna update)

*** This bug has been marked as a duplicate of bug 235536 ***