Hello,
I just came across a weird thing. I'm using cache 1.4.1.SP13 in
INVALIDATION_SYNC mode, with 2 nodes.
Let suppose I have data under FQNs a and a/b. Now I execute:
cache.remove(a). On the node that I called the operation, both a and a/b
are removed. However, on the other node, only a is
One more question though - do I understand right from the javadoc that
putForExternalRead is non-transactional? Meaning that if a change something in
a TX in the persistent store, and then call putForExternalRead with the
changes, other transactions will see the change, making it a dirty read?
Another idea, using JBC 1.4.1; for put operations, which shouldn't cause
invalidation, maybe I could use an Option with cache mode == LOCAL. For the
remove operation, I could use INVALIDATION_SYNC, which should propagate. Do you
see any obstacles here? :)
Adam
View the original post :
Hello,
well, from what I've seen in CacheHelper Hibernate is simply calling get() and
put(). However in my case this doesn't work, as I run the cache in
INVALIDATION_SYNC mode. This means that when I call put() on node1, an
invalidation message is sent to other nodes. Then, when node 2 wants to
Ah yes, didn't notice it, thanks a lot! :)
Adam
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4256854#4256854
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4256854
___
jboss-user
Hello,
but if I call get() in the TX that did the changes, I want to get a
re-calculated value basing on the changed persistent store. Other threads
should get of course the old value.
Adam
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4256534#4256534
Reply
Hello,
Well, if I call cache.remove(fqn) in a tx, then any subsequent calls return
null, without hitting the cache loader. Only after the tx is commited, the
cache loader is queried. (In the no-tx scenario it behaves as if the tx was
commited immediately after the operation.) That's what my
Heh, I didn't expect that my use case will be so uncommon. It seems a
relatively simple idea to store some computed values and invalidate them when
the underlying data changes. But well ... :)
Adam
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4256619#4256619
Hello,
yes, I'm doing that now for a limited number of keys (eagerly putting them in
the cache instead of removing the whole node), although I'm doing it inside the
TX (I want the new values to be calculated basing on the data modified in the
TX), however I can't do that for all keys, as that
Hello,
here's my scenario: I want to keep some objects in cache, which are calculated
basing on some persistent state (DB lets say). Rarely, the persistent state
changes, and the objects have to be re-calculated (lazily). So, on a change, I
want to invalidate all items. Additionally, this
For anybody interested, it turns out that the -aop.xml and the class has to be
deployed straight in the deploy directory, not with the ear - then it works. So
it must be some classloader issue :) (these are the best ...)
Adam
View the original post :
I see ... so I would say it's a hole in the specs ;)
If I use a bean via its remote interface, I think where the bean is deployed
should be really completely transparent to the programmer - and it isn't as it
matters if the beans are deployed together or not. (The code may execute
differently
Hello,
if I call a remote bean (transaction is propagated), which happens to be
deployed on the same JVM (same JBoss, same ear even), will the PC be propagated?
I know of two rules governing PC propagation:
1. a PC is not propagated on remote calls
2. a PC is propagated along with the
Hello,
I've already posted on the EJB3 forum, but didn't get any replies there, so I
thought that maybe on the AOP forum I'll have more luck. If any of you get this
post twice, sorry :)
First, my setup. I have an .ear application, deployed on one jboss instance
(4.2.3), which contains an EJB
Hello,
First, my setup. I have an .ear application, deployed on one jboss instance
(4.2.3), which contains an EJB with a remote interface.
I also have a web application, deployed on another jboss instance (also 4.2.3),
which calls a method on the EJB.
Now, I'd like to add a client
Thanks, I'll ask on the hibernate forum then :)
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127104#4127104
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4127104
___
Ah, I see, glad to hear that there's an explanation :).
Is it possible that I was also experiencing this problem (sometimes) using
repeatable_read?
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4127107#4127107
Reply to the post :
Hello,
I'm using JBoss Cache 1.4.1 (the one bundled with Seam) and have the following
method:
| public void testCache1() {
|pojoCache.remove(/a);
|pojoCache.put(/a/b, 1, 1);
| }
|
In my test (which runs inside a Seam app), I start a transaction, invoke
testCache1() and
Strangely, this mostly happens when transaction isolation level is set to NONE.
My cache setup:
| ?xml version=1.0 encoding=UTF-8 ?
| server
| classpath codebase=./lib archives=jboss-cache.jar, jgroups.jar /
|
| !--
Hello,
I have setup a 2nd level cache for hibernate (ehcache) for some of my entities.
And it works fine, if I access the site using a browser.
However, I also need to access the Seam components from a daemon thread;
however the thread and the browser threads seem to have separate caches - if
OK, but I was wondering wheter I got the Seam calls right, that is, if I setup
the contexts correctly (with Lifecycle.beginCall() and Lifecycle.endCall())?
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4126884#4126884
Reply to the post :
Hello,
don't you think it would be useful to add a following tag s:raise-event:
| s:link value=Add new group action=#{groupMod.add}
|s:raise-event type=org.jboss.seam.captureView /
| /s:link
|
which would of course raise the given event when the link is clicked? Right
now, I end up
Hello,
for the issue with deserialization, I created a test case and an issue:
http://jira.jboss.com/jira/browse/JBSEAM-2484
Still, the issues with missing Instance and Proxy classes isn't yet
reproducable :)
--
Adam
View the original post :
Hello,
I think I have found the cause for the primary problem to, see here:
http://jira.jboss.com/jira/browse/JBSEAM-2485
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4119168#4119168
Reply to the post :
Hello,
The same happens with the EJB3 timer service (however Quartz is better, as the
EJB3 timers, if they have an interval, don't stop when the application is
undeployed, even after an AS restart :) ).
I think there are really two problems:
1. On every timer interval, I get a Caused by:
Hello,
I don't know yet how to reproduce, specifically the second one. But I'm working
on that :).
I suppose the issue must be linked somehow to the jar, that is placed outside
of the ear (which is supposed to hold the interfaces and model classes, which
are used by other apps).
The
I read (once again) about class loading and it seems that turning the isolated
class loader repository for the ear works - almost, of course, as it breaks
hibernate search, but that's a topic for another forum :)
--
Thanks,
Adam
View the original post :
Done, https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=682.
Thanks for looking at this :)
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4118661#4118661
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118661
Ah ... right - both apps would pick up each other's components.
Then how can I have a Seam app with a shared set of interfaces/classes?
If I package it as a jar, put it in server/default/lib or
server/default/deploy, then:
1. it doesn't work because of the issues above
2. if the seam app uses
Well, maybe the classes that are present there are used before (are loaded
earlier, not by the scoped application), and so end up in the not-scope class
loader repository.
See:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases,
use case 3 and 4.
But if there are classes shared
Well, it turns out actually not to be true, so I either misunderstood the wiki
page or it works differently than described there :).
I wrote two simple apps which reference the same class that is deployed
parallerly to the two .ears and they are both loaded by the same classloader.
Though, of
Argh, I can't read properly. Sorry, the wiki page has it right of course.
So my search continues :)
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4118731#4118731
Reply to the post :
Hello,
I have a really weird problem which happens only sometimes (that's the worst
kind of problems) and in different ways. The only thing the symptoms have in
common is ClassDefNotFoundException.
So, I have a standard seam app, generated with seam-gen, with only one
exception: I have a
Hello,
I think it's an issue of urlrewrite not of seam, so maybe check their website.
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4114540#4114540
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4114540
Hello,
I just downloaded the 2.0.1CR1 and it work for me.
Here's an example of a link:
| s:link view=/view/feed.xhtml value=#{feed.title} propagation=none
| f:param name=name value=#{feed.name}/
| /s:link
|
and a rule for it:
| outbound-rule
|
Hello,
I have an abstract entity Feed and two entities that inherit from it,
RemoteFeed and AggregatedFeed. I have the following on my page:
| h:selectManyCheckbox value=#{aggregatedFeedMod.selectedFeeds}
layout=pageDirection
|s:selectItems var=feed
I see ... that's really weird, why it tries to coerce to RemoteFeed, as the
first item on the list is an AggregatedFeed. And the whole list is of a generic
type Feed .
Anyway, if it's a known problem, do you maybe know some workarounds? :)
--
Thanks,
Adam
View the original post :
Hello,
I created a demo app and posted a jira on this:
http://jira.jboss.org/jira/browse/JBSEAM-2239
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103580#4103580
Reply to the post :
Hello,
found it - thanks :)
Though it wasn't of course what I was looking for.
However making seam work with urlrewritefilter's outbound-rules is quite
simple; I'll post a feature request for that :).
--
Cheers,
Adam
View the original post :
Here it is:
http://jira.jboss.org/jira/browse/JBSEAM-2235
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4103499#4103499
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4103499
___
Hello,
I have a piece of code that is rendered if a user has a certain role. I also
have a logout link on that page:
| s:link action=#{identity.logout} value=Logout
rendered=#{identity.loggedIn} /
|
After I click that link, the page refreshes as expected. However, the page
fragment that
Ok, created:
http://jira.jboss.org/jira/browse/JBSEAM-2225
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102945#4102945
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102945
Hello,
where can I find the sources of the class:
org.jboss.seam.ui.component.html.HtmlLink?
It's not included in the package, and I can't find a link anywhere to seam
svn/cvs.
I need it to check how Seam encodes URLs, so that I can use urlrewritefilter's
outbound-rules - it seems that the
Yes, you can raise an event, and that's what I do now, but it's unnecessary
config - the step of adding an event to components.xml could be bypassed.
My usecase is that I update a series of entities and when everything is ok (the
if-condition of a rule is met) I proceed to the next one by
I know, I should preview first.
So my question was:
Is there any conceptual reason why there's no possibility to have an action
inside of a rule in pages.xml?
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102357#4102357
Reply to the post :
Hello,
is there any conceptual reason why there's no possibility to have an inside of
a in pages.xml?
--
Regards,
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4102355#4102355
Reply to the post :
Hello,
a default scope for @Converter bean is, as I noticed, event. I'm not sure if
what I'm describing here is a Seam or Facelets bug, but my first bet would be
on the fact that if a bean is event-scoped then there is at most one instance
created for a request.
My problem was as follows: I
Here it is:
http://jira.jboss.org/jira/browse/JBSEAM-2195
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100708#4100708
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100708
___
Ok, found it, Component.getInstance() :)
Thought, even after removing @BypassInterceptors from the converter, the
message isn't shown on the exception page.
So I suppose it's a bug, I'll add a testcase to JIRA.
Adam
View the original post :
Posted in JIRA:
http://jira.jboss.org/jira/browse/JBSEAM-2163
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099291#4099291
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099291
But then, in the converter I have
| @In
| private EntityManager entityManager
|
which is conversation-scoped, so the context must be created by then :). And it
should last until the response is rendered, right?
View the original post :
It probably is related to this issue :).
However, I didn't have @BypassInterceptors, so that I could have some values
injected (I had @In EntityManager entityManager). Now that I removed it, I have
to lookup the entity manager manually. But how can I do that?
Writing:
| EntityManager
Hello,
is that intentional that if I have two events:
| page ...
| navigation ...
| raise-event type=event1 /
| raise-event type=event2 /
| /navigation
| /page
|
Only the first one is fired?
--
Adam
View the original post :
Yes, CR2.
Here's the JIRA:
http://jira.jboss.org/jira/browse/JBSEAM-2154
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4098552#4098552
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098552
Hello,
I have an @ApplicationException, which I want to handle with Seam.
In particular, I want to convert a page parameter to an entity, and if the page
parameter points to a non-existing entity, an exception is thrown.
The exception is defined as follows:
| exception
Ah, makes sense, thanks!
You still have a bug in documentation, though ;)
Here:
http://docs.jboss.com/seam/2.0.0.CR2/reference/en/html/controls.html#d0e19040.
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096934#4096934
Reply to the post :
Hello,
I am writing a validator and it seems that bijection is not working, I have:
| @Validator
| @BypassInterceptors
| @Name(fieldsEqualValidator)
| public class FieldsEqualValidatorImpl implements
javax.faces.validator.Validator {
| @In
| private FacesMessages
[EMAIL PROTECTED] wrote : Add a FAQ to SeamProblemsFAQ if you like?
Added, thanks for the info!
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4094956#4094956
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4094956
A similar problem, of Event-beans injected into Session-beans is solved by the
concurrency model
(http://docs.jboss.com/seam/2.0.0.CR2/reference/en/html_single/index.html#concurrency),
which serializes requests to session beans. So it seems that injecting
C-beans/E-beans into A-beans is a
Hello,
I looked through the manual, but couldn't find an answer.
Let's say I have beans with following scopes:
* A - application
* S - stateless
* C - conversation
In the examples I have often seen C-beans are injected into S-beans. As I
understand, this is correct wrt to concurrent requests,
Hello,
in JBoss Labs, we are using a cache-like component, which holds some data based
on what is present in a persistent store (SVN in our case). The key thing is
that the data is:
1. always in the cache
2. renewed when the persistent store changes (so, when a change occurs, a new
object
Hello,
I have the code written though it's completely separate from jboss cache. As it
doesn't make much sense to write a separate cache, I want to intergrate it.
However I think I cannot use CacheLoaders too, because I don't want any calls
to trigger loads from the CacheLoader --- the keys
That's what I'll do. Thanks for the answers :)
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4071314#4071314
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4071314
___
Hello,
I forgot to write about the environment :)
So, I'm using AS 4.0.5 with ejb3 rc9 patch1.
The exception happens when the .ejb3 contains a @Service annotated class. The
start() method compeltes successfully, then the exception is thrown and the
service is stopped (the stop() method is
Hello,
I tried deploying an .ejb3 archive in a .sar, and I get the following
exception:
| 00:43:00,131 ERROR [STDERR] java.lang.NullPointerException
| 00:43:00,133 ERROR [STDERR] at
org.jboss.ejb.txtimer.DatabasePersistencePolicy.listTimerHandles(DatabasePersistencePolicy.java:164)
Hello,
I have encountered a weird problem concerning packaging of AOP-transformated
classes. I use compile-time transformations, and this step works. The classes I
transform are a portlet, so I want them to be in a jar. If I put my classes as
usually in myapp.war/WEB-INF/classes, or in
Hello,
I downloaded jboss as 4.0.5, installed ejb3 rc9 patch 1 in the all
configuration and enabled load-time weaving in aop, and here is the exception I
get:
| 18:24:14,921 WARN [ServiceController] Problem creating service
jboss.aop:service=AspectManager
|
It works with sun's jvm. So the problem seems to be jrockit (version
1.5.0_06-b05) + load-time weaving.
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3995679#3995679
Reply to the post :
Hello,
another problem I encoutered after upgrading from AS 4.0.4 and EJB3 rc8: I have
a couple of ejb3 services (declared with @Service). They worked perfectly
before, now they are created and immediately after the start() method
completes, I get this exception:
| 19:13:40,535 ERROR
Hello,
I want to secure a servlet so that you can connect to it only if you have a
certificate.
To do it, firstly I have setup tomcat to support https as in scenarion 3 here:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SSLSetup
The only difference is that in server.xml, I left clientAuth=false,
So here are the stack traces in all 3 scenarios:
1. The .jar is in the WEB-INF/lib directory of the .war - everything works
2. The .jar is in the deploy directory, parallel to the .war (I though for a
while that this was beacuse of deploy order, but I tried changing the names so
that the .war
Hello,
I have a web application (deployed as a .war) and some common classes, which
I would like to deploy separately - as a jar. But this does not work - and I
suppose ClassLoaders are an issue, or rather my lack of understanding them.
However, it's quite weird.
If I deploy only the .war,
Hello,
I put them both in the deploy directory.
--
Cheers,
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3960075#3960075
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3960075
Hello,
I have read the three pages (the first two I have already read before), but
they didn't bring any help. I added
|category name=org.jboss.security
| priority value=TRACE class=org.jboss.logging.XLevel/
|/category
|
to log4j.xml but still I don't see any logging.
Hello,
thanks for the link, that clarified a little.
Now I'm wondering - where do I put the certificates (server ones -
server.keystore file)? Do I bundle them with the web application or put it in
the conf directory (I tried both, with the same effect).
I'm not sure also what does The
OK, thanks.
--
Adam
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3957794#3957794
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3957794
___
jboss-user mailing list
76 matches
Mail list logo