JList run time errors when removing items from list
Hi there
I am having trouble removing items from a JList. For a While it was working fine and now it outputs runtime errors everytime samething gets removed from the lsit
Here is the code
//declare
public class Consumertab1gui extends JPanel implements ActionListener
public static JList conList = null;
private static DefaultListModel model = null;
// Create a list with some items
model = new DefaultListModel();
conList = new JList(model);
//set the size of cells in the list with the length of the string
conList.setPrototypeCellValue("Lenght 1234567890");
conList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
conList.addListSelectionListener(new ValueReporter());
//set a scroll onto the list
JScrollPane conScroll = new JScrollPane(conList);
add(conScroll,c);
//when the button gets pressed to drop the selected item the following code is called
private void dropConsumer()
int selItem=0;
componentsV.comVRemove(conList.getSelectedValue().toString());
selItem=conList.getSelectedIndex();
System.out.println("No:"+(model.getSize()-1));
System.out.println("S:"+selItem);
remConList(selItem);
dropCon.setEnabled(false);
//which in turns calls this
public void remConList(int pos)
model.remove(pos);
when the model.remove(pos) code is executed the following runtime errors are given:
java.lang.NullPointerException
at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)
at javax.swing.JList.fireSelectionValueChanged(JList.java:1321)
at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1335)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
at javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:546)
at javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(BasicListUI.java:1561)
at javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:160)
at javax.swing.DefaultListModel.remove(DefaultListModel.java:478)
at Consumertab1gui.remConList(Consumertab1gui.java:38)
at Consumertab1gui.dropConsumer(Consumertab1gui.java:58)
at Consumertab1gui.actionPerformed(Consumertab1gui.java:46)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
can anyone spot any mistakes in the code or suggest possible resons as to why these run time errors occur?
Thanks
alexis
java.lang.NullPointerException
at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)The NullPointerException occurs at line 197, in the valueChanged method of your ValueReporter inner class. I have looked through your post several times but I don't see where you posted that method. Anyway, that is where you should look.
PC²
Similar Messages
-
XLRepoter - Run Time Error When running xlreporter report in MS2003 Execel
Hi,
I got this error when trying to XLReporter report in MS2003 Execel : Microsoft Visual C++ Runtime Library. Runtime Error! Program: C:\Program Files\SAP\SAP Business One\SAP Business One.exe. Abnormal program termination. Then the process was terminate.
Regards,
VivianPlease check this thread to have a reference:
XLR run-time error when upgrading from 2007A PL 39 to PL 42
Thanks,
Gordon -
Run time error when we click "Leave overview " in ESS - pl help
Hi Gurus ,
We are getting run time error when we
click the 'Leave Overview' in
ESS.
when emloyee applies for leave he may
need to wait for aproval during
that time he cannot access the 'leave
overview' screen he will be
facing run time error .
because of this run time error system
performance become very slow .
please help me .i will give points for valid answers .
:-Suneetha reddyHi ,
I am soory for late reply ,
I changed the runtime parameter to 1200 and monitaring the system .
Now there is no Run time error but still Leave overview is taking time .
Please help
Thanks,
Sunitha -
Run time error when set filter on the request id in the output query.
Hi all,
I am getting a run time error when I select the request id and set filter on that and when i am selecting all the request id it contains around 2lacs values in that If i cliked ok on that .
It popped up a msg like this
" Run time error 61706
Insufficient memory to perform operation "User was educated not to select the entire data in the filter
-
Run Time Error When opening PDF File on Computer
I am getting a run time error when I try to open up PDF's on my computer. The error message reads, "The application has requested the runtime to terminate in an unusual way. When I click ok the error box I get a message that says adobe reader has stopped working and the program has been closed. FYI I am using the latest version of adobe reader
Operating system is Windows Vista Home Premium..
Version of Adobe Reader is 10.1.13.
Any thoughts on what the issue is? -
ABAP Run time error when display the Customs Export declarations
Hi,
I'm receiving ABAP Run time error when display the Customs Exp. Declarations Under SAP Customs Processing -> Customs Processing - Import / Export -> Monitoring.
Error messaging point to Function Module - /SAPSLL/CUHD_LOAD_SELECTION.
While debugging we found that Primary Key of the below structures are not the same
lt_corpar type /sapsll/corpar_t
lt_corpar_ht type /sapsll/corpar_k02_ht
Does anyone has the SAP Notes or solution to this issue other than changing the structures manually. I'm not sure about the impact if i change manually
Error message short details
Termination occurred in the ABAP program "/SAPSLL/SAPLCUHD_SELECTION" - in
"/SAPSLL/CUHD_LOAD_SELECTION".
The main program was "/SAPSLL/CULO_DISPLAY_CUS_EXP ".
In the source code you have the termination point in line 144
of the (Include) program "/SAPSLL/LCUHD_SELECTIONU01".
We are on GTS Release 8.0 and Support Package SAPK-80014INSAPSLL (Support pack level 14).
Regards,
Pradeep MaddiHi,
I have implemented SAP Note 1531799, but it hasn't resolved the current issue.
For Our GTS instance, there are 2 Feeder Systems (ECC) attached, but document transfer in one of the system has not been activated. Both having the same partner functions ( We copied the sandbox into 2 different instances for different business Testings and now these 2 instances attached to GTS for testing). These feeder systems have different Logical system names and Logical system groups.
Recently i have implemented SAP Corrections manually for one the issue, Please see below thread for the detail information
Proforma Invoice not transferred to GTS
After implementing the corrections, i have created Pro-forma invoice in ECC system. When i tried to display, i'm facing the ABAP Dump issues.
Error details
Runtime Errors ITAB_DUPLICATE_KEY
ABAP Program /SAPSLL/SAPLCUHD_SELECTION
Application Component SLL-LEG
You tried to insert an entry into table "\FUNCTION=/SAPSLL/CUHD_LOAD_SELECTION\DATA=LT_CORPAR_HT". However, updating the unique table key "PRIMARY_KEY" resulted in a duplicate entry. The key concerned may be either the primary key or a secondary key.
Regards,
Pradeep -
Run time error when loding the WEB clint
Dear
All
I am in sap ides 4.0 I am trying to login the web Clint thru the BSP application in the se80 t code I got in to that code select the BSP application after that cic_ic and F8.
New internet explore opened and asked for user id password after that. The page is loding after that no action but I refresh the page it is saying that ending the section.
I find that i am getting two types of run time errors when page loding i find this thru st22 list of run time errors.
that are 20.10.2008
1.09:26:15 gopinath SAPUSER 800 C SYNTAX_ERROR CRM_MKTTG_PROC_TG_FEXP_BATCH 1
2.18.10.2008 14:05:55 gopinath 000 C DBIF_RSQL_INVALID_REQUEST SAPMSYST 1
and i check in event viewer also in that it is showing that.
SAP-Basis System: Transaction Canceled 00 671 ( SYNTAX_ERROR 20081020092615gopinath SAPUSER 8001 )
with Regards,
Prakesh.Hi
I would suggest you to create a OSS request using service.sap.com and ask SAP to help on this
Regards
Madhan -
Have Elements 11 and I get a Run Time Error when going into editor?
I have Elements 11 and I am getting a run time error when I select editor. It worked 2 weeks ago and now I get the message. I use Windows 7 and it nothing has changed in the past two weeks that I know of. The error is Microsoft Visual C ++ runtime Library
Windows was installed in 2013, so it is whatever that dumb version was with
no 'off'...
I have Photoshop Elements 10.0
I have no idea what an optimized computer means.
When I say 'either editor' I mean I can't use the Full or Quick editor,
they both produce the same message stream.
As follows:
Box pops up that is Microsoft Visual C ++ Runtime Library with the
message:
Runtime Error
Program : C:\Program files
THis application has requested the Runtime to terminate it is an
unusual way....
PLease contact the application support team for more information
If I click the OK button then I get an Adobe Photoshop Elements 10 box that
pops up which says
"Elements 10 has stopped working"
I have no problem downloading images into the program or renaming files or
pulling images back out I just can't edit.
Hope that helps.
Leslie
On Tue, Mar 31, 2015 at 11:27 AM, A.T. Romano <[email protected]> -
Run time error when loading external dimensions in Dev Studio
Hi,
I'm getting a run-time error when I try to load externally managed dimensions in Dev Studio using "Discover" button. The dimensions appear in the state folder so they got loaded fine but not sure why they are not being loaded into dev studio.Your question relates to the Endeca Commerce product(s), and would be better asked in this forum: Technical Questions .
-
Run time error when using search
I get a run time error when using the search in iTunes store. Running current iTunes version.
Duplicate post -- Client ADI display A runtime error in Office 2010
-
I get aq run time error when trying to load the latest version of iTunes. Help.
I get a run time error when attempting to install the latest version of iTunes & now cannot access iTunes. Can anyone help me?
Hi jalbany,
Thanks for using Apple Support Communities. This article has steps you can take for the error you're seeing:
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
Cheers,
- Ari -
Run Time Error when trying to get into the organizer
Does anyone know when I keep getting a run time error when I'm trying to go into the organizer and how I get it to go away?
The answer is that maybe someone does know ... but unless you give us the basic details of what you are doing, we probably can't help.
So ...
What version of PSE?
What operating system?
What is the EXACT word-for-word verbatim error you are seeing?
Does any part of PSE (like the "splash" screen) pop up before this error? If so, describe it or give us a screen capture.
Please provide all requested information. -
Algebra CD keeps displaying "Script run-time error" when I try to open it
I have a CD that came with my Algebra book (I bought it used) for Technical School and it keeps displaying Scrip run-time error when I try to open it. I have updated Quick-time player, just in case that was the problem.
b noir wrote:
Is CoreGraphics.dll cited in the iTunes events?
Also check for error events happening a few seconds prior to the iTunes events. Open those events. Do they all cite the same .ttf file? If so, what's the precise spelling of the .ttf (font) file?
YES! There is a CoreGraphics.dll cited in the iTunes event. This is what exactly the window said
"Faulting application iTunes.exe, version 9.0.3.15, faulting module CoreGraphics.dll, version 1.0.60.0, fault address 0x00266560."
For the .ttf file, this is what it showed.
"Windows cannot access the file C:\WINDOWS\Fonts\ARIALUNI.TTF for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program ARIALUNI.TTF because of this error.
Program: ARIALUNI.TTF
File: C:\WINDOWS\Fonts\ARIALUNI.TTF"
I hope this will help. I still cant open iTunes. -
Run time error when trying to import bookmarks from firefox
When trying to import bookmarks from Firefox to Safari I get the following error message: "Run Time Error. This application has requested the Runtime to terminate it in an unusual way." Safari does not function anymore and I have to close it. Can somebody help me? I am using a PC with Windows 7.
In the Bookmarks Manager (Library) there is a toolbar with the Back and Forward button and three other buttons (Organize, Views, Import & Backup).
* The first (gear) button is the Organize button with basic edit menu items for bookmarks
* The second button is the Views button that allows to change the sort order for viewing purposes (doesn't sort permanently).
* The third (star) button is the Import & Backup button that allows to backup and restore a JSON backup and import and export an HTML backup and import bookmarks from other browsers.
Hover each button to see the tooltip or click each of them to see what they do.
* https://support.mozilla.org/kb/how-do-i-use-bookmarks -
XLR run-time error when upgrading from 2007A PL 39 to PL 42
My client recently upgraded from 2007A PL 39 to Pl 42, In PL 39, everything, including XLR, was running smoothly. Mow when client tried to open SBO, he gets this message:
XL Reporter
Run-time error u2018430u2019:
Class does not support Automation or does not support expected interface
The client has uninstalled and re-installed mythe client software, but gets the same error.
Any suggestions?Hi Katie,
this error can occur with a DIAPI version mis-match. Again note 1247315 should help you in this regard, as there are steps there to follow.
If the note doesn't help, you could also set the logging level to 6 which would provide more information:
a. Locate the following key in the registry:
My computer\HKey_Current_User\software\SAP\SAPManage\SAP Business One\AddOn
b. Double click on logging level and enter value 6
c. Start XLR
Please send the log in SAP Business One Log folder from
Start->Run->%type%, you'll find log called SAPAddOn_01.log
Kind Regards,
Lilian Lynch
SAP Business One Forums Team
Maybe you are looking for
-
Apple TV is asking me to set network time. how to do this?
Apple TV is asking to set network time. How is this done?
-
Smartform changes not reflecting
Hi All, SRM 5.0 We made changes to the custom smartform .Added a logo and some additional text to the smartform. The changes are seen in DEV and Quality.But we do not see these changes in prod. In D and Q, the output of a smartform which is a letter(
-
What would be the best way to read from a file. Which classes do I need to use? I have to write a program, which reads data from a comma separated flat file, parse it and after inserting some busineess logic insert into a databse . I will have to rea
-
Grammar Check is Overzealous About Gender
I am a writer by profession and dumped Word for Pages at the beginning of this year. I'm a happy user, but certain grammar suggestions are just annoying. Marking the word 'husband' or 'wife' as being too gender specific, in a context where it's nec
-
IOS compiling in CS5.5 vs CS6
My game compiles and plays amazingly if I publish it using Flash CS5.5 (my work computer) using any SDK. However, when I go home to work where I left off, my flash CS6 (home) kicks out an IPA file, it installs, and when I launch the app, all I get i