java.util.logging.LoggingProxyImpl cannot be cast to sun.util.logging.LoggingProxy - java

I am using JBoss-7.1.0 with JDK-7. I am getting the following stacktrace:
java.lang.ClassCastException: java.util.logging.LoggingProxyImpl cannot be cast to sun.util.logging.LoggingProxy
Can any one know solution to this exception?

https://access.redhat.com/site/discussions/792203
The solution was to add 'path name="sun/util/logging"/' to jboss\modules\system\layers\base\sun\jdk\main\module.

Related

Getting version mismatch error while updating into DCTM using java

I am trying to update into DCTM through java code, below is the code snippet
IDfDocument communication = (IDfDocument) getDfSession().getObject(DfId.valueOf(communicationId));
communication.setString(ATTR_STATUS, status);
communication.save();
but I am getting the below error
Caused by: DfException:: THREAD: be.ing.ca.xpression.DCTM001P-1; MSG: [DM_OBJ_MGR_E_VERSION_MISMATCH]error: "save of object
090283e589bf689d of type xx_document failed because of version
mismatch: old version was 4"; ERRORCODE: 100; NEXT: null
I thinki am getting this error because there is another process which is trying to modify the object ,and when more than one process try to modify anyobject DCTM throws this exception,
But after lot of searching i dident found any solution which can solve this error
If anyone knows the solution please reply..
Link that i refer
http://www.javablog.fr/?s=version+mismatch
Try calling a fetch() on the object before doing updates.
communication.fetch()
There are some optional parameters AFAIK, but it's been a while since I've been fiddling with DCTM.
Best of luck!

AndroidJavaObject initialization fails NoSuchMethodError

The error: AndroidJavaException: java.lang.NoSuchMethodError: no non-static method "Ljava/util/UUID;.(J)V"
The code: var psshUuid = new AndroidJavaObject("java.util.UUID", 0x1077EFECC0B24D02L, 0xACE33C1E52E2FB4BL);
java.util.UUID takes two longs in its constructor - I'm not sure what I'm doing wrong here. This is in Unity, coding in C#. Also, does anyone know what the (J)V part of the error means?
Turns out Java didn't like that these numbers are technically ulongs.

java.lang.UnsupportedOperationException at java.util.AbstractList.remove

I am trying to remove an item of a List.
list.remove(key);
However, it throws an exception:
Caused by: java.lang.UnsupportedOperationException
at java.util.AbstractList.remove(AbstractList.java:161)
at java.util.AbstractList$Itr.remove(AbstractList.java:374)
at java.util.AbstractCollection.remove(AbstractCollection.java:293)
at bean.Bean.deleteRow(Bean.java:46)
How is this caused and how can I solve it?
The issue was during Arrays.asList() used to initialize the list, by using list.add(String) i fixed the problem

java.lang.NoSuchMethodError: : org.jfree.ui.RectangleInsets.<init>(DDDD)V

While creating a jfreechart im getting following error and I am not sure whats the reason for it..any help??
Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.ui.RectangleInsets.<init>(DDDD)V
at org.jfree.chart.axis.Axis.<clinit>(Axis.java:146)
at org.jfree.chart.StandardChartTheme.<init>(StandardChartTheme.java:227)
at org.jfree.chart.ChartFactory.<clinit>(ChartFactory.java:229)
at modules.images.Chart.createChart(Chart.java:67)
at modules.images.Chart.<init>(Chart.java:59)
at modules.images.Chart.main(Chart.java:506)
Make sure you have jcommon-1.0.0.jar (or a later version) on your classpath.

Error ClassCastException: [Ljava.lang.Object; cannot be cast to [Lcom.happydroids.droidtowers.entities.GridObject;

I'm trying to compile the following project: https://github.com/pplante/droidtowers
(the December 02 version, which is the last one that works). I managed to get all the dependencies etc and it compiles both under eclipse and IntelliJ-IDEA (which is the original project). However, when running under eclipse the following error appears at this line:
Array<GridObject> rooms = new Array<GridObject>(gameGrid.getInstancesOf(Room.class).items);
This crashes the game after a new game is started, past the Main Menu.
Now, I know that the Room class extends GridObject, and this runs fine under IntelliJ. I can't wrap my head around what can be the problem, or difference between both executables, so any help would be welcome. Maybe there's a default in the compiler overriden in the IDEA project? (I made the eclipse project from scratch).
This is using the latest Java, and android sdk.
ADDENDUM: Here's the full stacktrace:
ago 05, 2013 3:14:57 PM com.happydroids.platform.DesktopUncaughtExceptionHandler uncaughtException
SEVERE: Uncaught exception!
com.badlogic.gdx.utils.GdxRuntimeException: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lcom.happydroids.droidtowers.entities.GridObject;
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:111)
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lcom.happydroids.droidtowers.entities.GridObject;
at com.happydroids.droidtowers.controllers.AvatarLayer.setupInitialAvatars(AvatarLayer.java:191)
at com.happydroids.droidtowers.scenes.TowerScene.create(TowerScene.java:145)
at com.happydroids.droidtowers.scenes.components.SceneManager.pushScene(SceneManager.java:39)
at com.happydroids.droidtowers.scenes.components.SceneManager.changeScene(SceneManager.java:26)
at com.happydroids.droidtowers.scenes.LoadTowerSplashScene.render(LoadTowerSplashScene.java:29)
at com.happydroids.droidtowers.DroidTowersGame.render(DroidTowersGame.java:216)
at com.happydroids.droidtowers.LwjglApplicationShim.render(LwjglApplicationShim.java:50)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:190)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:108)
com.badlogic.gdx.utils.GdxRuntimeException: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lcom.happydroids.droidtowers.entities.GridObject;
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:111)
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lcom.happydroids.droidtowers.entities.GridObject;
at com.happydroids.droidtowers.controllers.AvatarLayer.setupInitialAvatars(AvatarLayer.java:191)
at com.happydroids.droidtowers.scenes.TowerScene.create(TowerScene.java:145)
at com.happydroids.droidtowers.scenes.components.SceneManager.pushScene(SceneManager.java:39)
at com.happydroids.droidtowers.scenes.components.SceneManager.changeScene(SceneManager.java:26)
at com.happydroids.droidtowers.scenes.LoadTowerSplashScene.render(LoadTowerSplashScene.java:29)
at com.happydroids.droidtowers.DroidTowersGame.render(DroidTowersGame.java:216)
at com.happydroids.droidtowers.LwjglApplicationShim.render(LwjglApplicationShim.java:50)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:190)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:108)
Well, can't say I "fixed" the error (apparently that's just the way generics work or something) but I removed ".items" and it worked, because it was redundant: it was basically taking a function that returns Array<GridObject>, it was converting it to an array GridObject[], then using a constructor to convert it back to a type Array<GridObject>.
The biggest mistery now is why IDEA didn't return an error at all. Could be some obscure compiler setting.

Categories

Resources