[Javassist user questions] - Re: How to create CtClass java.lang.Object
by skarzhevskyy
I know that in J2SE it should not work!
BUT We are creating J2ME CLDC API classes!
The java/lang/Object.class should be created and written to the disk then it would be used to build MIDlet applications.
Created Object class is not used at runtime! The class is only used during J2ME build and it should have signature different from one in J2SE!
We have a process to create API stub classes. (No implementation classes only proper signature) The classes signature is defined in XML and then exported to .classes using javassist.
Really need your help to solve this last outstanding problem!
Vlad
PS
http://www.microemu.org/ MicroEmulator is a pure Java implementation of Java ME in Java SE. The CLDC API classes is a subset of J2SE.
The open source project ProGuard has been updated to allow preverification of J2ME applications. We are only one step from creating complete Open Source J2ME build process. The only missing point is LGPL or Apache CLDC API classes.
The phoneME classes can't be used because they are GPL. So we are creating the process to solve licenses problem. classes signature is not part of license so we need to create proper CLDC classes from signature.
PPS
"it is not allowed in J2SE" Fine but this javassist code is working fine:
---
klass = classPool.makeClass("java.lang.Object", null);
klass.writeFile("java/lang/Object.class");
---
But the file created is not right!
It creates "class Object extends Object"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133994#4133994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133994
18 years, 1 month
[JBoss Messaging] - Re: JBoss Messaging msg blocked
by czar_iv
I am using JBoss AS 5.0 Beta 3 and JBM 1.4.0 SP1. I am getting a similar issue. I am trying to use the topic example to send and receive a message, but it seems that the send() blocks and will not return. I was using JBM 1.4.0 SP3, but ran into another incompatibility issue with JBoss 5.0. I appreciate whatever help that I can get. Here is my stack trace:
[java] TopicExample: Topic /topic/testTopic exists
[java] TopicExample: Created JMS Connection --> JBossConnection->ConnectionDelegate[30866355, ID=y1-zjupoedf-1-r2egnedf-36txtx-j132o4c5, SID=0]
[java] TopicExample: Topic created --> JBossTopic[testTopic]
[java] TopicExample: Starting message listening.
[java] TopicExample: Making connection ...
[java] TopicExample: Creating JMS message ...
[java] TopicExample: Trying to send the JMS message ...
[java] Full thread dump Java HotSpot(TM) Client VM (1.5.0_10-b03 mixed mode):
[java] "Timer-2" daemon prio=1 tid=0xaa1e1890 nid=0x1ea8 in Object.wait() [0xa90fc000..0xa90fd130]
[java] at java.lang.Object.wait(Native Method)
[java] - waiting on <0xaadbdb58> (a java.util.TaskQueue)
[java] at java.util.TimerThread.mainLoop(Timer.java:509)
[java] - locked <0xaadbdb58> (a java.util.TaskQueue)
[java] at java.util.TimerThread.run(Timer.java:462)
[java] "control: Socket[addr=/127.0.0.1,port=3962,localport=50744]" daemon prio=1 tid=0xaa1f7580 nid=0x1ea7 runnable [0xa917d000..0xa917e0b0]
[java] at java.net.SocketInputStream.socketRead0(Native Method)
[java] at java.net.SocketInputStream.read(SocketInputStream.java:129)
[java] at java.net.SocketInputStream.read(SocketInputStream.java:182)
[java] at java.io.FilterInputStream.read(FilterInputStream.java:66)
[java] at org.jboss.remoting.transport.bisocket.BisocketServerInvoker$ControlConnectionThread.run(BisocketServerInvoker.java:741)
[java] "Timer-1" daemon prio=1 tid=0xa9204a28 nid=0x1ea6 in Object.wait() [0xa91fe000..0xa91fee30]
[java] at java.lang.Object.wait(Native Method)
[java] - waiting on <0xaada6ca8> (a java.util.TaskQueue)
[java] at java.util.TimerThread.mainLoop(Timer.java:509)
[java] - locked <0xaada6ca8> (a java.util.TaskQueue)
[java] at java.util.TimerThread.run(Timer.java:462)
[java] "Timer-0" daemon prio=1 tid=0xa9204680 nid=0x1ea5 in Object.wait() [0xa93e1000..0xa93e1db0]
[java] at java.lang.Object.wait(Native Method)
[java] - waiting on <0xaad95858> (a java.util.TaskQueue)
[java] at java.util.TimerThread.mainLoop(Timer.java:509)
[java] - locked <0xaad95858> (a java.util.TaskQueue)
[java] at java.util.TimerThread.run(Timer.java:462)
[java] "GC Daemon" daemon prio=1 tid=0xaa1a76b0 nid=0x1ea2 in Object.wait() [0xa94e3000..0xa94e3eb0]
[java] at java.lang.Object.wait(Native Method)
[java] - waiting on <0xaace65c8> (a sun.misc.GC$LatencyLock)
[java] at sun.misc.GC$Daemon.run(GC.java:100)
[java] - locked <0xaace65c8> (a sun.misc.GC$LatencyLock)
[java] "RMI RenewClean-[127.0.0.1:1098]" daemon prio=1 tid=0xaa198aa0 nid=0x1ea1 in Object.wait() [0xa9564000..0xa9565030]
[java] at java.lang.Object.wait(Native Method)
[java] - waiting on <0xaace6318> (a java.lang.ref.ReferenceQueue$Lock)
[java] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
[java] - locked <0xaace6318> (a java.lang.ref.ReferenceQueue$Lock)
[java] at sun.rmi.transport.DGCClient$EndpointEntry$RenewCleanThread.run(DGCClient.java:501)
[java] at java.lang.Thread.run(Thread.java:595)
[java] "Low Memory Detector" daemon prio=1 tid=0xaa1008d8 nid=0x1e9e runnable [0x00000000..0x00000000]
[java] "CompilerThread0" daemon prio=1 tid=0x09acaa68 nid=0x1e9d waiting on condition [0x00000000..0xaa33aa98]
[java] "Signal Dispatcher" daemon prio=1 tid=0x09ac9af0 nid=0x1e9c runnable [0x00000000..0x00000000]
[java] "Finalizer" daemon prio=1 tid=0x09abfea8 nid=0x1e9b in Object.wait() [0xaa63c000..0xaa63cdb0]
[java] at java.lang.Object.wait(Native Method)
[java] - waiting on <0xaacb3fc0> (a java.lang.ref.ReferenceQueue$Lock)
[java] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
[java] - locked <0xaacb3fc0> (a java.lang.ref.ReferenceQueue$Lock)
[java] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
[java] at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)
[java] "Reference Handler" daemon prio=1 tid=0x09abe098 nid=0x1e9a in Object.wait() [0xaa6bd000..0xaa6bdf30]
[java] at java.lang.Object.wait(Native Method)
[java] - waiting on <0xaacb4040> (a java.lang.ref.Reference$Lock)
[java] at java.lang.Object.wait(Object.java:474)
[java] at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
[java] - locked <0xaacb4040> (a java.lang.ref.Reference$Lock)
[java] "main" prio=1 tid=0x09a60308 nid=0x1e95 runnable [0xbff05000..0xbff06188]
[java] at java.net.SocketInputStream.socketRead0(Native Method)
[java] at java.net.SocketInputStream.read(SocketInputStream.java:129)
[java] at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
[java] at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
[java] - locked <0xaad34c78> (a java.io.BufferedInputStream)
[java] at java.io.FilterInputStream.read(FilterInputStream.java:66)
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.readVersion(MicroSocketClientInvoker.java:962)
[java] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:601)
[java] at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:418)
[java] at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
[java] at org.jboss.remoting.Client.invoke(Client.java:1634)
[java] at org.jboss.remoting.Client.invoke(Client.java:548)
[java] at org.jboss.remoting.Client.invoke(Client.java:536)
[java] at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:187)
[java] at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:158)
[java] at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(ClientSessionDelegate.java:474)
[java] at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
[java] at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:632)
[java] at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleSend_19175605.invoke(SessionAspect_z_handleSend_19175605.java)
[java] at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
[java] at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
[java] at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:106)
[java] at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
[java] at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
[java] at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:106)
[java] at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeNext(ClientSessionDelegate$send_6145266547759487588.java)
[java] at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)
[java] at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:266)
[java] at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect_z_handleSend_19175605.invoke(ProducerAspect_z_handleSend_19175605.java)
[java] at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
[java] at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
[java] at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:106)
[java] at org.jboss.jms.client.delegate.ClientProducerDelegate$send_3961598017717988886.invokeNext(ClientProducerDelegate$send_3961598017717988886.java)
[java] at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)
[java] at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)
[java] at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:207)
[java] at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:145)
[java] at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:136)
[java] at org.jboss.example.jms.topic.TopicExample.example(TopicExample.java:83)
[java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:147)
[java] at org.jboss.example.jms.topic.TopicExample.main(TopicExample.java:139)
[java] "VM Thread" prio=1 tid=0x09abb3a0 nid=0x1e99 runnable
[java] "VM Periodic Task Thread" prio=1 tid=0xaa101e90 nid=0x1e9f waiting on condition
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4133985#4133985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4133985
18 years, 1 month