Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odd ConcurrentModificationException #90

Open
pbradshawusc opened this issue Nov 2, 2013 · 0 comments
Open

Odd ConcurrentModificationException #90

pbradshawusc opened this issue Nov 2, 2013 · 0 comments

Comments

@pbradshawusc
Copy link

In running my restaurant for some test scenarios with thread-safe structures, I ran into this exception and I can't figure out what caused it.

Reading through the stack trace, it seems to be an error with the imageio class, as it occurs when I am creating a gui for my order and reading in the proper image file. Is this something that I should worry about or should I ignore it for now as it is not a concurrent modification of my agent's data but rather in a background class?

CustomerAgent@74f50af4: Unexpected exception caught in Agent thread:
java.util.ConcurrentModificationException
    at java.util.Vector$Itr.checkForComodification(Unknown Source)
    at java.util.Vector$Itr.next(Unknown Source)
    at sun.java2d.cmm.ProfileDeferralMgr.activateProfiles(Unknown Source)
    at java.awt.color.ICC_Profile.getInstance(Unknown Source)
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.setImageData(Unknown Source)
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImageHeader(Native Method)
    at     com.sun.imageio.plugins.jpeg.JPEGImageReader.readNativeHeader(Unknown Source)
    at     com.sun.imageio.plugins.jpeg.JPEGImageReader.checkTablesOnly(Unknown Source)
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.gotoImage(Unknown Source)
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.readHeader(Unknown Source)
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(Unknown Source)
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(Unknown Source)
    at javax.imageio.ImageIO.read(Unknown Source)
    at javax.imageio.ImageIO.read(Unknown Source)
    at restaurantGUI.OrderGUI.<init>(OrderGUI.java:62)
    at restaurant.Order.<init>(Order.java:11)
    at restaurant.CustomerAgent.LookAtMenu(CustomerAgent.java:251)
    at restaurant.CustomerAgent.pickAndExecuteAnAction(CustomerAgent.java:153)
    at agent.Agent$AgentThread.run(Agent.java:140)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant