[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-26 Thread de54hsa
Sorry,

I forgot to metion: I only installed the zip file metioned in the above link 
and in the proposed sequence.

Regarding the workspace: I have the same problem using a fresh empty directory.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057976#4057976

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057976
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-26 Thread de54hsa
Hi all,

I would not say that I have a problem to install the plugin ins, that works. 
But with the start of eclipse the problems start:

1. With the first start using an existing workspace created by pure Eclipse 3.2 
I get a serious error message about not beeing able to restore the 
perspectives. Not the warning, a real error.

2. As a result the newly offered 3.3 standard wizards disappear.

3. Also the JBoss tools wizards does not appear (f.e. jPBM, SEAM etc.)

4. A jBPM project can not be worked on as under 3.2 + jPBM editor.

I copy the eclipse log file for further details:

!SESSION 2007-06-26 12:02:56.593 ---
eclipse.buildId=I20070601-1539
java.version=1.4.2_12
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86 -data 
C:\Data\DEV_Workspace_Learn_JBoss

!ENTRY org.eclipse.ui.workbench 4 2 2007-06-26 12:03:04.453
!MESSAGE Problems occurred when invoking code from plug-in: 
"org.eclipse.ui.workbench".
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in org.jboss.ide.eclipse.firstrun 
was unable to load class org.jboss.ide.eclipse.firstrun.FirstRunStartup.
at 
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:180)
at 
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:164)
at 
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)
at 
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at 
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at 
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:243)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:49)
at 
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:239)
at 
org.eclipse.ui.internal.EarlyStartupRunnable.getExecutableExtension(EarlyStartupRunnable.java:117)
at 
org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.ui.internal.Workbench$54.run(Workbench.java:2190)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.core.runtime.CoreException[1]: 
java.lang.UnsupportedClassVersionError: 
org/jboss/ide/eclipse/firstrun/FirstRunStartup (Unsupported major.minor version 
49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:161)
at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:501)
at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:471)
at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:430)
at 
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:413)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:189)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:340)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:408)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
at 
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at 
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:289)
at 
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
at 
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1269)
at 
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:160)
at 
org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:788)
at 
org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at 
org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at 
org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:243)
at org.eclipse.swt.custom.BusyIndicator.showWhile(

[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread [EMAIL PROTECTED]
"javajedi" wrote : The only relevant change that I saw to SocketServerInvoker 
(that I already patched) was the call to
  | serverSocket.setReuseAddress(true);
  | 
  | Was there more that I'm missing?

I guess you're right.  I can't see anything else.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057974#4057974

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057974
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to use FindTaskInstances in multiple transitions?

2007-06-26 Thread MindTheGap
Ok, thats right!
But in this case, findTaskInstances work?

Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057964#4057964

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057964
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is

2007-06-26 Thread amitev
How is the "remember me" functionality working?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057971#4057971

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057971
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to create hibernate criteria

2007-06-26 Thread knuwu
The JBoss Version is JBoss 4.0.5 GA.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057969#4057969

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057969
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: UnitTesting and jBPM pageflow

2007-06-26 Thread trekker880
hi
Can we do this unit testing using simple public static void main(). ?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057968#4057968

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057968
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS & JBossMQ] - Re: Persistence and caching using Oracle

2007-06-26 Thread Honest
I forgot: Server side of application is deployed to a number of servers in a 
jboss cluster.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057967#4057967

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057967
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: uninitialized nodes

2007-06-26 Thread aditsu
> You say this data is "already in memory", how do you know?

Because I first put it myself in the cache. The data map already present in the 
cache node (I checked with peek) has all the information I need, plus the 
jboss:internal:uninitialized key which I don't need. When the cache finds that 
key, it decides to load data from the cacheloader.

> Also, the children are not loaded with their data until they are accessed. 
> This is a feature not a bug.

Well, I am calling getChildren() on a node, then getData() on the resulting 
map's values. Again, I get the data I want with that extra key added. Am I 
doing it the wrong way?

> Some of the problems with JBCache 1.4 are caused by accessing data via the 
> Node object and not the Cache object.

Well, when I put data in the cache, I use the cache object. When I get data (in 
the first case, without involving children), I use get(Fqn) on the cache object 
then getData() on the node; I haven't found a better way to get all the node's 
data.

I found that if I manually remove the uninitialized key immediately after 
putting a node in the cache, all the problems seem to disappear. However, this 
looks like an UGLY thing to do.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057966#4057966

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057966
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread javajedi
A few months ago, I think I tried using JBoss Remoting 2.x with EJB 3.0-rc9, 
and it didn't work.  Should it?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057965#4057965

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057965
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Variable resolver

2007-06-26 Thread tarun1981
Hi chawax,

I am trying to do same thing but my actionHandler is not evaluating 
expressions.  

Can you please help me with this

I am using jbpm-3.1.4

-Tarun

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057963#4057963

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057963
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread javajedi
BTW, we are using JBoss 4.0.4 and ejb 3.0-rc9.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057962#4057962

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057962
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread javajedi
The only relevant change that I saw to SocketServerInvoker (that I already 
patched) was the call to
serverSocket.setReuseAddress(true);

Was there more that I'm missing?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057961#4057961

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057961
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: Exceptions in calls and callbacks

2007-06-26 Thread [EMAIL PROTECTED]
"shdv" wrote : "[EMAIL PROTECTED]" wrote : About the only thing can know for 
sure is if get a CannotConnectException, the call never reached the server.  
Anything else would be difficult to know for sure (i.e. if get SocketException, 
can't be certain that call didn't make it to server).
  | 
  | Why does org.jboss.remoting.Client.invoke() throw Exception when client is 
not connected? According to the above description it should be 
CannotConnectExcetption.
  | 
  | I was really disappointed when I got it. My code catches 
CannotConnectException to handle connection issues.
  | 
  | Since Client is usually wrapped in a proxy, under some circumstances proxy 
class can wrap it into UndeclaredThrowableException making things even worse.

Well, when Client.invoke() throws Exception, it's not a *cannot* connect 
problem, it's a *did not* connect problem.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057960#4057960

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057960
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: Apparently losing data

2007-06-26 Thread genman

anonymous wrote : 
  | This seems to work well BUT sometimes the mechanism seems to break and no 
more work until the AS (in my case JBoss) is shutdown and restarted. The 
problem is that the data is put into the cache but when retrieved it is NULL. 
No errors were reported, simply the data seems to disappear from the cache. 
  | 

So, you mean that calls to TreeCache.put(x,y); stop working? How do you know 
this?

I assume your problem is the data is somehow not being updated in the BDBJE 
store (or the store is deleted), and upon restart the cache is missing data. Is 
this the problem?

By the way, putting important data in /tmp in UNIX would be a bad plan.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057959#4057959

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057959
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - Re: uninitialized nodes

2007-06-26 Thread genman

JBoss Cache 2 (which is not in release yet) fixes some problems, such as the 
"hack" where the map storage is used for book-keeping information.

This key is used to indicate that the data has not yet been loaded from disk. 
You say this data is "already in memory", how do you know? Also, the children 
are not loaded with their data until they are accessed. This is a feature not a 
bug.

Some of the problems with JBCache 1.4 are caused by accessing data via the Node 
object and not the Cache object.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057955#4057955

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057955
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread [EMAIL PROTECTED]
"javajedi" wrote : Thanks Ron.  Yeah, I came across JBREM-409 a few days ago, 
and had already applied that patch from 1.4.6 (which seems to have been tagged 
in CVS but never released) to our code.  So this problem definitely seems to 
still exist in 1.4.6.
  | 

The 1.4.6.GA jar is at http://repository.jboss.com/jboss/remoting/1.4.6.GA/lib. 
 You might try it, just in case.  Note that it looks like the fix for JBREM-409 
involved some changes to SocketServerInvoker as well as ServerThread (though I 
don't remember what they were, off the top of my head).

-Ron

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057958#4057958

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057958
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Bug? Seam-2.0-Beta - HttpSession Creation

2007-06-26 Thread PatrickMadden
Hi,

I have a workaround for this but I can't imagine that its something you all 
will be happy with.

For the sessionCreated and sessionDestroyed methods I simply put them in a 
runnable and called them later.

It appears that as soon as I call HttpSessionEvent.getSession() is when the 
recursive loop occurrs.

Anyway here is my workaround for now:


  | public void sessionCreated(final HttpSessionEvent evt)
  | {
  | Runnable runner = new Runnable()
  | {
  | public void run()
  | {
  | XSystem.logInfo("Session Created = " + 
evt.getSession().getId());
  | 
IdToSessionMap.getInstance().addHttpSession(evt.getSession());
  | SessionController.getInstance(evt.getSession().getId());
 
  | }
  | };
  | 
  | EventQueue.invokeLater(runner);
  |   
  | }
  | 
  | public void sessionDestroyed(final HttpSessionEvent evt)
  | {
  | Runnable runner = new Runnable()
  | {
  | public void run()
  | {
  | XSystem.logInfo("Session Destroyed = " + 
evt.getSession().getId());
  | 
IdToSessionMap.getInstance().removeHttpSession(evt.getSession());
  | SessionController.freeInstance(evt.getSession().getId());
  | }
  | };
  | 
  | EventQueue.invokeLater(runner);
  | }
  | 

Looking forward to know whether or not I'm crazy :)

Thanks,

PVM

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057957#4057957

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057957
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Why my condtion doesn't get evaluated?

2007-06-26 Thread sparklehorse
"sparklehorse" wrote : "kukeltje" wrote : Remaining question: did you upgrade 
from a 3.1 version:
  |   | 
  |   | http://jira.jboss.com/jira/browse/JBPM-854?
  |   | 
  |   | Or use mysql 5.0?
  |   | 
  |   | debugging the decisioncode requires adding a debug statement in the 
source to see what gets evaluated.
  | 
  | no upgrade, just fresh install of all the stuff
  | but i'm using mysql 5.0
  | 
  | i've also tried to change, even if i don't see any error,
  | every bit(1) in the mysql schema to tinyint(1)
  | ...same result
  | 
  | i will try the unit test you suggest and let you know
  | 
  | thanks
  | 
  | 
  | 

i've tried some test suite and they don't work with conditions

i've upgraded to 3.2.1 and now condition works

I think this two patches are important

# [JBPM-853] - Attribute 'expression' not taken from Condition element
# [JBPM-854] - Condition in transition not retrieved from database 
JBPM_TRANSITIONS#DECISION_


bye


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057956#4057956

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057956
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread [EMAIL PROTECTED]
anonymous wrote : 
  | It appears that this thread, which ought to be quickly finding a 
ServerThread to handle the incoming request, calling ServerThread.start(), and 
getting back to the call to serverSocket.accept() as quickly as possible, is 
instead doing some socket I/O. ServerSocketWrapper.java has a method called 
createInputStream() that creates a new ObjectInputStream. The stack trace shows 
that the JBossObjectInputStream constructor is reading some bytes from the 
input stream, but I don't think that this problem is specific to JBoss 
Serialization, as java.io.ObjectInputStream's constructor also reads bytes from 
the stream.
  | 
  | It seems to me that this could be the cause of the problem that we are 
seeing. Any time that you're doing a blocking socket read like this, you can 
potentially just sit for a while until the socket times out. When you've got a 
thread calling serverSocket.accept(), you can't normally afford to do something 
like this on that thread.
  | 
  | Does this analysis make sense? Any thoughts/suggestions would be greatly 
appreciated. 
  | 

It does indeed make sense.  See JIRA issue JBREM-666 
(http://jira.jboss.com/jira/browse/JBREM-666 ).  

This problem was fixed in the Remoting 2.2.0 releases, the most recent of which 
is 2.2.0.SP4. Which version of the Application Server are you using?  The 
latest GA release, 4.2.0.GA, comes with Remoting 2.2.0.SP4.  If you can't 
upgrade that far, then you might try getting the latest version of EJB3, which, 
I believe, should work with Remoting 2.2.0.  This could cause problems for 
other Remoting clients which depend on an older version of Remoting.  In that 
case, look into scoped deployment, which allows different applications to use 
different library versions.  See, for example, the wiki page 
"ClassLoadingConfiguration" 
(http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration).

-Ron

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057954#4057954

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057954
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread javajedi
Thanks Ron.  Yeah, I came across JBREM-409 a few days ago, and had already 
applied that patch from 1.4.6 (which seems to have been tagged in CVS but never 
released) to our code.  So this problem definitely seems to still exist in 
1.4.6.

Upgrading the EJB implementation and going to Remoting 2.2.x is a bit more 
drastic, as we've been testing and tuning the current code base for months, and 
an upgrade of that magnitude could invalidate a lot of work.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057953#4057953

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057953
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: jboss portal and mysql

2007-06-26 Thread angraze
You must degrade your jdk version to 1.4.x or 1.5. I was on jdk 1.6 and faced 
the problem. If i run JBoss portal on 1.4.2 jre i dont see the problem. :) Dont 
know where is the problem? JRE / Jboss?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057952#4057952

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057952
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread [EMAIL PROTECTED]
anonymous wrote : 
  | This is how the ServerThreads could miss the notifies from the 
ServerSocketInvoker (seems much more likely):
  | 
  | (1) A ServerThread finishes processing, calls clientpool.notify() and is 
then suspended by the scheduler
  | (2) ServerSocketInvoker wakes up and calls ServerThread.notify
  | (3) The ServerThread then calls this.wait() and waits forever because it 
missed the ServerSocketInvoker's notify
  | 
  | Each time this happens, it would take a ServerThread out of comission. 
Eventually you'd run out of ServerThreads. 
  | 

Before we get in too deep here, check out thread "Important bug in thread pool 
management" (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=80814 )
and JIRA issue JBREM-409 (http://jira.jboss.com/jira/browse/JBREM-409).  This 
bug was fixed as of Remoting version 1.4.5.GA, but JBoss Application Server 
4.0.5, for example, comes with Remoting 1.4.3.GA.  You should be able to just 
drop in jboss-remoting.jar from, say, version 1.4.6.GA (the latest in the 1.x 
line).  Moreover, I believe that the latest version of EJB3 should run with the 
newest version of Remoting, which is 2.2.0.SP4.  

Let me know whether upgrading solves the problem.

-Ron

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057950#4057950

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057950
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Bug? Seam-2.0-Beta - HttpSession Creation

2007-06-26 Thread PatrickMadden
Hi I've been using Seam 1.3.alpha for a while and I just upgraded to Seam 2.0 
Beta from CVS on June 26th middle of the day. Just curious if there is a known 
problem with the following:

In my web.xml I define some standard http session listeners as follows:


  | 
  | 
com.clooster.web.context.SearchSessionListener
  |  
  | 

The code for the listener is as follows:

  | package com.clooster.web.context;
  | 
  | import java.util.logging.Level;
  | 
  | import javax.servlet.http.HttpSessionAttributeListener;
  | import javax.servlet.http.HttpSessionBindingEvent;
  | import javax.servlet.http.HttpSessionEvent;
  | import javax.servlet.http.HttpSessionListener;
  | 
  | import com.clooster.web.util.IdToSessionMap;
  | import com.clooster.xjava.common.XSystem;
  | 
  | /**
  |  * 
  |  * @author PatrickMadden
  |  *
  |  */
  | public class SearchSessionListener implements HttpSessionListener, 
HttpSessionAttributeListener
  | {
  | public SearchSessionListener()
  | {
  | super();
  | XSystem.logInfo("Search Session Listener Allocation");
  | }
  | 
  | public void sessionCreated(HttpSessionEvent evt)
  | {
  | XSystem.logInfo("Session Created = " + evt.getSession().getId());
  | IdToSessionMap.getInstance().addHttpSession(evt.getSession());
  | SessionController.getInstance(evt.getSession().getId());   
  | }
  | 
  | public void sessionDestroyed(HttpSessionEvent evt)
  | {
  | XSystem.logInfo("Session Destroyed = " + evt.getSession().getId());
  | IdToSessionMap.getInstance().removeHttpSession(evt.getSession());
  | SessionController.freeInstance(evt.getSession().getId());
  | }
  | 
  | public void attributeAdded(HttpSessionBindingEvent evt)
  | {
  | logSesionBindingEvent("Added Session attribute: {0} and value: 
{1}.", evt);
  | }
  | 
  | public void attributeRemoved(HttpSessionBindingEvent evt)
  | {
  | logSesionBindingEvent("Removed Session attribute: {0} and value: 
{1}.", evt);
  | }
  | 
  | public void attributeReplaced(HttpSessionBindingEvent evt)
  | {
  | logSesionBindingEvent("Replaced Session attribute: {0} and value: 
{1}", evt);
  | }
  | 
  | protected void logSesionBindingEvent(String msg,
  | HttpSessionBindingEvent evt)
  | {
  | Object[] params = new Object[2];
  | params[0] = evt.getName();
  | params[1] = evt.getValue();
  |
  | if (XSystem.isLoggable(Level.FINE))
  | XSystem.log(Level.FINE, msg, null, params);
  | params = null;
  | }
  | }
  | 

However when the above session created method is called I end up in an endless 
loop resulting in crap. Not sure if it is my problem but I created a new 
project using the new Seam Gen and grabbed my old code and put it in the new 
project.

Here is the call stack once SessionCreated gets called:

anonymous wrote : 
  | 01:15:50,171 INFO  [Contexts] starting up: org.jboss.seam.web.session
  | 01:16:29,031 ERROR [STDERR] Jun 27, 2007 1:16:29 AM 
com.clooster.web.context.SearchSessionListener 
sessionCreated(SearchSessionListener.java:28)
  | INFO: Session Created = 712DBE644035CA78D696353AC6C7
  | 01:16:57,968 INFO  [Contexts] starting up: org.jboss.seam.security.identity
  | 01:16:58,000 INFO  [Contexts] starting up: org.jboss.seam.web.session
  | 01:17:00,062 ERROR [STDERR] Jun 27, 2007 1:17:00 AM 
com.clooster.web.context.SearchSessionListener 
sessionCreated(SearchSessionListener.java:28)
  | INFO: Session Created = 9BEFD3CEB5AA329B2B1C74F0718EF8AC
  | 01:17:01,031 INFO  [Contexts] starting up: org.jboss.seam.security.identity
  | 01:17:01,046 INFO  [Contexts] starting up: org.jboss.seam.web.session
  | 01:17:01,765 ERROR [STDERR] Jun 27, 2007 1:17:01 AM 
com.clooster.web.context.SearchSessionListener 
sessionCreated(SearchSessionListener.java:28)
  | INFO: Session Created = 6CF43352A77FE107B9AC9E1D2B73FE13
  | 01:17:48,656 INFO  [Contexts] starting up: org.jboss.seam.security.identity
  | 01:17:48,656 INFO  [Contexts] starting up: org.jboss.seam.web.session
  | 01:17:50,906 ERROR [STDERR] Jun 27, 2007 1:17:50 AM 
com.clooster.web.context.SearchSessionListener 
sessionCreated(SearchSessionListener.java:28)
  | INFO: Session Created = BFB33DC9C2BE5EA4EDDA3A5D4315D71C
  | 01:17:50,906 INFO  [Contexts] starting up: org.jboss.seam.security.identity
  | 01:17:50,906 INFO  [Contexts] starting up: org.jboss.seam.web.session
  | 01:17:51,921 ERROR [STDERR] Jun 27, 2007 1:17:51 AM 
com.clooster.web.context.SearchSessionListener 
sessionCreated(SearchSessionListener.java:28)
  | INFO: Session Created = 17CE9ADF31DF5A8299E6A307BF4CC3B9
  | 01:17:51,921 INFO  [Contexts] starting up: org.jboss.seam.security.identity
  | 01:17:51,921 INFO  [Contexts] starting up: org.jboss.seam.web.session
  | 01:17:52,953 ERROR [STDERR] Jun 27, 200

[jboss-user] [JBoss Seam] - Re: Decorating with a fileUpload tag

2007-06-26 Thread utiba_davidr
Hey,

  You need to set the "for" parameter to the id of the field that the label is 
for. In this case it's "upload_#{idx}". You should be able to pass this to the 
template your decorating via a parameter (see the facelets documentation). I am 
not entirely sure whether decorate can take parameters, if it cannot - you may 
be better using a composition / insert combination.



Cheers,

David

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057948#4057948

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057948
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - changing jboss-web.xml in application requires restart of jB

2007-06-26 Thread rajeshchande
Hello 

I have web application running fine on JBoss 4.2.0GA app server, Solaris 10. 

When I change anything in my "WEB-INF/jboss-web.xml" and then redeploy the new 
WAR file, after successful redeployment the changes done in the jboss-web.xml 
do not take affect. 

I have to restart the jBoss instance and then only the changes come in effect. 

Can anyone please confirm if thats  normal?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057946#4057946

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057946
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS & JBossMQ] - Persistence and caching using Oracle

2007-06-26 Thread Honest
In my application i use jboss-4.2.0GA. As persistence storage for JMS i use 
Oracle(oracle-jdbc2-service.xml), before this i use default 
storage(hsqldb-jdbc2-service.xml). And on my application work this error raise: 


  | 11:01:40,453 WARN  [arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.BasicAction_58] - Abort of act
  | ion id a001912:12dc:467bdf8d:2385f invoked while multiple threads active 
within it.
  | 11:01:40,453 WARN  [arjLoggerI18N] 
[com.arjuna.ats.arjuna.coordinator.CheckedAction_2] - CheckedActi
  | on::check - atomic action a001912:12dc:467bdf8d:2385f aborting with 1 
threads active!
  | 11:01:40,453 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 11:01:40,453 ERROR [JDBCExceptionReporter] Transaction is not active: 
tx=TransactionImple < ac, BasicAction: a001912:12dc:467bdf8d:2385f status: 
ActionStatus.ABORTED >; - nested throwable: (javax.resource.ResourceException: 
Transaction is not active: tx=TransactionIm
  | ple < ac, BasicAction: a001912:12dc:467bdf8d:2385f status: 
ActionStatus.ABORTED >)
  | 11:01:40,484 ERROR [TxInterceptorCMT] IllegalStateException while setting 
transaction for rollback o
  | nly
  | java.lang.IllegalStateException: 
[com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.
  | arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is 
not active!
  |  at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.setRollbackOnly(Transact
  | ionImple.java:344)
  |  at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:157)
  |  at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
  |  at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
  |  at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
  |  at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
  |  at 
org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:278)
  |  at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.jav
  | a:138)
  |  at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
  |  at org.jboss.ejb.Container.invoke(Container.java:960)
  |  at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
  |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  |  at java.lang.reflect.Method.invoke(Unknown Source)
  |  at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  |  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  |  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |  at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  |  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  |  at 
org.jboss.invocation.unified.server.UnifiedInvokerHA.invoke(UnifiedInvokerHA.java:146)
  |  at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
  |  at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
  |  at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383)
  |  at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
  | 

When i use default storage all work normal. Please help!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057945#4057945

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057945
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: generating a Primary Key using a Sequence in JPA

2007-06-26 Thread ashusri000
Hi ,
What I am trying to do is , simply trying to persist a new Object every time 
the main method gets called and could not see anypoint where there are multiple 
/ double call to sequence. The sequence that I am using is not already defined 
in the database , I have defined it in the code itself.
Here is the code :


import java.io.Serializable;

import java.util.HashMap;

import javax.persistence.Entity;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Id;
import javax.persistence.Persistence;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.SequenceGenerator;

import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;

@Entity
@Table(name="TAB1")
@DiscriminatorColumn(name="ID", discriminatorType = DiscriminatorType.INTEGER)
public class Tab1 implements Serializable {
@Id
@GeneratedValue(strategy=GenerationType.TABLE, generator = "tabGen")
@SequenceGenerator(name="tabGen" , allocationSize=1)
@Column(name="ID")
private long id;

private String val;

private static final long serialVersionUID = 1L;

public Tab1() {
super();
this.val= "hello";
}

public long getId() {
return this.id;
}

public void setId(long id) {
this.id = id;
}

public String getVal() {
return this.val;
}

public void setVal(String val) {
this.val = val;
}
public static void main(String[] args) {
EntityManagerFactory emf =
Persistence.createEntityManagerFactory("testApp", new HashMap());
EntityManager em = emf.createEntityManager();

try{
em.getTransaction().begin();
em.persist(new Tab1());
System.out.println("Done");
em.getTransaction().commit();
System.out.println("Entered the Values");
}catch (Exception e) {
e.printStackTrace();
}finally{
em.close();
}
}
}

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057942#4057942

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057942
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossCache] - uninitialized nodes

2007-06-26 Thread aditsu
Hi, I'm using jboss-cache 1.4.1.SP3; I'd like to understand when and especially 
why some nodes are marked as uninitialized.

When the app starts, I insert some data into the cache (using put(Fqn, Map)), 
but it looks like the maps get added an extra key 
("jboss:internal:uninitialized") which leads to 2 things I definitely do NOT 
want:
- when I try to get a node, the cache goes to the cacheloader to load the data 
(although it is already in memory)
- when I use getChildren, the child nodes are retrieved with the extra key in 
their data map, which wreaks havoc in the app logic

Here's some details about the cache configuration:
- mode = REPL_SYNC
- isolation = READ_COMMITTED
- no eviction policy
- no passivation

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057941#4057941

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057941
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Page parameter and returnToCapturedView

2007-06-26 Thread fernando_jmt
Hi.

I have page parameter registered with a converter which encrypts and decrypts 
the value, something like this:


  | 
  | 
  | 
  | 

I also have registered the following in components.xml:

  | 
  | 
  | 
  | 
  | 
  | 
  | 

I have the following scenario:

1.- Log in.
2.- In the user list copy one of the urls with the page param encrypted: 
http://localhost:8080/myapp/admin/user.jsf?id=x5JyJWpACE4*
3.- Log off the application (I'm forcing this, but it supposes the session 
expired).
4.- Copy the url of the point 2. into the browser address bar, and hit enter.
5.- cipherConverter is called, specifically the getAsObject of the converter is 
called. Of course this method will convert the encrypted id to Long.
6.- The Login form is called, I write the account info and then log in.
7.- Immediately cipherConverter is called again. The getAsObject of the 
converter is called, but the value passed is the decrypted by the point 5. In 
this point I will always get an exception because the getAsObject expects an 
encrypted string, but the value passed in is an decrypted string (the long as 
string).

Is the execution of the point 5 right? 
Why is invoking the converter first and then capturing the decrypted param? 
Is there a way I can follow to get this working fine?


Thanks in advance for your help.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057940#4057940

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057940
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - How to create multiple instances of CMS portlet which displa

2007-06-26 Thread nishadahiya
Hi,

how we can create multiple instances of CMS portlet which can display different 
file content. is any any configuration is required to be done in CMS portlet 
deployed xml file. please, tell me the step. brief idea would also help.

thanks for help.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057939#4057939

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057939
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread jahlborn
I do believe there is another possible notification issue.  I've seen this 
pattern in the jdk code.  I believe a thread which is waiting can get 
interrupted at about the same time that it is notified.  if the 
InterruptedException is just thrown, that notification will be lost.  If you 
look in some of the jdk code, they have essentially:


  | synchronized(obj) {
  |   try {
  | obj.wait();
  |   } catch(InterruptedException e) {
  | obj.notify();
  | throw e;
  |   }
  | }
  | 

This way an interrupted thread will not cause a notification to be lost.  
obviously, you can generate spurious notifications, so your code needs to 
handle that as well.  but generally, extra notifications is better than lost 
notifications.  

To bring it back to the referenced code:
(1) SocketServerInvoker could be doing the clientpool.wait()
(2) ServerThread sends a notification
(3) SocketServerInvoker gets interrupted and notified and bails out, swallowing 
the notification

I'm not sure what scenarios might cause the SocketServerInvoker to be 
interrupted, but certainly system stress might do it.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057938#4057938

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057938
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Dynamic Table with Seam

2007-06-26 Thread mgrouch
Is there anything like Tomahawk's t:columns in richfaces or seam?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057937#4057937

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057937
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Adding attributes to s:fileUpload

2007-06-26 Thread davidfed
-- Seam 1.2.1 standard setup --

I needed to add onclick, onfocus and onblur events to my s:fileUpload tags but 
the attributes weren't showing up in the html.  So I added them to 
UIFileUpload.java.  Is this the correct way to do this?


  | Index: UIFileUpload.java
  | 
  | ===
  | 
  | --- UIFileUpload.java   (revision 5)
  | 
  | +++ UIFileUpload.java   (working copy)
  | 
  | @@ -25,7 +25,10 @@
  | 
  |
  | private String accept;
  | private String styleClass;
  | -   private String style;   
  | +   private String style;  
  | +   private String onclick;
  | +   private String onfocus;
  | +   private String onblur;
  | 
  | @Override
  | public void decode(FacesContext context)
  | @@ -151,7 +154,22 @@
  | 
  |{
  |   writer.writeAttribute(HTML.STYLE_ATTR, style,  null);
  |}
  | -  
  | +  
  | +  if (onclick != null)
  | +  {
  | + writer.writeAttribute(HTML.ONCLICK_ATTR, onclick,  null);
  | +  }
  | +  
  | +  if (onfocus != null)
  | +  {
  | + writer.writeAttribute(HTML.ONFOCUS_ATTR, onfocus,  null);
  | +  }
  | +  
  | +  if (onblur != null)
  | +  {
  | + writer.writeAttribute(HTML.ONBLUR_ATTR, onblur,  null);
  | +  }
  | +  
  |writer.endElement(HTML.INPUT_ELEM);
  | }
  | 
  | @@ -191,4 +209,34 @@
  | 
  |this.styleClass = styleClass;
  | }
  |  
  | +   public String getOnblur()
  | +   {
  | +  return onblur;
  | +   }
  | +
  | +   public void setOnblur(String onblur)
  | +   {
  | +  this.onblur = onblur;
  | +   }
  | +
  | +   public String getOnclick()
  | +   {
  | +  return onfocus;
  | +   }
  | +
  | +   public void setOnclick(String onclick)
  | +   {
  | +  this.onclick = onclick;
  | +   }
  | +
  | +   public String getOnfocus()
  | +   {
  | +  return onfocus;
  | +   }
  | +
  | +   public void setOnfocus(String onfocus)
  | +   {
  | +  this.onfocus = onfocus;
  | +   }
  | +
  |  }
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057936#4057936

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057936
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-26 Thread [EMAIL PROTECTED]
Quessir, can you try following the instructions here: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=InstallingJBossToolsNightlyBuilds?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057935#4057935

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057935
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Decorating with a fileUpload tag

2007-06-26 Thread davidfed
--Seam 1.2.1 standard setup--

I have this page source:


  | 
  |   
  | #{messages.attachFileLabelFile}
  |   
  |   
  | #{messages.attachFileGuidanceFile}
  |   
  |   
  | 
  | 

with this template:


  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  | 
  |   
  |   
  | 
  | 
  |   
  | 
  | 

And I get these complaints in the console:


  | 18:59:50,935 WARN  [HtmlLabelRenderer] Attribute 'for' of label component 
with id attachFile:_id75 is not defined
  | 18:59:51,935 ERROR [HtmlMessageRendererBase] Attribute 'for' of UIMessage 
must not be null
  | 

When I break into HtmlMessageDecoration.getInputId() I see that it walks 
through the subtree of the decorate tag looking for an EditableValueHolder 
subclass to get the id to insert in the 'for' tag.  It doesn't think the 
fileUpload qualifies and doesn't set a 'for' attribute.  HtmlLabelDecoration 
has the same problem.

The result is that clicking on the label doesn't focus the input field and the 
field specific error messages don't show up.

Is there an easy way to solve this?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057933#4057933

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057933
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - HOWTO Install JBoss Tools Nightly Builds

2007-06-26 Thread [EMAIL PROTECTED]
I've written a wiki page on how to install the nightly builds for JBoss Tools.  
It's not really that hard once you understand what you need to do.  Please feel 
free to apply any fixes to the wiki, so long as you know what you are doing.

http://wiki.jboss.org/wiki/Wiki.jsp?page=InstallingJBossToolsNightlyBuilds

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057934#4057934

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057934
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread gurgstar
Not sure how we got into this state, but its clearly a deadlock...

(1) SocketServerInvoker is stuck on clientpool.wait()
(2) maxPoolSize ServerThreads are all stuck on this.wait()
(3) At least one ServerThread must call clientpool.notify() to wake up the 
SocketServerInvoker
(4) SocketServerInvoker must be woken up in order to call notify on at least 
one ServerThread.

The deadlock is clear enough, but not sure how we got there other than what 
appears to be a very small chance of a lost wakeup...

ServerSocketInvoker:

  | while (thread == null) {
  | synchronized (threadpool) {
  | if (threadpool.size() > 0) {
  | thread = (ServerThread) threadpool.removeFirst();
  | }
  | }
  | if (thread == null) {
  | synchronized (clientpool) {
  | if (clientpool.size() < maxPoolSize) {
  | thread = new ServerThread(socket, this, clientpool, 
threadpool, getTimeout(), serverSocketClass);
  | newThread = true;
  | }
  | if (thread == null) {
  | clientpool.evict();
  | if (trace) {
  | log.trace("Waiting for a thread...");
  | }
  | clientpool.wait();
  | if (trace) {
  | log.trace("Notified of available thread");
  | }
  | }
  | }
  | }
  | }
  | 
ServerThread:

  |synchronized (this) {
  |synchronized (clientpool) {
  |synchronized (threadpool) {
  |if (shutdown) {
  |invoker = null;
  |return; // exit thread
  |} else {
  |clientpool.remove(this);
  |threadpool.add(this);
  |Thread.interrupted(); // clear any 
interruption so that we can be pooled.
  |clientpool.notify();  //273
  |}
  |}
  |}
  |try {
  |log.debug("begin thread wait");
  |this.wait();  // 280
  |log.debug("WAKEUP in SERVER THREAD");
  |} catch (InterruptedException e) {
  |if (shutdown) {
  |invoker = null;
  |return; // exit thread
  |}
  | 
  |throw e;
  |}
  |}
  | 

There is the potential for lost wakeups in both directions.  The 
ServerSocketInvoker can miss the ServerThread notifies, and the ServerThreads 
can miss the ServerSocketInvoker's notifies.

This is how the ServerSocketInvoker could miss the notifies form the 
ServerThreads (seems very unlikely):

(1) ServerSocketInvoker sees that the threadpool is empty
(2) All the ServerThreads then finish processing and call clientpool.notify()
(3) ServerSocketInvoker calls clientpool.wait() and will wait forever cause it 
missed the notifies

This is how the ServerThreads could miss the notifies from the 
ServerSocketInvoker (seems much more likely):

(1) A ServerThread finishes processing, calls clientpool.notify() and is then 
suspended by the scheduler
(2) ServerSocketInvoker wakes up and calls ServerThread.notify
(3) The ServerThread then calls this.wait() and waits forever because it missed 
the ServerSocketInvoker's notify

Each time this happens, it would take a ServerThread out of comission.  
Eventually you'd run out of ServerThreads.






View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057930#4057930

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057930
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Layering / overloading resources approach

2007-06-26 Thread utiba_davidr
Hey,

  Thanks heaps for this. I believe overloading the ResourceResolver is the best 
option for layering XHTML files. With a method simmilar to:

public URL resolveUrl(String resource) {
  | String[] locations = {"", "/true/umarket", "/umarket"};
  | 
  | URL url = null;
  | for (String resourcePrefix: locations) {
  | url = getClass().getClassLoader().getResource(resourcePrefix + 
resource);
  | 
  | if (url != null)
  | break;
  | }
  | 
  | if (url == null) {
  | url = super.resolveUrl(resource);   
  | }
  |
  | return url;
  | }
  | 
  |  ... elsewhere ... for the request ...
  | 
  |resolveUrl("/agent/list_agents.wt");

This will traverse the class path, scanning under 3 prefixes. Of course I will 
make the prefixes configurable (perhaps inside the MANIFEST.MF of each XHTML 
jar file).

As for laying the pages/components xml files - I will have to wait until I have 
time to play around to see what works best there. Thanks for letting me know 
that worst case scenario I can overload the Pages component.

Cheers,

David

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057928#4057928

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057928
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Handling database exceptions

2007-06-26 Thread [EMAIL PROTECTED]
You can't. If a flush fails and an exception propagates out of the database, 
there is no practical way for the ORM to figure out what the current state of 
the database is, and resynchronize the in-memory state to that.

Check your constraint first.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057926#4057926

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057926
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How would you create a reusable yes/no|chooser page?

2007-06-26 Thread [EMAIL PROTECTED]
I understand that a Richfaces popup is good for this, but I don't remember the 
exact details from my talk with Igor. Ask in the RichFaces forum.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057927#4057927

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057927
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How would you create a reusable yes/no|chooser page?

2007-06-26 Thread grettke_spdr
Hi folks,

There are a number of places where we need to prompt the user "Would you like 
to... yes or no" and based on the answer either redirect or perform a certain 
action (and then redirect).

Is it possible to create a reusable page to do something like this? Even if we 
want a method on a component called on the submission of the users choice?

Alternately we could use one for each page, of course.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057925#4057925

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057925
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to create hibernate criteria

2007-06-26 Thread [EMAIL PROTECTED]
What version of JBoss is this? An old version I think.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057924#4057924

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057924
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How best to leverage Seam when you've got a HUGE domain?

2007-06-26 Thread [EMAIL PROTECTED]
I don't think its strange to use Seam in such a system. And you're exactly 
right to think along the lines of DTOs. For a simple application I hate DTOs, 
but if we are building services you are going to have to flatten your model at 
*some* point, and its just a question of doing it in Java vs. doing it in XML 
rendering. If you're using something like JAXB for getting stuff out of your 
services, then you should do it in Java. My preference is for a more rest-like 
approach where I would render XML using a template (facelets, perhaps) and the 
template s responsible for flattening the data in the entities.

Still not sure what a "component" is. More like a remote EJB?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057923#4057923

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057923
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Using facelets in .xml files

2007-06-26 Thread utiba_davidr
The following defines what file extension to look up:

   
  |   javax.faces.DEFAULT_SUFFIX
  |   .xhtml
  |

And the following defined what extension to provide in the URL to match the 
.xhtml file:


  | ajax4jsf
  | *.seam
  | 

Based on this, it would appear that you can have multiple definitions for the 
URL extension to map as it's a filter. But you can only map these to one 
extension to look up - unless you do some fancy stuff like overload the 
ViewHandler 
(http://www.nabble.com/mixing-clay-full-html-and-full-xml-views-t2070241.html).

So, to make it prettier; Define two entry point extension to provide in the URL 
to match the .xhtml file:


  | 
  | ajax4jsf
  | *.seam
  | 
  | 
  | 
  | ajax4jsf
  | *.xml
  | 
  | 
  |
  |   javax.faces.DEFAULT_SUFFIX
  |   .xhtml
  |
  | 

Then make a request to http://localhost:8080/context/goals.xml which will 
render a file named "goals.xhtml".


Cheers,

David

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057922#4057922

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057922
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - log4j error in Tomcat 6

2007-06-26 Thread tptackab
I'm seeing this NullPointer error when I shutdown Tomcat 6.0.13:

INFO: Stopping service Catalina
  | Jun 26, 2007 4:49:57 PM org.apache.catalina.core.ApplicationContext log
  | INFO: SessionListener: contextDestroyed()
  | Jun 26, 2007 4:49:57 PM org.apache.catalina.core.ApplicationContext log
  | INFO: ContextListener: contextDestroyed()
  | ContextListener: attributeRemoved('com.sun.faces.config.WebConfiguration', 
'[EMAIL PROTECTED]')
  | 16:49:57,541 INFO  [SessionFactoryImpl] closing
  | Failed to initalize plugin: [EMAIL PROTECTED]
  | Failed to initalize plugin: [EMAIL PROTECTED]
  | Jun 26, 2007 4:49:57 PM org.apache.coyote.http11.Http11Protocol destroy
  | INFO: Stopping Coyote HTTP/1.1 on http-8080
  | Exception in thread "Thread-2" java.lang.NullPointerException
  | at 
org.apache.log4j.helpers.PatternConverter.spacePad(PatternConverter.java:98)
  | at 
org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:71)
  | at org.apache.log4j.PatternLayout.format(PatternLayout.java:495)
  | at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:292)
  | at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)
  | at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)
  | at 
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
  | at org.apache.log4j.Category.callAppenders(Category.java:187)
  | at org.apache.log4j.Category.forcedLog(Category.java:372)
  | at org.apache.log4j.Category.log(Category.java:864)
  | at org.jboss.logging.Log4jLoggerPlugin.info(Log4jLoggerPlugin.java:160)
  | at org.jboss.logging.Logger.info(Logger.java:187)
  | at 
org.jboss.kernel.plugins.bootstrap.standalone.StandaloneBootstrap$Shutdown.run(StandaloneBootstrap.java:123)

I'm using the following log4j config file just as I found it in the JPA (tomcat 
pojo) example in Seam 1.3.0 ALPHA:


  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | http://jakarta.apache.org/log4j/"; 
debug="false">
  |
  |
  |   
  |   
  | 
  |   
  |  
  |   
  |
  |
  |
  | 
  |
  |
  |
  | 
  |
  |   
  |   
  |
  | 
  | 
  | 

I'm using the exact same library set from the JPA example except the two 
el-*.jar libs (wouldn't run with those in place).

The application seems to work fine, it's just the exception on shutdown makes 
me nervous. 

Is this an indication of trouble elsewhere? Any suggestions on how to make it 
go away would be very much appreciated.

Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057920#4057920

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057920
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: Un/Marshaller not found

2007-06-26 Thread hurzeler
Please help I am really stuck.

I use JBoss 4.0.5GA with Jboss remoting 1.4.0. The question is how do I get the 
socket server configured so that it accepts simple text. I have created three 
extra classes SimpleInputStreamWrapper which just returns the input and 
outputstreams and the two marshallers like:

  | package com.test.socket.V75SocketServer;
  | 
  | import java.io.BufferedReader;
  | import java.io.IOException;
  | import java.io.InputStream;
  | import java.io.InputStreamReader;
  | import java.io.Reader;
  | import java.util.Map;
  | 
  | import org.jboss.remoting.marshal.serializable.SerializableUnMarshaller;
  | 
  | /**
  |  * @author hurzeler
  |  *
  |  */
  | public class TextUnMarshaller extends SerializableUnMarshaller
  | {
  | 
  | /**
  |  * 
  |  */
  | private static final long serialVersionUID = -5026128440188409051L;
  | 
  | /**
  |  * 
  |  */
  | 
  | public TextUnMarshaller(){}
  | 
  | @Override
  | public Object read(InputStream is, Map map) throws IOException, 
ClassNotFoundException
  | {
  | StringBuffer buffer = new StringBuffer();
  | try {
  | InputStreamReader isr = new InputStreamReader(is, "UTF8");
  | Reader in = new BufferedReader(isr);
  | int ch;
  | while ((ch = in.read()) > -1) {
  | buffer.append((char)ch);
  | }
  | in.close();
  | return buffer.toString();
  | } catch (IOException e) {
  | e.printStackTrace();
  | return null;
  | }
  | 
  | }
  | 
  | }

However the un/marshaller gets never called.
Please help!!!

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057919#4057919

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057919
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: #{taskInstance} is null on Notify='yes'

2007-06-26 Thread kukeltje
James,

If you can provide a unit test that I can run out of the box and that 
demonstrates the problem, I can look into it. It would take to much time for me 
to create a test case for this.



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057918#4057918

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057918
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & Deployment] - Log4JLogger' cannot be found or is not useable

2007-06-26 Thread woohoo
hi all,
I have a completely new installation of jboss-4.2.0.GA.
when starting it for the first time, I got the following exception (more than 
once):

"org.apache.commons.logging.LogConfigurationException: User-specified log class 
'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not 
useable."

when googling for this phrase I get between 7 and 50 (!) hits (read: as good as 
nothing...so it doesn't seem to be a common problem), depending on whether I 
search for the exact phrase or not - and none of these proved helpful.
well, one seemed promising: it's from the jakarta-commons wiki 
(http://wiki.apache.org/jakarta-commons/Logging/FrequentlyAskedQuestions, the 
last one at the bottom). 
following this, I verified that the Log4J.class in commons-logging.jar has an 
overloaded constructor with a String argument (not only the default one, which 
apparently yields problems). and yes, it does. I mean, no wonder, I did not 
change *anything*, the install is completely fresh any ideas?

BTW, I do NOT receive this exception with an older jboss-4.0.4.CR2 
installation
OS is Debian Linux (kubuntu).


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057917#4057917

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057917
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - Re: EJB3/Socket invoker - connection timeouts

2007-06-26 Thread gurgstar
severSocketConstructor.newInstance() reads from the socket, then the 
socket.setTimeout() is called

Even if a socket timeout is set, if something just connects to the port and 
never writes anything, this code will hang indefinitely

ServerThread.java:183-191

  if(serverSocketConstructor.getParameterTypes().length == 3)
  {
 serverSocketWrapper = (SocketWrapper) 
serverSocketConstructor.newInstance(new Object[]{socket, metadata, new 
Integer(timeout)});
  }
  else
  {
 serverSocketWrapper = (SocketWrapper) 
serverSocketConstructor.newInstance(new Object[]{socket});
 serverSocketWrapper.setTimeout(timeout);
  }

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057915#4057915

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057915
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Manager.instance().beginNestedConversation() throws Exceptio

2007-06-26 Thread chane
I am using Seam 1.2.0p1 with Jboss 4.0.4.

When I execute the following code, an Exception is thrown.  Any ideas on what 
I'm doing wrong:

@Name(value="com.importSale")
  | @Stateless
  | public class ImportSale implements IImport {
  |
  |@In(create = true)
  |protected EntityManager em;
  | 
  |private State state;
  |
  |public void processXML(ParseFile parseFile, State state, Element record) 
{
  |   Manager.instance().beginNestedConversation("com.importSale"); //<-- 
Exception thrown here
  |   
  |}
  | }
  | 

Also,  this method is not directly called from Seam.  It is called from another 
SFSB (which is called from Seam).  The call is

@Name(value="com.ShopConnection")
  | @Stateless
  | public class ShopConnection extends ParseFile implements IJob {
  | 
  |private String channel = null;
  |private Parse1ShoppingCart parser;
  |
  |@In(value="com.importSale", create=true)
  |private IImport sale;
  |
  |protected void processXML(Element record){
  |  sale.processXML(this, state, record);
  |}
  | }
  | 

Thanks,
Chris


javax.ejb.EJBTransactionRolledbackException: java.lang.IllegalStateException: 
No modifications are allowed to a locked ParameterMap
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
  | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:181)
  | at 
org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79)
  | at $Proxy631.processXML(Unknown Source)
  | at 
com.itsolut.service.importXML.shoppingCart.IImport$$FastClassByCGLIB$$36198df4.invoke()
  | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:74)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
  | at 
com.itsolut.service.importXML.shoppingCart.IImport$$EnhancerByCGLIB$$88879f77.processXML()
  | at 
com.itsolut.service.importXML.shoppingCart.ShopConnection.processXML(ShopConnection.java:69)
  | at 
com.itsolut.service.importXML.ParseFile.processFile(ParseFile.java:102)
  | at 
com.itsolut.service.importXML.ParseFile.execute(ParseFile.java:56)
  | 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:585)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  | at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  | at 
com.itsolut.seam.interceptor.UncaughtExceptionInterceptor.handleExceptions(UncaughtExceptionInterceptor.java:37)
  | 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:585)
  | at 
org.jboss.ejb3.interceptor.InvocationConte

[jboss-user] [JBoss jBPM] - Re: Decision using java code

2007-06-26 Thread kukeltje
 look at testcases using the decisionhandler...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057913#4057913

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057913
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Conversation problem in popup window

2007-06-26 Thread texan
I can't start a new conversation when using a popup window.

Seam 1.2.1, JBoss 4.0.5, IceFaces 1.6DR5

The main window has a list of "Rule" objects.  Clicking on a Rule opens up a 
new window for editing the rule.

To accomplish the popup, I created a "virtual" entry in pages.xml:


  | 
  | 
  | 

The "editDocumentRule" ejb session is conversational and the "edit" method is 
annotated with "@Begin".

I load the page via javascript like this:

window.open("/int-monitoring/jsf/rules/EditDocumentRuleEntry.seam?id="+id, "", 
"location=no,status=no,toolbar=no,resizable=yes,scrollbars=yes,directories=no,height=400,width=800");

The javascript is invoked from my table like this:




When I click a link the first time, all is well.  Clicking a second link 
results in the following error:

java.lang.IllegalStateException: begin method invoked from a long running 
conversation, try using @Begin(join=true) on method: edit

I do not want to join the conversation: I want to begin a new one!  I don't 
understand why the system thinks that I'm invoking "edit()" from within the 
existing conversation!



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057912#4057912

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057912
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-26 Thread Quessir
I'm also using this configuration from "JBoss Tools Build Result". But, anyway, 
it doesn't work. :(

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057909#4057909

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057909
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Portal] - Re: CMS and HTML tables?

2007-06-26 Thread Antoine_h
Hello,
RTE ?
you mean Rich Text Editor ?
you have a button to create a table, no ?

more precision of your problem...



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057906#4057906

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057906
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How to reach validation messages with EL

2007-06-26 Thread superfis
I have added feature request http://jira.jboss.org/jira/browse/JBSEAM-1554

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057905#4057905

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057905
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How best to leverage Seam when you've got a HUGE domain?

2007-06-26 Thread grettke_spdr
"[EMAIL PROTECTED]" wrote : I don't fully understand what the difference 
between the two approaches is. By "DAO or service" you mean something in a 
different process?

Hi Gavin,

My post was a bit vague, now I hope to clear that up.

IAA is very, very large. There are so many classes in the domain, and on top of 
that the "dream" is that you will use SOA to get information about different 
parts of the domain. Quite literally they envision you using lots of services 
that get you domain objects. Out of the box there is not a notion of getting 
complex objects, instead you go to each service to get what you need. How do 
the services make sense of references to other domain objects? Using the 
ObjectReference class of course, which is basically a numeric Id an some kind 
of a description. 

Our goal is not to have folks worry about this complexity, and instead access a 
few services that "do the complicated work" behind the scenes. For example if 
we want to search for customers on address, the object graph behind the scenes 
may involve fourteen objects. We would like to provide a service "customer 
search" that shields the clients from this complexity. In particular the 
clients right now are the folks implementing the web application built around 
this domain. (As as aside, we won't use the full domain for the first rev of 
the app, nonetheless it is irrelevant to the client). This service model feels 
very much like the DTO approach to development, included is the "unique ID" in 
whatever form the "ObjectReference" takes. This seems in line with the spirit 
of IAA.

Behind the scenes we will use JPA to persist the domain. However, since it 
won't make sense to access that domain directly and make those entities 
components, we end up missing a big sweet spot of Seam: the notion of telling 
the UI folks to work with "these components" and then use the entity manager 
directly. 

All of this leads us to questions like "Is Seam the right tool for this job?" 
(I think yes, we can still leverage the rest of its features), and "How can we 
make it easy for the developers?".

Right now it seems like there are two approaches:

1. Use a "service" based approach that returns DTOs. The DTOs populate the Seam 
components, users modify them, and those updated DTOs get sent back to the 
service to handle the persistence. (This is exactly what Seam sets out to 
avoid).

2. Use a component "facade" where we delegate all of the work to the component. 
The notion that the component is responsible for persisting itself, so the 
developer can utilize its features. How it fulfills those responsibilities is 
not important to the developer. 

Perhaps my question should be "How best to leverage Seam in a strict SOA 
architecture?"...

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057903#4057903

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057903
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: problem caused by

2007-06-26 Thread ddai
THank you!

Then how should I fix the problem?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057902#4057902

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057902
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: problem caused by

2007-06-26 Thread ddai
THank you!

Then how should I fix the problem?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057901#4057901

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057901
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: problem caused by

2007-06-26 Thread ddai
THank you!

Then how should I fix the problem?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057901#4057901

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057901
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - Re: problem caused by

2007-06-26 Thread [EMAIL PROTECTED]
If you mark your app distributable, that means its contents are serialized and 
replicated after each request.  That means you can't put non-serializable 
objects in the session.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057900#4057900

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057900
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Adding Jbpm to an existing Seam application

2007-06-26 Thread [EMAIL PROTECTED]
What is the "path" to the execution of the method annotated with 
@CreateProcess.  Is the method being executed in the context of a Seam web 
application?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057899#4057899

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057899
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JNDI/Naming/Network] - Re: 10061: Connection refused

2007-06-26 Thread PeterJ
Did you read the readme.html file, specifically the first bullet under section 
"Configuration Issues"?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057897#4057897

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057897
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Nightly build error (2007-06-25): unable to deploy appli

2007-06-26 Thread ylazzari
Thank you.  I will try to look harder on the forum next time.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057896#4057896

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057896
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam & Maven2

2007-06-26 Thread jrizzo
Hi guys... I've updated a bit of the SeamDependencies page.  I have a bit more 
to go but I'll get it...  If anyone could take  a look I'd appreciate it.  

I'm usually on IRC, [EMAIL PROTECTED]:jboss :)

Thanks for the hard work.  I have to live in a mixed maven/ant world and if we 
were able to have a maven repo with all the seam dependencies properly 
maintained that would be a great thing.



I have a bit more to write but I'm at work now so I'll have to post later.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057895#4057895

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057895
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - problem caused by distributable tag

2007-06-26 Thread ddai
Hi folks,

My session replication just doesn't work. Once I add distributable tag into the 
web.xml, an exception was thrown. After I delete it, things look fine. So I 
guess maybe  is the trouble maker. Then what is the problem and what should I 
do to fix it?

Here is the outline of that error. Please help me. It is very important to me. 
Thanks a lot!!

HTTP Status 500 - 



type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

org.apache.jasper.JasperException: setAttribute: Non-serializable attribute

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
InputValidationFilter.doFilter(InputValidationFilter.java:54)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 

java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute

org.jboss.web.tomcat.tc5.session.ClusteredSession.setAttribute(ClusteredSession.java:532)

org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
org.apache.jsp.gcsMenu_jsp._jspService(gcsMenu_jsp.java:450)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
InputValidationFilter.doFilter(InputValidationFilter.java:54)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.20 logs.




Apache Tomcat/5.5.20

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057894#4057894

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057894
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Recommendation for layered architecture???

2007-06-26 Thread cwash
"[EMAIL PROTECTED]" wrote : Well, basically, I think these problem becomes much 
easier once you stop thinking in terms of "what layers should I have", and 
start thinking in terms of "what code do I have that is reusable when the 
client is not JSF, and what code do I have that is not reusable?", and then 
implement the reusable code into reusable Seam components.
  | 
  | This doesn't stop you from thinking about component dependencies, and about 
separation of concerns - in fact it makes it easier.
  | 
  | It's my strong belief that conceptualizing reusability in terms of "layers" 
has been the source of much evil in the Java world. I try to write reusable 
objects, not reusable layers. But this is not an approach that Seam forces upon 
you, it is just my approach.

That's an interesting way to look at it.  Do you feel you could say the same 
for loose-coupling, maintainability, scalability, and all of the arguments 
people give for layering?  Perhaps it's hard for people to see that a lot of 
the old-school layering techniques are done for you under the covers with Seam, 
and feel like they're taking the "red pill" by not self-imposing their own 
layers.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057891#4057891

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057891
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: Couldn't install eclipse plug-ins

2007-06-26 Thread fabio.quimbay
Initially I use this versions, but don't works for me:

- eclipse-SDK-3.3RC4-win32.zip
- wtp-sdk-S-2.0RC4-200706212235.zip
- GEF-ALL-3.3RC4.zip
- emf-sdo-xsd-SDK-2.3.0RC4.zip
- dtp-sdk_1.5RC4.zip
- JBossTools-200706241629-nightly-ALL-win32.zip

I try with the last version of this tools, and I saw the same error like you 
and others, well ... then, I saw this versions like at the page of the project:

- eclipse-SDK-3.3RC3-win32.zip
- wtp-sdk-S-2.0RC2-200706050057.zip
- GEF-SDK-3.3RC2.zip
- emf-sdo-xsd-SDK-2.3.0RC2.zip
- dtp-sdk_1.5RC2.zip
- JBossTools-200706241629-nightly-ALL-win32.zip

and works successfully for me. You can try with these.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057890#4057890

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057890
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Problem with enum datatype

2007-06-26 Thread imranpariyani
hello 

I have a problem with the enum datatye. If i try to get an entity with enum as 
a field in it every thing works fine the problem occurs when i have a native 
query with only the enum field ..
for example :

 
  | String query = "SELECT DISTINCT type FROM card WHERE type IS NOT NULL ORDER 
BY type";
  | return this.manager.createNativeQuery(query.toString()).getResultList(); 

as output instead of the enum string i get only the first character .. here is 
the debug output of jboss 


  | 2007-06-26 22:10:57,267 DEBUG [org.hibernate.SQL]  SELECT DISTINCT type 
FROM card WHERE type IS NOT NULL ORDER BY type
  | 2007-06-26 22:10:57,316 TRACE [org.hibernate.type.CharacterType] returning 
'M' as column: type
  | 2007-06-26 22:10:57,316 TRACE [org.hibernate.type.CharacterType] returning 
'V' as column: type
  | 2007-06-26 22:10:57,317 TRACE [org.hibernate.type.CharacterType] returning 
'E' as column: type
  | 2007-06-26 22:10:57,318 TRACE [org.hibernate.type.CharacterType] returning 
'N' as column: type
  | 

the question is why does it map the enum datatype of mysql to charactertype 
instead of string .. 
It sounds like a silly question but as i am new to ejb3 i had no other option 
but to ask :) 

Awaiting response ..

thanks 
Imran

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057889#4057889

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057889
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Clustering/JBoss] - problem caused by

2007-06-26 Thread ddai
Hi all

Now I think I have found the trouble maker:  Once I add that tag into the 
web.xml, a problem shows up. When I deleted it, everything looks fine. Does 
that mean I need to modify the application codes? 

Here is the outline of the error. Please help me. This is very important to me.

HTTP Status 500 - 



type Exception report

message 

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception 

org.apache.jasper.JasperException: setAttribute: Non-serializable attribute

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
InputValidationFilter.doFilter(InputValidationFilter.java:54)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 

java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute

org.jboss.web.tomcat.tc5.session.ClusteredSession.setAttribute(ClusteredSession.java:532)

org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:129)
org.apache.jsp.gcsMenu_jsp._jspService(gcsMenu_jsp.java:450)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
InputValidationFilter.doFilter(InputValidationFilter.java:54)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


note The full stack trace of the root cause is available in the Apache 
Tomcat/5.5.20 logs.




Apache Tomcat/5.5.20

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057888#4057888

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057888
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Dynamic Table with Seam

2007-06-26 Thread mgrouch
How do I implement dynamic table with Seam?
I need to provide ability for a user to change
order of columns (hide/display additional columns).


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057887#4057887

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057887
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:commandButton - does it exist? pass parameters with

2007-06-26 Thread lpmon
I must not have re-deployed properly.  It is working now.

So now I have an example working with a hard-coded string literal ('sss') as a 
parameter.

 

and: 

 public void writeSettingsP1(String parm);

Now I have to work on how to get a variable into the parameter.  I tried a 
JavaScript call instead of the hard-coded 'sss' and that fails.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057886#4057886

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057886
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-26 Thread enzhao
@Column(name="aColumn", nullable=true)
@Length(min=3, max=30)
public SomeType getSomething(){
return this.something;
}

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057882#4057882

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057882
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:commandButton - does it exist? pass parameters with

2007-06-26 Thread lpmon
Yes, I noticed and fixed that earlier but it still did not work.

I found this:   http://balusc.xs4all.nl/srv/dev-jep-com.html and tried to use 


 




along with public void writeSettingsParm(ActionEvent event) so as to retrieve 
attributes from the event. This did not work either.  Traget method is not 
called.  Seam must be taking over and preventing the call.  If I remove the 
parameter from writeSettingsParm it works.





View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057885#4057885

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057885
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Handling database exceptions

2007-06-26 Thread shakenbrain
When persisting an entity at the end of a conversation, how can one handle a 
database exception, like a constraint violation, without invalidating the 
session?  Here's the the basic scenario:

1.  Start a conversation (flushMode=MANUAL); display edit page
2.  Call a method to persist the edited object; calls entityManager.flush()
3.  A unique constraint is violated; EntityExistsException is thrown
4.  Exeption is caught and a FacesMessage created
5.  Control returns to the edit page
6.  Edit page accesses database to fetch entities for a  tag
7.  Exception thrown because transaction no longer valid

Gavin states somewhere on this forum that it's a good idea to check the 
database before persisting an object to see if a constraint would be violated.  
I'd prefer to keep my constraint logic in the database- it means a lot less 
coding in action methods. For example, I don't have to worry about whether the 
object getting flushed is new or not.  Also, verifying a constraint won't be 
violated before persisting does not guarantee that the constraint won't be 
violated in the database (ie, another session inserts an identical object at 
the same time).  Validating constraints in the control layer just isn't robust 
enough.

So, is there a way to keep the current session intact when a database exception 
is thrown?  Section 5.3.1 in the reference manual seems to indicate that the 
answer is 'no'.  If that's true, that seems to be a pretty major shortcoming 
(of EJB3, I think).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057884#4057884

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057884
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-26 Thread pettersonfp
Unfortunatelly the property is already annotated with @Column(nullable=true) as 
well.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057883#4057883

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is there a way to use page security wildcards?

2007-06-26 Thread tptackab
Geez, I should have guessed that... Thanks Pete!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057881#4057881

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057881
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Hibernate-all.jar

2007-06-26 Thread enzhao
You might want to pick up the latest Seam-compatible hibernate related jars 
from the Seam CVS repository:

http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamRepository

The latest revision has the very recent hibernate related jars. I tested 
hibernate-all.jar and it worked well under various environments.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057880#4057880

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057880
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [2.0 beta1 CVS]SeamTest RARDeployment question

2007-06-26 Thread enzhao
Ach, it should be:

"2. The new seam-gen might not be working properly."

Sorry for my typos!


Regards,
Ellen

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057878#4057878

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057878
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam and Hibernate-all.jar

2007-06-26 Thread sandman202
I was able to replace the files described along with ejb3-persistence.jar in 
place of hibernate-all.jar and so far it seems to be working fine.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057874#4057874

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057874
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Decision using java code

2007-06-26 Thread nageshreddy1981
Hi,

I am trying to create  Decision using java code.
I am not able to set the value of the DecisionHandler.
i should i be doing it.
my code snippet is as follows:
decision.setProcessDefinition(pd);
decision.setName(nodeName);

Thanks


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057877#4057877

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057877
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [2.0 beta1 CVS]SeamTest RARDeployment question

2007-06-26 Thread enzhao
sorry, for the second point above I expressed wrong. It should be:

2. The new seam-gen might now working properly. When creating a new project,  
jboss-local-jdbc.rar , jboss-xa-jdbc.rar , and jms-ra.rar  should be copied to 
$my-seam-project/bootstrap/deploy/. But current "seam new-project" does not do 
it.


Regards,
Ellen

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057875#4057875

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057875
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: [2.0 beta1 CVS]SeamTest RARDeployment question

2007-06-26 Thread enzhao
Got it! I messed up things from the CVS snapshot and the CVS. Here are things 
which should be fixed for CVS Snapshot:

1. The pom.xml under the /ui is missing in the Snapshot. 

2. Three very important .rar files are missing in the Snapshot, under the 
folder bootstrap/deploy/. They are: jboss-local-jdbc.rar, jboss-xa-jdbc.rar, 
and jms-ra.rar. Without these three files the SeamTest using embedded 
microcontainer does not work. 

3. antlr-3.0b7.jar should be used in the seam-gen generated file .classpath, 
instead of antlr-2.7.6.jar. Without correcting this I got a runtime exception 
saying some method was not found in this package. And I guess antlr-2.7.6.jar 
can be removed from the lib folder. 


If these three things are corrected for the CVS snapshot, then the latest 
snapshot is finally usable. 



Best Regards,
Ellen

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057872#4057872

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057872
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Couldn't install eclipse plug-ins

2007-06-26 Thread Quessir
I'm trying to install some other plug-ins(not from Eclipse distro). Everytime 
he returns me exception

JBossIDE JBossAS Adapter Feature (1.0.0.200706241629-nightly) requires plug-in 
"org.eclipse.wst.common.project.facet.core (1.1.0)", or equivalent.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057871#4057871

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057871
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: How to use FindTaskInstances in multiple transitions?

2007-06-26 Thread cristian_e
You could set node A's signalling off. This way it won't signal the token when 
the taskInstance is end()ed. Then, after the end() you can signal it manually 
to the correct transition.

Hope it helps.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057870#4057870

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057870
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam and Hibernate-all.jar

2007-06-26 Thread sandman202
I have looked on the Hibernate website as-well-as the JBoss website to see if 
there is a more current hibernate-all.jar. If there isn't, would someone please 
either link/direct me to a web page or describe the files necessary for 
replacing this library? 

According to this link: 
http://forum.hibernate.org/viewtopic.php?p=2353945&sid=3a8068e0b9278948af2d6258f573bca8
it says to use the latest versions of Hibernate Search / Annotations / 
commons-annotations / Core. I tried this without any success. 

On a side note,  I have tried joining the Hibernate forum 2 different times 
within the past 4 weeks with my questions. I never received a confirmation 
email for activating my account. When I tried emailing a couple of people, I 
don't get any response. I am unable to login, because it says to contact the 
forum administrator. There isn't a link or email address to the forum 
administrator. I am stuck.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057867#4057867

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057867
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How to create hibernate criteria

2007-06-26 Thread knuwu
Hi

I like to create a hibernate criteria instead a normal query.


  |  @PersistenceContext(type=PersistenceContextType.EXTENDED)
  |  private EntityManager em;
  | 
  |   public void search()
  |   {
  | log.info("Get all users");
  | 
  | Criteria c = ((Session)em.getDelegate()).createCriteria(User.class)
  |   .setMaxResults(this.pageSize)
  |   .addOrder(Order.asc("userid"));
  | 
  | if (user.getUserid() != null && user.getUserid().length() > 0) {
  |   c.add(Restrictions.like("userid", user.getUserid() + "%"));
  | }
  | 
  | this.userList = c.list();
  | 

I always get an ClassCastException for the Session.


  | Caused by: java.lang.ClassCastException: org.hibernate.ejb.EntityManagerImpl
  | at 
com.swisscom.seat.modules.base.admin.UserManagerBean.search(UserManagerBean.java:132)
  | 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:585)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  | at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  | at 
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
  | ...
  | ...
  | 

How can one get the Hiberate Session to create a criteria?

Im using a standard seam 1.2.1 configuration generated by seam-gen.

Thanks!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057865#4057865

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057865
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - jndi name for XAQueueConnectionFactory

2007-06-26 Thread [EMAIL PROTECTED]
I am having trouble accessing the the connection factory and am stumped as to 
the JNDI name.  The specific error is: jndi name not bound.

I am running Jboss 4.2

When Jboss starts I have the message:
service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'

Is the jboss-web.xml correct? Should the  match above and not 
include the slash?

jms/LocalXAQueueConnectionFactory
java:/JmsXA
 

The jndi name I am passing to the service locator is: 
java:comp/env/jms/LocalXAQueueConnectionFactory

Any tips would be very welcome.  TIA. -Alec

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057864#4057864

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057864
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: #{taskInstance} is null on Notify='yes'

2007-06-26 Thread james_hays
So, it's been awhile since I last worked on this issue, but I'm not back on it 
and using the latest jBPM 3.2.1

Just to clarify,
Yes, this is a SEAM/jBPM application.  All seam is doing in this instance is 
creating/starting the process.  As far as I understand, everything should now 
be internal to jBPM.  My mail template is the same as the tests, but when it 
comes across any EL that deals with #{taskInstance}, I get a null result.

Any help would be appreciated.  Everything from my fist post is still valid.

Thanks,

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057863#4057863

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057863
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @Length throws InvalidStateException when String is null or

2007-06-26 Thread pettersonfp
Hi,

If I have a property annotated with @Length and the field is not required in 
the form.  A InvalidStateException is thrown complaining that the property's 
lenght must be between min and max.

Anyone knows if there is a way to use @Length in nullable fields?

Thanks in advance,
Petterson

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057862#4057862

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057862
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Layering / overloading resources approach

2007-06-26 Thread matt.drees
Hi David,

I'll be doing similar to this, though on a much smaller scale.  I haven't 
thought yet much about how to handle it, though.  If it's not too much trouble, 
could you post a little about your solution once you've figured it out?

Thanks
-Matt

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057856#4057856

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057856
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-26 Thread KnisterPeter
No, but thanks. I'm using JSR RI 1.2 with Facelets 1.1.12 and Tomcat 5.5.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057853#4057853

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057853
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-26 Thread dustismo
Just a shot in the dark, but are you using myfaces + state saving=server?  If 
so, it is a known problem with myfaces. 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057852#4057852

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057852
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:commandButton - does it exist? pass parameters with

2007-06-26 Thread enzhao
did you miss a ) which should come before the } ??

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057851#4057851

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057851
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: EntityHome problem

2007-06-26 Thread KnisterPeter
It is. Acutally it is a bit longer line '/admin/secure...'. I've cut that down 
for simplicity.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057850#4057850

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057850
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: bind data to process

2007-06-26 Thread kgoedert
Is there an example on this? In the documentation or among seam examples?
I´ve checked the dvd store example, that seems to be the closest to what I 
want, but it didn´t help much on this issue.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057849#4057849

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057849

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: sending a class threw page parameters

2007-06-26 Thread [EMAIL PROTECTED]
You can't use the EntityConverter like that in pages.xml.  Try something like 



Or write a custom converter that knows how to deal with a typecol object.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057847#4057847

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057847
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Editable tabular data the seam way?

2007-06-26 Thread dajevtic
Pete, in case you haven't tried yet, don't bother. I got it sorted out. Thanks 
for offering your help.
The problem was indeed, that when saving my data, I did not post the page ref 
during saving. Adding the parameter in my sort and save buttons, now the data 
in the data base is updated correctly.

One question remains though and it would be great if Seamone of you had the 
answer:
Fact: Once I access data from the data base and then page to the next records 
my previous data is thrown away. So far so good.

We have one use case, though, where we want to be able to edit data on one 
page, and the next, and so forth, but non of the edited data should be saved 
until we hit save. Taking the current approach we always reread the data from 
the data base, which is highly performant, but we always lose the edited data 
unless we save it.

Is it possible to use some kind of caching mechanism to store our changes until 
we hit save?




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057845#4057845

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057845
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: bind data to process

2007-06-26 Thread [EMAIL PROTECTED]
You can just keep the id of the object in the business process context.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057842#4057842

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057842
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Remoting] - EJB3/Socket invoker - connection timeouts

2007-06-26 Thread javajedi
We're running into a problem with a brand new production system that has a 
single remote EJB.  We are using JBoss EJB3, which uses JBoss Remoting to do 
the remote communication.  We are using the standard socket invoker to handle 
the communication.   We are using JBoss Serialization instead of Java 
Serialization, which, in tests, provided significantly better overall 
performance.  We've been testing this in a stage environment for several 
months, with no problems.  Once we got it into production, we started to hit a 
wall.  We reach a point where the socket connections between the client and the 
server just start timing out.  A thread dump on the client shows a bunch of 
threads waiting for a socket connection to the server.  A thread dump on the 
server shows several SeverThreads waiting to be used (via 
ServerThread.wakeup()).  The problem appears to be that the thread in 
SocketServerInvoker that is responsible for the calls to serverSocket.accept() 
is getting stuck, or at lea!
 st severely slowed.  In the server side thread dump, here is the stack of that 
accept thread:

Thread: SocketServerInvoker#0-3873 : priority:5, demon:false, threadId:23, 
threadState:RUNNABLE, threadLockName:null
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:129)
java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
java.io.BufferedInputStream.read(BufferedInputStream.java:317)
java.io.FilterInputStream.read(FilterInputStream.java:90)

org.jboss.serial.io.JBossObjectInputStream.checkSignature(JBossObjectInputStream.java:110)

org.jboss.serial.io.JBossObjectInputStream.(JBossObjectInputStream.java:94)

org.jboss.serial.io.JBossObjectInputStream.(JBossObjectInputStream.java:83)

org.jboss.remoting.serialization.impl.jboss.JBossSerializationManager.createInput(JBossSerializationManager.java:57)

org.jboss.remoting.transport.socket.ServerSocketWrapper.createInputStream(ServerSocketWrapper.java:56)

org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:76)

org.jboss.remoting.transport.socket.ClientSocketWrapper.(ClientSocketWrapper.java:54)

org.jboss.remoting.transport.socket.ServerSocketWrapper.(ServerSocketWrapper.java:50)
sun.reflect.GeneratedConstructorAccessor13.newInstance(Unknown Source)

sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
java.lang.reflect.Constructor.newInstance(Constructor.java:513)

org.jboss.remoting.transport.socket.ServerThread.createServerSocket(ServerThread.java:185)
org.jboss.remoting.transport.socket.ServerThread.(ServerThread.java:87)

org.jboss.remoting.transport.socket.SocketServerInvoker.processInvocation(SocketServerInvoker.java:429)

org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:391)
java.lang.Thread.run(Thread.java:619)

It appears that this thread, which ought to be quickly finding a ServerThread 
to handle the incoming request, calling ServerThread.start(), and getting back 
to the call to serverSocket.accept() as quickly as possible, is instead doing 
some socket I/O.  ServerSocketWrapper.java has a method called 
createInputStream() that creates a new ObjectInputStream.  The stack trace 
shows that the JBossObjectInputStream constructor is reading some bytes from 
the input stream, but I don't think that this problem is specific to JBoss 
Serialization, as java.io.ObjectInputStream's constructor also reads bytes from 
the stream.

It seems to me that this could be the cause of the problem that we are seeing.  
Any time that you're doing a blocking socket read like this, you can 
potentially just sit for a while until the socket times out.  When you've got a 
thread calling serverSocket.accept(), you can't normally afford to do something 
like this on that thread.

Does this analysis make sense?  Any thoughts/suggestions would be greatly 
appreciated.

Thanks.

--Tim

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057841#4057841

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057841

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


  1   2   3   >