You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: