This content has been marked as final. Show 5 replies
A couple things to think about:
Are you always executing the method from the same threads? The javadocs refer to the fact it can be a security issue. If you're running in some type of sandbox, or if a given thread has restricted access, it could cause this exception.
Another possibility is you're running out of memory in some strange way. Usually you'll get an 'OutOfMemoryError' thrown, but that is if the JVM runs out of memory. It could be something strange happening with lack of memory (or temporary space etc) on the system. Have you tried executing the code on different machines? The fact that you said it happens many times, then has a problem makes me believe there is a memory leak somewhere (or a space issue).
I have list of items. With every item selection, I have to create panel with different components on it dynamically.
I am creating thread to build GUI on the fly. So, in the thread:
- I am repeating the following process:
1.I instantiate corresponding component(I don't know in advance which it will be - JList, JTable,...),
2.place it on the panel,
3.using reflection I get data value, and
4.populate component with retrieved value.
- In event dispatch thread, I am placing panel on corresponding tab.
I have not tried executing the code on different machines but this project went in production, so many people use it
and so far nobody complained.