Re: [daemon] Cannot execute complex SQL query when run the application with procrun

2011-06-07 Thread Mladen Turk

On 06/07/2011 05:37 AM, irfan romadona wrote:


prunsrv //IS//TestSvc
--Install=D:\INSTALLER\commons-daemon\commons-daemon-1.0.5-bin-windows\prunsrv.exe

 ...

--StartClass=TestSVCProcRun --StartMethod=main --StartParams=start
--StopMode=jvm --StopClass=TestSVCProcRun --StopMethod=main
--StopParams=stop --LogPath=C:\TestSVC --StdOutput=auto --StdError=auto


But after a while, the application stopped when trying to execute a long and
complex SQL query. It rarely detected, but sometimes I catch an error like
this in the log:

java.sql.SQLException: ORA-01652: unable to extend temp segment by 128 in
tablespace TEMP

And most of the time, the process stopped at SQL query execution (and it
will be forever like that all the time). Strangely enough, the application
and the SQL query execution works fine when it runs without service.



Not sure how oracle JDBC determines the user but if it uses the current
process token, you can end up with a different user ID asking for a TEMP
tablespace. You can make sure you have the 'known' user running a service
instead LOCAL_SERVICE/SYSTEM account.
Try with using
prunsrv //US//TestSvc --Username=you --Password=your_password
(or just use the Control panel or prunmgr.exe)
and see if it's still happening. If not, well, you have a DB problem so
you can try adding more space to the ACCT tablespace.



Any idea on what causing this? Or could that be any additional configuration
that I've missed? Thanks in advance.





Regards
--
^TM

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [daemon] Cannot execute complex SQL query when run the application with procrun

2011-06-07 Thread Michael Hagedorn
Where is Oracle server running? Local or remote?
How do you connect to Oracle? Using username/password or local
connection or OPS$?

Michael

On 07.06.2011 08:17, Mladen Turk wrote:
 On 06/07/2011 05:37 AM, irfan romadona wrote:

 prunsrv //IS//TestSvc
 --Install=D:\INSTALLER\commons-daemon\commons-daemon-1.0.5-bin-windows\prunsrv.exe

  ...
 --StartClass=TestSVCProcRun --StartMethod=main --StartParams=start
 --StopMode=jvm --StopClass=TestSVCProcRun --StopMethod=main
 --StopParams=stop --LogPath=C:\TestSVC --StdOutput=auto --StdError=auto


 But after a while, the application stopped when trying to execute a
 long and
 complex SQL query. It rarely detected, but sometimes I catch an error
 like
 this in the log:

 java.sql.SQLException: ORA-01652: unable to extend temp segment by
 128 in
 tablespace TEMP

 And most of the time, the process stopped at SQL query execution (and it
 will be forever like that all the time). Strangely enough, the
 application
 and the SQL query execution works fine when it runs without service.


 Not sure how oracle JDBC determines the user but if it uses the current
 process token, you can end up with a different user ID asking for a TEMP
 tablespace. You can make sure you have the 'known' user running a service
 instead LOCAL_SERVICE/SYSTEM account.
 Try with using
 prunsrv //US//TestSvc --Username=you --Password=your_password
 (or just use the Control panel or prunmgr.exe)
 and see if it's still happening. If not, well, you have a DB problem so
 you can try adding more space to the ACCT tablespace.


 Any idea on what causing this? Or could that be any additional
 configuration
 that I've missed? Thanks in advance.




 Regards

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread Jörg Schaible
Hi,

wayne wrote:

 Hi All:
 
 I use [javaflow] Ant task with ASM transformer
 but it still terminates with java.lang.NoSuchMethodError:
 org.objectweb.asm.ClassWriter.init(ZZ)V
 
 
 Torsten mentioned the solution as follow:
 (http://mail-archives.apache.org/mod_mbox/commons-
user/200608.mbox/%3c98e4f1cd0608240555j5fd1ead9ma44d2f77ba7e7...@mail.gmail.com%3E)
 
 
 For the task:
 I tried asm 2.2.3 and asm 3.0 RC1, but I always get this exception:
 java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

 I can't make any sense out of it.
 
 Looks like for some reason you have the wrong version of ASM in your
 classpath?!

Typically ASM versions are not compatible between major releases. Even 
worse, some 3rd party libraries contain silently some of the ASM classes 
without shading them. Can you therefore list your complete classpath here?

Torsten: Which version of ASM is used by Javaflow?

[snip]

- Jörg


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread wayne
Jörg:

   hi!
I  list the classpath table as follow:

   ?xml version=1.0 encoding=UTF-8?
classpath
classpathentry kind=src path=src/java/
classpathentry kind=src path=src/resources/
classpathentry kind=con 
path=org.eclipse.jdt.launching.JRE_CONTAINER/
classpathentry combineaccessrules=false kind=src path=/JPPF/
classpathentry kind=lib
path=F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node.jar/
classpathentry kind=lib
path=F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node-src.jar/
classpathentry kind=lib
path=F:/jppfrun/JPPF-2.4-node/lib/log4j-1.2.15.jar/
classpathentry kind=lib
path=F:/jppfrun/JPPF-2.4-node/lib/slf4j-api-1.6.1.jar/
classpathentry kind=lib
path=F:/jppfrun/JPPF-2.4-node/lib/slf4j-log4j12-1.6.1.jar/
classpathentry kind=lib path=C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1.jar/
classpathentry kind=lib path=C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1-javadoc.jar/
classpathentry kind=lib path=C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1-sources.jar/
classpathentry kind=lib path=C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar/
classpathentry kind=lib path=C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-api-1.1.1.jar/
classpathentry kind=lib path=C:/Documents and
Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-tests.jar/
classpathentry kind=lib path=C:/Documents and
Settings/whwayne/Desktop/jar/bcel-5.2/bcel-5.2/bcel-5.2.jar/
classpathentry kind=lib path=C:/Documents and
Settings/whwayne/Desktop/jar/asm-4.0_RC1.jar/
classpathentry kind=output path=classes/
/classpath


I  try to use  the latest version of  ASM-4.0_RC1.jar. If I use bcel
library, I will meet
org.apache.bcel.verifier.exc.AssertionViolatedException, else if I use
ASM Transformer,
java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter will be
thrown. I really
do not know how to do?

Wayne






2011/6/7 Jörg Schaible joerg.schai...@scalaris.com:
 Hi,

 wayne wrote:

 Hi All:

 I use [javaflow] Ant task with ASM transformer
 but it still terminates with java.lang.NoSuchMethodError:
 org.objectweb.asm.ClassWriter.init(ZZ)V


 Torsten mentioned the solution as follow:
 (http://mail-archives.apache.org/mod_mbox/commons-
 user/200608.mbox/%3c98e4f1cd0608240555j5fd1ead9ma44d2f77ba7e7...@mail.gmail.com%3E)


 For the task:
 I tried asm 2.2.3 and asm 3.0 RC1, but I always get this exception:
 java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

 I can't make any sense out of it.

 Looks like for some reason you have the wrong version of ASM in your
 classpath?!

 Typically ASM versions are not compatible between major releases. Even
 worse, some 3rd party libraries contain silently some of the ASM classes
 without shading them. Can you therefore list your complete classpath here?

 Torsten: Which version of ASM is used by Javaflow?

 [snip]

 -


 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread Torsten Curdt
 Torsten: Which version of ASM is used by Javaflow?

The pom depends on 3.2 and org.apache.commons.javaflow.AsmTestSuite
passes for me.

cheers,
Torsten

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread Torsten Curdt
 I  try to use  the latest version of  ASM-4.0_RC1.jar.

Try using 3.2

cheers,
Torsten

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread wayne
 Try using 3.2
   I am sorry, same problem. java.lang.NoSuchMethodError:
org.objectweb.asm.ClassWriter.init(ZZ)V

Wayne

2011/6/7 Torsten Curdt tcu...@vafer.org:
 I  try to use  the latest version of  ASM-4.0_RC1.jar.

 Try using 3.2

 cheers,
 Torsten

 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread wayne
I look up the source code of  AssertionViolatedException

the reason is :Instances of this class should never be thrown. When
such an instance is thrown,
 * this is due to an INTERNAL ERROR of BCEL's class file verifier

about java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter,  I
do not know why.


Wayne




2011/6/7 wayne whwa...@gmail.com:
 Try using 3.2
   I am sorry, same problem. java.lang.NoSuchMethodError:
 org.objectweb.asm.ClassWriter.init(ZZ)V

 Wayne

 2011/6/7 Torsten Curdt tcu...@vafer.org:
 I  try to use  the latest version of  ASM-4.0_RC1.jar.

 Try using 3.2

 cheers,
 Torsten

 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org






-- 
..
Graduate School of Global Information
and Telecommunication Studies
Waseda University
1-6-1 Nishi Waseda, Shinjuku-ku,
Tokyo169-8050, JAPAN.
..

早�R田大学大学院 国�H情�笸�科信研究科
中里研究室 博士�n程
王�Z(John Wayne)
E-mail:wangh...@fuji.waseda.jp


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread Torsten Curdt
 Try using 3.2
   I am sorry, same problem. java.lang.NoSuchMethodError:
 org.objectweb.asm.ClassWriter.init(ZZ)V

Can you run the tests?

mvn clean test

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread Jörg Schaible
wayne wrote:

 I look up the source code of  AssertionViolatedException
 
 the reason is :Instances of this class should never be thrown. When
 such an instance is thrown,
  * this is due to an INTERNAL ERROR of BCEL's class file verifier
 
 about java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter,  I
 do not know why.

You have other ASM classes on the classpath or you're using some code that 
depends on a different version.

- Jörg


-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



[scxml] Send data periodically until event comes

2011-06-07 Thread Artem Vovk
Hi,

How can I implement this functionality in scxml :
I need to send a data periodically with some interval until I receive 
an event.

Cheers Artem
-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [scxml] trasition tag with type=internal in compound state issue

2011-06-07 Thread Vance huang
Hi, Rahul:

Thanks. I've opened a ticket SCXML-162 for this. 

Vance
On Mon, Jun 6, 2011 at 7:11 PM, Vance huang  wrote:  Hi,   According to the 
SCXML spec, the following was stated:  The behavior of transitions with 
'type' 
of internal is identical, except in  the case of a transition whose source 
state is a compound state and whose  target(s) is a descendant of the source. 
In such a case, an internal transition  will not exit and re-enter its source 
state, while an external one will, as  shown in the example below.   I am 
trying to do something similar like the following: 
 
expr=entering s11/  
 
   expr='leaving s11'/
type=internal  
   Assuming I am in s11 when event e fired. But it always log leaving 
s1 before  log executing transition which means going out of S1 even if the 
internal type  was set. Am I missing something in the spec?   No, though 
internal transitions are a recent addition and are not yet implemented in 
Commons SCXML.  You may open an enhancement request to track this in JIRA [1]. 
Patches with suggested fixes are welcome as well.Also, I am not sure how 
can I search in the archive to see if this question has  been asked before. 
Can 
you let me know? Thanks!You can use a number of archives for searching, 
markmail [2] is one example. More information on the project mailing lists page 
[3], see two columns on far right in table on page.  -Rahul  [1] 
http://commons.apache.org/scxml/issue-tracking.html [2] 
http://commons.markmail.org/ [3] 
http://commons.apache.org/scxml/mail-lists.html   
 Vance   
 - 
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional 
commands, e-mail: user-h...@commons.apache.org 

Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread wayne
Jörg  wrote:

You have other ASM classes on the classpath or you're using some code that
depends on a different version.


even I delete all jar about asm  on classpath,  I still got same problem.
I am wandering whether  I need to use asm-3.2.jar to replace the asm part
in the javaflow and package a new javeflow.jar again.


From Wayne.



2011/6/7 Jörg Schaible joerg.schai...@scalaris.com:
 wayne wrote:

 I look up the source code of  AssertionViolatedException

 the reason is :Instances of this class should never be thrown. When
 such an instance is thrown,
  * this is due to an INTERNAL ERROR of BCEL's class file verifier

 about java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter,  I
 do not know why.

 You have other ASM classes on the classpath or you're using some code that
 depends on a different version.

 - Jörg


 -
 To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
 For additional commands, e-mail: user-h...@commons.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

2011-06-07 Thread Torsten Curdt
 even I delete all jar about asm  on classpath,  I still got same problem.
 I am wandering whether  I need to use asm-3.2.jar to replace the asm part
 in the javaflow and package a new javeflow.jar again.

Sorry, I cannot follow here.

In order to help you please run mvn clean test and report back.

cheers,
Torsten
-- 
http://www.yourdailygeekery.com
http://www.torstencurdt.com

-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org