Bean is not working in jsff

hi All
i developed 4 .jsff fragments and i have included in jspx page .
i created one bean with 4 variable and i crated datacontrole for the same bean .
when i am mapping these variables with components which are in .jsff fragments . the values are not coming .
when i run the .jspx page i am not getting any error and i am getting out put without values which i have written and mapped in the bean .
Any one please help me.

Sounds like you are including jsff in the jspx using jsp:include, this approach may not help you if the jsff is built using ADF Binding. Please note that jsp:include will load only the page definition file associated with the parent/containing page.If you are planning to reuse jsff, try defining it as taskflow and embed the same as a region in the jspx

Similar Messages

  • Bean is not worked  in the jsff page

    Hi
    JDeveloper Studio Edition Version 11.1.2.2.0
    I Have a bean for run a jasperreport
    package Reports;
    import javax.faces.event.ActionEvent;
    import sp11.model.apm.clubImpl;
    import java.io.ByteArrayOutputStream;
    import java.io.InputStream;
    import java.math.BigDecimal;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.util.HashMap;
    import java.util.Map;
    import javax.faces.context.FacesContext;
    import javax.servlet.ServletContext;
    import javax.servlet.ServletOutputStream;
    import javax.servlet.http.HttpServletResponse;
    import net.sf.jasperreports.engine.JasperExportManager;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.engine.JasperReport;
    import net.sf.jasperreports.engine.type.WhenNoDataTypeEnum;
    import net.sf.jasperreports.engine.util.JRLoader;
    import net.sf.jasperreports.view.JasperViewer;
    import oracle.adf.model.BindingContext;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.binding.BindingContainer;
    import oracle.jbo.client.Configuration;
    public class CardFrontBean {
    public CardFrontBean() {
    public String runReportAction(){
    DCIteratorBinding rleIter = (DCIteratorBinding)getBindings().get("RealentityIterator");
    String RleId = rleIter.getCurrentRow().getAttribute("RleId").toString();
    BigDecimal ID = new BigDecimal(RleId);
    Map parameter = new HashMap();
    parameter.put("ID", ID);// where ID is a jasper report parameter
    try
    runReport("card_front.jasper", parameter);
    catch (Exception e)
    return null;
    public BindingContainer getBindings(){
    return BindingContext.getCurrent().getCurrentBindingsEntry();
    public ServletContext getContext(){
    return (ServletContext)getFacesContext().getExternalContext().getContext();
    public HttpServletResponse getResponse(){
    return (HttpServletResponse)getFacesContext().getExternalContext().getResponse();
    public static FacesContext getFacesContext(){
    return FacesContext.getCurrentInstance();
    public void runReport(String repPath, java.util.Map param) throws Exception {
    Connection conn = null;
    try
    HttpServletResponse response = getResponse();
    ServletOutputStream out = response.getOutputStream();
    response.setHeader("Cache-Control", "attachment;filename=\"CardFront.pdf\"");
    response.setContentType("application/pdf");
    ServletContext context = getContext();
    InputStream fs = context.getResourceAsStream("/ReportsFolder/" + repPath);
    JasperReport template = (JasperReport) JRLoader.loadObject(fs);
    template.setWhenNoDataType(WhenNoDataTypeEnum.ALL_SECTIONS_NO_DETAIL);
    PreparedStatement statement = null;
    String amDef = "sp11.model.apm.club";
    String config = "clubLocal";
    clubImpl am = (clubImpl)Configuration.createRootApplicationModule(amDef,config);
    statement = am.getDBTransaction().createPreparedStatement("select 1 from dual", 0);
    conn = statement.getConnection();
    JasperPrint print = JasperFillManager.fillReport(template, param, conn);
    //JasperViewer.viewReport(print, false);
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    JasperExportManager.exportReportToPdfStream(print, baos);
    out.write(baos.toByteArray());
    out.flush();
    out.close();
    FacesContext.getCurrentInstance().responseComplete();
    catch (Exception jex)
    jex.printStackTrace();
    finally
    close(conn);
    public void close(Connection con){
    if (con != null)
    try
    con.close();
    catch (Exception e)
    and a commandButton in the .jsff page
    <af:commandButton id="Realentitycardfront"
    textAndAccessKey="#{nls['REALENTITY_CARDFRONT']}"
    shortDesc="#{nls['REALENTITY_CARDFRONT_HINT']}"
    action="#{CardFront.runReportAction}"/>
    my .jsff page is in a bounded task flow with Use Page Fragments = true
    when i click the button. ........>nothing
    what is the matter
    i read in a post that it is not work in jsff page with page fragmentation
    please help me
    thanks

    One problem is that you write into the output stream from an action method and don't know what's already in the output stream. Once there is one byte written to hte stream (which you can't know from inside the action method) the pdf stream does not behave as you think it would.
    Next thing is that you use createRootApplicationModule but never release it. This will get you out of resources error eventually.
    A better approach would be to put this code in a servlet and stream the report from there. In the servlet you have control over the output stream.
    Check my blog http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/ where I show how to serve images from a servlet which can even use the application module pool from the application (no need to use createRootApplicationModule at all). All you have to do is to exchange the part where I get and stream the image data to your needs.
    Timo

  • Urgent: SAX parser bean is not working in JSP page

    Hi All,
    I have created a bean "ReadAtts" and included into a jsp file using
    "useBean", It is not working. I tried all possibilities. But Failed Plz Help me.
    Below are the details:
    Java Bean: ReadAtts.java
    package sax;
    import java.io.*;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import java.util.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.ParserConfigurationException;
    public class ReadAtts extends DefaultHandler implements java.io.Serializable
         private Vector attNames = new Vector(); //Stores all the att names from the XML
         private Vector attValues = new Vector();
         private Vector att = new Vector();
         private Locator locator;
         private static String start="",end="",QueryString="",QString1="",QString2="";
    private static boolean start_collecting=false;
         public ReadAtts()
         public Vector parse(String filename,String xpath) throws Exception
    QueryString=xpath;
         StringTokenizer QueryString_ST = new StringTokenizer(QueryString,"/");
         int stLen = QueryString_ST.countTokens();
         while(QueryString_ST.hasMoreTokens())
              if((QueryString_ST.countTokens())>1)
              QString1 = QueryString_ST.nextToken();
    else if((QueryString_ST.countTokens())>0)
                   QString2 = QueryString_ST.nextToken();
         SAXParserFactory spf =
    SAXParserFactory.newInstance();
    spf.setValidating(false);
    SAXParser saxParser = spf.newSAXParser();
    // create an XML reader
    XMLReader reader = saxParser.getXMLReader();
    FileReader file = new FileReader(filename);
    // set handler
    reader.setContentHandler(this);
    // call parse on an input source
    reader.parse(new InputSource(file));
         att.add("This is now added");
         //return attNames;
    return att;
    public void setDocumentLocator(Locator locator)
    this.locator = locator;
    public void startDocument() {   }
    public void endDocument() {  }
    public void startPrefixMapping(String prefix, String uri) { }
    public void endPrefixMapping(String prefix) {  }
    /** The opening tag of an element. */
    public void startElement(String namespaceURI, String localName,String qName, Attributes atts)
    start=localName;
    if(start.equals(QString2))
    start_collecting=true; //start collecting nodes
    if(start_collecting)
    if((atts.getLength())>0)
    for(int i=0;i<=(atts.getLength()-1);i++)
    attNames.add((String)atts.getLocalName(i));
    attValues.add((String)atts.getValue(i));
    /** The closing tag of an element. */
    public void endElement(String namespaceURI, String localName, String qName)
    end = localName;
    if(end.equals(QString2))
         start_collecting=false; //stop colelcting nodes
    /** Character data. */
    public void characters(char[] ch, int start, int length) { }
    /** Ignorable whitespace character data. */
    public void ignorableWhitespace(char[] ch, int start, int length){ }
    /** Processing Instruction */
    public void processingInstruction(String target, String data) { }
    /** A skipped entity. */
    public void skippedEntity(String name) { }
    public static void main(String[] args)
    String fname=args[0];
    String Xpath=args[1];
    System.out.println("\n from main() "+(new ReadAtts().parse(fname,Xpath)));
    //System.out.println("\n from main() "+new ReadAtts().attNames());
    //System.out.println("\n from main() "+new ReadAtts().attValues());
    JSP File:
    <%@ page import="sax.*,java.io.*,java.util.*,java.lang.*,java.text.*;" %>
    <jsp:useBean id="p" class="sax.ReadAtts"/>
    Data after Parsing is.....
    <%=p.parse"E:/Log.xml","/acq/service/metrics/system/stackUsage")%>
    Expected Output:
    The jsp file should print all the vector objects from the "ReadAtts" bean
    Actual Output:
    Data after Parsing.......[]
    Thanks for your time.....
    Newton
    Bangalore. INDIA

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • Client Listner is not working in jsff

    Hi All Experts,
    I have one requirement , for that i need to generate runtime table (getting coloumns and rows count at runtime). It is working and for that i am using arrayList to implement.
    I need to capture the changed values of textboxes which are that table , so i am using ClientListner And ServerListner
    my code is
    jsff code is
    <af:inputText value="#{party.value}" accessKey="#{tid.index}" id="id12" clientComponent="true" >
    <af:clientAttribute value="#{partyCount.index}" name="partyindex"/>
    <af:clientAttribute value="#{tid.index}" name="billcodeindex"/>
    <af:clientListener method="testFunc" type="valueChange"/>
    <af:serverListener type="testBBFunc" method="#{pageFlowScope.CaseMgmtBean.testBBFunc}"/>
    </af:inputText>
    and javascript code is
    function testFunc(event) {
    pindex= event.getSource().getProperty("partyindex");
    billindex=event.getSource().getProperty("billcodeindex");
    AdfCustomEvent.queue(event.getSource(),"testBBFunc",{newval:event.getNewValue(),billcodeindex:(billindex-1),partyindex:pindex},false);
    but i dont know why it is not calling the listners ,
    Please help
    Edited by: $achin on Feb 12, 2013 7:25 AM

    my code is
    <af:forEach var="count" varStatus="partyCount" items="#{pageFlowScope.CaseMgmtBean.partyCountList}">
    <af:table id="Parttable" rows="1" width="100%" contentDelivery="immediate" autoHeightRows="0"
    horizontalGridVisible="false" verticalGridVisible="false"
    inlineStyle="height:29px;">
    <af:forEach var="party" varStatus="tid" items="#{pageFlowScope.CaseMgmtBean.partyArrayList}">
    <af:column sortProperty="" headerText="" id="c42">
    <f:facet name="header">
    <af:inputText value="#{party.value}" accessKey="#{tid.index}" id="id12" clientComponent="true" autoSubmit="true">
    <af:clientAttribute value="#{partyCount.index}" name="partyindex" />
    <af:clientAttribute value="#{tid.index}" name="billcodeindex"/>
    <af:clientListener method="testFunc" type="valueChange" />
    <af:serverListener type="testBBFunc" method="#{pageFlowScope.CaseMgmtBean.testBBFunc}"/>
    </af:inputText>
    </f:facet>
    </af:column>
    </af:forEach>
    </af:table>
    </af:forEach>
    this is not working ,
    I have done POC with BackingBean as a scope and working fine in it.
    is the problem is with scope

  • Captch not working in .jsff

    Hi...i'm using oracle jdeveloper 11.1.1.4.0. i am trying to use the simple captcha project in .jsff page, but its not working.
    In jspx its working fine.
    Can u pls help on this.

    This would be the non-public released version 11.1.1.4.0 that most readers on this public forum wouldn't have access to? Maybe try internal Oracle forums first.
    CM.

  • @EJB annotation in entity bean does not work

    I just started with ejb3. I have created a couple of beans. One session bean that looks like this:
    @Stateless
    public class MySessionBean implements MySession
         @Resource(name="jdbc/mydb")
         private DataSource myDB;
    public void someMethod() {
    myDB.getConnection()
    This works great. The other bean is an entity bean, and there the resource injection doesn't work. It looks like this:
    @Entity
    public class MyEntityBean
    @Resource(name="jdbc/mydb")
         private DataSource myDB;
    public void someMethod() {
    myDB.getConnection()
    Is resource injection any different in an entity bean then in a session bean? Both beans belong to the same package and are in the same application, (ear). I have exactly the same problem with @EJB injection: it works fine in the session bean but not in the entity bean...
    Any help is appreciated...
    John

    <code>
    @Entity
    @Table(name = "assetfault")
    @NamedQueries( {@NamedQuery(name = ... )})
    public class Assetfault implements Serializable {
    @javax.ejb.EJB private com.novadent.data.assetmg.sessionbeans.AssetFacadeLocal aF;
    @javax.ejb.EJB private com.novadent.data.assetmg.sessionbeans.AssetfaultFacadeLocal afF;
    </code>
    importing javax.ejb.EJB ?

  • Just a primitive Message Driven Bean doen not work!

              I have a simple Message EJB and can't make it recive messages. For two days I can't
              get what's wrong - I've read already three tutorials, but... still nothing. No
              exceptions... but no messages.
              Here is it.
              all files are in attach too...
              Thank you!!!
              The bean:
              package JMSTest;
              import javax.ejb.*;
              import javax.jms.*;
              import weblogic.ejb.*;
              import EntityTest.TestEntHome;
              import EntityTest.TestEntLocal;
              import javax.naming.InitialContext;
              import javax.naming.NamingException;
              * @ejbgen:message-driven initial-beans-in-free-pool="1" transaction-type="Container"
              clients-on-same-server="false"
              * ejb-name = TestJMS
              * destination-jndi-name = jmstest
              * destination-type = javax.jms.Queue
              * @ejbgen:ejb-local-ref
              * name="ejb/testlink" local="EntityTest.TestEntLocal" link="testentlink"
              * home="EntityTest.TestEntLocalHome"
              * type="Entity"
              * jndi-name="ent.TestEntLocalHome"
              public class TestJMS
              extends GenericMessageDrivenBean
              implements MessageDrivenBean, MessageListener
              private TestEntHome teh;
              public void ejbCreate() {
              try {
              System.out.println("in create");
              javax.naming.Context ic = new InitialContext();
              teh = (TestEntHome)ic.lookup("ejb.TestEntLocalHome");
              catch(NamingException ne) {
              System.out.println("Encountered the following naming exception: "
              + ne.getMessage());
              public void onMessage(Message msg) {
              System.out.println("in onMessage");
              MapMessage tmsg = (MapMessage)msg;
              try{           
              TestEntLocal tel = teh.create(tmsg.getString("message"));
              } catch(JMSException e){
              e.printStackTrace();
              } catch(CreateException e){
              e.printStackTrace();
              // Your code here
              And The Client. I run client in Idea - not in workshop...:
              import javax.naming.*;
              import javax.ejb.CreateException;
              import javax.ejb.EJBException;
              import javax.ejb.FinderException;
              import javax.naming.InitialContext;
              import javax.naming.NamingException;
              import javax.jms.*;
              import java.util.Hashtable;
              import weblogic.jms.client.JMSConnectionFactory;
              import weblogic.jms.client.JMSSession;
              import weblogic.jms.client.JMSConnection;
              public class Main
              private static QueueConnectionFactory factory;
              private static Queue queue;
              private static Context getInitialContext() throws NamingException {
              Hashtable environment = new Hashtable();
              environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
              // environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
              environment.put(Context.PROVIDER_URL, "t3://localhost:7001");
              return new InitialContext(environment);
              public static void main(String argsp[]){
              try {
              javax.naming.Context ic = getInitialContext();
              factory = (JMSConnectionFactory) ic.lookup("QueueFactory");
              queue = (Queue) ic.lookup("jmstest");
              catch (NamingException ne) {
              throw new EJBException(ne);
              try {
              //send a message
              QueueConnection connect = factory.createQueueConnection();
              QueueSession session = connect.createQueueSession(true,Session.AUTO_ACKNOWLEDGE);
              QueueSender sender = session.createSender(queue);
              MapMessage recordingMsg = session.createMapMessage();
              recordingMsg.setString("message", "Im here");
              connect.start();
              sender.send(recordingMsg);
              connect.close();
              catch(JMSException ne) {
              throw new EJBException(ne);
              /* catch(CreateException ce) {
              throw new EJBException(ce);
              catch(FinderException fe) {
              throw new EJBException(fe);
              With classpath:
              <root type="composite">
              <root type="output" />
              <root type="jdk" rootType="classPath" name="BEA java version "1.4.1_05""
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/avalon-framework.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/batik.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/certificate.war!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/debugging.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoAsn1.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoCore.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoJcae.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/ejbgen.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/fop.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/jconn2.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/jConnect.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/JDIProxy.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/knex.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/mssqlserver4v65.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/ojdbc14.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/QueueTransportEJB.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/uddi.war!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/uddiexplorer.war!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient+ssl.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient+ssl_pj.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wl-j2ee-client.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlai-control.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlcipher.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlclient.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wldb2.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wleorb.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlepool.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wli.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlinformix.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wljmsclient.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wljtaclient.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wloracle.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlspy.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlsqlserver.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlsybase.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlutil.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlw-lang.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlxbean.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wsclient81.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wsse.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xbean.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xbeansrc.zip!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xmlstream.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xmlx.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xqrl.jar!/"
              />
              <root type="simple" url="jar://D:/bea/weblogic81/server/lib/weblogic.jar!/"
              />
              <root type="simple" url="jar://D:/bea/user_projects/applications/Test4JMS/JMSandEntity.jar!/"
              />
              </root>
              </classPath>
              [tests.rar]
              

    Hi,
              Your sender is transacted!
              But the sender client never calls
              "session.commit()" - which is required
              to commit the work for transacted sessions.
              So the sender message never gets sent.
              If you don't want a transacted session,
              pass "false" to "createQueueSession()" rather
              than "true" and the send
              will occur immediately.
              Tom
              P.S. For more info on transacted
              sessions see the JMS FAQ and the
              JMS Programmer's Guide.
              Mikler wrote:
              > I have a simple Message EJB and can't make it recive messages. For two days I can't
              > get what's wrong - I've read already three tutorials, but... still nothing. No
              > exceptions... but no messages.
              > Here is it.
              >
              >
              >
              > all files are in attach too...
              >
              > Thank you!!!
              >
              > The bean:
              >
              > package JMSTest;
              >
              > import javax.ejb.*;
              > import javax.jms.*;
              > import weblogic.ejb.*;
              >
              > import EntityTest.TestEntHome;
              > import EntityTest.TestEntLocal;
              > import javax.naming.InitialContext;
              > import javax.naming.NamingException;
              >
              > /**
              > * @ejbgen:message-driven initial-beans-in-free-pool="1" transaction-type="Container"
              > clients-on-same-server="false"
              > * ejb-name = TestJMS
              > * destination-jndi-name = jmstest
              > * destination-type = javax.jms.Queue
              > *
              > * @ejbgen:ejb-local-ref
              > * name="ejb/testlink" local="EntityTest.TestEntLocal" link="testentlink"
              > * home="EntityTest.TestEntLocalHome"
              > * type="Entity"
              > * jndi-name="ent.TestEntLocalHome"
              > *
              > *
              > */
              > public class TestJMS
              > extends GenericMessageDrivenBean
              > implements MessageDrivenBean, MessageListener
              > {
              >
              > private TestEntHome teh;
              >
              > public void ejbCreate() {
              > try {
              > System.out.println("in create");
              > javax.naming.Context ic = new InitialContext();
              > teh = (TestEntHome)ic.lookup("ejb.TestEntLocalHome");
              >
              > }
              > catch(NamingException ne) {
              > System.out.println("Encountered the following naming exception: "
              > + ne.getMessage());
              > }
              > }
              >
              > public void onMessage(Message msg) {
              > System.out.println("in onMessage");
              > MapMessage tmsg = (MapMessage)msg;
              > try{           
              > TestEntLocal tel = teh.create(tmsg.getString("message"));
              > } catch(JMSException e){
              > e.printStackTrace();
              > } catch(CreateException e){
              > e.printStackTrace();
              > }
              > // Your code here
              > }
              > }
              >
              >
              > And The Client. I run client in Idea - not in workshop...:
              >
              >
              > import javax.naming.*;
              > import javax.ejb.CreateException;
              > import javax.ejb.EJBException;
              > import javax.ejb.FinderException;
              > import javax.naming.InitialContext;
              > import javax.naming.NamingException;
              > import javax.jms.*;
              > import java.util.Hashtable;
              >
              > import weblogic.jms.client.JMSConnectionFactory;
              > import weblogic.jms.client.JMSSession;
              > import weblogic.jms.client.JMSConnection;
              >
              > public class Main
              > {
              > private static QueueConnectionFactory factory;
              > private static Queue queue;
              >
              > private static Context getInitialContext() throws NamingException {
              > Hashtable environment = new Hashtable();
              >
              > environment.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
              > // environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
              > environment.put(Context.PROVIDER_URL, "t3://localhost:7001");
              >
              > return new InitialContext(environment);
              > }
              >
              > public static void main(String argsp[]){
              > try {
              > javax.naming.Context ic = getInitialContext();
              > factory = (JMSConnectionFactory) ic.lookup("QueueFactory");
              > queue = (Queue) ic.lookup("jmstest");
              > }
              > catch (NamingException ne) {
              > throw new EJBException(ne);
              > }
              > try {
              > //send a message
              > QueueConnection connect = factory.createQueueConnection();
              > QueueSession session = connect.createQueueSession(true,Session.AUTO_ACKNOWLEDGE);
              > QueueSender sender = session.createSender(queue);
              > MapMessage recordingMsg = session.createMapMessage();
              > recordingMsg.setString("message", "Im here");
              > connect.start();
              > sender.send(recordingMsg);
              > connect.close();
              > }
              > catch(JMSException ne) {
              > throw new EJBException(ne);
              > }
              > /* catch(CreateException ce) {
              > throw new EJBException(ce);
              > }
              > catch(FinderException fe) {
              > throw new EJBException(fe);
              > }
              > */
              >
              > }
              > }
              > /*
              > With classpath:
              > <root type="composite">
              > <root type="output" />
              > <root type="jdk" rootType="classPath" name="BEA java version "1.4.1_05""
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/avalon-framework.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/batik.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/certificate.war!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/debugging.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoAsn1.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoCore.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/EccpressoJcae.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/ejbgen.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/fop.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/jconn2.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/jConnect.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/JDIProxy.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/knex.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/mssqlserver4v65.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/ojdbc14.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/QueueTransportEJB.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/uddi.war!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/uddiexplorer.war!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient+ssl.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient+ssl_pj.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/webserviceclient.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wl-j2ee-client.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlai-control.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlcipher.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlclient.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wldb2.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wleorb.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlepool.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wli.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlinformix.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wljmsclient.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wljtaclient.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wloracle.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlspy.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlsqlserver.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlsybase.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlutil.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlw-lang.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wlxbean.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wsclient81.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/wsse.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xbean.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xbeansrc.zip!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xmlstream.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xmlx.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/xqrl.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/weblogic81/server/lib/weblogic.jar!/"
              > />
              > <root type="simple" url="jar://D:/bea/user_projects/applications/Test4JMS/JMSandEntity.jar!/"
              > />
              > </root>
              > </classPath>
              > */
              

  • Uploading an image is not working in jsff

    Hi.,
    Am using jdeveloper 11.1.1.6.,
    I have used the following link to upload the image in jsff
    http://www.baigzeeshan.com/2010/08/uplaoding-and-downloading-images-in.html
    This is workig perfectly in a jsps page but when i used jsff page am getting exception
        private BlobDomain createBlobDomain (UploadedFile file) throws IOException,
                                                                      SQLException {
            InputStream in = null;
            BlobDomain blobDomain = null;
            OutputStream out = null;
            try{
                in= file.getInputStream();    // am getting null pointer exception
                blobDomain = new BlobDomain();
                out = blobDomain.getBinaryOutputStream();
                byte[] buffer = new byte[8192];
                int bytesRead = 0;
                while ((bytesRead = in.read(buffer,0,8192))!= -1){
                    out.write(buffer,0,bytesRead);
            catch (Exception e){
                e.printStackTrace();
            return blobDomain;
        }Pls help me to resolve this.,

    Thank's for your response John.,
    This is the log which am getting
    java.lang.NullPointerException
         at view.imageServlet.doGet(imageServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)This s the doget() method which i have used
        public void doGet(HttpServletRequest request,
                          HttpServletResponse response) throws ServletException,
                                                               IOException {
            response.setContentType(CONTENT_TYPE);
            String eno = request.getParameter("id");
            OutputStream os = response.getOutputStream();
            Connection con = null;
            try{
                Context ctx = new InitialContext();
                DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/UIConnDS");
                con = ds.getConnection();
                PreparedStatement stmt =  con.prepareStatement("SELECT eei_emp_id,eei_emp_image " +
                                          "FROM ess_emp_image " +
                                          "WHERE eei_emp_id = ?");
                stmt.setString(1, eno);
                ResultSet rs = stmt.executeQuery();
                if (rs.next()) {
                    Blob blob = rs.getBlob("eei_emp_image");
                    BufferedInputStream in =  new BufferedInputStream(blob.getBinaryStream());    //This is the part where exception is showing now.
                    int b;
                    byte[] buffer = new byte[10240];
                    while ((b = in.read(buffer, 0, 10240)) != -1) {
                        os.write(buffer, 0, b);
                    os.close();
                    catch (Exception e){
                        e.printStackTrace();
            finally {
                        try {
                            if (con != null) {
                                con.close();
                        } catch (SQLException sqle) {
                            System.out.println("SQLException error");
            }

  • My simple bean will not work! Help!

    I created a java bean based on a tutorial. After a little bit of trouble with the classpath, getting files in the right place, etc, I finally got it working. Whoo hoo!
    Now, I'm working on a second java bean and I cannot get it to work. I'm at the point where I've stripped it down so it's basically identical to the tuturial with just a few changes. When it runs I get a NoSuchMethodError. I've checked, rechecked and re-rechecked my case and my names many many many times. I've rebooted. I've restarted Tomcat and my browser multiple times. What am I missing?
    This is my Test.html:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>EME</title>
    </head>
    <body>
    <form method=post action="Test.jsp">
    What's your name? <input type=text name=username size=20><br>
    <table>
    <tr><td>
         <select name=LookupType>
         <option>Last Name
         <option>Phone</select></td>
    <td>
         <input type=text></td>
    <td><input type=submit value=Search></td></tr></table>
         HHNum: <input type=text name=hhnum size=20><br>
    </table>
    </form>
    </body>
    </html>This is my Test.jsp:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <jsp:useBean id="user" class="user.UserData" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <jsp:useBean id="webPageData" class="com.penntraffic.emeApp.WebPageData" scope="session"/>
    <jsp:setProperty name="webPageData" property="*"/>
    <html>
    <head>
    <title>EME</title>
    </head>
    <body>
    <%= user.getUsername() %>
    <%= webPageData.getHhnum() %>
    <table>
    <tr><td>
         <select name=LookupType>
         <option>Last Name
         <option>Phone</select></td>
    <td>
         <input name=hhnum type=text></td>
    <td><input type=submit value=Search></td></tr></table>
         <br>
    </table>
    </body>
    </html>This is my java bean code:
    package com.penntraffic.emeApp;
    public class WebPageData {
         String hhnum;
         public void setHhnum(String value){
              hhnum = value;
         public String getHhnum() {
              return hhnum;
    package user;
    public class UserData {
         String username;
         String email;
         int age;
         public void setUsername(String value)
              username = value;
         public void setEmail(String value)
              email = value;
         public void setAge(int value)
              age = value;
         public String getUsername()
              return username;
         public String getEmail()
              return email;
         public int getAge()
              return age;
    }The UserData.class file is in C:\apache-tomcat-6.0.10\webapps\EME\WEB-INF\classes\user
    The WebPageData.class file is in C:\apache-tomcat-6.0.10\webapps\EME\WEB-INF\classes\com\penntraffic\emeApp
    Both paths are included in my CLASSPATH environment variable.
    This is the error text that I get when I click on the 'Search' button in Test.html (submit button):
    type Exception report
    message The server encountered an internal error () that prevented it from fulfilling this request.
    org.apache.jasper.JasperException: An exception occurred processing JSP page /Test.jsp at line 12
    9: </head>
    10: <body>
    11: <%= user.getUsername() %>
    12: <%= webPageData.getHhnum() %>
    13: <table>
    14: <tr><td>
    15:           <select name=LookupType>
    Stacktrace:
              org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.lang.NoSuchMethodError: com.penntraffic.emeApp.WebPageData.getHhnum()Ljava/lang/String;
              org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)
              org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
              org.apache.jsp.Test_jsp._jspService(Test_jsp.java:111)
              org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NoSuchMethodError: com.penntraffic.emeApp.WebPageData.getHhnum()Ljava/lang/String;
              org.apache.jsp.Test_jsp._jspService(Test_jsp.java:87)
              org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    If I remove the line that attempts to get the value of hhnum from the bean, everything works fine and I get the username value from the first bean. So the user bean is working, but there's obviously something wrong with my second bean (webPageData).
    I've also tried using <jsp:getProperty name="webPageData" property="hhnum"/> rather than <%= webPageData.getHhnum() %>. I thought they would return identical results, but instead I get the below errors:
    type Exception report
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Cannot find any information on property 'hhnum' in a bean of type 'com.penntraffic.emeApp.WebPageData'
              org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:839)
              org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1045)
              org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:1101)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
              org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
              org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
              org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
              org.apache.jasper.compiler.Generator.generate(Generator.java:3394)
              org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
              org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    This shouldn't be this hard!! Any help would be greatly appreciated!

    Do you mean the trackpad?

  • MDB(Message Driven Bean) is not working in MDM2.0.1

    Hi,
    I am trying to use MDB for importing files.I followed the Weblogic_jms_Integration(1308181.1) document and i created all the xml files CM_config.xmCM_ejb-jar.xml.wls.jms_1.includel.win.exit_4.include,CM_config.xml.win.jms.include,CM_ejb-jar.xml.wls.mdb.include,CM_weblogic-ejb-jar.xml.jms.include and put these files in respective directory as mentioned in the document.I have created one XAI inbound service ,XAI JNDI Servers,JMS Connection,Jms Queue and i am putting my msgs in queue in web logic server.But it is nt picking files from queues.It is showing some errors like:
    Error:
    Table CI_XAI_JNDI_SVR has a maintenance program entry CIPXJSVR that is not found in the program components table
    I think here MDB is nt enabling thats why it is not picking the files from queue.
    But we are able to pick that files from queue by MPL.
    Please help me in this regards.
    Thanks.
    SUNIL

    Hi,
    I am trying to use MDB for importing files.I followed the Weblogic_jms_Integration(1308181.1) document and i created all the xml files CM_config.xmCM_ejb-jar.xml.wls.jms_1.includel.win.exit_4.include,CM_config.xml.win.jms.include,CM_ejb-jar.xml.wls.mdb.include,CM_weblogic-ejb-jar.xml.jms.include and put these files in respective directory as mentioned in the document.I have created one XAI inbound service ,XAI JNDI Servers,JMS Connection,Jms Queue and i am putting my msgs in queue in web logic server.But it is nt picking files from queues.It is showing some errors like:
    Error:
    Table CI_XAI_JNDI_SVR has a maintenance program entry CIPXJSVR that is not found in the program components table
    I think here MDB is nt enabling thats why it is not picking the files from queue.
    But we are able to pick that files from queue by MPL.
    Please help me in this regards.
    Thanks.
    SUNIL

  • Anonymizer Bean is not working XML file -- ABAP Proxy scenario.

    Hi Experts,
    Can anybody please help, How can add   this line <ns0:ROOT xmlns:ns0="urn:XXX:snc:productactivedata"> to my input xml file?
    </ns0:ROOT> to the end of the input xml file. One more thing please, how to remove "standalone="yes" " from this line <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    I have tried with Anonymizer bean settings, I can't able to achieve this, with XSLT mapping could, but I don't know XSLT mapping, can any one help me in this?
    Many Thanks
    Regards
    San

    Hi Prateek,
    If do, like remove namespace in the message type then i get this error.
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_EDI_ProAct_One_N_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
      <SAP:P3>The element type "D01_PO4" must be terminated by t</SAP:P3>
      <SAP:P4>he matching end-tag "</D01_PO4>".</SAP:P4>
      <SAP:AdditionalText />
    <SAP:Stack>com/sap/xi/tf/_MM_EDI_ProAct_One_N_com.sap.aii.utilxi.misc.api.BaseRuntimeException:The element type "D01_PO4" must be terminated by the matching end-tag "</D01_PO4>".</SAP:Stack>
    I have checked the message, xml message format fine. Any help in this please?
    Thanks & Regards
    San

  • My beans still not working!!!

    I did that what Broadbent mentioned.I have put my bean and jsp file(tutorial1.jsp) in
    Oracle\iSuites\Apache\Apache\htdocs\jpdk\databean.
    Which is why i have written my bean class="oracle.iSuites.Apache.Apache.htdocs.jpdk.databean.databean",where "databean" is my folder name and my bean name.
    I also added
    repositories=E:\Oracle\iSuites\Apache\Apache\htdocs\jpdk\databean
    in my "# List of Repositories" section in zone.properties.
    but i am still getting an error.The error is ...
    Request URI:/jpdk/databean/tutorial1.jsp
    Exception:
    oracle.jsp.parse.JspParseException: Line # 17, Error: Unable to find class for bean: d defined by tag with class: oracle.iSuites.Apache.Apache.htdocs.jpdk.databean.databean
    Please help me.
    null

    One Solution is :
    Add the location of the class file ie.,
    wrapper.classpath=<full directory path> in jserv.properties file.
    Eg: wrapper.classpath=<drive>:<directories if any>\oracle\iSuites\Apache\Apache\htdocs\jpdk\databean
    null

  • XMLAnonymizerBean does not work properly

    Hi all,
    I do upgrade from 7.0 scenario to 7.1. In soap adapter I use mentioned module to send some namespaces. I used the same parameters as in 7.0 but that didn't work - all namespaces were cut. Then I spent 2 more hours testing the module and all I figured out was: if I use the module, all the namespaces are cut, if I dont - they present with ns1 prefix (the actual goal is to cut it).
    Any ideas why the bean does not work? It's a new PI installation, maybe some steps were missed on AE configuration phase?
    Thanks,
    Dmitriy

    Did you apply the latest patch for PI 7.1?
    I think there was an issue in SP 6.

  • bean:message/ tag is not working in tiles:insertAttribute/

    I have a bean:message tag inside my tiles:insertAttribute as shown below.
    <tiles:insertAttribute name='<bean:message="user.menu"/>'/>But <bean:message/> is not getting the value from resource bundle, my resource bundle is in correct place. If i hard code the value then it s working fine.
    How to make it work? Any help?

    sunish_jose wrote:
    <tiles:insertAttribute><bean:message="user.menu"/></tiles:insertAttribute>this way it s not working. Could you pls tell how solve it by using EL. I was not able to find a similar sample evenafter searching for some time.
    thanks in advance.I did say that I don't know if it will or not, I was just giving a sample of how it would work if the tag allowed the value for 'name' to be put in the body.
    I'm not very familiar with the Struts bean tags and in any case, I believe you should use the JSTL tags where ever possible. So you'd pick the <fmt:message> tag from there. I don't think the <bean:message> tag allows you to get the value in to a variable.
    <fmt:message var="tilesAttributeNameValue" key="user.menu" />
    //create an EL variable named tilesAttributeNameValue with the value from the resource bundle
    <tiles:insertAttribute name="${tilesAttributeNameValue}"></tiles:insertAttribute>
    //use EL to put the valueTake a look here [1] for a JSTL introduction:
    [1] http://www.ibm.com/developerworks/java/library/j-jstl0415/

  • Java bean, works in Integration Engine but does not work in Adapter Engine.

    In connection to the following thread:
    PayloadZipBean - variable filename inside the archive
    I am trying to use the same bean.
    However I can see, that the bean is working correctly when I use Integration Engine.
    But if I am using ICo (AAE) and using the same bean in the receiver, I can see, that the bean gets called but does not work correctly.
    The audit log added to my bean shows, that the bean could read the filename correctly from the Dyanic Config in the message, but it cannot write the same into the message.
    Could you please help on this?

    Your above posted system details show multiple Java Console extensions.
    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension, you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    See also http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0
    Disable the Java Quick Starter extension: Tools -> Addons -> Extensions
    Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)
    You can try a direct connection: <br />
    Control Panel > Java > General tab > "Network Settings...": "Direct Connection" (enable)

Maybe you are looking for

  • GL account balance reports

    Hi all Can you please suggest a report which can give me following details for multiple GL accounts at a time a) Opening balance b) closing balance from beignning of the month to till date c) Closing balance from beginning of the year to till date We

  • What is the best way to rip movies to an external HD?

    I am interested in ripping my DVD movies to an external HD so they are portable. This is in preparation for a military deployment to the middle east. I would like to take them all so I can enjoy them all while overseas. I am looking at a 1TB external

  • Two phones, two libraries - share apps?

    Hi, I have a 3GS private phone which syncs to my home PC and have just been handed an iphone 4 for work.  I'd like to be able to get all my apps, music etc on both phones (particularly tomtom) - Is it best to move my home library to the work PC and s

  • How to create an rule with action to subtract from the event log of Ips manager express console?

    how to create an rule with action to subtract from the event log of Ips manager express console?, some knows of has an guide?. Thank you. Sent from Cisco Technical Support iPad App

  • Can't have the word subtitutio​n feature without running the auto-corre​ction

    hi everybody, a week ago i change my bb style to z10 , and notice that I can't have word subtitution without set the auto-correction on. i don't live in a country where english is primary language, so i find this very annoying, because autotext is on