I get Illegal State Exception : No application context active.
I have added two lines in GWTRemoteService
| ServletLifecycle.beginRequest(request);
| (...) //do stuff
| ServletLifecycle.beginRequest(request);
|
And now it works.
Maybe I am wrong but I think that without these 2 line
anonymous wrote : See JBCACHE-999 - your bug got the lucky 999!
:-)
Thanks for quick response.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025309#4025309
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025309
_
Add this method to org.jboss.cache.transaction.TransactionTest from cache
1.4.1.SP2 src dist. It causes endless loop
public void testEndlessLoop() {
| try {
| Fqn root = new Fqn();
| Fqn fqn = new Fqn(root, 1L);
|
Yes, I have tried 1.4.1.SP2 - problem still exists.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025032#4025032
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025032
___
jbo
This is the same cache instance. I have edited hostname only in part of log -
sorry.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013823#4013823
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013823
_
This how I am getting the Loop. I delete root node:
| 15:24:25,709 DEBUG [TxInterceptor] local transaction exists - registering
global tx if not present for Thread[pool-1-thread-3,5,jboss]
| 15:24:25,715 DEBUG [TxInterceptor] local transaction exists - registering
global tx if not present
Thanks for reply. Are you sure that this happen only when deleteting and adding
is in the same tx? My application listenens on the socket, server gets first
request that deletes root node (whith stateless ejb) then after a while I make
another socket request which put new node to cache and this
Upgrade to 1.4.1.SP1 doesnt help. Does anyone has idea where could be problem ?
I can't belive that production version has so serious bug.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013524#4013524
Reply to the post :
http://www.jboss.com/index.html?modul
My application works perfect with 1.4.0.SP1 but not with 1.4.1.GA. I have got
node " / a / b"
Everything works fine then I remove (TreeCacheMBean.remove(Fqn root);) then I
once again put " / a / b" (TreeCacheMBean.put(Fqn fqn, String key, Object
object);) and here problem starts. I have debugge
"[EMAIL PROTECTED]" wrote : Um do you mind if I just steal that code and
put it in org.jboss.seam.core?
|
Not at all.
"[EMAIL PROTECTED]" wrote :
| Actually, if I did that, I should probably do a whole
Timezone/TimezoneSelector thingy like what we have for locales...
| I agree that
This is my solution:
Component:
|
| @Name("defaultTimeZone")
| @Scope(ScopeType.APPLICATION)
| @Intercept(NEVER)
| public class DefaultTimeZone {
| /**
| * @return default TimeZone
| */
| @Unwrap
| public TimeZone getDefaultTimeZone() {
| retu
Look at value attribute of @Out and @In annotations. It lets you specify name
of the component. So you can do something like this:
| @Out(value="charge1")
| private Charge chargeItem1;
|
| @Out(value="charge2")
| private Charge chargeItem2;
|
|
View the original post :
http://
"sbryzak2" wrote :
| The security API doesn't do anything specifically with transactions. Is
this problem happening in your AuthenticationProvider?
|
No.
I think I know where is the problem. It may be connected with my problems with
seam security when debug is turned on.
One of securit
In CVS version of Seam is SeamCharacterEncodingFilter class. This should make
UTF8PhaseListener obsolete (can someone confirm that?). You must put this in
web.xml:
| Character Encoding
|
| org.jboss.seam.servlet.SeamCharacterEncodingFilter
|
Seam security does strange things with transactions when is turned on
'Transaction failed' message is rendered and when I try write to db I get
exception:
| (...)
| Caused by: org.jboss.util.NestedSQLException: Transaction is not active:
(...)
View the original post :
http://www.jboss.
How to use Seam Security Filter ? Is it ready ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969182#3969182
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969182
___
jboss-
"sbryzak2" wrote :
|
| I've made some changes to allow it to now work with debug mode turned on.
Still doesnt work. Now i get NPE:
| 10:58:40,383 ERROR [ExceptionInterceptor] redirecting to debug page
| java.lang.NullPointerException
| at
org.jboss.seam.security.adapter.jboss.JB
"sbryzak2" wrote :
| Authenticator.beginRequest() should only ever be called from the Lifecycle
class, and currently if it throws any exceptions they are simply swallowed by a
try..catch block. Would it be possible for you to submit a simple test case to
JIRA that replicates this exception?
anonymous wrote :
| When does this exception occur?
Each time when I access any page in my application
anonymous wrote : Does the example app work?
Yes it works perfect.
Where Authentication component should be created ?
View the original post :
http://www.jboss.com/index.html?module=bb&
I've followed instructions on wiki and I get exceptions:
10:05:14,037 ERROR [ExceptionInterceptor] redirecting to debug page
| java.lang.IllegalStateException: No Authentication could be created, make
sure the Component exists in session scope
| at
org.jboss.seam.security.Authentication.
Look at this http://jira.jboss.com/jira/browse/JBSEAM-183
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966690#3966690
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966690
_
In Seam reference from CVS is :
anonymous wrote : Message-driven beans may even be Seam components, in which
case it is possible to inject other event and application scoped Seam
components.
But this not works. I get NPE when I send message to MDB annotated with @Name:
Caused by: java.lang.Null
With MDB it doesnt work either. I have MDB (with @name annotation). When I
send JMS Message I get NPE:
| Caused by: java.lang.NullPointerException
| at org.jboss.seam.Component.forName(Component.java:1298)
| at
org.jboss.seam.ejb.SeamInterceptor.getSeamComponent(SeamInterceptor
JMS is good idea. Which Seam components I can safely use in MDB ? Will I have
access to JBPM process definitions from MDB ?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965413#3965413
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=post
I have 2 Seam appllications (ears). When I call from one app, EJB method from
another app I get NPE in Component class (getApplicationContext() returns
null):
| public static Component forName(String name)
|{
| return (Component) Contexts.getApplicationContext().get( name +
"
I have put my persistance.xml to META-INF in ear but jboss seems to ignore
it. It is a bug?
This is why I need this:
I have 2 jars (A.jar and B.jar) with classes annotated with @Entity and 2
ears. In both ears I want to put jars A and B but in one ear entities from
A.jar should be ig
26 matches
Mail list logo