JBoss and Handler problem !

Hi,
I am deploying a simple service on JBoss4.0.3SP1. Service itself (wothout handlers) work excellent. However, when I add simple handler:
package handlers;
public class LogHandler extends GenericHandler{
  HandlerInfo hi;
  public void init(HandlerInfo info){
    this.hi=info;
  public boolean handleRequest(MessageContext mc){
    logMessage(mc,System.out);
    return true;
  public boolean handleResponse(MessageContext mc){
    logMessage(mc,System.out);
    return true;
  public void logMessage(MessageContext mc, OutputStream out){
    SOAPMessageContext smc=(SOAPMessageContext)mc;
    SOAPMessage sm=smc.getMessage();
    try{
      sm.writeTo(out);
      out.write(System.getProperty("line.separator").getBytes());
    }catch(IOException e){
      e.printStackTrace(System.out);
    }catch(SOAPException e){
      e.printStackTrace(System.out);
  public QName[] getHeaders() {
    return hi.getHeaders();
}in my webservice.xml file
<?xml version="1.0" encoding="utf-8"?>
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd" version="1.1">
     <webservice-description>
       <webservice-description-name>Math</webservice-description-name>
       <wsdl-file>WEB-INF/wsdl/Math.wsdl</wsdl-file>
       <jaxrpc-mapping-file>WEB-INF/mapping.xml</jaxrpc-mapping-file>
       <port-component>
         <port-component-name>MathService</port-component-name>
         <wsdl-port>MathServicePort</wsdl-port>
         <service-endpoint-interface>service.MathService</service-endpoint-interface>
         <service-impl-bean>
           <servlet-link>MathServletService</servlet-link>
         </service-impl-bean>
         <handler>
           <handler-name>handlers.LogHandler</handler-name>
           <handler-class>handlers.LogHandler</handler-class>
         </handler>
       </port-component> 
     </webservice-description>
</webservices>I get this error.
06:32:13,234 INFO  [AxisServlet] org.jboss.axis.ConfigurationException: org.jbos
s.webservice.server.ServiceException: Cannot initialize webservice; nested excep
tion is:
        javax.xml.rpc.JAXRPCException: Cannot initialize handler chain
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: Cannot initialize webservice; nested exception is:
        javax.xml.rpc.JAXRPCException: Cannot initialize handler chain
faultActor:
faultNode:
faultDetail:Any idea how I can sort it out ?
Many thanks for you help
Michal

Hi, I ran into Sam problem. I have the Eclipse 3.1.0, JBOSS 4.0.1sp1, JBoss-IDE 1.3.0 running under JDK 1.5.0.02. It appers for sum resion that the jboss-web.xml is not getting the name of the �<ejb-ref-name></ejb-ref-name>�. if I manually add the name so it looks like this: �<ejb-ref-name>ejb/Fibo</ejb-ref-name>� the project deploys. I am new to this as well and am not shore what needs to be changed to fix this in the build. I am thinking it�s a problem in the way XDoclet parses the source for the META DATA.

Similar Messages

  • JBoss and Eclipse Problem

    Hi @ all,
    i'm trying to learn J2EE technology with jboss and eclipse dev.kit.
    I use the Jboss/eclipse tutorial (http://prdownloads.sourceforge.net/jboss/Tutorial-1.3.0.pdf)
    but there are several problems with the ear-file.
    This error will be processed if I try to deploy the package to the jboss
    server:
    14:20:12,765 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:service=EARDeployment,url='FiboApp.ear'
    14:20:12,765 WARN [ServiceController] Ignoring request to stop nonexistent service: null
    14:20:12,765 INFO [EJBDeployer] Undeploying: file:/C:/jboss-4.0.0/server/default/tmp/deploy/tmp3781FiboApp.ear-contents/FiboEJB.jar
    14:20:12,765 WARN [ServiceController] Ignoring request to stop nonexistent service: null
    14:20:12,765 INFO [EARDeployer] Undeploying J2EE application, destroy step: file:/C:/jboss-4.0.0/server/default/deploy/FiboApp.ear
    14:20:12,781 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:service=EARDeployment,url='FiboApp.ear'
    14:20:12,781 WARN [ServiceController] Ignoring request to remove nonexistent service: jboss.j2ee:service=EARDeployment,url='FiboApp.ear'
    14:20:12,843 WARN [ServiceController] Ignoring request to destroy nonexistent service: null
    14:20:12,843 WARN [ServiceController] Ignoring request to remove nonexistent service: null
    14:20:12,843 WARN [DeploymentInfo] Could not delete file:/C:/jboss-4.0.0/server/default/tmp/deploy/tmp3781FiboApp.ear restart will delete it
    14:20:37,906 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.0/server/default/deploy/FiboApp.ear
    14:20:37,984 INFO [EARDeployment] Registration is not done -> stop
    14:20:37,984 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.0.0/server/default/deploy/FiboApp.ear
    org.jboss.deployment.DeploymentException: Error in accessing application metadata: ; - nested throwable: (javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EARDeployment,url='FiboApp.ear' already registered.)
    at org.jboss.deployment.EARDeployer.init(EARDeployer.java:270)
    at org.jboss.deployment.MainDeployer.init(MainDeployer.java:799)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:736)
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
    at sun.reflect.GeneratedMethodAccessor31.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:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
    at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
    at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
    Caused by: javax.management.InstanceAlreadyExistsException: jboss.j2ee:service=EARDeployment,url='FiboApp.ear' already registered.
    at org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:755)
    at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
    at sun.reflect.GeneratedMethodAccessor1.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:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
    at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1397)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1392)
    at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:359)
    at org.jboss.deployment.EARDeployer.init(EARDeployer.java:262)
    ... 21 more
    Can anybody help.
    Thx in advance.
    Greets from Germany
    Ben

    Hi, I ran into Sam problem. I have the Eclipse 3.1.0, JBOSS 4.0.1sp1, JBoss-IDE 1.3.0 running under JDK 1.5.0.02. It appers for sum resion that the jboss-web.xml is not getting the name of the �<ejb-ref-name></ejb-ref-name>�. if I manually add the name so it looks like this: �<ejb-ref-name>ejb/Fibo</ejb-ref-name>� the project deploys. I am new to this as well and am not shore what needs to be changed to fix this in the build. I am thinking it�s a problem in the way XDoclet parses the source for the META DATA.

  • Jboss and eclipse, problems with JNDI

    Hi, i have managed to deploy my j2ee application (according to jboss), its a simple HelloWorld app, problem is when i try to look it up.
    In the client:
    System.out.println("starter");
    Context context = new InitialContext();
    System.out.println("etter context");
    Object objref = context.lookup("HelloWorld");
    // Stops here and a javax.naming.NoInitialContextException is thrown...
    // What is wrong?
    The jboss.xml file looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss_2_4.dtd">
    <jboss>
    <enterprise-beans>
    <session>
    <ejb-name>HelloWorld</ejb-name>
    <jndi-name>ejb/HelloWorld</jndi-name>
    </session>
    </enterprise-beans>
    <resource-managers>
    </resource-managers>
    </jboss>

    I have managed to run the file now but i had to do it from command prompt and include every jar file from jboss + the files in my project. My problem now is an eclipse problem i think.
    I have created a client wich looks up the ejb, but the thing is that i have to manually import a bunch of jboss jar-files to get it to work. isn't there a way i can make eclipse / jboss import those jar's automatically? perhaps create a client automatically or something?
    Hope someone can help..

  • Problem in implements ADF Faces: Detecting and handling user session expiry

    Hello everybody
    I´m trying to implement a method to handle user session expiry as explained by frank nimphius in his blog.
    http://thepeninsulasedge.com/frank_nimphius/2007/08/22/adf-faces-detecting-and-handling-user-session-expiry/
    I have implemented the class bellow and add the filters in web.xml. However when I add the JavaServer Faces Servlet to sign the filter, my hole application get nuts. I try to publish the applicatoin in the OAS and it seems that it already starts expired.
    Someone konw what I´m doing wrong?
    I use the filter
    <filter>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <filter-class>adf.sample.ApplicationSessionExpiryFilter</filter-class>
    <init-param>
    <param-name>SessionTimeoutRedirect</param-name>
    <param-value>SessionExpired.jspx</param-value>
    </init-param>
    </filter>
    then I add
    XML:
    <filter-mapping>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    package adf.sample;
    import java.io.IOException;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    this is the class
    public class ApplicationSessionExpiryFilter implements Filter {
    private FilterConfig _filterConfig = null;
    public void init(FilterConfig filterConfig) throws ServletException {
    _filterConfig = filterConfig;
    public void destroy() {
    _filterConfig = null;
    public void doFilter(ServletRequest request, ServletResponse response,
    FilterChain chain) throws IOException, ServletException {
    String requestedSession = ((HttpServletRequest)request).getRequestedSessionId();
    String currentWebSession = ((HttpServletRequest)request).getSession().getId();
    boolean sessionOk = currentWebSession.equalsIgnoreCase(requestedSession);
    // if the requested session is null then this is the first application
    // request and "false" is acceptable
    if (!sessionOk && requestedSession != null){
    // the session has expired or renewed. Redirect request
    ((HttpServletResponse) response).sendRedirect(_filterConfig.getInitParameter("SessionTimeoutRedirect"));
    else{
    chain.doFilter(request, response);
    I'm really having trouble controlling user sessions. if someone know where I can get materials to learn how to implements session in Jdev ADF + BC, I´m very grateful.
    Thank you Marnie

    The class works fine.. the issue is when I add the this code into web.xml
    <filter-mapping>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    bellow the web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <param-name>CpxFileName</param-name>
    <param-value>userinterface.DataBindings</param-value>
    </context-param>
    <filter>
    <filter-name>ApplicationSessionExpiryFilter</filter-name>
    <filter-class>view.managedBean.ApplicationSessionExpiryFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <filter>
    <filter-name>adfBindings</filter-name>
    <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>ApplicationSessionExpiryFilter</filter-name> ==> the problem occurs when I try to add this code
    <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jsp</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfBindings</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>resources</servlet-name>
    <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>resources</servlet-name>
    <url-pattern>/adf/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>1</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/pain</mime-type>
    </mime-mapping>
    </web-app>
    By the way, how can I post code on the forum properly?

  • CUIC, Handled Calls and Handled Time problem

    Hello,
    Our costumer uses Outboud Predictive Dialer, UCCE. Everthing works fine but in CUIC reports we do not have almost any information about Handled calls and Handled Time (example in attach).
    Any hints are much appreciated!
    Dusan

    Hi,
    alright.
    One day you will outgrow CUIC anyway, so if I were you I would start thinking about creating a custom reporting solution (if you are a Microsoft shop, it's SRSS, if Java, then perhaps BIRT).
    G.

  • MTS with batch management, serialization and Handling unit

    Hello All,
    I am testing a scenario for MTS with batch management, serialization and Handling unit for discrete manufacturing.
    Everything worked fine till I created the Handling unit for the finished product.
    The production order has a quantity of 3 EA.
    It has three serial numbers 1, 2 and 3. (serial numbers can be displayed from order->Header->serial numbers)
    I created one Handling unit for production order quantity of 3 EA.
    I tried to do a goods receipt for the production order using transaction COWBHUWE.
    I get the following error when I try to post the GR:
    Only 0 serial numbers entered instead of 3
    Message no. IO304
    Diagnosis
    There is a serial number obligation, so the number of serial numbers must equal the number of serial numbers in the material document.
    You can post the operation only if you entered the correct number of serial numbers previously.
    System Response
    Depending on the context in which the error arises, the system continues processing, or the required function cannot be performed.
    Procedure
    You have the following options, for example:
    Check that the serial numbers are entered fully.
    If necessary, display an error log.
    If necessary, contact your system administrator.
    What did I miss?
    How to fix this problem?
    Please help.
    Thanks in advance
    George

    I added the serialization procedure HUSL to the serial number profile and it fixed the problem.

  • Inaccurate Shipping and Handling Charge for New FIOS Quantum Gateway Router

    I ordered the new Quantum Gateway Router under the special promotion (reduced price of $99.99. The website specifically said in the ad that "your new router will have a shipping and handling charge of $5.99". When I placed the order the shipping and handling charge was $9.99 ($5.00 more that advertised. Has anyone else had this problem?

    I think everyone who has ordered this router has seen this issue.
    Have you tried calling Verizon?
    Good Luck.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • JBoss and local interfaces (JNDI)

    I'm trying to do simple example involving local interfaces on JBoss.
    There is Bar remote interface, which uses Foo, local interface. And the problem is - i cant locate Foo within Bar:
    ejb-jar.xml:
    <session>
    <ejb-name>BarEjb</ejb-name>
    </session>
    <entity>
    <ejb-name>FooEjb</ejb-name>
    </entity>To make FooEjb accessible for Bar via local interface, as manual says, i have to put additional reference in ejb-jar.xml for Bar:
    <ejb-local-ref>
         <ejb-ref-name>LocalFooEjb</ejb-ref-name>
         <ejb-ref-type>Entity</ejb-ref-type>
         <local-home>beans.FooHome</local-home>
         <local>beans.Foo</local>
         <ejb-link>FooEjb</ejb-link>
    </ejb-local-ref>But it doesnt change anything, JBoss maps Foo like this: "Bound EJB LocalHome 'FooEjb' to jndi 'local/FooEjb@13595063'", and
    public class  Bar ... {
    Object ref = context.lookup("LocalFooEjb");
    }resuluts in exception:
    "java.lang.RuntimeException: LocalFooEjb not bound ..."
    Question: how do i map local interfaces within JBoss to some human-readable and predictable name?
    Thanks for help.
    update:
    specifying JNDI names in jboss.xml does the trick, but i still dont understand why JBoss ignores local-ref element. So anyone who can explain is welcome.
    jboss.xml
    ...xml declaration..
    <jboss>
         <enterprise-beans>
              <session>
                   <ejb-name>StockListEjb</ejb-name>
                   <jndi-name>remote/StockListEjb</jndi-name>
              </session>
              <entity>
                   <ejb-name>StockEjb</ejb-name>
                   <local-jndi-name>local/StockEjb</local-jndi-name>
              </entity>
         </enterprise-beans>
    </jboss>Edited by: anykeyN on Jun 29, 2008 7:06 AM

    [skipped]

  • Exception Handling Problem In BPM

    All
    I am facing an exception handling problem I am using BPM and , I have caught exception in the transformation step but when there is any data problem in that mapping(mentioned in the transformation)
    it is not throwing the exception . is there any option to collect these type of system exception in  the bpm and give a alert thru mail
    is there any way to collect these type of exception happened in the BPE and raise alert thru generic alert
    Thanks
    Jayaraman

    Hi Jayaraman,
        When you say there is any data problem, does that fail the message mapping that you have defined?
    If the message mapping used in the tranformation fails, it should raise an exception in the BPM.
    Did you test the message mapping using the payload and see if it really fails or not?
    Regards,
    Ravi Kanth Talagana

  • How to catch and handle soap foult in a BPM process?

    Hi,
    I have a BPM process which calls a webservice in one of its activities. The webservice throws an exception so the response will contain a soap fault element. I defined exception handlers to handle the error but none of the exception handlers are called. How can I catch and handle these types of error?
    The log contains this:
    A component failed while executing activity '/Process1#Default-1.0/Automatic' (BP-method Automatic) over instance '/Process1#Default-1.0/3/0'.
    Details:
    The method 'CIL_automatic' from class 'BEA_Systems__Inc__.Process1.Default_1_0.Instance' could not be successfully executed.
    Caused by: <?xml version="1.0" encoding="UTF-8" ?>
    <MyException faultString="" faultCode="{http://schemas.xmlsoap.org/soap/envelope/}Server"/>
    fuego.lang.ComponentExecutionException: The method 'CIL_automatic' from class 'BEA_Systems__Inc__.Process1.Default_1_0.Instance' could not be successfully executed.
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)
         at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)
         at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1068)
         at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:389)
         at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:481)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:655)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:616)
         at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)
         at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:60)
         at fuego.metadata.Activity.execute(Activity.java:1022)
         at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:290)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)
         at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)
         at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
         at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)
         at fuego.server.execution.ToDoItem.run(ToDoItem.java:531)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)
         at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:818)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:397)
    Caused by: fuego.soaptype.SoapExecutionException: <?xml version="1.0" encoding="UTF-8" ?>
    <MyException faultString="" faultCode="{http://schemas.xmlsoap.org/soap/envelope/}Server"/>
         at fuego.soaptype.SoapCall.processRemoteException(SoapCall.java:531)
         at fuego.soaptype.SoapCall.invoke(SoapCall.java:292)
         at fuego.soaptype.SoapObject.invoke(SoapObject.java:272)
         at fuego.lang.Invokeable.invokeImpl(Invokeable.java:220)
         at fuego.lang.Invokeable.invoke(Invokeable.java:161)
         at BEA_Systems__Inc__.Process1.Default_1_0.Instance.CIL_automatic(Instance.java:265)
         at BEA_Systems__Inc__.Process1.Default_1_0.Instance.CIL_automatic(Instance.java:281)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)
         ... 27 more
    Thanks,
    fifty

    Hi fifty,
    Did you get a solution to the above problem you have mentioned? I have a similar issue i am trying to fix.
    I have a webservice call in a process activity and if the call does not work i get a soap fault and the fuego.lang.ComponentExecutionException . My process requires that i catch the exception infact any kind of exceptions that occur on that call and perform another activity in the process.
    I have defined an exception handler at the activity level for java.lang.Exception and java.lang.RunTimeException.
    i don't see anything in the catalog which would handle the SOAP fault OR the componentexception.

  • GUI event handling problems appear in 1.4.1 vs. 1.3.1?

    Hi,
    Has anyone else experienced strange event handling problems when migrating from 1.3.1 to 1.4.1? My GUI applications that make use of Swing's AbstractTableModel suddenly don't track mouse and selection events quickly anymore. Formerly zippy tables are now very unresponsive to user interactions.
    I've run the code through JProbe under both 1.3 and 1.4 and see no differences in the profiles, yet the 1.4.1 version is virtually unusable. I had hoped that JProbe would show me that some low-level event-handling related or drawing method was getting wailed on in 1.4, but that was not the case.
    My only guess is that the existing installation of 1.3.1 is interfering with the 1.4.1 installation is some way. Any thoughts on that before I trash the 1.3.1 installation (which I'm slightly reluctant to do)?
    My platform is Windows XP Pro on a 2GHz P4 with 1GB RAM.
    Here's my test case:
    import javax.swing.table.AbstractTableModel;
    import javax.swing.*;
    import java.awt.*;
    public class VerySimpleTableModel extends AbstractTableModel
    private int d_rows = 0;
    private int d_cols = 0;
    private String[][] d_data = null;
    public VerySimpleTableModel(int rows,int cols)
    System.err.println("Creating table of size [" + rows + "," + cols +
    d_rows = rows;
    d_cols = cols;
    d_data = new String[d_rows][d_cols];
    int r = 0;
    while (r < d_rows){
    int c = 0;
    while (c < d_cols){
    d_data[r][c] = new String("[" + r + "," + c + "]");
    c++;
    r++;
    System.err.println("Done.");
    public int getRowCount()
    return d_rows;
    public int getColumnCount()
    return d_cols;
    public Object getValueAt(int rowIndex, int columnIndex)
    return d_data[rowIndex][columnIndex];
    public static void main(String[] args)
    System.err.println( "1.4..." );
    JFrame window = new JFrame();
    window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JPanel panel = new JPanel();
    Dimension size = new Dimension(500,500);
    panel.setMinimumSize(size);
    panel.setMaximumSize(size);
    JTable table = new JTable(new VerySimpleTableModel(40,5));
    panel.add(table);
    window.getContentPane().add(panel);
    window.setSize(new Dimension(600,800));
    window.validate();
    window.setVisible(true);
    Thanks in advance!!
    - Dean

    Hi,
    I've fixed the problem by upgrading to 1.4.1_02. I was on 1.4.1_01.
    I did further narrow down the symptoms more. It seemed the further the distance from the previous mouse click, the longer it would take for the table row to highlight. So, clicking on row 1, then 2, was much faster than clicking on row 1, then row 40.
    If no one else has seen this problem -- good! I wouldn't wish the tremendous waste of time I've had on anyone!
    - Dean

  • Drag and drop problem from wizard inside another drop

    I am using JDK 1.5.0_11 Swing.
    I am facing a Drag and Drop problem which is described below:
    A drag and drop operation invokes a wizard, from which another wizard is invoked. Within one of the panels of this 2nd wizard, I am trying to do a drag and drop from a JTextarea to a JTree node, but am NOT able to. I am not getting any exceptions. I have written a transfer handler for the JTree node to handle the text transfers from a JTextArea. When I try to do a drag and drop from a JTree node to another JTree node I'm getting the 'InvalidDNDOperation: drag and drop in progress' exception.
    When the 2nd wizard is invoked directly, I am able to do the drag and drop from JTextArea to a JTree node and also from a JTree node to another JTree node.
    I tried spawning a new thread for the 2nd wizard, but am still unable to initiate drag and drop.
    Should I be spawning a new thread for the 1st wizard?
    Message was edited by:
    sbandyop

    Please post Swing questions in the Swing forum: http://forum.java.sun.com/forum.jspa?forumID=57

  • Java Audio Metronome | Timing and Speed Problems

    Hi all,
    I’m starting to work on a music/metronome application in Java and I’m running into some problems with the timing and speed.
    For testing purposes I’m trying to play two sine wave tones at the same time at regular intervals, but instead they play in sync for a few beats and then slightly out of sync for a few beats and then back in sync again for a few beats.
    From researching good metronome programming, I found that Thread.sleep() is horrible for timing, so I completely avoided that and went with checking System.nanoTime() to determine when the sounds should play.
    I’m using AudioSystem’s SourceDataLine for my audio player and I’m using a thread for each tone that constantly polls System.nanoTime() in order to determine when the sound should play. I create a new SourceDataLine and delete the previous one each time a sound plays, because the volume fluctuates if I leave the line open and keep playing sounds on the same line. I create the player before polling nanoTime() so that the player is already created and all it has to do is play the sound when it is time.
    In theory this seemed like a good method for getting each sound to play on time, but it’s not working correctly.
    At the moment this is just a simple test in Java, but my goal is to create my app on mobile devices (Android, iOS, Windows Phone, etc)...however my current method isn’t even keeping perfect time on a PC, so I’m worried that certain mobile devices with limited resources will have even more timing problems. I will also be adding more sounds to it to create more complex rhythms, so it needs to be able to handle multiple sounds going simultaneously without sounds lagging.
    Another problem I’m having is that the max tempo is controlled by the length of the tone since the tones don’t overlap each other. I tried adding additional threads so that every tone that played would get its own thread...but that really screwed up the timing, so I took it out. I would like to have a way to overlap the previous sound to allow for much higher tempos.
    I posted this question on StackOverflow where I got one reply and my response back explains why I went this direction instead of preloading a larger buffer (which is what they recommended). In short, I did try the buffer method first, but I want to also update a “beat counter” visual display and there was no way to know when the hardware was actually playing the sounds from the buffer. I mentioned that on StackOverflow and I also asked a couple more questions regarding the buffer method, but I haven’t received any more responses.
    http://stackoverflow.com/questions/24110247/java-audio-metronome-timing-and-speed-problems
    Any help getting these timing and speed issues straightened out would be greatly appreciated! Thanks.
    Here is my code...
    SoundTest.java
    import java.awt.*; 
    import java.awt.event.*; 
    import javax.swing.*; 
    import javax.swing.event.*; 
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundTest implements ActionListener { 
        static SoundTest soundTest; 
        // ENABLE/DISABLE SOUNDS 
        boolean playSound1  = true; 
        boolean playSound2  = true; 
        JFrame mainFrame; 
        JPanel mainContent; 
        JPanel center; 
        JButton buttonPlay; 
        int sampleRate = 44100; 
        long startTime;  
        SourceDataLine line = null;  
        int tickLength; 
        boolean playing = false; 
        SoundElement sound01; 
        SoundElement sound02; 
        public static void main (String[] args) {        
            soundTest = new SoundTest(); 
            SwingUtilities.invokeLater(new Runnable() { public void run() { 
                soundTest.gui_CreateAndShow(); 
        public void gui_CreateAndShow() { 
            gui_FrameAndContentPanel(); 
            gui_AddContent(); 
        public void gui_FrameAndContentPanel() { 
            mainContent = new JPanel(); 
            mainContent.setLayout(new BorderLayout()); 
            mainContent.setPreferredSize(new Dimension(500,500)); 
            mainContent.setOpaque(true); 
            mainFrame = new JFrame("Sound Test");                
            mainFrame.setContentPane(mainContent);               
            mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
            mainFrame.pack(); 
            mainFrame.setVisible(true); 
        public void gui_AddContent() { 
            JPanel center = new JPanel(); 
            center.setOpaque(true); 
            buttonPlay = new JButton("PLAY / STOP"); 
            buttonPlay.setActionCommand("play"); 
            buttonPlay.addActionListener(this); 
            buttonPlay.setPreferredSize(new Dimension(200, 50)); 
            center.add(buttonPlay); 
            mainContent.add(center, BorderLayout.CENTER); 
        public void actionPerformed(ActionEvent e) { 
            if (!playing) { 
                playing = true; 
                if (playSound1) 
                    sound01 = new SoundElement(this, "Sound1", 800, 1); 
                if (playSound2) 
                    sound02 = new SoundElement(this, "Sound2", 1200, 1); 
                startTime = System.nanoTime(); 
                if (playSound1) 
                    new Thread(sound01).start(); 
                if (playSound2) 
                    new Thread(sound02).start(); 
            else { 
                playing = false; 
    SoundElement.java
    import java.io.*; 
    import javax.sound.sampled.*; 
    public class SoundElement implements Runnable { 
        SoundTest soundTest; 
        // TEMPO CHANGE 
        // 750000000=80bpm | 300000000=200bpm | 200000000=300bpm 
        long nsDelay = 750000000; 
        long before; 
        long after; 
        long diff; 
        String name=""; 
        int clickLength = 4100;  
        byte[] audioFile; 
        double clickFrequency; 
        double subdivision; 
        SourceDataLine line = null; 
        long audioFilePlay; 
        public SoundElement(SoundTest soundTestIn, String nameIn, double clickFrequencyIn, double subdivisionIn){ 
            soundTest = soundTestIn; 
            name = nameIn; 
            clickFrequency = clickFrequencyIn; 
            subdivision = subdivisionIn; 
            generateAudioFile(); 
        public void generateAudioFile(){ 
            audioFile = new byte[clickLength * 2]; 
            double temp; 
            short maxSample; 
            int p=0; 
            for (int i = 0; i < audioFile.length;){ 
                temp = Math.sin(2 * Math.PI * p++ / (soundTest.sampleRate/clickFrequency)); 
                maxSample = (short) (temp * Short.MAX_VALUE); 
                audioFile[i++] = (byte) (maxSample & 0x00ff);            
                audioFile[i++] = (byte) ((maxSample & 0xff00) >>> 8); 
        public void run() { 
            createPlayer(); 
            audioFilePlay = soundTest.startTime + nsDelay; 
            while (soundTest.playing){ 
                if (System.nanoTime() >= audioFilePlay){ 
                    play(); 
                    destroyPlayer(); 
                    createPlayer();              
                    audioFilePlay += nsDelay; 
            try { destroyPlayer(); } catch (Exception e) { } 
        public void createPlayer(){ 
            AudioFormat af = new AudioFormat(soundTest.sampleRate, 16, 1, true, false); 
            try { 
                line = AudioSystem.getSourceDataLine(af); 
                line.open(af); 
                line.start(); 
            catch (Exception ex) { ex.printStackTrace(); } 
        public void play(){ 
            line.write(audioFile, 0, audioFile.length); 
        public void destroyPlayer(){ 
            line.drain(); 
            line.close(); 

    Thanks but you have never posted reply s0lutions before ?? And F 4 is definitely not 10 times faster as stated before I upgraded !!

  • Incompletely deployed packages Errors While Starting JBoss and Errors while Accessing LiveCycle Services

    After Configuring JBoss 4.2 for LiveCycle 8.2 using preinstallsingle.pdf  documentation on Linux platform . Deployed the following Jars to Jboss deploy/
    adobe-livecycle-jboss.ear
    adobe-livecycle-native-jboss-x86_linux.ear
    Statred the JBoss and successfully initialized  the adobe database schema using browser. That made me sure that my .ear are deployed successfully. After configuring the DataBase Schema  I am able to log in to the admin ui using u:administrator and p:password  . However I am not able to see any services under the services tab in admin ui . When I look back at the Server Logs I see the following Error
    2009-05-28 04:40:43,883 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
    --- Packages waiting for a deployer ---
    org.jboss.deployment.DeploymentInfo@ae49da0f { url=file:/mnt/sw/jboss-4.2.0.GA/server/all/deploy/hs_err_pid2824.log }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/mnt/sw/jboss-4.2.0.GA/server/all/deploy/hs_err_pid2824.log
      altDD: null
      lastDeployed: 1243500043882
      lastModified: 1243500043000
      mbeans:
    --- Incompletely deployed packages ---
    org.jboss.deployment.DeploymentInfo@ae49da0f { url=file:/mnt/sw/jboss-4.2.0.GA/server/all/deploy/hs_err_pid2824.log }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/mnt/sw/jboss-4.2.0.GA/server/all/deploy/hs_err_pid2824.log
      altDD: null
      lastDeployed: 1243500043882
      lastModified: 1243500043000
    and when I try to access the Rights Management ES webapplication , I am able to see the login ui but not able to log in with any user and on the server logs I get the following error
    2009-05-28 05:26:31,509 ERROR [STDERR] | [com.adobe.livecycle.usermanager.client.DirectoryManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:Exception wrapped in DSCException is Null or NOT An Instance of UMException chainedException:ALC-DSC-012-000: com.adobe.idp.dsc.registry.ServiceNotFoundException: Service: DirectoryManagerService not found.chainedExceptionMessage:Service: DirectoryManagerService not found. chainedException trace:ALC-DSC-012-000: com.adobe.idp.dsc.registry.ServiceNotFoundException: Service: DirectoryManagerService not found.
            at com.adobe.idp.dsc.registry.service.impl.ServiceRegistryImpl.getService(ServiceRegistryImp l.java:1084)
            at com.adobe.idp.dsc.registry.service.impl.ServiceRegistryImpl.getHeadActiveConfiguration(Se rviceRegistryImpl.java:935)
            at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.resolveConfiguration(ServiceEngineImpl.ja va:148)
            at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:73)
            at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:91)
            at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 5)
            at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
            at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
            at com.adobe.livecycle.usermanager.client.DirectoryManagerServiceClient.findPrincipal(Direct oryManagerServiceClient.java:616)
            at com.adobe.edc.server.platform.UMHelper.getAnonymousPrincipal(UMHelper.java:447)
            at com.adobe.edc.ui.console.auth.RMSecurityFilter.isEndUser(RMSecurityFilter.java:43)
            at com.adobe.edc.ui.console.auth.RMSecurityFilter.allowUser(RMSecurityFilter.java:23)
            at com.adobe.idp.um.auth.filter.SecurityFilter.createNewSession(SecurityFilter.java:180)
            at com.adobe.idp.um.auth.filter.SecurityFilter.doFilter(SecurityFilter.java:126)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    I am not sure why jboss is not able to deploy my packages properly which I guess is accountable for missing services. Any help on this issue will be highly appriciated.
    Thanks and Regards,
    Shakra

    Hi,
    I am having exactly the same problem. Did you ever come to a resolution on this problem???
    Thanks,
    Darren

  • [svn] 2773: Update excludes list for JBoss and WebSphere.

    Revision: 2773
    Author: [email protected]
    Date: 2008-08-07 04:35:10 -0700 (Thu, 07 Aug 2008)
    Log Message:
    Update excludes list for JBoss and WebSphere.
    Modified Paths:
    blazeds/trunk/qa/features/excludes.properties

    JGroups is an open source project that allows processes to send messages to one another. LiveCycle data services uses it for its messaging implementation (basically it configures the server to multicast messages to all the listening clients...even in a clustered environment across different LAN/WAN).
    In most cases the default configuration will work fine, the problem is that if you are running a firewall on the server (or your local machine...i.e. windows firewall) the ports that JGroups uses for its communications can be blocked. In a local environment its easy enough to disable windows firewall and bounce your server to get things working.
    In a production environment you need to open the ports that JGroups is using. These settings are in the Global Administration settings (as mentioned by WorkspaceUser above). If you export it and look at the JChannelConnectionProperties you'll see the ports its using and you can set your firewall to allow communication to those ports.
    Bryan

Maybe you are looking for