BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

what does "unexpected error" mean when trying to refact

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Flip
Guest





PostPosted: Thu Dec 04, 2003 3:18 am    Post subject: what does "unexpected error" mean when trying to refact Reply with quote



I tried using the "Move Class "SomeClassName"... function tonight, and
unfortunately I think it's broken. When I tried it on several classes, I
kept getting Refactoring aborted: unexpected error in red letters in the
message pane. Unfotunately it doesn't tell me much, but I hope it helps
someone here to maybe help me out. I'm not having much luck tonight.
Thanks.

I started JB from the command prompt and got this in the console.

JBuilder 9 Enterprise
Copyright (c) 1996-2003 Borland Software Corporation. All rights reserved.


java.lang.ArrayIndexOutOfBoundsException: 85
at
com.borland.jbuilder.refactor.imports.ImportUtil.getClassObjs(Unknown
Source)
at
com.borland.jbuilder.refactor.imports.ImportUtil.getClassEntrys(Unknown
Source)
at com.borland.jbuilder.refactor.MoveClass.b(Unknown Source)
at com.borland.jbuilder.refactor.MoveClass.a(Unknown Source)
at com.borland.jbuilder.refactor.MoveClass.b(Unknown Source)
at com.borland.jbuilder.refactor.RefactoringWorker.n(Unknown Source)
at
com.borland.jbuilder.refactor.MoveClass.validateRefactoring(Unknown Source)
at com.borland.jbuilder.refactor.RefactoringWrapper.d(Unknown
Source)
at
com.borland.jbuilder.refactor.RefactoringWrapper.getWarningList(Unknown
Source)
at com.borland.jbuilder.refactor.RefactoringViewer.b(Unknown Source)
at com.borland.jbuilder.refactor.RefactoringViewer.doPreview(Unknown
Source)
at com.borland.jbuilder.refactor.ui.f.a(Unknown Source)
at com.borland.jbuilder.refactor.ui.f.doRefactoring(Unknown Source)
at
com.borland.jbuilder.refactor.ui.RefactorDialog$CallBackPanel.accept(Unknown
Source)
at com.borland.jbuilder.refactor.ui.RefactorDialog.refactor(Unknown
Source)
at com.borland.jbuilder.refactor.ui.j.actionPerformed(Unknown
Source)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1817)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
19)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener
..java:245)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:197)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:150)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:140)
at java.awt.Dialog.show(Dialog.java:538)
at com.borland.primetime.ui.DefaultDialog.show(Unknown Source)
at com.borland.jbuilder.refactor.Factory.moveClass(Unknown Source)
at com.borland.jbuilder.refactor.s.doRefactoring(Unknown Source)
at com.borland.jbuilder.refactor.n.a(Unknown Source)
at com.borland.jbuilder.refactor.t.actionPerformed(Unknown Source)
at com.borland.primetime.actions.r.actionPerformed(Unknown Source)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto
n.java:1817)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:4
19)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Basic
MenuItemUI.java:943)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:197)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:150)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)


Back to top
Lori M Olson (TeamB)
Guest





PostPosted: Tue Dec 09, 2003 5:24 pm    Post subject: Re: what does "unexpected error" mean when trying to refact Reply with quote



Flip wrote:

Quote:
I tried using the "Move Class "SomeClassName"... function tonight, and
unfortunately I think it's broken. When I tried it on several classes, I
kept getting Refactoring aborted: unexpected error in red letters in the
message pane. Unfotunately it doesn't tell me much, but I hope it helps
someone here to maybe help me out. I'm not having much luck tonight.
Thanks.


I've only seem stuff like this when my source code was out of date with
the class files. Refactoring *should* figure that out and recompile
before starting, but I'm not convinced that it always figures this out
correctly.

Try doing a complete rebuild on your project before trying to refactor
again, and see if that works.

--

Regards,

Lori Olson (TeamB)

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html


Back to top
klas eriksson
Guest





PostPosted: Tue Feb 10, 2004 9:10 am    Post subject: Re: what does "unexpected error" mean when trying to refact Reply with quote



Hi

I get the same error in JB-X/dev.
I have recompiled.
It works better if I don't 'preview' before refactoring.
But it is scary not to preview changes.
Also, this is hard since the VSS-integration doesn't work:(

/klas

On Tue, 09 Dec 2003 10:24:44 -0700, "Lori M Olson (TeamB)" <javadragon (AT) techie (DOT) com> wrote:
Quote:
Flip wrote:

I tried using the "Move Class "SomeClassName"... function tonight, and
unfortunately I think it's broken. When I tried it on several classes, I
kept getting Refactoring aborted: unexpected error in red letters in the
message pane. Unfotunately it doesn't tell me much, but I hope it helps
someone here to maybe help me out. I'm not having much luck tonight.
Thanks.


I've only seem stuff like this when my source code was out of date with
the class files. Refactoring *should* figure that out and recompile
before starting, but I'm not convinced that it always figures this out
correctly.

Try doing a complete rebuild on your project before trying to refactor
again, and see if that works.

--

Regards,

Lori Olson (TeamB)

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.