When I delete objects from a TreeCacheAop, not all data gets deleted when I use
a FileCacheLoader. There is sort of an empty remainder of the remaining object,
that causes NullpointerExceptions when accessing it (even though it should have
been gone completely).
Can TreeCacheAop be used with th
Okay, let me put it a bit more straightforwad: is is possible to use a
CachelLoader with TreeCacheAop? If yes, how? Simply putting on the option
doesn't work, obviously. If no, what did I miss in the manual?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=39077
"[EMAIL PROTECTED]" wrote : Yeah, if you have overloaded your constructor you
need to provide a default one as well.
|
| -Ben
When I define default constructors, I don't get an InstantiationException
anymore... but now I get NullpointerExceptions, since certain values have not
been filled.
I pretty much ironed out most of the problems I have with the
TreeCacheAop-implementation by delaying reading the cache after an event as
much as possible., One thing remains though: when I try to read a persisted
cache I get this error:
| Caused by: org.jboss.util.NestedRuntimeException: fa
Does anyone at JBOSS have a clue about what is going wrong? I have been
reporting these kinds of issues for months now and am really starting to get
pressed for time, since my project needs to get finished... so any kind of
input would be appreciated!
View the original post :
http://www.jboss.
I tried to postpone reading the object until I get the first
Modification-event, but then I get this stacktrace:
| 14:10:07 runPreparePhase() failed. Transaction is marked as rolled back [
Thread-53] WARN ceptors.ReplicationInterceptor 08 Nov 2005
14:10:07,609
| org.jbos
"[EMAIL PROTECTED]" wrote : Can't getObject do the trick. It is only read lock
on one paticular node and it is quick (since it will just return the object
instance).
|
| -ben
No. When I try a getObject(), I get a stacktrace like this:
| javax.transaction.RollbackException
| at
o
I am trying to use Log4J for my own software, completely with INFO statements.
Alas, JGroups starts shouting all its DEBUG-information as well... and there is
no way to shut it off. I tried directing all org.jgroups messages to the
BitBucket appender, but that didn't work. Does anyone have any i
Is there any easy way to obtain a newly created POJO, without getting into all
kinds of hairy locking-problems? I am especially talking about obtaining a POJO
after catching a nodeCreated or nodeLoaded-event...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=39
"[EMAIL PROTECTED]" wrote : ok, so the code is confidential. But can you cook
up a mockup example to reproduce the problem?
|
| Or can you check out the source code and run the CacheLoader tests under
aop ppackage? I will be interested to see where it fails.
|
| -Ben
I will see what I
"[EMAIL PROTECTED]" wrote : ic. And which version this is? If it is not 1.2.4,
can you try it out? I have junit test case for FileCacheLoader that is working
under TreeCacheAop.
|
| -Ben
Well, it is version 1.2.4 ...
View the original post :
http://www.jboss.com/index.html?module=bb&op=v
"[EMAIL PROTECTED]" wrote : Hmmn! I don't see anything obvious come to mind.
Can you send me a JUnit test case if you can? [EMAIL PROTECTED]
|
| -Ben
Alas, the code itself is actually pretty secret, so I can't send it to you. I
also only get the error when I try to load an object from a per
I get an java.lang.InstantiationException when I try to obtain POJOs from a
TreeCacheAop through findObjects, like this:
| org.jboss.cache.CacheException: failed creating instance of
nl.motormind.tasks.ToCCommand; - nested throwable:
(java.lang.InstantiationException: nl.motormind.tasks.ToCC
Well, I "solved" it by wrapping the result from the cache in an object that it
still serializable. The next problem is: are Collections in stored objects also
automatically stored when I use TreeCacheAop? I don't see that happening...
when I ask the contents of a Collection with a cached object
"[EMAIL PROTECTED]" wrote : Motormind,
|
| You've been so helpful in the beta, we wanted to find a way to get
Map.values() working for you in 1.2.4. So, we pushed that one forward from 1.3
and its fixed in CVS. See
|
| http://jira.jboss.com/jira/browse/JBCACHE-342
|
Hi there,
I try collect some Serializable objects from a TreeCacheAop instance and try to
send them over an RMI-collection to a client. Alas, I get this error (this is a
partial stacktrace):
| java.rmi.UnmarshalException: error unmarshalling return; nested exception
is:
| java.io.Wri
BTW: is it possible to get a POJO that has just been created? I try to use the
TreeCacheListener like tthis:
| public void nodeCreated(Fqn fqn) {
| Object pojo = cache.getObject(fqn);
| }
|
Alas, the pojo is always null. Is there something I'm missing here?
View the original post
I also have an issue with the 1.2.4 beta. I get an
AopOperationNotSupportedException when I try to obtain a persisted TreeCacheAop
, like in this (partial) stacktrace:
| caused by: org.jboss.cache.aop.AopOperationNotSupportedException:
CachedMapImpl: map.values() operation not supported
|
BTW: I also get the idea that TreeCacheAop doesn't handle anonymous classes
very well, since I also get this tracktrace on another set of objects:
| Caused by: java.lang.IllegalArgumentException: TreeCacheAop.putObject():
Object type is neither aspectized nor Serializable. Object class name
Oh yeah, I am using the beta of 1.2.4, so this should probably go to that
thread...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901110#3901110
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901110
Hi there,
I am trying to obtain values from a TreCacheAop that I persisted. When the item
is first cerated and then still in-memory, it appears to go fine. When I
restart my application though and try to obtain someting from the cache, I get
this stacktrace:
| java.lang.reflect.InvocationTa
I tried the beta and problem seems to be solved tiah that one. The problem
thouogh is that I am now allowed to use betas in development, let alone
production.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3900189#3900189
Reply to the post :
http://www.jbos
I'm using version 1.2.3
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899757#3899757
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899757
---
This SF.Net email is
Okay, here comes:
| java.lang.reflect.InvocationTargetException
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
Well, I sent you an email with the stacktrace. Could it be that maps and lists
in the cache may not be null?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899239#3899239
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3
Weird. I thought that you could simply treat objects in the cache as if they
were not stored.
Anyway, now I do get this error message:
java.lang.RuntimeException: InternalDelegate.incrementRefCount(): REF_COUNT for
reference counting is null at: /feeds/12346/missions/0/scs/0/units/0
I can't fi
Hi there,
Would it be possible to but a HashMap as the top-root in a TreeCacheAop and
then see if entries are added, deleted or changed? I tried it but not much
happens.
I also don't get any persistence anymore. I simply use the same
configuration-file that I used with the normal Treecache, o
"[EMAIL PROTECTED]" wrote : Okay, all members have a copy of their state. But
what I meant was that only *clients* would have *no* CacheLoader configured, so
their data would not be persisted
Well, I set up the clients with no cacheloader-implementation. The result is
that when the clients star
"[EMAIL PROTECTED]" wrote : Okay, how about not using a CacheLoader at all for
clients ?
| Or using a ClusteredCacheLoader once 1.3 comes around ?
I tried making seperate xml-configurations for the clients and the servers...
the ones for the clients did not have any data regarding persistence.
There is no difference between client and server code. They are all
full-fledged users of the cache and there is no way to seperate between them.
This is what I found myself while trying to distribute a cache between several
processes.
View the original post :
http://www.jboss.com/index.html?
"[EMAIL PROTECTED]" wrote : The "I need it right now" sounds familiar :-)
|
| Maybe there is a mismatch in your trying to use a peer-to-peer system for a
client-server application. I'll think of this use case when I get to 1.3
Well, it just seemed like a reasonable idea to let the GUI part v
"[EMAIL PROTECTED]" wrote : You should be able to. What case is this ?
| Do you implement the exists() ? Then I shouldn't even call you.
|
I get it with loadEntireState when I try to use it as a real CacheLoader.
Eseentially I subclasses FileCacheLoader and then simply call the super
implem
"[EMAIL PROTECTED]" wrote : Sure, depends on what you code. For example, a
CacheLoader impl can have its own configuration, you could have 2 sets of
configurations. Or read a system property in your implementation
Actually, I am using seperate configuration files now. Alas, I found out that
you
"[EMAIL PROTECTED]" wrote : Yes, CacheLoaders are set for the entire tree. We
are looking into moving to a regions-based JBossCache later on.
So, is it then possible to make one cacheloader, that behaves differently while
running on several processes? E.g. I want that cacheloader to store state
"[EMAIL PROTECTED]" wrote : This is not possible with the current cache.
However, when we introduce the Clustered CacheLoader, it might be an option to
have a local copy. Or, we could use multiple CacheLoaders with CacheLoader
Chaining. Both of these 2 feature will be introduced in 1.3
Right no
"[EMAIL PROTECTED]" wrote : Look at AddDataTest:
|
| | JChannel c=new JChannel(properties);
| | Map m=new HashMap();
| | m.put("additional_data", new byte[]{'b', 'e', 'l',
'a'});
| | c.down(new Event(Event.CONFIG, m));
| |
I have some members that need to have a local coy of a cache while others don't
need that at all. Is it possible to segment that behavior? I tried to give the
seperate members different configuration files (one with persistence and the
others without), but it look slike the cache-behavior gets o
"[EMAIL PROTECTED]" wrote : Only when the cache is replicated; and started
Right. So how amd I going to distinguish between members?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3895280#3895280
Reply to the post :
http://www.jboss.com/index.html?module=bb&
"[EMAIL PROTECTED]" wrote : TreeCache.getLocalAddress() return an instance of
org.jgroups.stack.IpAddress. The problem is that JBoss already uses the
additional bytes to stick the logical node name into the IpAddress...
Hmm.. TreeCache.getLocalAddress() actually returns a null on my system
View
"[EMAIL PROTECTED]" wrote : You can attach some bytes to a JGroups IpAddress,
check out HAPartitionImpl in JBoss for how to do this
I thought about that, but didn't see a way to obtain the IP-address & port of a
process that uses the cache.
View the original post :
http://www.jboss.com/index.
I have two sorts of processes using a certain cache: some non-interactive
(functioning more like servers) and interactive ones with a gui. How can I
distinguish between the two when I see a view change? I tried to distinguish by
hostname, but that is not possible since both the clients and the s
"[EMAIL PROTECTED]" wrote : You will need to remove them explicitly.
Uh. Meaning? Right now I resorted to remove the files physically from my hard
drive. Is that the solution?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893545#3893545
Reply to the post :
Okay, is there anyone who can tell me then how I can at least make sure that
persisted items get deleted?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893387#3893387
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=389
Anyone have any insights about this?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893166#3893166
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893166
---
SF.Net e
Any insights? The problem still persists...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3891382#3891382
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3891382
---
S
For a while everything appeared fine. When I develop locally, I don't have any
problems. As soon as I deploy my code on one of our test servers, the above
error-message reappears. Nobody is using another version of JGroups aside from
2.2.8 ...
View the original post :
http://www.jboss.org/ind
Just to make sure: I have checked that everyone is now using the same version
of JGroups (2.2.8). What could cause this problem then?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882325#3882325
Reply to the post :
http://www.jboss.org/index.html?module=bb
"[EMAIL PROTECTED]" wrote : You have to use the same version of JGroups *and*
JBossCache. Anything else is untested and (as of now), unrecommended.
|
Are you saying we can't use JBoss Cache and JGroups at the same time?
View the original post :
http://www.jboss.org/index.html?module=bb&op=v
Hi there,
After I upgraded to JBoss Cache 1.2.3, I get this error message several times a
second:
| 06/21/05,16:06:11:jgroups-ERROR-UDP: exception in processing incoming
packetjava.net.UnknownHostException: addr is of illegal length
| at java.net.InetAddress.getByAddress(Unknown Source
"[EMAIL PROTECTED]" wrote : Use the *same* version of JGroups in the same
cluster. Otherwise, separate clusters by changing IP mulitcast address and/or
port
We *are* all using the same version. The trouble started when we upgraded to
JGroups 2.2.8 and I upgraded to Jboss Cache 1.2.3
View the o
Does JBoss Cache have any configurable failover mechanism? E.g. is it possible
to specify what has to happen when several TreeCaches with their own local
datastores get disconnected? I am asking this since I want to use JBoss Cache
in a fairly unstable networking environment. Does the underlying
51 matches
Mail list logo