Stopping cluster due to unhandled exception: java.lang.ArrayIndexOutOfBound
We had this problem in production where one node among the 16 node cluster terminated with this error.
2013-04-12 11:39:00.533/1139.283 Oracle Coherence EE 3.6.1.4 <Warning> (thread=PacketPublisher, member=4): Experienced a 12316 ms communication delay (probable remote GC) with Member(Id=6, Timestamp=2013-04-12 11:20:08.733, Address=169.168.22.79:32120, MachineId=5967, Location=XXXX,machine:XXXXXXX,process:18088102,member:Container1u7, Role=XXXXXXXX); 114 packets rescheduled, PauseRate=0.0108, Threshold=1878
2013-04-12 11:47:35.704/2528.573 Oracle Coherence EE 3.6.1.4 <Error> (thread=PacketReceiver, member=1): Stopping cluster due to unhandled exception: java.lang.ArrayIndexOutOfBoundsException
at com.tangosol.coherence.component.net.Packet.extract(Packet.CDB:30)
at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketReceiver.onNotify(PacketReceiver.CDB:28)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:777)
After that that when the services which are configured to restart, tried to restart it failed with following exception. Any idea what would be causing this error. We have WKA configured.
2013-04-12 11:47:35.951/2528.820 Oracle Coherence EE 3.6.1.4 <Error> (thread=DEFAULT_EDN-Thread-28, member=n/a): Error while starting cluster: (Wrapped) java.io.IOException: SystemSocketProvider unable find available port(s)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:232)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:7)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:26)
at com.tangosol.coherence.component.util.SafeService.restartService(SafeService.CDB:22)
at com.tangosol.coherence.component.util.SafeService.ensureRunningService(SafeService.CDB:39)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureRunningCacheService(SafeCacheService.CDB:3)
at com.tangosol.coherence.component.util.SafeNamedCache$CacheAction.run(SafeNamedCache.CDB:3)
at java.security.AccessController.doPrivileged(AccessController.java:252)
at javax.security.auth.Subject.doAs(Subject.java:494)
at com.tangosol.coherence.component.util.SafeNamedCache.restartNamedCache(SafeNamedCache.CDB:8)
at com.tangosol.coherence.component.util.SafeNamedCache.ensureRunningNamedCache(SafeNamedCache.CDB:33)
at com.tangosol.coherence.component.util.SafeNamedCache.getRunningNamedCache(SafeNamedCache.CDB:1)
at com.tangosol.coherence.component.util.SafeNamedCache.lock(SafeNamedCache.CDB:1)
at container.pool.BoundedThreadPool$PooledThread.run(BoundedThreadPool.java:591)
Caused by: java.io.IOException: SystemSocketProvider unable find available port(s)
at com.tangosol.coherence.component.net.Cluster$SocketManager.bindListeners(Cluster.CDB:117)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:228)
... 20 more
Hello,
This not a Coherence bug. It looks like the system is running out of memory.
Best regards,
-Dave
Similar Messages
-
Problem: Stopping cluster due to unhandled exception .. Unable to refresh
Greetings
While testing a rolling upgrade of an application that uses Coherence 3.5.2 on 62-jvm cluster hosted on
11 physical machines, we encountered a situation where after the upgrade was completed, most jvms
in the system abruptly left the cluster. The physical hosts are running CentOS 5.4, the java used is
the 64-bit server version 1.6.0_16-b01. The test was run under a scenario that imposed "moderate"
load, with cpu usage on the physical machines never exceeding 60% busy, network bandwidth never
exceeding 5%, and with some free physical memory. Swapping did not occur during any time during
the test. I believe we are using the default tangosol-coherence.xml. We got the error below in
our coherence.log files on all of the systems, all at about the same time (within 10 milliseconds).
55 of the jvms left the cluster during the incident. There were 55 copies of the error message in
the various logs, all nearly identical except for the time and member id.
My questions include
- what does the error mean?
- what could cause it? (I investigated system logs, and found no evidence of the NIC cards
going off line at the time. Any suggestions about how to look for evidence of broadcast storm?)
- how can we keep it from happening again?
Many thanks for your help -
Mike Murphy
2011-04-26 17:34:14,629 Coherence Logger@9224544 3.5.2/463 ERROR 2011-04-26 17:34:14.629/1929.311 Oracle Coherence GE
3.5.2/463 <Error> (thread=PacketListenerN, member=30): Stopping cluster due to unhandled exception: com.tangosol.net.mes
saging.ConnectionException: Unable to refresh sockets: [UnicastUdpSocket{State=STATE_OPEN, address:port=10.48.88.116:809
1}, MulticastUdpSocket{State=STATE_OPEN, address:port=224.3.5.2:10013, InterfaceAddress=10.48.88.116, TimeToLive=4}, Tcp
SocketAccepter{State=STATE_OPEN, ServerSocket=10.48.88.116:8091}]; last failed socket: MulticastUdpSocket{State=STATE_OP
EN, address:port=224.3.5.2:10013, InterfaceAddress=10.48.88.116, TimeToLive=4}
at com.tangosol.coherence.component.net.Cluster$SocketManager.refreshSockets(Cluster.CDB:91)
at com.tangosol.coherence.component.net.Cluster$SocketManager$MulticastUdpSocket.onInterruptedIOException(Cluste
r.CDB:9)
at com.tangosol.coherence.component.net.socket.UdpSocket.receive(UdpSocket.CDB:33)
at com.tangosol.coherence.component.net.UdpPacket.receive(UdpPacket.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketListener.onNotify(PacketLis
tener.CDB:19)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
at java.net.DatagramSocket.receive(DatagramSocket.java:712)
at com.tangosol.coherence.component.net.socket.UdpSocket.receive(UdpSocket.CDB:20)
at com.tangosol.coherence.component.net.UdpPacket.receive(UdpPacket.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketListener.onNotify(PacketLis
tener.CDB:19)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)Hi Mike,
It looks like you are having problems with multicast. You can run the multicast test described here
[http://download.oracle.com/docs/cd/E15357_01/coh.360/e15723/tune_multigramtest.htm]
which will help in diagnosing the problem -
Terminating PartitionedCache due to unhandled exception:ClassCastException
I saw this today... A bug?
-Andrew
Started DefaultCacheServer...
2010-12-22 09:04:49.106/15.625 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedCacheService, member=37): Asking member 1 for 43 primary partitions
2010-12-22 09:04:49.113/15.632 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 107 primary partitions
2010-12-22 09:04:49.220/15.739 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedCacheService, member=37): Asking member 36 for 42 primary partitions
2010-12-22 09:04:49.246/15.765 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 101 primary partitions
2010-12-22 09:04:49.382/15.901 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 94 primary partitions
2010-12-22 09:04:49.519/16.038 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 86 primary partitions
2010-12-22 09:04:49.656/16.175 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 79 primary partitions
2010-12-22 09:04:49.797/16.316 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 71 primary partitions
2010-12-22 09:04:49.932/16.451 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 64 primary partitions
2010-12-22 09:04:50.054/16.573 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedOrdersService, member=37): Asking member 1 for 43 primary partitions
2010-12-22 09:04:50.092/16.611 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 56 primary partitions
2010-12-22 09:04:50.162/16.681 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedOrdersService, member=37): Asking member 36 for 42 primary partitions
2010-12-22 09:04:50.259/16.778 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 49 primary partitions
2010-12-22 09:04:50.270/16.789 Oracle Coherence GE 3.6.1.0 <D7> (thread=PacketPublisher, member=37): Growing MultiplexingWriteBufferPool segment '2048' to 2 generations
2010-12-22 09:04:50.415/16.934 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 41 primary partitions
2010-12-22 09:04:50.551/17.070 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 33 primary partitions
2010-12-22 09:04:50.681/17.200 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 27 primary partitions
2010-12-22 09:04:50.814/17.333 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 20 primary partitions
2010-12-22 09:04:50.946/17.465 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 14 primary partitions
2010-12-22 09:04:51.083/17.602 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 6 primary partitions
2010-12-22 09:04:51.210/17.729 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): 1> Transferring 5 out of 7 partitions to a node-safe backup 1 at member 1 (under 8)
2010-12-22 09:04:51.229/17.748 Oracle Coherence GE 3.6.1.0 <D5> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Transferring 349KB of backup[1] for PartitionSet{128, 129, 130, 131, 132} to member 1
2010-12-22 09:04:51.338/17.857 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): 1> Transferring 2 out of 2 partitions to a node-safe backup 1 at member 1 (under 3)
2010-12-22 09:04:51.342/17.861 Oracle Coherence GE 3.6.1.0 <D5> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Transferring 168KB of backup[1] for PartitionSet{133, 134} to member 1
2010-12-22 09:04:54.009/20.528 Oracle Coherence GE 3.6.1.0 <D5> (thread=Cluster, member=37): Member 36 joined Service DistributedStatsCacheService with senior member 1
2010-12-22 09:04:54.554/21.073 Oracle Coherence GE 3.6.1.0 <D5> (thread=DistributedCache:DistributedStatsCacheService, member=37): 3> Transferring primary PartitionSet{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41} to member 36 requesting 42
2010-12-22 09:04:54.810/21.329 Oracle Coherence GE 3.6.1.0 <D5> (thread=DistributedCache:DistributedStatsCacheService, member=37): Transferring 38KB of backup[1] for PartitionSet{42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83} to member 36
2010-12-22 09:04:54.940/21.459 Oracle Coherence GE 3.6.1.0 <D5> (thread=Cluster, member=37): Member 36 joined Service DistributedQuotesCacheService with senior member 1
2010-12-22 09:04:55.392/21.911 Oracle Coherence GE 3.6.1.0 <D5> (thread=DistributedCache:DistributedQuotesCacheService, member=37): 3> Transferring primary PartitionSet{0, 1, 2, 3, 4, 5, 6} to member 36 requesting 42
2010-12-22 09:04:55.523/22.042 Oracle Coherence GE 3.6.1.0 <D5> (thread=DistributedCache:DistributedQuotesCacheService, member=37): 3> Transferring primary PartitionSet{7, 8, 9, 10, 11, 12, 13} to member 36 requesting 35
2010-12-22 09:04:55.548/22.067 Oracle Coherence GE 3.6.1.0 <Error> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Terminating PartitionedCache due to unhandled exception: java.lang.ClassCastException
2010-12-22 09:04:55.548/22.067 Oracle Coherence GE 3.6.1.0 <Error> (thread=DistributedCache:DistributedQuotesCacheService, member=37):
java.lang.ClassCastException: com.tangosol.util.Binary cannot be cast to com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage$EntryStatus
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.publishChanges(PartitionedCache.CDB:41)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.processChanges(PartitionedCache.CDB:18)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onPutAllRequest(PartitionedCache.CDB:68)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$PutAllRequest.onReceived(PartitionedCache.CDB:85)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:11)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
2010-12-22 09:04:55.549/22.068 Oracle Coherence GE 3.6.1.0 <D5> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Service DistributedQuotesCacheService left the cluster
2010-12-22 09:04:59.098/25.617 Oracle Coherence GE 3.6.1.0 <Info> (thread=main, member=37): Restarting Service: DistributedQuotesCacheService
2010-12-22 09:04:59.133/25.652 Oracle Coherence GE 3.6.1.0 <D5> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Service DistributedQuotesCacheService joined the cluster with senior service member 1
2010-12-22 09:04:59.175/25.694 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 54 primary partitions
2010-12-22 09:04:59.315/25.834 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 36 for 31 primary partitions
2010-12-22 09:04:59.347/25.866 Oracle Coherence GE 3.6.1.0 <D5> (thread=Cluster, member=37): Member 36 left service DistributedQuotesCacheService with senior member 1
2010-12-22 09:05:00.327/26.846 Oracle Coherence GE 3.6.1.0 <D5> (thread=Cluster, member=37): Member 36 joined Service DistributedQuotesCacheService with senior member 1
2010-12-22 09:05:01.924/28.443 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 72 primary partitions
2010-12-22 09:05:02.054/28.573 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 65 primary partitions
2010-12-22 09:05:02.183/28.702 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 59 primary partitions
2010-12-22 09:05:02.311/28.830 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 52 primary partitions
2010-12-22 09:05:02.444/28.963 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 44 primary partitions
2010-12-22 09:05:02.577/29.096 Oracle Coherence GE 3.6.1.0 <D4> (thread=DistributedCache:DistributedQuotesCacheService, member=37): Asking member 1 for 37 primary partitionsThank you for reporting this Andrew. I have logged COH-4330 for this issue. The bug here occurs because putAll() request is not being handled properly in a small window of time between when the client sent it to the partition owner, and when the partition owner begins executing, if the partition has started transferring in the meantime.
thanks,
-Rob -
"Terminating PartitionedCache due to unhandled exception:NPException"
I saw the "Terminating PartitionedCache due to unhandled exception" Exception in Coherence 3.7.1 today. However, this time it is due to java.lang.NullPointerException.
Any idea ?
- Dasun
09-Dez-2011 12:23:46 ERROR ( Log4j.CDB:3) - 2011-12-09 12:23:45.942 Oracle Coherence GE 3.7.1.0 <Error>
(thread=DistributedCache:DatasetControlService, member=1): Terminating PartitionedCache due to unhandled exception: java.lang.NullPointerException
09-Dez-2011 12:23:46 ERROR ( Log4j.CDB:3) - 2011-12-09 12:23:45.942 Oracle Coherence GE 3.7.1.0 <Error>
(thread=DistributedCache:DatasetControlService, member=1):
java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:881)
at java.util.concurrent.ConcurrentHashMap.putAll(ConcurrentHashMap.java:909)
at java.util.concurrent.ConcurrentHashMap.<init>(ConcurrentHashMap.java:667)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ResultInfo.mergeResults(PartitionedCache.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.registerSingleResult(PartitionedCache.CDB:22)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onBackupSingleRequest(PartitionedCache.CDB:74)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BackupSingleRequest.onReceived(PartitionedCache.CDB:2)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:34)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
Edited by: Dasun.Weerasinghe on 12-Dec-2011 00:49I found the reason for the issue.
We have an Entry Processor throwing a checked exception when invoking on a distributed cache. EP invokes on the cache, throws the checked exception and at the same time the backed up node throws the NullPointerException.
I guess this issue is fixed in Coherence 3.7.1.1 (according to the release notes).
- Fixed an issue with EntryProcessor throwing an exception, which in turn caused the backup node to throw a NullPointerException.
reg
Dasun -
Terminating Optimistic due to unhandled exception: WrapperException
Anyone know why I'm seeing this?
Thanks!
Andrew
2010-02-16 13:50:34.474/4.078 Oracle Coherence GE 3.5.3/465 <Error> (thread=OptimisticCache:ReplicatedStatsCacheService.Optimistic, member=47): Terminating Optimistic due to unhandled exception: com.tangosol.util.W
2010-02-16 13:50:34.474/4.078 Oracle Coherence GE 3.5.3/465 <Error> (thread=OptimisticCache:ReplicatedStatsCacheService.Optimistic, member=47):
(Wrapped) java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCounter
at com.tangosol.util.Base.ensureRuntimeException(Base.java:293)
at com.tangosol.util.Base.ensureRuntimeException(Base.java:269)
at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.packetizeMessage(PacketPublisher.CDB:142)
at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher$InQueue.add(PacketPublisher.CDB:8)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.dispatchMessage(Grid.CDB:50)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.post(Grid.CDB:53)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.performUpdate(ReplicatedCache.CDB:31)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.onLeaseUpdateRequest(ReplicatedCache.CDB:22)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache$LeaseUpdateRequest.onReceived(ReplicatedCache.CDB:5)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:136)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.ReplicatedCache.onNotify(ReplicatedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.NotSerializableException: com.tangosol.util.internal.ConcurrentCounter
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.Hashtable.writeObject(Hashtable.java:824)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.Hashtable.writeObject(Hashtable.java:824)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
at com.tangosol.coherence.Component.writeObject(Component.CDB:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at com.tangosol.util.ExternalizableHelper.writeSerializable(ExternalizableHelper.java:2181)
at com.tangosol.util.ExternalizableHelper.writeObject(ExternalizableHelper.java:2368)
at com.tangosol.io.DefaultSerializer.serialize(DefaultSerializer.java:51)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.writeObject(Service.CDB:4)
at com.tangosol.coherence.component.net.Message.writeObject(Message.CDB:1)
at com.tangosol.coherence.component.net.message.LeaseMessage.write(LeaseMessage.CDB:10)
at com.tangosol.coherence.component.net.message.leaseMessage.ResourceMessage.write(ResourceMessage.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.packetProcessor.PacketPublisher.packetizeMessage(PacketPublisher.CDB:137)
... 11 more
2010-02-16 13:50:34.475/4.079 Oracle Coherence GE 3.5.3/465 <Info> (thread=main, member=47): Restarting NamedCache: stats.POSTMARKET_HIGH
2010-02-16 13:50:34.475/4.079 Oracle Coherence GE 3.5.3/465 <Info> (thread=main, member=47): Restarting Service: ReplicatedStatsCacheService.OptimisticHi Andrew,
From the exception stacktrace it looks like an object you are putting into the cache contains a reference to NamedCache or something like that.
Regards,
Dimitri -
I'm using a User defined function "getFGN" to call a Java Class developed in NWDS. the source in NWDS has no errors when it is build. But when i Run the code i get error below.
Buy using the Debugging facility in NWDS i can see that the problem is this code linie:
<i>SldApplicationServiceInterface srvContext = (SldApplicationServiceInterface) jndiContext.lookup(SldApplicationServiceInterface.KEY);</i>
<u><b>NWDS Log</b></u>
07:50:12 Start of test
Exception:[java.lang.NoClassDefFoundError: com/sap/sldserv/SldApplicationServiceInterface] in class com.sap.xi.tf._SAP_APPL_Invoice_to_CustomerInvoice_ method getFGN$[invoicenumber, CUSTOMER, com.sap.aii.mappingtool.tf3.rt.Context@daa46b]
com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[java.lang.NoClassDefFoundError: com/sap/sldserv/SldApplicationServiceInterface] in class com.sap.xi.tf._SAP_APPL_Invoice_to_CustomerInvoice_ method getFGN$[invoicenumber, CUSTOMER, com.sap.aii.mappingtool.tf3.rt.Context@daa46b]
at com.sap.aii.mappingtool.tf3.rt.FunctionWrapper.getValue(FunctionWrapper.java:56)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:186)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:298)
at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:63)
at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:77)
at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431)
at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Root Cause:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.aii.mappingtool.tf3.rt.FunctionWrapper.getValue(FunctionWrapper.java:47)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:186)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:204)
at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:298)
at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:63)
at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:77)
at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431)
at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: java.lang.NoClassDefFoundError: com/sap/sldserv/SldApplicationServiceInterface
at com.danfoss.xi.mapping.util.GenerateFileNumber.getFileGeneratedNumber(GenerateFileNumber.java:53)
at com.sap.xi.tf._SAP_APPL_Invoice_to_CustomerInvoice_.getFGN$(_SAP_APPL_Invoice_to_CustomerInvoice_.java:2556)
... 29 more
RuntimeException in Message-Mapping transformation: Exception:[java.lang.NoClassDefFoundError: com/sap/sldserv/SldApplicationServiceInterface] in class com.sap.xi.tf._SAP_APPL_Invoice_to_CustomerInvoice_ method getFGN$[invoicenumber, CUSTOMER, com.sap.aii.mappingtool.tf3.rt.Context@daa46b]Hi,
Looks like your CLASSPATH is not set properly...Just try to Put the Jar inside "<DOMAIN_HOME>\lib" directory...in that case u need not to alter anything in the Classpath variable...it will be appended at the end of Classpath at the run time, Using Extended Directory ClassLoader.
by default Classpath settings doesnt take effect if we specify it in the startScript of Servers but we start them using NodeManagers...So if you are using Nodemanagers to start your Servers... then you can follow the below link to set the Classpath & Memory Arguments http://weblogic-wonders.com/weblogic/2010/03/26/nodemanager-based-managedservers-setting-mem_args/
Thanks
Jay SenSharma
http://weblogic-wonders.com/weblogic (WebLogic Wonders Are Here) -
JDeveloper design-time exception (java.lang.IllegalArgumentException)
Using JDev 11.1.1.3; to speed up the chart renders in pages, we've switched the chart from dynamic-size to fixed-size which brings the chart in 1 - 2 seconds quicker which is good, but in order to continue supporting expand/reduce functionality (requested by user via af:commandImageLink press) the width on the chart is set via EL or managed-bean. Either way, now when we load up the page in JDeveloper we get ...
13/09/2010 4:27:19 PM oracle.adfinternal.view.faces.bi.renderkit.imageView.ImageViewRenderer
WARNING: Exception in parsing the inlineStyle.
java.lang.IllegalArgumentException: Invalid length: #{viewScope.AdminActivity.trend1Width}
at oracle.adfinternal.view.faces.bi.util.CSSStyleUtils.parseLength(CSSStyleUtils.java:645)
... appearing in the Messages - Log view for each chart when switching the editor to Design mode.
Is there some way to turn this off, or is it considered a bug to be fixed, or should we (despite the fact the run-time works) consider this bad design. (NB: client rates performance highly and the improvement delivered here important).
Thanks,Hi,
exception:java.lang.IllegalArgumentException.1 .This means that u passed an illegal or inappropriate argument to some method.
page first loads then the error appears, if I go to
next page and come back to the initial page, then the
applet works!2. This means that the value of the argument u are passing changes between init,start,stop of the Applets methods.
3.So u should be checking the values of the arg are passing .
Hope it helps
Cheers! -
Servlet failed with Exception java.lang.OutOfMemoryError: PermGen space
Hello,
I recently installed BI Apps 11.1.1.7.1 on Oracle Linux 64.
while i am trying to run the full load i.e. SDE, SILOS and PLP and sometimes while trying to access BIA Configuration Manager..I get below error. while i tried to increase the heap size to 2gb in SetOBIDomain.sh for both bi_server1 and odi_sever1.sh, it is not really affected i.e. i dont see the updated arguments while trying to re start these managed servers. i tried to restart the box and it still did not work...Any idea on where exactly to change/update the parameters to increase the heap size and any other known issues cauing out of memory issues.
<Sep 30, 2013 11:55:44 AM EDT> <Error> <HTTP> <BEA-101020> <[ServletContext@263264514[app:oracle.biacm module:biacm path:/biacm spec-version:2.5 version:11.1.1.7.1]] Servlet failed with Exception
java.lang.OutOfMemoryError: PermGen space
Thank You in advance
RakeshHi Fabian,
It seems that you have got out of memory due to PermGen space, hence increase the MaxPermGen space
java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
Also you can go through the below posts to get more details about JVM architecture and more details about Out of memory
Topic: Parts Of JVM And JVM Architecture Diagram?
http://middlewaremagic.com/weblogic/?p=4456
Topic: OutOfMemory Causes and First Aid Steps?
http://middlewaremagic.com/weblogic/?p=4464
Regards,
Ravish Mody
http://middlewaremagic.com/weblogic/
Come, Join Us and Experience The Magic… -
Exception java.lang.IllegalThreadStateException
Hi,
Can any one help me to find the reason of this exception:
Exception java.lang.IllegalThreadStateException
I call some procedure in loop:
while(MsgQueue.size() >0 && runSearch)
if(!runSearch){resetVars(); return;}
final String[] nodes1=this.getRandomDataSet();
try {
pF = new parseSearch(url, false, nodes1);
pF.parseSearchMain();
}catch(Exception e)
onlineLog.write("Exception "+e.toString()+" was the reason why we missed the "+url);
continue;
onlineMain.updateT(url);
counter++;
url=(String)MsgQueue.recv();
}catch(Exception e)
onlineLog.write("Exception "+e.toString()+" was the reason why thread stopped");
And the exception java.lang.IllegalThreadStateException occurs somewhere in loop, but not in try/catch block in a loop.
Please help,
M.Hi there,
I've installed Java 1.5.0_04 and I run my app on it. Still I do not get this exception :) I do not know what JRE is available now, I save that there is Java 1.5 update 6, it is available at java.com, but I do not know what is this in 1.5xxx notation.
Anyway, I am unable to repeat this exception. So, please let me know if you have information on IllegalThreadStateException. I am not sure how this happens, may be my MsgQueue throws this exception sometimes when it sleeps and spme thread accesses it. I do not know. But this is annoying bug and I have to locate its origin. So any help is appreciated :)
Thanks,
M. -
Uncaught exception: java.lang.Error: 137 in JavaFX
Hi
I am getting the error mentioned in subject while trying to Run a JavaFX application "Run in Mobile Emulator" mode. I am trying to use split() to separate concatenated String. The code snippet is given below :
*onMouseClicked: function(e : MouseEvent) : Void {*
println("Inside on Mouse Clicked...");
var sample = "Sherlyn|masrrev|Other";
var names = sample.split("\\|");
*println("{names.toString()}");*
The error that I get is pasted below:
*Inside on Mouse Clicked...*
*Uncaught exception: java.lang.Error: 137*
*- testsplit.Main$2.lambda(), bci=43*
*- testsplit.Main$2.invoke(), bci=2*
*- testsplit.Main$2.invoke(), bci=5*
*- javafx.scene.Node.mouseClicked$impl(), bci=68*
*- javafx.scene.Node.mouseClicked(), bci=3*
*- com.sun.fxme.runtime.FXNodeDelegate$4.run(), bci=6*
*- com.sun.fxme.runtime.RunnableQueue$Manager.run(), bci=86*
*- com.sun.fxme.runtime.RunnableQueue.run(), bci=38*
testsplit is the Javafx project created in Netbeans.
However the same application executes without any error when run in "Standard Execution" and "Run in Browser" mode. I am using Netbeans --> right click on the project --> Properties --> In Project Properties Window choose --> Run --> Standard Execution. or --? Run in Browser.
Is it that split() is not supported by Mobile Emulator? Please do get back to me if anybody has any answer to this.
Thanks in advance..
masrrevI don't have NetBeans, so I can't answer for sure.
I had to [read a bit|http://developers.sun.com/mobility/personal/articles/pbp_pp/] on differences between profiles, in particular [between CDC and CLDC|http://www.java-tips.org/java-me-tips/midp/what-are-cdc-and-cldc.html]. Apparently StringTokenizer belongs to CDC, which is available only to high end mobile devices. If I look at [Semsung phones' Device Specifications|http://developer.samsungmobile.com/Developer/index.jsp], most of them, for example, support only CLDC 1.1 with MIDP 2.0.
On the other hand, [MIDP 2.0|http://java.sun.com/javame/reference/apis/jsr118/] seems to have even less classes & interfaces than you show, so it is confusing.
Here is the dumbest method, doing all the work by hand. Not properly tested due to lack of time (check with separator at end, at start, consecutive, no separators...):
function SplitCLDC(string: String, separator: String): String[]
var parts: String[];
var prevPos = 0;
while (true)
var pos = string.indexOf(separator, prevPos);
if (pos < 0)
var lastPart = string.substring(prevPos);
insert lastPart into parts;
break;
var part = string.substring(prevPos, pos);
prevPos = pos + 1;
insert part into parts;
return parts;
} -
MediaPlayer crashes with Uncaught Exception: java.lang.Errror: 137
Hi,
I have a media player running on JavaFX 1.2 Mobile using Netbeans 6.7.1 with DefaultFxPhone emulator using JDK 1.6 Update 14.
When starting or stopping the media player (ie. calling mediaplayer.play() or mediaplayer.pause()) using a onKeyPressed or onMousePressed event it causes this error. If i call mediaplayer.play() anywhere else in my code the media plays fine.
the complete error is:
Uncaught exception: java.lang.Error: 137
- net.demo.javafx.mobile.defaultmediaplayermobile.DefaultMediaControlComponentMobile$2.lambda(), bci=190
- net.demo.javafx.mobile.defaultmediaplayermobile.DefaultMediaControlComponentMobile$2.invoke(), bci=2
- net.demo.javafx.mobile.defaultmediaplayermobile.DefaultMediaControlComponentMobile$2.invoke(), bci=5
- javafx.scene.Node$NodeInputListener.mouseClicked(), bci=114
- com.sun.fxme.input.ReleaseEvent.dispatch(), bci=131
- com.sun.fxme.input.MouseEventDispatcher.run(), bci=71
- com.sun.fxme.runtime.RunnableQueue$Worker.run(), bci=222
The event listener contains code like:
onKeyPressed: function (e:KeyEvent){
mediaPlayer.play();
Also the exact same code works fine when run as a desktop application in netbeans (as opposed to mobile).
Any help would be greatly appreciated,
Dave.Thanks for the suggestion, but it doesn't quite solve the problem. It looks to me in the media browser tutorial the user has an icon on the screen to re-orientate it. I'd hoped the system could detect the screen orientation changing automatically - hence the need for the bind. I guess that the fact that the medial browser tutorial doesn't do this suggests its not currently supported functionality.
-
Exception java.lang.NullPointerException: occurred
Hi All,
my app is showing this error while start installing oracleu2026.
can any explain about this??
Exception java.lang.NullPointerException: occurred..
java.lang.NullPointerException:
at oracle.sysman.oii.oiix.OiixPathOps.directorify(OiixPathOps.java:359)
at oracle.sysman.oii.oiix.OiixPathOps.concatPath(OiixPathOps.java:379)
at oracle.sysman.oii.oiii.OiiiInstallAreaControl.getContentsDir(OiiiInstallAreaControl.java:1875)
at oracle.sysman.oii.oiii.OiiiInstallAreaControl.getXMLCompsFileLoc(OiiiInstallAreaControl.java:1901)
at oracle.sysman.oii.oiii.OiiiInstallAreaControl.compsOutOfSynch(OiiiInstallAreaControl.java:2800)
at oracle.sysman.oii.oiii.OiiiInstallAreaControl.getReaderForHome(OiiiInstallAreaControl.java:1987)
at oracle.sysman.oii.oiii.OiiiInstallInventory.getCompOHListElement(OiiiInstallInventory.java:727)
at oracle.sysman.oii.oiii.OiiiAreaInventory.getAllCompsVect(OiiiAreaInventory.java:1184)
at oracle.sysman.oii.oiii.OiiiAreaInventory.getReplaceCompEntries(OiiiAreaInventory.java:1748)
at oracle.sysman.oii.oiii.OiiiAreaInventory.getCompatCompInvEntryInAnyHome(OiiiAreaInventory.java:1429)
at oracle.sysman.oii.oiio.oiiod.OiiodDepEngine.checkSOHCompPresentInInv(OiiodDepEngine.java:5408)
at oracle.sysman.oii.oiio.oiiod.OiiodDepEngine.applySelection(OiiodDepEngine.java:3010)
at oracle.sysman.oii.oiio.oiiod.OiiodDepEngine.depModeApply(OiiodDepEngine.java:2505)
at oracle.sysman.oii.oiif.oiifw.OiifwPostDepModesWCCE.doOperation(OiifwPostDepModesWCCE.java:335)
at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:137)
at oracle.sysman.oii.oiic.OiicDepWizEngine.doOperation(OiicDepWizEngine.java:352)
at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:137)
at oracle.sysman.oii.oiic.OiicPullSession.doOperation(OiicPullSession.java:605)
at oracle.sysman.oii.oiic.OiicSessionWrapper.doOperation(OiicSessionWrapper.java:189)
at oracle.sysman.oii.oiic.OiicInstaller.run(OiicInstaller.java:316)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:702)Hi Markus,
Yes, installation in windows server itanium, below step by step before installation:
1. Install the following Microsoft HotFixes:
924668 (Base/Driver)
924672 (Network)
924671 (MQ)
924670 (MMC)
924669 (IIS/Index)
copy 5656176\OraInstaller.jar Disk1\stage\Components\oracle.swd.oui.core\2.2.1.8. 0\1\DataFiles\Expanded\jlib
rmdir /S Disk1\stage\Components\oracle.swd.jre\1.4.1.0.0o\1\DataFiles\Expanded
mkdir Disk1\stage\Components\oracle.swd.jre\1.4.1.0.0o\1\DataFiles\Expanded
xcopy 5656176\Expanded Disk1\stage\Components\oracle.swd.jre\1.4.1.0.0o\1\DataFiles\Expanded /s
C:\TEMP\OUIIA64\disk1\sapserver.cmd
PROBLEM: change parameter in oraparam.ini JRE_LOCATION to c:\j2sdk rather than <DRIVE>:\ORACLE\<SID>\920\jre\1.4.2
C:\temp\OUIIA64\5656176\setup.exe instead
choose EPQ920 and path = C:\TEMP\OUIIA64\ora9206\Disk1\stage\products.xml
if required, stop oracle services (listener and database)
and than, the first start sapserver.cmd can not running..... -
Hi All,
I am getting below exception when I am trying to establish HTTPS connection using
Exception: java.lang.ClassCastException: HTTPClient.HttpURLConnection
sometime my code works and some time it gives me this exception
below is the exception which i traced in a log file
2008/09/11 01:07:57->1_1210001776_0:1_1210001776_0URL CONNECTION CALLED https://netfundstest.com/fsu/router
2008/09/11 01:07:57->1_1210001776_0:1_1210001776_0URL CONNECTION Created HTTPClient.HttpURLConnection[https://netfundstest.com/fsu/router]
2008/09/11 01:07:57->1_1210001776_0:entered into else Block
2008/09/11 01:07:57->1_1210001776_0:1_1210001776_0Error URLC Not a instance of HTTPS Connection: HTTPClient.HttpURLConnection[https://netfundstest.com/fsu/router]
2008/09/11 01:07:57->1_1210001776_0:Exception: java.lang.ClassCastException: HTTPClient.HttpURLConnection
In the success case when my HTTPS connection gets established I am getting following in the log file.
2008/08/24 11:51:28->1_1210001776_0:1_1210001776_0URL CONNECTION CALLED https://netfunds.com/fsu/router
2008/08/24 11:51:28->1_1210001776_0:1_1210001776_0URL CONNECTION Created com.sun.net.ssl.internal.www.protocol.https.DelegateHttpsURLConnection:https://netfunds.com/fsu/router
Here is the code which I am using
I am importing following packages in my code
import java.security.*;
import java.security.cert.*;
//import javax.net.ssl.*;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.HandshakeCompletedListener;
import javax.net.ssl.HandshakeCompletedEvent;
import javax.net.ssl.SSLSession;
import java.net.*;
import java.util.*;
import java.io.*;
//import javax.security.cert.*;
import com.sun.net.ssl.*;
//import org.apache.xalan.*;
//import org.apache.xerces.*;
import org.apache.xerces.dom.*;
import org.apache.xml.serialize.*;
import javax.xml.parsers.*;
import org.w3c.dom.*;
import oracle.xml.classgen.*;
try
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
System.setProperty("https.proxyHost",geProxy);
System.setProperty("https.proxyPort",geProxyPort);
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
int n=0;
while(n<3)
debugMsg(instCount+"URL CONNECTION CALLED " + fsuFrontEndURL);
url = new URL(fsuFrontEndURL);
/* Changed to include Tunnel code */
urlc = url.openConnection();
debugMsg(instCount+"URL CONNECTION Created " + urlc);
if (urlc instanceof com.sun.net.ssl.HttpsURLConnection)
debugMsg("entered into If Block");
debugMsg("Value of n:" + n);
((com.sun.net.ssl.HttpsURLConnection) urlc).setSSLSocketFactory(new SSLTunnelSocketFactory(geProxy, geProxyPort));
((com.sun.net.ssl.HttpsURLConnection) urlc).setRequestMethod("POST");
debugMsg("after If Block");
break;
else {
try{
debugMsg("entered into else Block");
((javax.net.ssl.HttpsURLConnection) urlc).setSSLSocketFactory(new SSLTunnelSocketFactory(geProxy, geProxyPort));
((javax.net.ssl.HttpsURLConnection) urlc).setRequestMethod("POST");
debugMsg("after else Block");
break;
catch(Exception e) {
debugMsg(instCount+"Error URLC Not a instance of HTTPS Connection: " + urlc);
debugMsg("Exception: " + e);
I am using JDK 1.5 and Apache/1.3.19
Can anyone help me out ....?for URL'S Starting with HTTPS only.....Sometimes it works and sometimes it gives me the classcast exception
As soon as I bounces my Apache application server...then it starts working...I dont know why its happening like that..
Is there any issue with the Ports I am trying to connect or some Apache configuration files settings are getting changed ? -
Uncaught exception java.lang.ArrayIndexOutOfBoundsException in J2ME
hi all,
i found a strange error (uncaught exception java.lang.ArrayIndexOutOfBoundsException) every time when i tried to developed a MIDlet and servlet to retrieve data from database. can anyone tell me why this error occur? this is example of MIDlet code:
public void checkResult() {
HttpConnection conn = null;
InputStream is = null;
OutputStream os = null;
byte[] receivedData = null;
String userid = "123";
try {
String url = getAppProperty("Result.URL");
conn = (HttpConnection)Connector.open(url);
byte postData [] = ("userid=" + userid).getBytes();
conn.setRequestMethod(HttpConnection.POST);
conn.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
conn.setRequestProperty ( "Content-Length", Integer.toString (postData.length));
conn.setRequestProperty("Connection", "close" );
conn.setRequestProperty("Content-length",Integer.toString(postData.length));
os = conn.openOutputStream();
os.write(postData);
os.close();
is = conn.openInputStream();
String contentType = conn.getType();
int len = (int)conn.getLength();
if (len > 0)
receivedData = new byte[len];
int nb = is.read(receivedData);
else
receivedData = new byte[1024];
int ch;
len = 0;
while ((ch = is.read()) != -1)
receivedData[len++] = (byte)ch;
response.setText(new String(receivedData,0,len));
display.setCurrent(outputForm);
catch (IOException e) {
System.out.println(e.getMessage());
e.printStackTrace();
finally {
try {
if (is != null) {
is.close();
if (os != null) {
os.close();
if (conn != null) {
conn.close();
catch (IOException e) {
from aliceThat would be a point where I miss bounds checking on your part:
receivedData = new byte[1024];
int ch;
len = 0;
while ((ch = is.read()) != -1)
receivedData[len++] = (byte)ch; // what happens if more than 1024 characters come along??
}Otherwise the exact line of error, the stack trace or some context would be helpful. -
Hi All,
I am using dynamic configuration to put a string to the message header. i have created a tilde delimited string with the length more than 200(length=928). During mapping i am using dynamic configuration to put this in SOAP header. But everytime i execute scenario i get an error:
"com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping; root message: Exception:[java.lang.IllegalArgumentException: Value is too long (928/200): "
Is there a limit to the length of the string that can be placed in the dynamic configuration ?
Please help.
Regards,
Meenakshi Pradhanmeenakshipradhan wrote:>
> "com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping; root message: Exception:[java.lang.IllegalArgumentException: Value is too long (928/200): "
>
I think the above error does say about that..!! Try putting data like 201 chars and the 200 chars, then see what happens.
VJ
Maybe you are looking for
-
Why can't a choose to create a Windows 7 install disk on my 2010 macbook air?
It is a 2010 macbook air, with lion 10.7.2 and bootcamp 4.0.1. the option to create a windows 7 install disk is greyed out, i have a trial version from microsoft website, but i also have a downloaded windows 7 both of them are .iso, i also have a 4gb
-
Help with downloading a plug in
this is what pops up when i try to go to this website i always use to go to to listen to live radio music from my hometown Safari cannot find the Internet plug-in. The page "Latino 96.3.com LIVE - LA'S #1 PARTY STATION" has content of MIME type "appl
-
First of all, let me say I am new to the forums here, and wanted to say hello. Now, on to my iPod... About two years ago, I purcahsed an iPod with the Color Display. i was satisfied with my purchase, until recently. About a week ago, it started to fr
-
How to caculate the records count for a measurement with a filter?
I have a fact table which add relationship to a datetime dimension. I create a measurement based on the fact table, like [MeasureA]. I want to calculate the record counts of [measureA] of today, how to write the mdx query? Thanks!
-
Try to unlock the phone with the right pin, but the pin is shown as the wrong pin?
I had this behavior for the first time with iPhone 3G and today with iPhone 4. On iPhone 3G I was able to logon after a whole day. Strange? Today same happens to me with iPhone 4. The right pin does not work. Switch off does not help. I don`t know, a