A Problem when calling a new WDA Application

Hi,
i am opening a new wda application with link in a html page using that code;
in a html;
<a href = "http://domain/sap/bc/webdynpro/sap/zhr_105_user_pass_control" />  Link </a>
in "zhr_105_user_pass_control" wda application;
METHOD onactioncall .
  DATA : lv_url TYPE string.
  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = 'ZNEW_WDA'
    IMPORTING
      out_absolute_url = lv_url.
  DATA lo_window_manager TYPE REF TO if_wd_window_manager.
  DATA lo_api_component  TYPE REF TO if_wd_component.
  DATA lo_window         TYPE REF TO if_wd_window.
  lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).
  CALL METHOD lo_window_manager->create_external_window
    EXPORTING
      url    = lv_url
    RECEIVING
      window = lo_window.
  lo_window->open( ).
ENDMETHOD.
But this is opening wda application in new window and standard sap sessions couldn't starting so the login screen is opening.
How can i redirect my wda application to another wda application with started sessions?
Can somebody help me please?
Thanks.

Hi,
Here you r using below code
CALL METHOD lo_window_manager->create_external_window
    EXPORTING
      url    = lv_url
    RECEIVING
      window = lo_window.
  lo_window->open( ).
It's occuring the external window each time that's why opening Log-On window.
Skip this code and use the code for keep the same window.
-Rick

Similar Messages

  • 11g preview version 3: JNDI Lookup problem when calling PL/SQL webservice

    Hi,
    I am experiencing a problem when calling a PL/SQL Webservice from a BPEL flow.
    When I am trying to test my BPEL flow from the SOA Console I get a "Error doing JNDI lookup on target jdbc/MyDBDS"
    The composite application including the BPEL flow is deployed in one application. "CompositeApp" and the web service in another Application called
    "WebServiceApp".
    Both applications are deployed on the same built in OC4J Application Server
    If I test the webservice in isolation from the SOA console it works. It also seems to be working if the webservice and the and the BPEL flow is in the same project.
    If anyone has any ideas on this one I would be very greatful.
    Thanks in advance

    try creating the MyDBDS connection as an application resource in both applications.

  • I have a problem when updated the new release of iphoto version(11 jun 2012). After that I cannot open any photo libraries and program is error.

    I have a problem when updated the new release of iphoto version(11 jun 2012). After that I cannot open any photo libraries and program is error. I must to force quit iphoto window. There are any fixed bug update.

    If you have no photos:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library' and start.
    Regards
    TD

  • [svn] 4741: Fix to RTE problem when calling captureEndValues() without having first called captureStartValues().

    Revision: 4741
    Author: [email protected]
    Date: 2009-01-29 13:43:53 -0800 (Thu, 29 Jan 2009)
    Log Message:
    Fix to RTE problem when calling captureEndValues() without having first called captureStartValues(). outcome of a patch submission, although this fix is different than the one suggested in the patch.
    QE Notes: None
    Doc Notes: None
    Bugs: patch sdk-17060, bug sdk-16452
    Reviewer: Jason
    tests: checkintests, Mustella: tests/Effects tests/ListDataEffects
    Ticket Links:
    http://bugs.adobe.com/jira/browse/sdk-17060
    http://bugs.adobe.com/jira/browse/sdk-16452
    Modified Paths:
    flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/effects/Effect.as

    Look for the "contact us" on the verizon pages.  http://www22.verizon.com/content/contactus/
    Almost all of the forums here are peer to peer.  Some verizon admins will occasionaly step in and try to get you help.  These admins are usually not able to solve problems for you themselves, but can sometimes give advise or get you in contact with someone who can.

  • Problem when calling a return type BOOLEAN SQL Function in a package

    Hi All,
    I am having problem when trying to call a SQL function in a package with return type BOOLEAN
    The SQL function signature is as follows
    CREATE OR REPLACE PACKAGE RMSOWNER.ORDER_ATTRIB_SQL ****
    FUNCTION GET_PO_TYPE_DESC(O_error_message IN OUT VARCHAR2,
    I_PO_TYPE       IN     VARCHAR2,
    O_PO_TYPE_DESC  IN OUT VARCHAR2)
    RETURN BOOLEAN;
    Following is my java code
    +CallableStatement cs3 = conn.prepareCall("{?=call ORDER_ATTRIB_SQL.GET_PO_TYPE_DESC(?,?,?)}");+
    +cs3.registerOutParameter(1, java.sql.Types.BOOLEAN);+
    +cs3.registerOutParameter(2, java.sql.Types.VARCHAR);+
    +cs3.registerOutParameter(4, java.sql.Types.VARCHAR);+
    +cs3.setString(2, "");+
    +cs3.setString(3, "ST");+
    +cs3.setString(4, "");+
    +ResultSet rs3 = cs3.executeQuery();+
    I get the following exception, i tried changing the sql type(registerOutParameter) from boolean to bit but i still getting this exception.
    But when i call any other functions with return type other than boolean they work perfectly fine.
    Please can anyone help me fix this issue, i am not sure if its anything to do with vendor JDBC classes?
    +java.sql.SQLException: ORA-06550: line 1, column 13:+
    +PLS-00382: expression is of wrong type+
    +ORA-06550: line 1, column 7:+
    +PL/SQL: Statement ignored+
    +     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)+
    +     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)+
    +     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)+
    +     at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)+
    +     at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:215)+
    +     at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:954)+
    +     at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)+
    +     at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3316)+
    +     at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3422)+
    +     at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394)+
    #####

    Hello People!
    There is another workaround!!
    See the example below:
    private String callBooleanAPi(String tableName,String apikey,String dtInicio,String dtFim,String comando) throws SQLException {
                   CallableStatement cs = null;
                   String call = "";
                   String retorno = null;
                   try {
                        if(comando.equalsIgnoreCase("INSERT")){
                             call = "declare x BOOLEAN; y varchar2(2);begin x :=PKG.INSERT(?,?,?,?,?); if x then y := 'S'; else y :='N'; end if; ? := y;end;";
                        } else if(comando.equalsIgnoreCase("UPDATE")){
                             call = "declare x BOOLEAN; y varchar2(2);begin x := PKG.UPDATE(?,?,?,?,?); if x then y := 'S'; else y :='N'; end if; ? := y;end;";
                        } else if(comando.equalsIgnoreCase("DELETE")){
                             call = "declare x BOOLEAN; y varchar2(2);begin x := PKG.DELETE(?,?,?,?,?); if x then y := 'S'; else y :='N'; end if; ? := y;end;";
                        cs = conn.prepareCall(call);
                        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
                        SimpleDateFormat sdfToSqlDate = new SimpleDateFormat("yyyy-MM-dd");
                        java.util.Date dataInicialVigencia =null;
                        java.util.Date dataFinalVigencia = null;
                        Date dtInicialFormatada =null;
                        Date dtFinalFormatada = null;
                        if(dtInicio != null && !dtInicio.equals("")){
                             dataInicialVigencia = sdf.parse(dtInicio);
                             dtInicio =sdfToSqlDate.format(dataInicialVigencia);
                             dtInicialFormatada = Date.valueOf(dtInicio);
                        if(dtFim != null && !dtFim.equals("")){
                             dataFinalVigencia = sdf.parse(dtFim);
                             dtFim =sdfToSqlDate.format(dataFinalVigencia);
                             dtFinalFormatada = Date.valueOf(dtFim);
                        cs.setString(1, tableName);
    cs.setString(2, apikey);
    cs.setDate(3, dtInicialFormatada );
    cs.setDate(4, dtFinalFormatada );
    cs.registerOutParameter(5, java.sql.Types.VARCHAR);
    cs.registerOutParameter(6, java.sql.Types.VARCHAR );
    cs.execute();
                        retorno = cs.getString(6);
                        System.out.println( cs.getString(5));
                   } catch(SQLException e){
                   throw new SQLException("An SQL error ocurred while calling the API COR_VIGENCIA: " + e);
                   } catch(Exception e){
                   Debug.logger.error( "Error calculating order: " + id, e );
                   } finally {
                   if (cs != null) {
                   cs.close();
                   cs = null;
                   return retorno;
    As you can see the CallableStatement class acepts PL/SQl blocks.
    Best Regards.

  • JTextField update problem when called from PropertyChangeEvent

    Hi,
    I'm trying to create forms that can be dynamically loaded with Class.forname(formName).
    Those forms should always inherit some methods that make it easy to pass data to
    them and receive data from them. The idea is that the data comes from a table which
    sends a hashmap (String column/JTextField-name + String Value pairs) with firePropertyChanged
    as soon as a new row is seleceted. The JTextFields in the form are marked with setName("FieldName") that has to correspond to the name of the columns of the table.
    My problem is that I can't update the fields in my form when I'm calling getRow(HashMap)
    from within propertyChangeEvent but that's necessary to keep the forms flexible.
    JTextFieldName.setText(newText) just won't work. But it works when I call getRow(HashMap)
    from the constructor. SwingWorker and threads to update the form didn't help.
    I don't need to call pack() / update() / repaint() on the JFrame, do I ??
    update() / validate() / repaint() etc. didn't work on the JTextField themselves.
    Below is the code for one of the test-forms (just a JPanel that is inserted in a frame)
    with all of it's methods. Does anybody have a solution to this problem ??
    Thanks for taking time for that !!
    Benjamin
    * testTable.java
    * Created on 15. April 2004, 16:12
    package viewcontrol.GUI;
    * @author gerbarmb
    import javax.swing.*;
    import java.awt.*;
    import java.beans.*;
    import java.util.*;
    public class testTable extends javax.swing.JPanel
              implements
                   java.awt.event.KeyListener,
                   java.beans.PropertyChangeListener {
          * public static void main(String[] argv) { testTable tt = new testTable();
          * JFrame jf = new JFrame(); jf.setContentPane(tt); jf.setVisible(true); }
         /** Creates new customizer testTable */
         public testTable() {
              initComponents();
              HashMap hm = new HashMap();
               * Only for debugging, to see that the method getRow() works when
               * called from the constructor.
               hm.put("ttext", "TEst");
               this.getRow(hm);
          * This method is called from within the constructor to initialize the form.
          * WARNING: Do NOT modify this code. The content of this method is always
          * regenerated by the FormEditor.
         private void initComponents() {//GEN-BEGIN:initComponents
              java.awt.GridBagConstraints gridBagConstraints;
              jLabel1 = new javax.swing.JLabel();
              textIn = new javax.swing.JTextField();
              jLabel2 = new javax.swing.JLabel();
              intIn = new javax.swing.JTextField();
              jLabel3 = new javax.swing.JLabel();
              numIn = new javax.swing.JTextField();
              jLabel4 = new javax.swing.JLabel();
              dateIn = new javax.swing.JTextField();
              jLabel5 = new javax.swing.JLabel();
              dateTimeIn = new javax.swing.JTextField();
              jLabel6 = new javax.swing.JLabel();
              jCheckBox1 = new javax.swing.JCheckBox();
              keepValues = new javax.swing.JCheckBox();
              jButton1 = new javax.swing.JButton();
              setLayout(new java.awt.GridBagLayout());
              jLabel1.setText("Text");
              add(jLabel1, new java.awt.GridBagConstraints());
              textIn.setName("ttext");
              textIn.setPreferredSize(new java.awt.Dimension(100, 21));
              textIn.addActionListener(new java.awt.event.ActionListener() {
                   public void actionPerformed(java.awt.event.ActionEvent evt) {
                        textInActionPerformed(evt);
              gridBagConstraints = new java.awt.GridBagConstraints();
              gridBagConstraints.gridwidth = 2;
              add(textIn, gridBagConstraints);
              jLabel2.setText("Integer");
              add(jLabel2, new java.awt.GridBagConstraints());
              intIn.setName("tint");
              intIn.setPreferredSize(new java.awt.Dimension(50, 21));
              add(intIn, new java.awt.GridBagConstraints());
              jLabel3.setText("Number");
              add(jLabel3, new java.awt.GridBagConstraints());
              numIn.setName("tnum");
              numIn.setPreferredSize(new java.awt.Dimension(50, 21));
              add(numIn, new java.awt.GridBagConstraints());
              jLabel4.setText("Date");
              gridBagConstraints = new java.awt.GridBagConstraints();
              gridBagConstraints.gridx = 0;
              gridBagConstraints.gridy = 1;
              add(jLabel4, gridBagConstraints);
              dateIn.setName("tdate");
              dateIn.setPreferredSize(new java.awt.Dimension(50, 21));
              gridBagConstraints = new java.awt.GridBagConstraints();
              gridBagConstraints.gridx = 1;
              gridBagConstraints.gridy = 1;
              add(dateIn, gridBagConstraints);
              jLabel5.setText("DateTime");
              gridBagConstraints = new java.awt.GridBagConstraints();
              gridBagConstraints.gridx = 2;
              gridBagConstraints.gridy = 1;
              add(jLabel5, gridBagConstraints);
              dateTimeIn.setName("tidate");
              dateTimeIn.setPreferredSize(new java.awt.Dimension(80, 21));
              gridBagConstraints = new java.awt.GridBagConstraints();
              gridBagConstraints.gridy = 1;
              add(dateTimeIn, gridBagConstraints);
              jLabel6.setText("Bit");
              gridBagConstraints = new java.awt.GridBagConstraints();
              gridBagConstraints.gridy = 1;
              add(jLabel6, gridBagConstraints);
              jCheckBox1.setName("tbit");
              gridBagConstraints = new java.awt.GridBagConstraints();
              gridBagConstraints.gridy = 1;
              add(jCheckBox1, gridBagConstraints);
              keepValues.setText("keep values");
              gridBagConstraints = new java.awt.GridBagConstraints();
              gridBagConstraints.gridx = 7;
              gridBagConstraints.gridy = 3;
              add(keepValues, gridBagConstraints);
              jButton1.setText("Send");
              jButton1.addActionListener(new java.awt.event.ActionListener() {
                   public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jButton1ActionPerformed(evt);
              gridBagConstraints = new java.awt.GridBagConstraints();
              gridBagConstraints.gridx = 7;
              gridBagConstraints.gridy = 2;
              add(jButton1, gridBagConstraints);
         }//GEN-END:initComponents
         private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
              sendRow();
         }//GEN-LAST:event_jButton1ActionPerformed
         private boolean sendRow() {
              java.util.HashMap hm = new java.util.HashMap();
              Component[] cs = this.getComponents();
              for (int i = 0; i < cs.length; i++) {
                   if (((Component) cs).getName() != null) {
                        if (cs[i] instanceof JCheckBox) {
                             String value = ((JCheckBox) cs[i]).isSelected() ? "1" : "0";
                             hm.put(cs[i].getName(), value);
                        } else if (cs[i] instanceof JCheckBox) {
                             hm.put(cs[i].getName(), ((JTextField) cs[i]).getText());
              } // end for
              firePropertyChange("rowChanged", null, hm);
              return true;
         private void getRow(java.util.HashMap hm) {
              //if (! this.keepValues.isSelected()) {
              Component[] cs = this.getComponents();
              for (int i = 0; i < cs.length; i++) {
                   if (cs[i].getName() != null && hm.containsKey(cs[i].getName())) {
                        Component component = cs[i];
                        String componentName = cs[i].getName();
                        String componentValue = (String) hm.get(component.getName());
                        if (cs[i] instanceof JTextField) {
                             // output for debugging
                             System.out.println("Setting " + cs[i].getName() + " = "
                                       + componentValue);
                             ((JTextField) component).setText(componentValue);
                        } else if (cs[i] instanceof JCheckBox) {
                             // output for debugging
                             System.out.println("JCheckBox found");
                             JCheckBox cb = (JCheckBox) component;
                             boolean selected = (componentValue == null ? false : (componentValue.equals("1")
                                       ? true
                                       : false));
                             ((JCheckBox) component).setSelected(selected);
              } // end for
              /* Uncomment this code snippet to retrieve the text that has been set
              for the components (that means JTextFields)
              This is just for debugging !
              Component[] cs = this.getComponents(); for (int i = 0; i < cs.length;
              i++) { if (cs[i].getName() != null) { if (cs[i] instanceof
              JTextField) { System.out.println("Value of " +cs[i].getName() + " = " +
              ((JTextField) cs[i]).getText()); } } } // end for
         private void textInActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_textInActionPerformed
         }//GEN-LAST:event_textInActionPerformed
         public void keyPressed(java.awt.event.KeyEvent e) {
              if (e.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER) {
                   sendRow();
         public void keyReleased(java.awt.event.KeyEvent e) {
         public void keyTyped(java.awt.event.KeyEvent e) {
         public void propertyChange(java.beans.PropertyChangeEvent evt) {
              if (evt.getPropertyName().equals("newRow")) {
                   final PropertyChangeEvent finalEvt = evt;
                   Runnable makeChanges = new Runnable () {
                        public void run() {
                             getRow((java.util.HashMap) finalEvt.getNewValue());
         // Variables declaration - do not modify//GEN-BEGIN:variables
         private javax.swing.JTextField dateIn;
         private javax.swing.JTextField dateTimeIn;
         private javax.swing.JTextField intIn;
         private javax.swing.JButton jButton1;
         private javax.swing.JCheckBox jCheckBox1;
         private javax.swing.JLabel jLabel1;
         private javax.swing.JLabel jLabel2;
         private javax.swing.JLabel jLabel3;
         private javax.swing.JLabel jLabel4;
         private javax.swing.JLabel jLabel5;
         private javax.swing.JLabel jLabel6;
         private javax.swing.JCheckBox keepValues;
         private javax.swing.JTextField numIn;
         private javax.swing.JTextField textIn;
         // End of variables declaration//GEN-END:variables

    The problem of the change in the form not being comitted is that
    I forgot SwingUtilities.invokeLater(makeChanges); in the bottom
    part in public void propertyChange(java.beans.PropertyChangeEvent evt)
    after having created a new Runnable.
    Changes to the UI often have to be comitted by SwingUtitlities.invokeLater()
    though I don't know that much about Swing yet.
    Thanks to everybody who tried to solve that problem.
    Benjamin

  • Problem when calling the XI web service

    Hi all ,
    I have configured the XI web service and generated its WSDL file. Following is the URL generated from XI webservice creation wizard.
    http://server:50000/XISOAPAdapter/MessageServlet?channel=:BS_B2B_ECOMMERCE_PORTAL:CC_SOAP_SND&version=3.0&Sender.Service=BS_B2B_ECOMMERCE_PORTAL&Interface=http%3A%2F%2Feur%2Fcs%5EMI_TradeAsset_Master_Request_Syn
    When the web service being called by the clinet application (Java application) we are getting the error
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/xi/NW04S_14_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#1 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0
    ModuleProcessorRemote not instantiated
    Has anybody faced this problem b4 ??

    >>When the web service being called by the clinet application (Java application) we are getting the error
    where this error comes? In sender application usuing WSDL file?
    Do check the URL it should be as per the standard.
    You can also call WS from NWDS also. Else you can use SOAP client like Altova XML spy or something else.
    Thanks
    Farooq
    Edited by: Farooq Farooqui on Aug 1, 2008 12:59 PM
    Edited by: Farooq Farooqui on Aug 1, 2008 1:10 PM

  • Problem when calling BPEL process (WS) from APEX

    I am trying to add a web service call to a BPEL process I have created (tried a few others aswell), but every time I try to add the WDSL file I get the following error:
    *1 error has occurred*
    The WSDL document contains multiple SOAP bindings. Application Express only supports WSDL's with one SOAP binding. Click Create Web Service Reference Manually to continue creating a reference for this service.
    It is a simple BPEL process which works fine when called from the BPEL Console, however I have no success when calling it from APEX.
    Am I doing something wrong, or is there a bug in BPEL/APEX?
    Oracle BPEL Console v10.1.3.1.0
    Apex: 3.2
    The WDSL looks like this:
    <definitions name="BPELProcess9" targetNamespace="http://xmlns.oracle.com/BPELProcess9">

    <types>

    <schema>
    <import namespace="http://xmlns.oracle.com/BPELProcess9" schemaLocation="BPELProcess9.xsd"/>
    </schema>

    <schema>
    <import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://xxx:8888/orabpel/xmllib/ws-addressing.xsd"/>
    </schema>
    </types>

    <message name="BPELProcess9ResponseMessage">
    <part name="payload" element="tns:BPELProcess9ProcessResponse"/>
    </message>

    <message name="BPELProcess9RequestMessage">
    <part name="payload" element="tns:BPELProcess9ProcessRequest"/>
    </message>

    <message name="WSAReplyToHeader">
    <part name="ReplyTo" element="wsa:ReplyTo"/>
    </message>

    <message name="WSARelatesToHeader">
    <part name="RelatesTo" element="wsa:RelatesTo"/>
    </message>

    <message name="WSAMessageIDHeader">
    <part name="MessageID" element="wsa:MessageID"/>
    </message>

    <portType name="BPELProcess9Callback">

    <operation name="onResult">
    <input message="tns:BPELProcess9ResponseMessage"/>
    </operation>
    </portType>

    <portType name="BPELProcess9">

    <operation name="initiate">
    <input message="tns:BPELProcess9RequestMessage"/>
    </operation>
    </portType>

    <binding name="BPELProcess9Binding" type="tns:BPELProcess9">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

    <operation name="initiate">
    <soap:operation style="document" soapAction="initiate"/>

    <input>
    <soap:header message="tns:WSAReplyToHeader" part="ReplyTo" use="literal" encodingStyle=""/>
    <soap:header message="tns:WSAMessageIDHeader" part="MessageID" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>

    <binding name="BPELProcess9CallbackBinding" type="tns:BPELProcess9Callback">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

    <operation name="onResult">
    <soap:operation style="document" soapAction="onResult"/>

    <input>
    <soap:header message="tns:WSARelatesToHeader" part="RelatesTo" use="literal" encodingStyle=""/>
    <soap:body use="literal"/>
    </input>
    </operation>
    </binding>

    <service name="BPELProcess9">

    <port name="BPELProcess9Port" binding="tns:BPELProcess9Binding">
    <soap:address location="http://xxxx:8888/orabpel/default/BPELProcess9/1.1"/>
    </port>
    </service>

    <service name="BPELProcess9CallbackService">

    <port name="BPELProcess9CallbackPort" binding="tns:BPELProcess9CallbackBinding">
    <soap:address location="http://set.by.caller"/>
    </port>
    </service>

    <plnk:partnerLinkType name="BPELProcess9">

    <plnk:role name="BPELProcess9Requester">
    <plnk:portType name="tns:BPELProcess9Callback"/>
    </plnk:role>

    <plnk:role name="BPELProcess9Provider">
    <plnk:portType name="tns:BPELProcess9"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

    Allow me to reply to my own thread, for the benefit of any others who might want to invoke a BPEL WS from APEX facing the same problem:
    Apex does not seem to like asynchronous BPEL processes so the trick is to make a synchronous BPEL process call the asynchronous BPEL process.

  • Problem when calling session bean from main.

    Hi everyone
    I get the following error when calling a session bean from main(String args[]).
    Sep 3, 2008 9:11:13 AM com.sun.enterprise.appclient.MainWithModuleSupport <init>
    WARNING: ACC003: Application threw an exception.
    java.lang.NullPointerException
    at databasetest.Main.main(Main.java:26)
    Here is my code beneath.
    I'm using netbeans and glassfish application server.
    Everything is in the same project, called DatabaseTest, I also have deployed the application before running the client.
    I'm running the client as follows, right click on the DatabaseTest-app-client and select run.
    The client:
    package databasetest;
    import com.test.UsersFacadeRemote;
    import javax.ejb.EJB;
    import com.test.Users;
    public class Main {
        @EJB
        private static UsersFacadeRemote usersFacade;
        public static void main(String[] args) {
            Users users = new Users(12, 34);
            usersFacade.create(users);
    }The remote facade I'm calling:
    package com.test;
    import java.util.List;
    import javax.ejb.Remote;
    @Remote
    public interface UsersFacadeRemote {
        void create(Users users);
        void edit(Users users);
        void remove(Users users);
        Users find(Object id);
        List<Users> findAll();
    }The stateless bean:
    package com.test;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    @Stateless
    public class UsersFacade implements UsersFacadeRemote {
        @PersistenceContext
        private EntityManager em;
        public void create(Users users) {
            em.persist(users);
        public void edit(Users users) {
            em.merge(users);
        public void remove(Users users) {
            em.remove(em.merge(users));
        public Users find(Object id) {
            return em.find(com.test.Users.class, id);
        public List<Users> findAll() {
            return em.createQuery("select object(o) from Users as o").getResultList();
    }

    looks like you're banging your head against the same brick wall as [I have done|http://forums.sun.com/thread.jspa?forumID=13&threadID=5317110] and [others have in the past|http://forums.sun.com/thread.jspa?forumID=136&threadID=5259913] if that's any consolation.
    Funny thing is, mine did actually work in the debugger but not when running!
    Strange thing that.
    I did initially interest someone from the developers but they couldn't really help, ended up saying : try instantiating your beans the EJB 2.1 way and see where that gets you. Yes that works but they promised us "hey no more dopey xml deployment descriptors just some cool annotations" didn't they?
    I've got the feeling were' missing something really obvious!
    Edited by: sebthebike on 03-Sep-2008 12:21

  • Problem when calling a method

    hello,
    I have a problem when Im trying to call the make method that in the Tree class.
    Im calling it from the main method like you can see and It writes:
    -Cannot make a static reference to the non-static method make() from the type Tree.
    Can anyone help me please and tell me what is the problem?
    Im using Eclipse 3.1.2
    Thank you.
    //import java.lang.Object;
    //import java.lang.reflect.Array;
    //structure of the node
    class mainClass extends Tree {
         public static void main(String args[]){
              Tree.make();
              //char temporary[]=new char[9];
              //Tic_Tac_Toe pointersToNodes[]=new Tic_Tac_Toe[9];
              //for(j=0;j<9;j++)
                   //temporary[j]='b';     
    public class Tic_Tac_Toe {
         char currentCaseVector[]=new char[9];
         Tic_Tac_Toe PointersToNodes[]=new Tic_Tac_Toe[9];
         int evaluation;
    //class that builds the game tree
    class Tree {
         public Tic_Tac_Toe T1=new Tic_Tac_Toe();
         //char currentCaseVector[]=new char[9];
         public char currentSign;
         Tree(){
             resetCurrentCaseArray(T1);
             //T1.currentCaseVector.setSize(9);
              //System.out.println(T1.currentCaseVector.elementAt(2));
         void make(){
              Tic_Tac_Toe T = new Tic_Tac_Toe();
              int howMuchCloser,i;
              Tree tree=new Tree();
              for(i=0;i<9;i++)
                   T.currentCaseVector='b';
              howMuchCloser=1;
              for(i=0;i<9;i++){
                   T.PointersToNodes[findAvailablePlaceOnPointersToNodes(T)]=tree.buildNewTree(1,'o',T.currentCaseVector,howMuchCloser);
                   howMuchCloser++;
         Tic_Tac_Toe buildNewTree(int i,char currentSign,char temp[],int howMuchCloser)throws ArrayIndexOutOfBoundsException{
              int j=0;
              //int howMuchCloser=1;
              //for(j=i;j<9;j++){
              Tic_Tac_Toe T1=new Tic_Tac_Toe();
              currentSign=changeSign(currentSign);
              resetCurrentCaseArray(T1);
              //try{
              setBoard(T1.currentCaseVector,temp,howMuchCloser,currentSign);
              //catch(ArrayIndexOutOfBoundsException e){
                   //System.out.print("ArrayIndexOutOfBoundsException");
                   //System.out.println(i);          
              printTest(T1);
              temp=T1.currentCaseVector;
              howMuchCloser=1;
              if((isFull(T1.currentCaseVector))==true)
                   return T1;
              if(checkWin(T1)){
                   return T1;
              //printTest(T1);
                   //break;
              for(j=i;j<9;j++){
                   T1.PointersToNodes[findAvailablePlaceOnPointersToNodes(T1)]=buildNewTree(i+1,currentSign,temp,howMuchCloser);                              
                   howMuchCloser++;
                        //if(checkIfBlankEqualOne(T1.currentCaseVector)==false)
                   //howMuchCloser++;
                   //T1.PointersToNodes[findAvailablePlaceOnPointersToNodes(T1)]=buildNewTree(i+1,currentSign,temp);
         return T1;
         int findCloser(char charArray[],int howMuchCloser){
              int i;
              for(i=0;i<9;i++){
                   if (charArray[i]=='b'){
                        howMuchCloser--;
                   else
                        continue;
                   if (howMuchCloser==0)
                        break;     
              return i;
         void setBoard(char current[],char previous[],int howMuchCloser,char iksOrCircle){
                   int i;
                   for(i=0;i<9;i++){
                        current[i]=previous[i];/******/
                   current[findCloser(current,howMuchCloser)]=iksOrCircle;
         char changeSign(char sign){
              if(sign=='x')
                   return 'o';
              else
                   return 'x';
         boolean isFull(char array[]){
              int i;
              for(i=0;i<9;i++){
                   if(array[i]=='b'){
                        return false;
              return true;
         void resetCurrentCaseArray(Tic_Tac_Toe T1){
              for(int i=0;i<9;i++)
                   T1.currentCaseVector[i]='b';
         boolean checkWin(Tic_Tac_Toe T1){
              int count1=0;
              int count2=0;
              //checking columns
              int i,j;
              for(i=0;i<3;i++){
                   for(j=i;j<(i+7);j+=3){
                        if(T1.currentCaseVector[j]=='x')
                             count1++;
                        if(T1.currentCaseVector[j]=='o')
                             count2++;
                   if(count1==3)
                        return true;
                   if(count2==3)
                        return true;
                   count1=0;
                   count2=0;
              //checking rows
              for(i=0;i<7;i+=3){
                   for(j=i;j<(i+3);j++){
                        if(T1.currentCaseVector[j]=='x')
                             count1++;
                        if(T1.currentCaseVector[j]=='o')
                             count2++;
                   if(count1==3)
                        return true;
                   if(count2==3)
                        return true;
                   count1=0;
                   count2=0;
              //checking diagonal
              for(i=0;i<9;i+=4){
                   if(T1.currentCaseVector[i]=='x')
                        count1++;
                   if(T1.currentCaseVector[i]=='o')
                        count2++;
              if(count1==3)
                   return true;
              if(count2==3)
                   return true;
              count1=0;
              count2=0;
              for(i=2;i<7;i+=2){
                   if(T1.currentCaseVector[i]=='x')
                        count1++;
                   if(T1.currentCaseVector[i]=='o')
                        count2++;
              if(count1==3)
                   return true;
              if(count2==3)
                   return true;
              return false;
         public int findAvailablePlaceOnPointersToNodes(Tic_Tac_Toe tic_tac_toe){
              int i;
              for(i=0;i<9;i++)
                   if(tic_tac_toe.PointersToNodes[i]==null)
                        return i;
              return -1;
         void printTest(Tic_Tac_Toe T1){
              for(int i=0;i<9;i++)
                   System.out.println(T1.currentCaseVector[i]);
         boolean checkIfBlankEqualOne(char array[]){
              for(int i=0;i<9;i++){
                   if(i<8)
                        if(array[i]=='b')
                             return false;
              if(array[8]=='b')
                   return true;
              return false;
         /*void makeFirst(char temporary[]){
              for(int i=0;i<9;i++)
                   temporary[i]='b';

    I have two things in mind:
    1. either modify the make() in class Tree as static
    static void make() {//caution u may have to worry about instance variables referenced under this method2.
    under your main static method, invoke it like this instead
    mainClass mc=new mainClass();
    mc.make();//not Tree.make();

  • Calling WDJ from WDA application

    Hi experts,
    Can anyone please tell me that how 2 call a WDJ application from a WDA application. Please explain in detail as i am complete novice in this field.
    thnx.

    Hi Thomas and experts,
    I have requirement where i need to call WD java standard application.
    My requirement : I am displaying teamview in my MSS through OADP by using WD ABAP...
                                 Initial Screen displays columns like Position, Employee name , Job ...etc
                                     when manager select position in teamview ....it has to check whether positions region went live or not.
                                    I) IF position region went live then it has to open 3rd party tool and pass parameters(Here i am open 3rd      party URL and passing parameters)
    Here my requirement, 2)Already we have standard WDJ application which is using as of now, so if positions region has not gone live then i have to call standard WDJ application with passing parameter and skipping initial screen which is displaying teamview and continue with position details
    Is this possible through portal which explained above. can any one suggest me how to proceed .
    Thanks in advance...
    Regards,
    Farooq

  • Unexpected error when configure a new web application

    hello,
    I'm trying to create a new web application ( under Deployments in console). I
    just manually create an sub-dir under ".\config\<active-domain>\applications"
    directory, say WebAppDir. Then I went to the console and right-click on the "Web
    Applications" and select "Configure a new Web Application", then I filled out
    the Name, URI, and Path as follows:
    Name: WebAppDir URI: WebAppDir Path: .\config\<active-domain>\applications
    then click "Create" , I then got the following error message, I don't know why
    and what i did wrong... please let me know what did i do wrong ? I don't have
    any things under the new dir i created, but I thought i would be fine, but it
    didn't.
    Here is the error message:
    An unexpected error was encountered in processing your request.
    Exception java.lang.NullPointerException at weblogic.management.console.pages._panels._mbean._webappcomponent._jspService(_webappcomponent.java:212)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Current Date Wed Jun 06 17:01:25 CDT 2001
    thanks so much...i really appreciate your helps.
    -Kieu

    Hi Kieu,
    Perhaps you can try moving the webapp dir outside config/mydomain/applications.
    The webapp should be configurable from anywhere besides the applications directory.
    Any archives placed in the applications directory will be deployed automatically.
    I'm not sure why you are seeing the webapp as an app below your Applications node
    in the console though. Which version of wls are you using?
    Vi
    "Kieu Tram" <[email protected]> wrote:
    >
    I guess the problem happened because we can't deploy the exploded directory
    format
    using the console.
    but when i follow the instruction in
    http://e-docs.bea.com/wls/docs60/adminguide/config_web_app.html#122155
    , to create
    the web applications, i turned out the sub-dir "myWebApp" that i created
    under
    ".\config\mydomain\applications" will appear in "Applications" node instead
    of
    under "Web Applications" node, even though i put all the "web.xml", "weblogic.xml"
    under the dir "myWebApp\WEB-INF" already.
    I would really appreciate your help...
    thanks,
    Kieu
    "Kieu Tram" <[email protected]> wrote:
    hello,
    I'm trying to create a new web application ( under Deployments in console).
    I
    just manually create an sub-dir under ".\config\<active-domain>\applications"
    directory, say WebAppDir. Then I went to the console and right-click
    on the "Web
    Applications" and select "Configure a new Web Application", then I filled
    out
    the Name, URI, and Path as follows:
    Name: WebAppDir URI: WebAppDir Path: .\config\<active-domain>\applications
    then click "Create" , I then got the following error message, I don't
    know why
    and what i did wrong... please let me know what did i do wrong ? I don't
    have
    any things under the new dir i created, but I thought i would be fine,
    but it
    didn't.
    Here is the error message:
    An unexpected error was encountered in processing your request.
    Exception java.lang.NullPointerException at weblogic.management.console.pages._panels._mbean._webappcomponent._jspService(_webappcomponent.java:212)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) atweblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Current Date Wed Jun 06 17:01:25 CDT 2001
    thanks so much...i really appreciate your helps.
    -Kieu

  • Problems when updating amavisd-new to 2.5.0

    Hi the list !
    Thanks for the great tips and support we got here. I’m really newbie on mac os x server while it’s now a long time I’m on clients ones.
    I wanted to follow topicdesk.com tutorials to update spamassassin and clamav as I saw here the initial conf by Apple isn’t working.
    Then, I saw before updating SpamAssassin that I had to update amavisd-new first. So, I begin with this tutorial. Here’s what happened (sorry for the long-long post) :
    First installed Xcode 2.4.1.
    Everything was fine until the CPAN Perl Module updates, as I always had the “make had returned bad status, install seems impossible” error. Looking for some info on the net, I then understand that you have to install everything Apple suggests as if you don’t, you’ll have later problems whith “make” command (I know, I first wanted to install only gcc that seemed necessary to me, and when nothing works as expected, I had to go back and install everything ...) In fact, the missing BSD SDK was supsected to be the missing thing, but not only. Then, just install everything and this is fine.
    Updated the whole asked Perl module without any problem, following the tutorial
    Then Reboot the server when asked ; amavisd-new new version 2.5.0 seems OK. Then, the beginning of problems...
    My smtp log which is set in debug mode shows lots of error entries such as
    May 24 13:11:21 xserve postfix/smtpd[302]: connect from xxxx.adsl.hansenet.de[xxx.xxx.xxx.xxx]
    May 24 13:11:22 xserve postfix/smtpd[302]: 0A64A71E1A: client=xxxx.adsl.hansenet.de[xxx.xxx.xxx.xxx]
    May 24 13:11:22 xserve postfix/cleanup[349]: 0A64A71E1A: message-id=<890420070524111120@broilingwhelped>
    May 24 13:11:22 xserve postfix/qmgr[74]: 0A64A71E1A: from=<[email protected]>, size=1188, nrcpt=1 (queue active)
    May 24 13:11:22 xserve postfix/smtp[350]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    May 24 13:11:22 xserve postfix/smtp[350]: 0A64A71E1A: to=<[email protected]>, relay=none, delay=1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    May 24 13:11:22 xserve postfix/smtpd[302]: disconnect from xxxx.adsl.hansenet.de[xxx.xxx.xxx.xxx]
    Obviously, amavisd-new isn’t running. Then, trying sudo /usr/bin/amavisd and it say there are mistakes in the conf file. BTW, it’s not really obvious trying to migrate settings from the old conf file to the new one :
    I don't understand how this old conf settings
    @local_domains_acl = ( ".$mydomain" ); # $mydomain and its subdomains
    @local_domains_maps = ( 1 );
    # @local_domains_acl = qw(); # default is empty, no recipient treated as local
    # @local_domains_acl = qw( .example.com );
    # @local_domains_acl = qw( .example.com !host.sub.example.net .sub.example.net );
    # @local_domains_acl = ( ".$mydomain", '.example.com', 'sub.example.net' );
    has to bee changed in the new one way :
    @local_domains_maps = ( [".$mydomain"] ); # $mydomain and its subdomains
    # @local_domains_maps = (); # default is empty list, no recip. considered local
    # @local_domains_maps = # using ACL lookup table
    # ( [ ".$mydomain", 'sub.example.net', '.example.com' ] );
    # @local_domains_maps = # similar, split list elements on whitespace
    # ( [qw( .example.com !host.sub.example.net .sub.example.net )] );
    # @local_domains_maps = ( new_RE( qr'[@.]example\.com$'i ) ); # using regexp
    # @local_domains_maps = ( read_hash("$MYHOME/local_domains") ); # using hash
    # perhaps combined with Postfix: mydestination = /var/amavis/local_domains
    # for debugging purposes: dump_hash($local_domains_maps[0]);
    Anyway, I doubt this is the (real?) reason to my problems
    I correct some of these problems (in fact I forgot to look at amavis.log, but here is what it said) :
    May 24 13:53:30 xserve amavis[1072]: INFO: SA version: 3.0.1, 3.000001, no optional modules: Mail::SpamAssassin::SQLBasedAddrList Net::DNS::RR::SOA Net::DNS::RR::NS Net::DNS::RR::MX Net::DNS::RR::A Net::DNS::RR::AAAA Net::DNS::RR::PTR Net::DNS::RR::CNAME Net::DNS::RR::TXT Net::CIDR::Lite Sys::Hostname::Long DBD::mysql IP::Country::Fast Mail::SPF Mail::SPF::Query Mail::SPF::Mech Mail::SPF::Mech::A Mail::SPF::Mech::All Mail::SPF::Mech::Exists Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6 Mail::SPF::Mech::Include Mail::SPF::Mech::MX Mail::SPF::Mech::PTR Mail::SPF::Mod Mail::SPF::Mod::Exp Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech Mail::SPF::v1::Record Mail::SPF::v2::Record
    May 24 13:53:30 xserve amavis[1072]: SpamControl: init_pre_chroot done
    May 24 13:53:30 xserve amavis[1072]: Net::Server: 2007/05/24-13:53:30 Amavis (type Net::Server::PreForkSimple) starting! pid(1072)
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Setting gid to "82 82"
    May 24 13:53:30 xserve amavis[1072]: Net::Server: Setting uid to "82"
    May 24 13:53:30 xserve amavis[1072]: Module Amavis::Conf 2.086
    May 24 13:53:30 xserve amavis[1072]: Module Archive::Zip 1.18
    May 24 13:53:30 xserve amavis[1072]: Module BerkeleyDB 0.26
    May 24 13:53:30 xserve amavis[1072]: Module Compress::Zlib 2.004
    May 24 13:53:30 xserve amavis[1072]: Module Convert::TNEF 0.17
    May 24 13:53:30 xserve amavis[1072]: Module Convert::UUlib 1.08
    May 24 13:53:30 xserve amavis[1072]: Module DB_File 1.810
    May 24 13:53:30 xserve amavis[1072]: Module Digest::MD5 2.36
    May 24 13:53:30 xserve amavis[1072]: Module MIME::Entity 5.420
    May 24 13:53:30 xserve amavis[1072]: Module MIME::Parser 5.420
    May 24 13:53:30 xserve amavis[1072]: Module MIME::Tools 5.420
    May 24 13:53:30 xserve amavis[1072]: Module Mail::Header 1.77
    May 24 13:53:30 xserve amavis[1072]: Module Mail::Internet 1.77
    May 24 13:53:30 xserve amavis[1072]: Module Mail::SpamAssassin 3.000001
    May 24 13:53:30 xserve amavis[1072]: Module Net::Server 0.96
    May 24 13:53:30 xserve amavis[1072]: Module Net::Server::PreFork 0.96
    May 24 13:53:30 xserve amavis[1072]: Module Net::Server::PreForkSimple 0.96
    May 24 13:53:30 xserve amavis[1072]: Module Time::HiRes 1.9707
    May 24 13:53:30 xserve amavis[1072]: Module URI 1.35
    May 24 13:53:30 xserve amavis[1072]: Module Unix::Syslog 0.99
    May 24 13:53:30 xserve amavis[1072]: Amavis::DB code loaded
    May 24 13:53:30 xserve amavis[1072]: Amavis::Cache code loaded
    May 24 13:53:30 xserve amavis[1072]: SQL base code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: SQL::Log code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: SQL::Quarantine NOT loaded
    May 24 13:53:30 xserve amavis[1072]: Lookup::SQL code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: Lookup::LDAP code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: AM.PDP-in proto code loaded
    May 24 13:53:30 xserve amavis[1072]: SMTP-in proto code loaded
    May 24 13:53:30 xserve amavis[1072]: Courier proto code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: SMTP-out proto code loaded
    May 24 13:53:30 xserve amavis[1072]: Pipe-out proto code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: BSMTP-out proto code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: Local-out proto code loaded
    May 24 13:53:30 xserve amavis[1072]: OS_Fingerprint code NOT loaded
    May 24 13:53:30 xserve amavis[1072]: ANTI-VIRUS code loaded
    May 24 13:53:30 xserve amavis[1072]: ANTI-SPAM code loaded
    May 24 13:53:30 xserve amavis[1072]: ANTI-SPAM-SA code loaded
    May 24 13:53:30 xserve amavis[1072]: Unpackers code loaded
    May 24 13:53:30 xserve amavis[1072]: Found $file at /usr/bin/file
    May 24 13:53:30 xserve amavis[1072]: No $dspam, not using it
    May 24 13:53:30 xserve amavis[1072]: No $altermime, not using it
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .mail
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .asc
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .uue
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .hqx
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .ync
    May 24 13:53:30 xserve amavis[1072]: No decoder for .F tried: unfreeze, freeze -d, melt, fcat
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .Z at /usr/bin/uncompress
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .gz at /usr/bin/gzip -d
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .gz (backup, not used)
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .bz2 at /usr/bin/bzip2 -d
    May 24 13:53:30 xserve amavis[1072]: No decoder for .lzo tried: lzop -d
    May 24 13:53:30 xserve amavis[1072]: No decoder for .rpm tried: rpm2cpio.pl, rpm2cpio
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .cpio at /bin/pax
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .tar at /bin/pax
    May 24 13:53:30 xserve amavis[1072]: Found decoder for .deb at /usr/bin/ar
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .zip
    May 24 13:53:30 xserve amavis[1072]: No decoder for .7z tried: 7zr, 7za, 7z
    May 24 13:53:30 xserve amavis[1072]: No decoder for .rar tried: rar, unrar
    May 24 13:53:30 xserve amavis[1072]: No decoder for .arj tried: arj, unarj
    May 24 13:53:30 xserve amavis[1072]: No decoder for .arc tried: nomarch, arc
    May 24 13:53:30 xserve amavis[1072]: No decoder for .zoo tried: zoo, unzoo
    May 24 13:53:30 xserve amavis[1072]: No decoder for .lha tried: lha
    May 24 13:53:30 xserve amavis[1072]: No decoder for .cab tried: cabextract
    May 24 13:53:30 xserve amavis[1072]: No decoder for .tnef tried: tnef
    May 24 13:53:30 xserve amavis[1072]: Internal decoder for .tnef
    May 24 13:53:30 xserve amavis[1072]: No decoder for .exe tried: rar, unrar; lha; arj, unarj
    May 24 13:53:30 xserve amavis[1072]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
    May 24 13:53:30 xserve amavis[1072]: (!!)TROUBLE in pre_loop_hook: Please create an empty directory /var/amavis/db to hold a database (config variable $db_home)
    I created the directory, then it says
    May 24 13:58:12 xserve amavis[1133]: (!!)TROUBLE in pre_loop_hook: db_home directory is not writable: /var/amavis/db at /usr/bin/amavisd line 7783.
    I changed CHMOD to 777 (just see later to be more restricitve)
    And then it seems OK
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: starting. /usr/bin/amavisd at localhost amavisd-new-2.2.0 (20041102), Unicode aware
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: user=, EUID: 0 (0); group=, EGID: 0 0 (0 0)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Perl version 5.008006
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: 2007/05/24-14:11:49 Amavis (type Net::Server::PreForkSimple) starting! pid(44)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Binding to UNIX socket file /var/amavis/amavisd.sock using SOCK_STREAM
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Setting gid to "82 82"
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Net::Server: Setting uid to "82"
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Amavis::Conf 2.033
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Archive::Tar 1.22
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Archive::Zip 1.18
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Compress::Zlib 2.004
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Convert::TNEF 0.17
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Convert::UUlib 1.08
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module DB_File 1.810
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module MIME::Entity 5.420
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module MIME::Parser 5.420
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module MIME::Tools 5.420
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Mail::Header 1.77
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Mail::Internet 1.77
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Mail::SpamAssassin 3.000001
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Net::Cmd 2.26
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Net::SMTP 2.29
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Net::Server 0.96
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Time::HiRes 1.9707
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Module Unix::Syslog 0.99
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Amavis::DB code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Amavis::Cache code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Lookup::SQL code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Lookup::LDAP code NOT loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: AMCL-in protocol code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: SMTP-in protocol code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: ANTI-VIRUS code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: ANTI-SPAM code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Unpackers code loaded
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $file at /usr/bin/file
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $arc, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $gzip at /usr/bin/gzip
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $bzip2 at /usr/bin/bzip2
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $lzop, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $lha, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $unarj, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $uncompress at /usr/bin/uncompress
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $unfreeze, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $unrar, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $zoo, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found $cpio at /usr/bin/cpio
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $ar, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $rpm2cpio, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $cabextract, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No $dspam, not using it
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: KasperskyLab AntiViral Toolkit Pro (AVP)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: KasperskyLab AVPDaemonClient
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: H+BEDV AntiVir or CentralCommand Vexira Antivirus
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Command AntiVirus for Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Symantec CarrierScan via Symantec CommandLineScanner
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: DrWeb Antivirus for Linux/FreeBSD/Solaris
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: F-Secure Antivirus
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: CAI InoculateIT
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: MkS_Vir for Linux (beta)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: MkS_Vir daemon
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: ESET Software NOD32
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: ESET Software NOD32 - Client/Server Version
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Norman Virus Control v5 / Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Panda Antivirus for Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: NAI McAfee AntiVirus (uvscan)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: VirusBuster (Client + Daemon)
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: CyberSoft VFind
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: Ikarus AntiVirus for Linux
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No primary av scanner: BitDefender
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No secondary av scanner: FRISK F-Prot Antivirus
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: No secondary av scanner: Trend Micro FileScanner
    May 24 14:11:49 localhost /usr/bin/amavisd[44]: SpamControl: initializing Mail::SpamAssassin
    May 24 14:11:52 localhost /usr/bin/amavisd[44]: SpamControl: done
    But in fact there's still a problem :
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) ESMTP::10024 /var/amavis/amavis-20070524T141222-00219: <p.estxxxx@xxxxxxx> -> <pacvolley@ xxxxxxx > Received: SIZE=5929 from xserve.xxxxx ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00219-01 for <pacvolley@ xxxxxxx>; Thu, 24 May 2007 14:12:22 +0200 (CEST)
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) body hash: 05f429e5a692012d98323c55a540b730
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) Checking: [82.241.222.174] <p.estxxx@xxxxx> -> <pacvolley@xxxxx>
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) p003 1 Content-Type: multipart/alternative
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) p001 1/1 Content-Type: text/plain, size: 394 B, name:
    May 24 14:12:22 localhost /usr/bin/amavisd[219]: (00219-01) p002 1/2 Content-Type: text/html, size: 3962 B, name:
    May 24 14:12:22 localhost /usr/bin/amavisd[302]: (00219-01) run_command: child process [302]: Can't close main::stdin: Bad file descriptor at /usr/bin/amavisd line 1589.\n
    May 24 14:12:22 localhost /usr/bin/amavisd[302]: (00219-01) SMTP shutdown: tempdir is being removed: /var/amavis/amavis-20070524T141222-00219
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) TROUBLE in check_mail: mime_decode-1 FAILED: parsing file(1) results - missing last 2 results at (eval 40) line 150.
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) PRESERVING EVIDENCE in /var/amavis/amavis-20070524T141222-00219
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) TIMING [total 284 ms] - SMTP EHLO: 21 (7%), SMTP pre-MAIL: 3 (1%), mkdir tempdir: 1 (0%), create email.txt: 2 (1%), SMTP pre-DATA-flush: 8 (3%), SMTP DATA: 5 (2%), body_hash: 2 (1%), mkdir parts: 3 (1%), mime_decode: 57 (20%), rundown: 181 (64%)
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) TROUBLE in process_request: Error writing a SMTP response to the socket: Broken pipe at (eval 36) line 760, <GEN3> line 208.
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) Requesting process rundown after fatal error
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) load: 100 %, total idle 0.001 s, busy 0.287 s
    May 24 14:12:23 localhost /usr/bin/amavisd[219]: (00219-01) SMTP shutdown: Error writing a SMTP response to the socket: Bad file descriptor at (eval 36) line 760.\n
    And in the mail log I get corresponding errors such as :
    May 24 14:30:20 xserve postfix/smtpd[626]: connect from xxxxxx.club-internet.fr[xxx.xxx.xxx.xxx]
    May 24 14:30:20 xserve postfix/smtpd[626]: 5580872531: client= xxxxxx.club-internet.fr[xxx.xxx.xxx.xxx]
    May 24 14:30:20 xserve postfix/cleanup[452]: 5580872531: message-id=<00e301c79dff$49859120$0100a8c0@pcservice>
    May 24 14:30:20 xserve postfix/smtpd[626]: disconnect from xxxxxx.club-internet.fr[xxx.xxx.xxx.xxx]
    May 24 14:30:20 xserve postfix/qmgr[64]: 5580872531: from=<[email protected]>, size=95594, nrcpt=1 (queue active)
    May 24 14:30:20 xserve postfix/smtp[464]: 5580872531: to=<sjoly@ xxxxxx.com>, relay=127.0.0.1[127.0.0.1], delay=0, status=deferred (host 127.0.0.1[127.0.0.1] said: 421 4.3.2 Service shutting down, closing channel (in reply to end of DATA command))
    I first thought mails were lost, and obviously as it won’t be so easy to fix alone without any help (and time is running loosing mails), I decided to come back to the old amavisd-new version, restoring /usr/bin/amavis and amavis.conf, and rebooting computer.
    Then, another problem with Perl modules that were updated so that old amavis seemed also not working. I decided to replace /Library/Perl and System/Library/Perl with new ones from a clean fresh install on my local server. Rebooted, and seems to be OK as before. Then looked for Postfix and understood than flushing will force deferred mails to be processed.
    Anyway, all is to be done again. If anybody here as an idea of what's going wrong, I'll be glad to learn ...
      Mac OS X (10.4.9)  

    well, there you have it – a classical if then loop.
    seems i'm still stuck somewhere in the middle of the amavisd.conf nightmare. had amavisd-new 2.4.5 / spamassassin 3.1.8 up and running after a real nightmare (which had to do with daemonize=1).
    after i tried to get up-to-date with amavisd-new 2.5.1 and spamassassin 3.2.1 i saw the same problems (see below) again, while launchd tried to get amavisd started.
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: exited with exit code: 2
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: respawning too quickly! throttling
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: 9 more failures without living at least 60 seconds will cause job removal
    Jun 15 05:14:11 mail launchd: org.amavis.amavisd: will restart in 10 seconds
    remembering the previous troubles, i double checked all things, which could be set wrong (daemonize, etc.) and all was well. tried a second install and all to no success.
    later i had the idea, it might be the new amavisd.conf, which troubles (why ever) the startup. so i used the v2.4.5 one and lo and behold, it worked. but why? what is so strange/new/different in 2.5.1, that the startup of amavisd gets broken?
    now i read, that they changed a bunch of stuff and i certainly would be using the newer versions conf file, but it seems i don't get it right configured. i'm on the latest updated 10.4.9 server with all fixes installed. every service is working, mail gets in/out and gets even tagged.
    well, i didn't do the setup with the 2 users junkmail/nojunkmail yet. is it really necessary to set them up as local users? can't they be handled as every other user which has mail enabled via wgm?
    anyone can help me here? thx.
    Various   Mac OS X (10.4.9)   Mac OS X Server (10.4.9)

  • Character conversion problems when calling FM via RFC from Unicode ECC 6.0?

    Hi all,
    I faced a Cyrillic character convertion problem while calling an RFC function from R/3 ECC 6.0 (initialized as Unicode system - c.p. 4103). My target system is R/3 4.6C with default c.p. 1500.
    The parameter I used in my FM interface in target system is of type CHAR10 (single-byte, obviously).
    I have defined rfc-connection (SM59) as an ABAP connection and further client/logon language/user/password are supplied.
    The problem I faced is, that Cyrillic symbols are transferred as '#' in the target system ('#' is set as default symbol in RFC-destination definition in case character convertion error is met).
    Checking convertions between c.p. 4103  and target c.p. 1500 in my source system using tools of transaction i18n shows no errors - means conversion passed O.K. It seems default character conversion executed by source system whithin the scope of RFC-destination definition is doing something wrong.
    Further, I played with MDMP & Unicode settings whithin the RFC-destination definition with no successful result - perhaps due to lack of documentation for how to set and manage these parameters.
    The question is: have someone any experience with any conversion between Unicode and non-Unicide systems via RFC-call (non-English target obligatory !!!), or can anyone share valuable information regarding this issue - what should be managed in the RFC-destination in order to get character conversion working? Is it acceptable to use any character parameter in the target function module interface at all?
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP ABAP Consultant

    hey,
    I had a similar experience. I was interfacing between 4.6 (RFC), PI and ECC 6.0 (ABAP Proxy). When data was passed from ECC to 4.6, RFC received them incorrectly. So i had to send trimmed strings from ECC and receive them as strings in RFC (esp for CURR and QUAN fields). Also the receiver communication channel in PI (between PI and  RFC) had to be set as Non unicode. This helped a bit. But still I am getting 2 issues, truncation of values and some additional digits !! But the above changes resolved unwanted characters problem like "<" and "#". You can find a related post in my id. Hope this info helps..

  • Reports layout/format problem when called from forms

    hi,
    using forms and reports builder 10g OS winxp
    i have created web and paper layout report with pre-defined template gray (rdf). when i run the web layout there is no problem.
    when i call this report from form using
    web.show_document('http://machine:8889/reports/rwservlet?report=mail_report.rdf&destype=cache&desformat=HTML&userid=abc/xyz@dbname&para1='||:parameter1, '_blank');
    the layout (cell bgcolors of the table) does not appear.
    pl guide what am i missing out.
    thanks

    Hi,
    that has nothing to do with forms. Your call inside web.show_document is a servlet-call. With this you get the paper layout of a report. If you want to get the web-layout, you have to call the report with a jsp-call. In your case that might look like http://machine:8889/reports/mail_report.jsp?userid=.....
    If you store your report as jsp-file, you can use it for paper & web-layout, as rdf only paper-layout is possible.
    http://download.oracle.com/docs/cd/B25016_08//doc/dl/bi/B14048_02/pbr_arch.htm#i1005927
    http://download.oracle.com/docs/cd/B25016_08//doc/dl/bi/B14048_02/pbr_run.htm#g1022421
    Regards
    Rainer

Maybe you are looking for