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 244820 - AbstractMethodError at com.sun.jna.Structure.fieldOrder
Summary: AbstractMethodError at com.sun.jna.Structure.fieldOrder
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-30 15:16 UTC by danylumbrales
Modified: 2014-06-03 13:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 210037


Attachments
stacktrace (2.00 KB, text/plain)
2014-05-30 15:16 UTC, danylumbrales
Details

Note You need to log in before you can comment on or make changes to this bug.
Description danylumbrales 2014-05-30 15:16:10 UTC
This bug was originally marked as duplicate of bug 235536, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.4 (Build nbms-and-javadoc-1734-on-20140530)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
danylumbrales: Open proyect error




Stacktrace: 
java.lang.AbstractMethodError
   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)
Comment 1 danylumbrales 2014-05-30 15:16:12 UTC
Created attachment 147528 [details]
stacktrace
Comment 2 Jaroslav Havlin 2014-06-03 08:28:49 UTC
It seems that incorrect version of JNA library is used. (4.0.0 instead of 3.4.0). Version (1.37) of module org.netbeans.libs.jna is too high for NetBeans 7.4.

Where did you get NetBeans binaries? Or did you create a custom build?

Thank you.
Comment 3 danylumbrales 2014-06-03 08:36:40 UTC
Hi Jaroslav! I downloaded it from NetBeans website and I haven't modified anything manually. Is possible change JNA library version without install NetBeans again?

Thanks!

(In reply to Jaroslav Havlin from comment #2)
> It seems that incorrect version of JNA library is used. (4.0.0 instead of
> 3.4.0). Version (1.37) of module org.netbeans.libs.jna is too high for
> NetBeans 7.4.
> 
> Where did you get NetBeans binaries? Or did you create a custom build?
> 
> Thank you.
Comment 4 Jaroslav Havlin 2014-06-03 10:38:37 UTC
> Is possible change JNA library version without install NetBeans again?
I'm afraid this cannot be fixed, you probably downloaded a broken development build.

Please download the latest stable version from the official download page:
https://netbeans.org/downloads/

(Or if you really need version 7.4, use this page: https://netbeans.org/downloads/7.4/)
Comment 5 danylumbrales 2014-06-03 10:40:54 UTC
I have searching the JNA version and I have seen that I'm using JNA 3.4.0, but in all case I will download the lastest version and I will install it again.

(In reply to Jaroslav Havlin from comment #4)
> > Is possible change JNA library version without install NetBeans again?
> I'm afraid this cannot be fixed, you probably downloaded a broken
> development build.
> 
> Please download the latest stable version from the official download page:
> https://netbeans.org/downloads/
> 
> (Or if you really need version 7.4, use this page:
> https://netbeans.org/downloads/7.4/)
Comment 6 Jaroslav Havlin 2014-06-03 10:58:33 UTC
(In reply to danylumbrales from comment #5)
> I have searching the JNA version and I have seen that I'm using JNA 3.4.0,
This seems quite odd. Is the file located here, or somewhere else?
C:\Program Files\NetBeans 7.4\platform\modules\ext\jna-3.4.0.jar

> but in all case I will download the lastest version and I will install it
> again.
It should help. The NetBeans that you are using now is marked as version 7.4,
but the build date is quite recent (20140530), so something is probably wrong.
Comment 7 danylumbrales 2014-06-03 13:54:18 UTC
Hi Jaroslav! I fix the problem! I have downloaded th NetBeans 7.4 again and then I install this plugin (http://dlc.sun.com.edgesuite.net/netbeans/updates/7.1.2/uc/final/certified/modules/extra/org-netbeans-modules-j2ee-sun-appsrv81.nbm) to use Glassfish 2.1

Thanks for all!

(In reply to Jaroslav Havlin from comment #6)
> (In reply to danylumbrales from comment #5)
> > I have searching the JNA version and I have seen that I'm using JNA 3.4.0,
> This seems quite odd. Is the file located here, or somewhere else?
> C:\Program Files\NetBeans 7.4\platform\modules\ext\jna-3.4.0.jar
> 
> > but in all case I will download the lastest version and I will install it
> > again.
> It should help. The NetBeans that you are using now is marked as version 7.4,
> but the build date is quite recent (20140530), so something is probably
> wrong.