Webservice, DAO/Bean Pattern - Help

All,
I'm stuck on this one - any help would be much apperciated.
I'm trying to expose a CFC which uses a DAO/Bean pattern and
am receiving the following error.
Could not perform web service invocation "getQuote".
Here is the fault returned when invoking the web service
operation:
AxisFault
faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.runtime.UndefinedElementException : Element
QUOTEDAO is undefined in a Java object of type class
[Ljava.lang.String; referenced as ]
Here are my files to give you an idea of what I am working
with.
/webservices/application.cfm
/webservices/quote/quote.cfc (bean)
/webservices/quote/quoteDAO.cfc (my data access object, has
crud methods)
/webservices/quote/quoteService.cfc (service layer, i
generate my wsdl from this)
I have unit tested the CFC's by running a test.cfm file
within the /webservices directory which calls all methods. Works
fine. Additionally, the WSDL generates fine.
The problem is when I invoke the service, here is how I am
invoking it.
<cfinvoke
webservice="
http://localhost/apps/webservices/quote/quoteService.cfc?wsdl"
method="getQuote"
returnvariable="Quote">
<cfinvokeargument name="Quote_ID" value="200"/>
</cfinvoke>
It's important to note that within my application.cfm I am
setting up my quoteDAO and quoteGateway objects within my variables
scope. I am then setting my quoteService in my application scope,
like so:
<cfset variables.quoteDAO =
createObject("component","apps.webservices.quote.quoteDAO").init(variables.dsn)
/>
<cfset variables.quoteGateway =
createObject("component","apps.webservices.quote.quoteGateway").init(variables.dsn)
/>
<cfset application.quoteService =
createObject("component","apps.webservices.quote.quoteService").init(variables.quoteDAO,
variables.quoteGateway) />
I'm not sure what exactly the error I am receiving is, but
part of me cringes thinking it might have to do with pathing.
Any advice?

Simon,
Thanks for your reply - I modified the code to manually setup
those objects in my init like so.
<cfset variables.dsn = "mydsn" />
<cfset variables.quoteDAO =
createObject("component","apps.webservices.quote.quoteDAO").init(variables.dsn)
/>
<cfset variables.quoteGateway =
createObject("component","apps.webservices.quote.quoteGateway").init(variables.dsn)
/>
It solved that initial error but now I am getting:
Could not perform web service invocation "getQuote".
Here is the fault returned when invoking the web service
operation:
AxisFault
faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: Premature end of
file.
faultActor:
faultNode:
Any ideas?

Similar Messages

  • Struts using DAO Design Pattern ..?Please give an example..... URGENT......

    Dear all,
    I have to develop an application in Struts by using DAO design pattern ..........
    Please give an example on Struts using DAO...................
    Thank you
    Please

    I'm glad you asked. It means Read The Flaming Manual. That'd be the struts manual by the way.

  • Struts using DAO Design Pattern Tutorail

    Can anybody give me a link for the Struts using DAO Design Pattern tutorial
    sample tutorial

    http://javaboutique.internet.com/tutorials/ApacheDAOs/
    Found by using google: strust dao pattern tutorial
    There are more good links using that search...

  • DAO design pattern & Transaction boundaries

    I am using a tool to generate a JDBC tier that applies the DAO design pattern. However, the generated code is based on "autocommit"-strategy, i.e. there is no conn.setautocommit(false)-statement in the code.
    I have added statement so that I can handle the transaction by myself. The DataAccessObject-implementation class does however close the connection before returning. I would like to execute the commit outside of the DAO-implementation.
    Anyone who have been experiencing the same problem?
    Best regards
    Lasse Bergstr�m

    I'm not sure if I fully understand your question.
    However, we usually implement such a scenario by doing autocommit false on the connection object and then passing it to the DAO. Finally do a commit on the connection in the calling class.

  • DAO Design pattern

    Hi,
    what is the advantages of DAO Design pattern over other design patterns?
    Can anybody tel me

    valooCK wrote:
    NANDA wrote:
    Hi,
    what is the advantages of DAO Design pattern over other design patterns?
    Can anybody tel methe answer is none!
    DAO stands for data access object, it is a non oo pattern, oo is data centric, it makes sense for data to access data. it is something created by poor procedural minds who can never understand what oo is.
    you may occasionary use it as a collection of functionalities or utilities, but thou shalt never use in as a pattern in oop!There are as-yet undiscovered tribes living in the Amazon, who knew you were going to say that
    @OP: Please ignore this troll, he doesn't even understand the very basics of OO, as can be demonstrated in the following thread
    http://forum.java.sun.com/thread.jspa?threadID=5273397&tstart=0
    Just ignore him. He only wants attention. He hasn't got the faintest idea how to write even "Hello World", let alone actually do any OO design

  • Warning on Unsaved Changes Functional Pattern --Help!

    Is there anyone out there who knows how to make this work??!!
    [http://www.oracle.com/technology/products/adf/patterns/11.1.1.1.0/UnsavedDataWarning.html]
    Help!

    Frank Nimphius wrote:
    Hi,
    I am not familiar with the document, but options I see are
    option 1: set uncommitted data warning property on the af:document to "on" (I am not sure, but think this is already available in JDeveloper 11g R1)
    option 2: use the controller context (ControllerContext) of the ADFc task flow handler to detect if the transaction is dirty
    option 3: use a managed bean that accesses the AM in the DataControl to check if the transaction is dirty
    FrankThank you for the reply Frank. Below are my response to your options
    response to option1:
    I have already set the uncommitted data warning property on the af:document to "on" (yes, the option is already available in JDeveloper 11g R1) and even set the bounded task-flow inside the region of my page as "critical", but when I navigate to other pages thru the navigation items in my template header, the prompt for uncommited changes did not show.
    response to option2:
    Which class of my project will use the controller context to detect if the transaction is dirty? I have tried to google the uncommittedDataWarning property which lead me to the DirtyPageHandler class. I have read on DirtyPageHandler class API that in case I do not set an implementation the default implementation will be used- and if I me quote from the API -"that default implementation will always return false from isDataDirty and will do nothing in response to a trackNavigation call." I wonder if aren't there any concrete samples to make this work? As I understand, the uncommitted data warnings is one of the publicized new features of JDeveloper 11gR1. Nevertheless, I have tried to follow allong and did create my own implementation:
    1.) I did override the isdataDirty method to always return true,
    2.) override the trackNavigation method to "System.out.println("prompt");",
    3.) and created a file named oracle.adf.view.rich.context.DirtyPageHandler in the META-INF/system folder of my project, and
    4) created a one line text which represents my implementing class in the created file in #3.
    but still nothing especial happened.
    response to option3:
    What exactly is "AM" in the DataControl?
    Your feedback on this is very much appreciated.
    Thanks,
    pino

  • DAO/BEAN/GATEWAY code in Dreamweaver

    Looks like CFEclipse has a few nice wizards to automagically
    generate DAO methods (CRUD), Beans and Gateway object code, does
    anyone know if Dreamweaver has comparable functionality? Any add
    ons out there?
    More importantly, are any object oriented Coldfusion folks
    using Dreamweaver in any kind of specific workflow? Would love to
    learn if there are some best practices already out there instead of
    me trying to work them out from scratch....
    Thanks in advance,
    Rich

    Phoenix Wang wrote:
    > Click "OK", but when DW try to connect to MySql
    database, then popup an alert
    > dialog says "HTTP Error Code 502 Bad Gateway",
    > I don't know what this mean and how to solve this
    problem, hope any PHP and DW
    > expert can help me, thank you very much.
    How have you set up the Testing server in your site
    definition?
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • EJB pattern Help!

    Hi
    guys!
    I am newbie to EJB,A question puzzled me much these days.Help me plz :)
    I know the EJB include three objects:EJBObject,EJBHome and XXXBean,The EJBHome object create EJBObjects by Facatory pattern.But,The EJBHome is an Interface,so does its subclass,How can an interface use create() method creating an EJBHome Object?
    I don't know wthere I describe the question clearly .example as follws:
       public interface Converter extends EJBObject{
             public bussinessMethod1();
    public interface ConverterHome extends EJBHome{
           Converter create() .....;
    //Client
      Converter currencyConverter=home.create();//<===
       //I can't understand it!home is an interface,and it isn't implemented(or only because i do not find out it )
      the same question occered when I use the Serilizable interface,a class implement theSerilizable interface,then it is serilizable,too.but in the Serilizable interface,i can't find any clue How the serilizable works.
    It maybe a stupid question,but ,Help me PLZ!
    Thanx for your time!
    kind regards
    elant

    First, a typical EJB is made up of a HOME, REMOTE and a BEAN. You are correct, your HOME and REMOTE are interfaces. The BEAN is your implementation class.
    Converter currencyConverter=home.create();//<===
    //I can't understand it!home is an interface,and it
    isn't implemented(or only because i do not find out itWhat happens here is your application server will generate a subclass of your HOME interface and implete the create method. That method will, among other things, call the ejbCreate() on your BEAN.
    the same question occered when I use the Serilizable
    interface,a class implement theSerilizable
    interface,then it is serilizable,too.but in the
    Serilizable interface,i can't find any clue How the
    serilizable works.To begin understanding the Serializable interface, take a look at the javadoc found at http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html You may also wish to look for the tutorials found on the java.sun.com website.
    Hope this helps.

  • JPA DAO Design Pattern

    Hi all,
    I have one abstract DAO class and every sessionbean DAO will extend it.
    here is sample code.
    public abstract SuperDAO{
    @PersistenceContext (unitName = "stars21db")
    private EntityManager em;
    public getEM(){
    return em;
    Here is Session Bean DAO
    @Stateless
    @Local
    public class CapDaoSessionBeanBean extends SuperDAO implements CapDaoSessionBeanLocal {
    public CapDaoSessionBeanBean() {
    public getCustomer(){
    }

    Code is fine, but the wording isn't the right one. You are about to build a Facade. DAO were originally build as the ones who know how to interact with the database, with JPA this is handled by the EntityManager. Therefore the DAO pattern doesn't apply...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Hello World @OneToMany in a WebService Session Bean

    Ladies and Gents,
    I'm trying to setup a simple @OneToMany Hello World type example using SOAP based Web Services.  The setup is fairly straightforward: two entities in a parent/child relationship.  Orders is the parent.  OrderRows is the child.  ALL of this was setup with wizards using JDeveloper 11g.  I did not modify the code other than changing the name of the session bean.
    The problem occurs when I try to express this relationship by including the @OneToMany annotations and the related List operations (set, add, remove) in the Orders.java file.  If I comment those out and do not return the associated List containing OrderRows, all is well.  Include the @OneToMany and nothing returns.  This is probably some kind of simple configuration error, but the problem is I'm not getting any errors in my console when I right-click my session bean and select "Test Web Service", choose the getOrdersFindAll() operation, and click "Send Request".  All I get is a nice little snarky message saying "No content to display."  So I'm just sitting here ... at 2 AM in the morning ... wondering "Whiskey Tango Foxtrot?"
    I've looked over some sites such as http://biemond.blogspot.com/2011/08/expose-your-session-bean-with-jax-ws.html and read through the Java EE 7 tutorial http://docs.oracle.com/javaee/7/tutorial/doc/jaxws.htm#BNAYL all to no avail. 
    Does anyone have any ideas?  Or would anyone have some good websites to get some practical examples?
    MySessionBean.java
    import java.util.List;
        import javax.annotation.Resource;
        import javax.ejb.SessionContext;
        import javax.ejb.Stateless;
        import javax.jws.WebService;
        import javax.persistence.EntityManager;
        import javax.persistence.PersistenceContext;
        @Stateless(name = "MySession", mappedName = "HelloWs-HelloService-MySession")
        @WebService(name = "MySessionBeanService", portName = "MySessionBeanServicePort")
        public class MySessionBean {
            @Resource
            SessionContext sessionContext;
            @PersistenceContext(unitName = "HelloService")
            private EntityManager em;
            public MySessionBean() {
            /** <code>select o from Orders o</code> */
            public List<Orders> getOrdersFindAll() {
                return em.createNamedQuery("Orders.findAll").getResultList();
    My Orders.java Entity
      import java.io.Serializable;
        import java.math.BigDecimal;
        import java.util.List;
        import javax.persistence.Column;
        import javax.persistence.Entity;
        import javax.persistence.Id;
        import javax.persistence.NamedQueries;
        import javax.persistence.NamedQuery;
        import javax.persistence.OneToMany;
        @Entity
        @NamedQueries( { @NamedQuery(name = "Orders.findAll", query = "select o from Orders o")     })
        public class Orders implements Serializable {
            @Id
            @Column(name = "ORDER_ID", nullable = false)
            private BigDecimal orderId;
            @OneToMany(mappedBy = "orders")
            private List<OrderRows> orderRowsList;
            public Orders() {
            public Orders(BigDecimal orderId, String refName) {
                this.orderId = orderId;
            public BigDecimal getOrderId() {
                return orderId;
            public void setOrderId(BigDecimal orderId) {
                this.orderId = orderId;
            public List<OrderRows> getOrderRowsList() {
                return orderRowsList;
            public void setOrderRowsList(List<OrderRows> orderRowsList) {
                this.orderRowsList = orderRowsList;
            public OrderRows addOrderRows(OrderRows orderRows) {
                getOrderRowsList().add(orderRows);
                orderRows.setOrders(this);
                return orderRows;
            public OrderRows removeOrderRows(OrderRows orderRows) {
                getOrderRowsList().remove(orderRows);
                orderRows.setOrders(null);
                return orderRows;
    My persistence.xml.  Note that while the double jdbc looks funky, I'm pretty sure that's not the source of the problem since removing the @OneToMany annotation and related methods works.
        <?xml version="1.0" encoding="windows-1252" ?>
        <persistence xmlns="http://java.sun.com/xml/ns/persistence"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                 xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
                 version="2.0">
          <persistence-unit name="HelloService">
            <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
            <jta-data-source>java:/app/jdbc/jdbc/HelloConnDS</jta-data-source>
            <class>helloservice.Orders</class>
            <class>helloservice.OrderRows</class>
            <properties>
              <property name="eclipselink.target-server" value="WebLogic_10"/>
              <property name="javax.persistence.jtaDataSource"     value="java:/app/jdbc/jdbc/HelloConnDS"/>
            </properties>
          </persistence-unit>
        </persistence>
    I've also put this question up on stack overflow at http://stackoverflow.com/posts/17769621

    Hi, Thomas!
    For establishing a connection to R/3 you could either Enterprise Connector (as described in <a href="http://help.sap.com/saphelp_nw04/helpdata/de/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm">Enterprise Connector</a>) or the SAP Resource Adapter (see <a href="http://help.sap.com/saphelp_nw04/helpdata/de/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm">Java Resource Adapter</a>) - the JCA way.
    Regards,
    Thomas

  • How to generate report from two tables using DAO design pattern?

    Hi,
    Iam using struts with DAO pattern for my application. According to DAO design im creating model class for each table in my database with getter,setter methods. i have no problem when im generating report from one table. but if have i have to join two tables whatis the better way for doing that? is it good practise to create a new model contains properties from both the tables?
    Please help me
    Thanks in Advance
    Rajesh

    Dear Rajesh,
    As per the pattern you are creating equivalent java objects for every database table under consideration in which each db field will become a private attribute and public getter and setter methods.
    If you have to display data from one table the above approach is sufficient enough.
    But in case your database is normalised ..lets take an example of Bank having Branch and Accounts tables. We dont need to repeat the whole information of the branch for every account in that branch. so we prefer to have a branch id in that table....this approach lot of insertion/deletion/updatation anomlies that may exists with the database...
    now lets come back to our topic....we shall create two java objects 1) Branch 2) Account.....
    When ever u just need to display simple report u can do it staright forward,,,,,now if u want to display branch information along with the account information....the two objects just created are not sufficient
    So i suggest u the following approaches
    1) Create an attribute of type Branch in the Accounts Object......
    This shall serve the purpose of displaying the Btranch information
    2) Create a collection object of type ( Vector or ArrayList) which can have objects of Account in the Branch Object,,,
    Now its upto u how shall u fill up the objects with appropriate sql queries.
    The method that i mentioned is followed by Oracle Toplink and Hibernate ....which provide Object to relation mapping layers.
    Any queries ...revert back to me...
    Mahesh

  • Beginner Factory Pattern help needed please

    hi people,
    Can someone please explain to me in laymans terms what the use of the Factory pattern is. I went to http://www.research.umbc.edu/~tarr/dp/lectures/Factory.pdf
    and it did nit help me too much.
    I'd really appreciate it if someone could give me an abstract example of when the Factory pattern would be useful. The reason I ask is because I am researching into JDO and have come across PersistenceManagerFactory and think I would underdstand this better if I understand Factory's.
    Many thanks.

    Is the reason for the ConnectionHelper to allow us to use that as the return type in the getHelper() method, thus allowing us to have either the OracleConnectionHelper or DB2ConnectionHelper?
    Yes. You want to achieve polymorphism. You are interested in the connect() method, not necessarily what database is used (not the best example in the world, normally you would care as different vendors have slightly different SQL syntax, but assume you were using no triggers, procedures or non-ANSI SQL).
    So, are you basically saying that a Factory is a class that can be used to decide which of the two databases we are going to connect to?
    Depends. In this instance, you name the database you want and the factory is responsible for returning the proper class. In other cases, you might have developed a program that works across databases and only uses one at a time. In this case, you would probably read in a setting at application startup, and the factory would always return the same object type.
    If there is a PersistentManagerFactory, does it mean this would be used to decide what PersistentDataStore we are going to use (i.e. flat file, database, serialised object etc)?
    Again, it depends. You can make your factories 'smart' by deciding where to serialize a given object (say, every domain model object has a method save() and your DAO uses the factory to get a connection to do its work). In other cases, you have a 'bare-bones' factory that simply returns the requested object type. Why go through all that effort? Well, one advantage is that I can put the factory, interface and any implementations in the same package. The only ones that (normally) would need to be public would be the interface and the factory. You can hide the implementation details using the security features of the language.
    Also, why is OracleConnectionHelper a final class?[i]
    In general, I make all variables, method signature parameters and classes final. Once I need to sub-class or re-assign a variable value, I remove the final clause. I can't count the number of times the compiler caught an error (rather than at runtime) because of the additional 'safety' declaring everything final gives you. Only make variables and classes (and method signature variables) non-final when you need to. IMHO, of course.
    - Saish

  • Error Compilation When I browse JSP with bean, please Help Me

    Hello,
    I am new in EJB. I have a problem that I am not understand. please help me.
    I have write my bean and deploy it using JRUN server. The name is SpellCheck.jar
    But when I called the bean from JSP page, always error. Here is my JSP page.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <jsp:useBean id="help" scope="request" class="projsp.SpellCheck"/>
    <jsp:setProperty name="help" property="*"/>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    You Entered the input,
    <b>
    <%= request.getParameter("word") %>
    </b>
    <br>
    The processed output is:<br>
    <%= integer.parseInt(request.getparameter("mode"))==1 ?help.reverse():""+help.check() %>
    </body>
    </html>
    and the error messages is:
    Compilation error occured:
    allaire.jrun.scripting.DefaultCFE:
    Errors reported by compiler:Compilation of file 'C:\Program Files\Allaire\JRun\servers\default\veronika\WEB-INF\jsp\jrun__wordpro2ejspc.java' failed with no errors. Please check that your compiler is a working compiler.
    at allaire.jrun.scripting.JavaCompilerService.compile(../scripting/JavaCompilerService.java:100)
    at allaire.jrun.jsp.Translator.compilePage(../jsp/Translator.java:247)
    at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:399)
    at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:92)
    at allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:75)
    at allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:67)
    at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:216)
    at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
    at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
    at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionService.java:1082)
    at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
    at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)
    at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
    at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
    at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
    at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
    at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
    at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
    but if I delete the syntax for calling Bean (usebean, setProperty, and request.getParameter) the browser run properly. Can anybody help me, please?
    thanks
    Veronika

    Hi Veronika,
    The <jsp:usebean> is used for only javabeans not EJB (Enterprise javabean). You said that you have deployed SpellCheck.jar to the JRun server. So that must be an EJB. Where are you accessing this EJB from in your JSP? ARe you doing it inside the projsp.SpellCheck javabean? If yes, can you post some code from the javabean.
    Cheers
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <jsp:useBean id="help" scope="request" class="projsp.SpellCheck"/>
    <jsp:setProperty name="help" property="*"/>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    You Entered the input,
    <b>
    <%= request.getParameter("word") %>
    </b>
    <br>
    The processed output is:<br>
    <%= integer.parseInt(request.getparameter("mode"))==1 ?help.reverse():""+help.check() %>
    </body>
    </html>

  • Java bean - urgent help

    Hi,
    I am creating a java bean in a jsp file. I want to pass this bean to a java class in the same jsp file.
    eg:
    A1.jsp
    <jsp:useBean id="customer" class="com.Customer" scope="session"/>
    <jsp:setProperty name="customer" property="*"/>
    <% Teller teller=new Teller();
    int custid=teller.addCustomer("customer");
    %>
    Teller.java
    public class Teller
    public int addCustomer(*C*ustomer pcus)
              CustomerDb Cdb=new CustomerDb();
              return Cdb.addCustomer(pcus);
    CustomerDb.java
    public class CustomerDb{
    int customerid;
    public int addCustomer(*C*ustomer pcus){
         try{
    some code....
    When I try to compile Teller.java and CustomerDb.java it is giving error in the lines highlighted with bold.
    Please help in this.

    Problem Description
    You are getting
    FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-105100.
    When you run FileUpload utility
    Solution Description
    Follow the steps given below to fix and run the FileUpload Bean successfully.
    Make sure you have set your System Path similar to following, in the same order:
    System PATH:
    E:\Dev6i\bin;E:\Dev6i\forms60\java;E:\jdk1.2.2\bin;E:\jdk1.2.2\jre\bin;
    E:\jdk1.2.2\jre\bin\classic; %SystemRoot%\system32;%SystemRoot%;
    %SystemRoot%\System32\Wbem;C:\Program Files\Oracle\JInitiator1.1.8.16\bin;.
    CLASSPATH :
    E:\dev6i\forms60\java;E:\dev6i\forms60\java\UploadServer.jar;
    E:\jdk1.2.2\jre\bin\classic;E:\jdk1.2.2\jre\lib;E:\Dev6i\TOOLS\COMMON60\JAVA\IMPORTER.JAR;.
    Now, Open Form Builder ->Layout Editor->Program menu->Import Java Classes
    Check here to make sure that the FileUpload.class is displayed there under
    Oracle/forms/demos/uploadclient folder.
    Note that the java bean uses the implementation class
    file oracle.forms.demos.uploadclient.FileUploader
    So, you need to put the FileUploader.class in
    <ORACLE_HOME>\FORMS60\java\oracle\forms\demos\uploadclient\FileUploader.class
    or you need to change the oracle.forms.demos.uploadclient.FileUploader
    in implementation Class property matching to
    the class name where you have actually put it.
    You need to set archive_jini=f60all_jinit.jar,uploadclient.jar.sig in formsweb.cfg
    Open the fileupload.fmb, remove the attached Library.
    Open the fileupload.pll from File->Open.
    Recompile all the procedure and packages again.
    Save this fileupload.pll.
    Then reattach this library as a attached library to this form, recompile the form.
    This should solve the problem.
    If the path is set as explained above solves the PDEUI0001 problem of
    Java Importer also.
    Explanation
    Reason:
    This error occurs when the upload button is pressed in the File upload utility
    because the attached PLL library is not compiled properly.
    Please let me know if this helps.
    Regards
    Grant Ronald
    Forms Product Management

  • Regex Pattern help.

    Me and my friend pedrofire, that�s probably around forums somewhere, are newbies. We are trying to get a log file line and process correctly but we are found some dificculties to create the right expression pattern.
    My log have lines like:
    User 'INEXIST' with session 'ax1zjd8yEeHh' added content '769' with uri 'http://mail.yahoo.com/'.
    User 'INEXIST' with session 'ax1zjd8yEeHh' changed folder from 'E-mails' to 'Milhagem'.
    User 'INEXIST' with session 'a8jXrY_N38ja' updated all content of folder 'Bancos'.
    i need to get the following data
    USER - [INEXIST]
    SESSION - [ax1zjd8yEeHh]
    ACTION - [added] or [changed] or [updated].
    Getting the user and the session is easy, but i am having difficulties grabing the action, because i need to take just the action word without blank spaces igonring the words content or folder or all.
    I m trying this for hours, but to a newbie is a little dificult
    Any help is welcome
    Thanks
    Peter Redman

    Hi,
    How about something like:
    import java.util.regex.*;
    public class RegexpTest
       private static final Pattern p = Pattern.compile(
             "^User '([^']+)' with session '([^']+)' ([^ ]+) .*$" );
       public static void main( String[] argv )
          find( "User 'INEXIST' with session 'ax1zjd8yEeHh' added content '769' with uri 'http://mail.yahoo.com/'." );
          find( "User 'INEXIST' with session 'ax1zjd8yEeHh' changed folder from 'E-mails' to 'Milhagem'." );
          find( "User 'INEXIST' with session 'a8jXrY_N38ja' updated all content of folder 'Bancos'." );
       public static void find( String text )
          System.out.println( "Text: " + text );
          Matcher m = p.matcher( text );
          if ( ! m.matches() ) return;
          String user = m.group(1);
          String session = m.group(2);
          String action = m.group(3);
          System.out.println( "User: " + user );
          System.out.println( "Session: " + session );
          System.out.println( "Action: " + action );
       }which results in:
    Text: User 'INEXIST' with session 'ax1zjd8yEeHh' added content '769' with uri 'http://mail.yahoo.com/'.
    User: INEXIST
    Session: ax1zjd8yEeHh
    Action: added
    Text: User 'INEXIST' with session 'ax1zjd8yEeHh' changed folder from 'E-mails' to 'Milhagem'.
    User: INEXIST
    Session: ax1zjd8yEeHh
    Action: changed
    Text: User 'INEXIST' with session 'a8jXrY_N38ja' updated all content of folder 'Bancos'.
    User: INEXIST
    Session: a8jXrY_N38ja
    Action: updatedYou should probably change the Pattern to be less explicit about what it matches. i.e. changes spaces to \\s+ or something similar.
    Ol.

Maybe you are looking for

  • Multiple Email Address per contact

    I have more than one email address for many of my contacts. I do I compose an email to all of the contact's emails?

  • How do I switch to an old phone?

    My iphone screen doesn't work. How do I switch to my old LG phone?

  • What is max String size?

    Does the maximum amount of data a String can hold vary per a system's memory or is there a set cap? Would it be possible to store, say, a 48 MB file of ASCII values in a single String?

  • Welcome to Flash Media Playback!

    Welcome to the Flash Media Playback User Forum! We are pleased to announce the inaugural release of Flash Media Playback (FMP).  FMP is Adobe's turnkey player built on the Open Source Media Framework (OSMF).  It is hosted on Adobe's servers so that a

  • MacBookPro using Adobe how do I print both sides of the paper

    Using MacBookPro How do I set the printer to print both side of paper when using Adobe? Other Applications work OK