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 184946 - Assertion error opening 6.7.1 POJOSE-enabled J2SE project in 6.9
Summary: Assertion error opening 6.7.1 POJOSE-enabled J2SE project in 6.9
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-26 08:06 UTC by ian_chalmers
Modified: 2010-04-28 09:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
POJOSE enabled J2SE project (16.67 KB, application/zip)
2010-04-26 08:06 UTC, ian_chalmers
Details
partner CompApp project (17.69 KB, application/zip)
2010-04-26 08:07 UTC, ian_chalmers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ian_chalmers 2010-04-26 08:06:39 UTC
Created attachment 97993 [details]
POJOSE enabled J2SE project

When you open a NB 6.7.1 project in 6.9, you get the following assertion error:

java.lang.AssertionError: The target '-post-jar' is not designated by the project type as extensible.
	at org.netbeans.api.project.ant.AntBuildExtender$Extension.addDependency(AntBuildExtender.java:397)
	at org.netbeans.modules.soa.pojo.wizards.POJOHelper.registerPOJOBuildScript(POJOHelper.java:335)
	at org.netbeans.modules.soa.pojo.model.impl.PrjOpenHookImpl.projectOpened(PrjOpenHookImpl.java:141)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
	at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:198)
	at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
	at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:1099)
	at org.netbeans.modules.project.ui.OpenProjectList.access$900(OpenProjectList.java:129)
	at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.loadOnBackground(OpenProjectList.java:435)
	at org.netbeans.modules.project.ui.OpenProjectList$LoadOpenProjects.run(OpenProjectList.java:318)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1415)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1954)

This then stops the POJOSE enabled J2SE project being used in a Service assembly. Attached are projects to reproduce problem

Config used:

(alias:jbidev.ora):jbidev/jbi -> jbimgr -v
App Server details:

  app server host              = localhost
  app server version           = Sun GlassFish Enterprise Server v2.1.1 ((v2.1 Patch06)(9.1_02 Patch12)) (build b31g-fcs)
  app server build date        = Mon Oct 19 00:04:12 BST 2009
  app server home              = /Volumes/Work/qe/gf211

Product details:

  type                         = Open ESB
  variant                      = Glassfish
  kit type                     = image

Database details:

  type                         = oracle
  name                         = ora112
  version                      = 11.2.0.1.0
  user                         = qajbi_ianch_mac
  jdbc url                     = jdbc:oracle:thin:@swimsuit.sfbay.sun.com:1521:ora112

JBI details:

  operating system             = Mac OS X 10.6.3 [x86_64] (en_US MacRoman)
  java version                 = 1.6.0_17-b04-248-10M3025 (64-bit)
  java home                    = /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
  java tmp dir                 = /var/folders/RL/RLnqrAAiE+0YBWkpxy26f++++TI/-Tmp-/
  app server type              = GLASSFISH (sub-type = DEVELOPER version = 211)
  app server domains           = 1 (instances = 0 cluster = )
  jbi host                     = localhost
  jbi port                     = 17888 (secure = false)
  runtime build                = 100423 
  runtime version              = 2.6
  runtime codeline             = main
  runtime component build      = 100315
  runtime component version    = 2.6
  runtime component codeline   = main
  component build              = 100315
  component version            = 2.6
  component codeline           = main
  design time build            = unknown
  design time codeline         = unknown


Build details:

  JBI Framework                = Fri Apr 23 08:19:40 BST 2010 [/Volumes/Work/qe/gf211/jbi/lib/jbi_framework.jar]
  HTTP Binding                 = Mon Mar 15 05:29:46 GMT 2010 [100315,2.6.0,main,/Volumes/Work/qe/gf211/jbi/components/sun-http-binding/httpbc.jar]
  BPEL Service Engine          = Mon Mar 15 05:39:00 GMT 2010 [100315,2.6.0,main,/Volumes/Work/qe/gf211/addons/jbi-components/bpelserviceengine.jar]

NetBeans build details:

  IDE build                    = 20100425_0008                [/Volumes/Work/qe/netbeans/6.9/platform/build_number]
  IDE build (base)             = 201004240200                 [/Volumes/Work/qe/netbeans/6.9/platform/lib/boot.jar META-INF/MANIFEST.MF]
  IDE build date               = Sat Apr 24 02:28:22 BST 2010 [/Volumes/Work/qe/netbeans/6.9/platform/core/core.jar]
  SOA build date               = Sun Apr 25 00:11:26 BST 2010 [/Volumes/Work/qe/netbeans/6.9/soa/modules/org-netbeans-modules-compapp-projects-jbi.jar]
  home dir                     = /Volumes/Work/qe/netbeans/6.9
  user dir                     = /Volumes/Work/qe/netbeans/userdir.69
Comment 1 ian_chalmers 2010-04-26 08:07:27 UTC
Created attachment 97994 [details]
partner CompApp project
Comment 2 Vladimir Yaroslavskiy 2010-04-26 11:07:25 UTC
please, add target "-post-jar" to the list:

org.netbeans.modules.java.j2seproject.J2SEProject,
private class J2SEExtenderImplementation:
public List<String> getExtensibleTargets()
Comment 3 Sergey Lunegov 2010-04-26 11:24:58 UTC
Raised the priority.
Comment 4 Tomas Zezula 2010-04-26 16:33:19 UTC
Fixed in jet-main 8ed77d1c1fad
Comment 5 Quality Engineering 2010-04-27 04:26:36 UTC
Integrated into 'main-golden', will be available in build *201004270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: