NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

bug: java.lang.ArrayIndexOutOfBoundsException: 0

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
jesse.zwd



Joined: 02 Aug 2012
Posts: 3

PostPosted: Thu Aug 02, 2012 4:29 am    Post subject: bug: java.lang.ArrayIndexOutOfBoundsException: 0 Reply with quote

Hi,

I was following Maven EJB sample trying to add Persistence Unit to the empty project, when I click the "finish" button, an error occurred like:

java.lang.ArrayIndexOutOfBoundsException: 0
at org.netbeans.modules.j2ee.persistence.wizard.Util.addLibraryToProject0(Util.java:739)
at org.netbeans.modules.j2ee.persistence.wizard.Util.addLibraryToProject(Util.java:696)
at org.netbeans.modules.j2ee.persistence.wizard.Util.addLibraryToProject(Util.java:679)
at org.netbeans.modules.j2ee.persistence.wizard.unit.PersistenceUnitWizard.instantiateWProgress(PersistenceUnitWizard.java:198)
at org.netbeans.modules.j2ee.persistence.wizard.unit.PersistenceUnitWizard.instantiate(PersistenceUnitWizard.java:159)
at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1022)
at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:589)
at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:432)
at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:253)
at org.openide.loaders.TemplateWizardIteratorWrapper$ProgressInstantiatingIterator.instantiate(TemplateWizardIteratorWrapper.java:180)
at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1597)
at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1541)
at org.openide.WizardDescriptor.access$2000(WizardDescriptor.java:139)
[catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2165)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1452)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2032)


I searched in this site, and found many similar bugs, I don't know if they are same one.

Anyway I report it.

thanks!
Back to top
jesse.zwd



Joined: 02 Aug 2012
Posts: 3

PostPosted: Thu Aug 02, 2012 4:40 am    Post subject: About netbeans version Reply with quote

BTW, I'm using NetBeans 7.2, and another question:
the 7.2 version uses Spring 3.1, why the IDE generates applicationContext.xml like:
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd

why 2.5?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo