Use web bean problem

I work with BusinessComponent and DataWebBean for create JSP page.
I want change the whereClause at run time for the View Object as code:
<jsp:useBean class="oracle.jbo.html.databeans.NavigatorBar" id="nbc" scope="request" >
<%
nbc.setShowNavigationButtons(true);
nbc.setReleaseApplicationResources(false); nbc.initialize(pageContext,"bcPackage_BcPackageModule.DeptView");
nbc.render();
%>
</jsp:useBean>
<jsp:useBean class="oracle.jbo.html.databeans.RowSetBrowser" id="rsb" scope="request" >
<% rsb.setUseRoundedCorners(true);
rsb.setShowCurrentRow(true);
rsb.setVisibleRows(10);
rsb.setAlternateColors(true);
rsb.setShowRecordNumbers(false);
rsb.setReleaseApplicationResources(false);
rsb.initialize(pageContext,"bcPackage_BcPackageModule.DeptView");
rsb.getRowSet().getViewObject().setWhereClause("DeptNo=20 ");
rsb.getRowSet().getViewObject().executeQuery();
rsb.render();
%>
</jsp:useBean>
Afther this operation, the NavigatorBar don't respond correctly (if I go next and then go prev it fails)
idem with:
<jsp:useBean class="oracle.jbo.html.databeans.NavigatorBar" id="nbc" scope="request" >
<%
nbc.setShowNavigationButtons(true);
nbc.setReleaseApplicationResources(false);
rsb.getRowSet().getViewObject().setWhereClause("DeptNo=20 ");
rsb.getRowSet().getViewObject().executeQuery(); nbc.initialize(pageContext,"bcPackage_BcPackageModule.DeptView");
nbc.render();
%>
</jsp:useBean>
<jsp:useBean class="oracle.jbo.html.databeans.RowSetBrowser" id="rsb" scope="request" >
<% rsb.setUseRoundedCorners(true);
rsb.setShowCurrentRow(true);
rsb.setVisibleRows(10);
rsb.setAlternateColors(true);
rsb.setShowRecordNumbers(false);
rsb.setReleaseApplicationResources(false);
rsb.initialize(pageContext,"bcPackage_BcPackageModule.DeptView");
rsb.render();
%>
Where's the problem?
Thanks you
Andrea

<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Susan Shen ([email protected]):
Thanks Laura! It's done.
But I found this problem happens every time when restart my computer. Is there any solution?
Regards
Susan<HR></BLOCKQUOTE>
null

Similar Messages

  • Using web beans in JSP

    I would like to know how create a tree using Web Beans that Jdeveloper provides. Using the web object editor I could add two Beans which mapped to JSTree and JSTreeData(in oracle.jdeveloper.jsp.wb package), though I don't know the difference between them. I tried to include Both these beans in the JSP(which appear as tags) but I am unable to render the tree. Let's say I have a parent node (text: row1, url: url1, 3 childs) and 3 child nodes (text: row2..row4, url: url2..url4, each with no childs). How do I write it in the JSP to render it properly
    -Rajeev

    I would like to know how create a tree using Web Beans that Jdeveloper provides. Using the web object editor I could add two Beans which mapped to JSTree and JSTreeData(in oracle.jdeveloper.jsp.wb package), though I don't know the difference between them. I tried to include Both these beans in the JSP(which appear as tags) but I am unable to render the tree. Let's say I have a parent node (text: row1, url: url1, 3 childs) and 3 child nodes (text: row2..row4, url: url2..url4, each with no childs). How do I write it in the JSP to render it properly
    -Rajeev

  • How to clear/delete previously instantiated web beans?

    Is there a way to flush out all the previously used web beans that were created programmatically in the CO?
    In my earlier version of the CO, I had used a webBean.addIndexedChild(MessageTextInputBean), to add create a text input field on the fly at the Page Level.
    I have since then, revised my CO code to create a table bean and then create the MessageTextInputBean within the table bean. However, for some reason, I am now seeing duplicate tables (i.e. two instances) of the table on my page.
    I have tried all the following but none of these attempts have been successful in removing the older web bean that still seems to be lurking around:
    1) vo.clearCache()
    2) vo.reset()
    3) am.clearVOCaches
    4) am.resetState(true)
    5) bounced apache (even though I'm running the page locally)
    6) even cloned the current VO and the PG to new names, and ran the new page.
    7) cleared IE cache/cookies
    8) used webBean.clearIndexedChildren() - This one removes everything (all declaratively defined items) but keeps the original Web bean. Opposite of what I'm trying to achieve.
    Any idea on what could be going on?
    Sameer

    Map sessionMap = FacesContext.getCurrentInstance).
    getExternalContext().getSessionMap();
    String objectName;
    Iterator o;
    o = sessionMap.keySet().iterator();
    // Loop through all session objects
    while (o.hasNext()) {
    Object unknownBean;
    objectName = o.next().toString();
    unknownBean = sessionMap.get(objectName);
    // perform any conditional logic prior to removing from session
    sessionMap.remove(objectName);
    }

  • Data web bean (chart) using a dynamic view object

    Please I want a quick help. I read all forums concerning this subject but I still couldn't do it.
    - I create a view object which takes a proameter using the ? style parameter.
    - I passed the parameter from an html page and execute the query
    of the view as follows:
    <%
    String deptno = request.getParameter("deptno");
    if(deptno != null) {
    oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session , "MyProject21_package3_Package3Module");
    oracle.jbo.ViewObject v = oracle.jbo.html.jsp.JSPApplicationRegistry.getInstance()
    .getAppModuleInstance("MyProject21_package3_Package3Module",request,session)
    .findViewObject("View1");
    v.setWhereClauseParam(0,deptno);
    v.executeQuery();
    %>
    - And then I used the data web bean chart as follows:
    <jsp:useBean class="oracle.jbo.html.databeans.ChartRenderer" id="ch" scope="request" >
    <%
    ch.setReleaseApplicationResources(false);
    ch.initialize(application,session, request,response,out,"MyProject21_package3_Package3Module.View1");
    ch.setCommonScriptName("/webapp/jsp/chart_common.jsp");
    ch.getChart().setGraphType(ch.PIE);
    ch.setSeriesLabelColumnName("DeptNo");
    ch.setDisplayAttributes("CountEmplNo");
    ch.getChart().setPieFeelerTextDisplay(0);
    ch.getChart().setPieTilt(10);
    ch.getChart().setPieRotate(0);
    ch.getChart().setLegendDisplay(true);
    ch.getChart().setLegendMarkerPosition(0);
    ch.getChart().setTitleString("Title");
    ch.getChart().setSubtitleString("Subtitle");
    ch.getChart().setFootnoteString("Footnote");
    ch.setImageWidth(400);
    ch.setImageHeight(400);
    ch.render();
    %>
    - I tried to use the View1 as a view name, and the v as a view name
    but both of them get the same result
    SQL Statement error and the sql statement is displayed with the ? in it which means that he didn't replace it by the parameter.
    Please I need quick help.
    Thanks.
    </jsp:useBean>
    Remark : please send me the reply at "[email protected]"

    Hi Rishab,
    I'm running into the exact same problem, in the same situation. Did you solve this problem and can you tell me how?
    Thanks in advance,
    Paskal

  • Using a view-object as a data web bean?

    Hi,
    When writing JSP pages, I'd like to have a web bean that allows basic data manipulation such as:
    - set up a row set - e.g. by specifying a view object and an (optional) where clause;
    - navigate this row set (first, next, etc.);
    - get or set the values of the attributes of the current row;
    - insert, update or delete a row;
    - commit or rollback the modifications;
    - etc.
    This bean should be "silent" - i.e. it would not have to be able to "render" anything - instead, I would use it in <%= bean.method() %> tags, or in <% ...java code... %> sections, in conjunction with other (custom) beans.
    I guess I could use a view object - but:
    1) How would I have to use it in a JSP context?
    2) Or, are there more appropriate objects to do this job?
    3) What methods could I use (i.e. where are they documented)?
    4) What pitfalls should I be aware of (most notably related to housekeeping after bean use)?
    Any information greatly appreciated!
    Thanks in advance,
    Serge

    Hi,
    When writing JSP pages, I'd like to have a web bean that allows basic data manipulation such as:
    - set up a row set - e.g. by specifying a view object and an (optional) where clause;
    - navigate this row set (first, next, etc.);
    - get or set the values of the attributes of the current row;
    - insert, update or delete a row;
    - commit or rollback the modifications;
    - etc.
    This bean should be "silent" - i.e. it would not have to be able to "render" anything - instead, I would use it in <%= bean.method() %> tags, or in <% ...java code... %> sections, in conjunction with other (custom) beans.
    I guess I could use a view object - but:
    1) How would I have to use it in a JSP context?
    2) Or, are there more appropriate objects to do this job?
    3) What methods could I use (i.e. where are they documented)?
    4) What pitfalls should I be aware of (most notably related to housekeeping after bean use)?
    Any information greatly appreciated!
    Thanks in advance,
    Serge

  • Problem using a bean in JSP on Tomcat 5.0.28

    Hi,
    I'm new to JSP, I've installed Tomcat 5.0.28 and I'm able to run JSP but when I try an asp wich uses a bean it gives me this error, the directory structure is
    testingProject with the first.jsp
    testingProject\WEB-INF\classes\myPackage with the test.class
    the first.asp
    <%@ page import="myPackage.Test" %>
    <html><head><title>Test</title></head>
    <body bgcolor=white>
    <jsp:useBean id="list" class="myPackage.Test"> </jsp:useBean>
    <jsp:getProperty name="list" property="value1" />
    <%=list.value1%>
    <p>
    </body></html>
    the Test.java
    package myPackage;
    public class Test{
    String value1="testinggggggggg";
    public void Test(){
    public String getValue1(){ return value1}
    the error
    thanks in advance
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 6 in the jsp file: /first.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 5.0\work\Catalina\localhost\testingProject\org\apache\jsp\first_jsp.java:60: cannot resolve symbol
    symbol : variable value1
    location: class myPackage.Test
    out.print(list.value1);
    ^
    1 error
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)

    There are two ways of getting info from the bean.
    1) the jsp:getProperty tag, which seems correct in your code
    2) the <%= ... tag. In that case you must write a valid java expression. In your case: list.getValue1()

  • Problem in using web logic server

    I have following problems in using the weblogic server 8.1.2
    1. Under which folder jsp & html files should be stored?
    2. When I run the weblogic server using web logic work shop,
    I get the following error message.
         "Low virtual memory".
    My pc is running on Windows 2000 Professional.
    Please give me solution for both of my problems.
    My thanks in advance.

    1) somedirectory/yourwebapp/
    2) get more memory , 1Gig is a good start

  • How to use JavaScript in Web bean generated JSP

    I want to do some simple JavaScript validations (for example, checking if a particular field is empty) in the JSP page rendered by the data web bean. Because the HTML is rendered by the bean, I'm not able to refer to the HTML controls in the JSP page. I'm not even able to refer to the form with the following standard piece of JavaScript code - "document.forms[0].control_name".
    Is anybody aware of how to use JavaScript with these rendered JSP pages?

    You just have to add it like and applet , including this line in your JSP or JSF
    <script src="http://dl.javafx.com/dtfx.js"></script>Then add the applet
    <script>
        javafx(
                  archive: "./resources/jar/Draw.jar",
                  width: 400,
                  height: 200,
                  code: "Draw",
                  name: "Draw"
    </script>./resources/jar/Draw.jar - is the path and the name of the jar

  • Problem in completing the TASK when using Web Dynpro Java and BPM

    Hi,
    I am using Web Dynpro Java and BPM.
    i see my Web Dynpro View when i run the process.
    Just that the task is not completing.
    when i click on the Web Dynpro button to signal the completion of the event, nothing happens.
    i have appropriately created events in both Component controller and Interface Controller and used the same in creating the Task.
    a method in Component controller fires the event and a button click in the view calls this method.
    i have successfully completed Donka Dimitrova's "SAP Netweaver Business Process Management-End-to-End Process Implementation Sample " but when i tried my own with slight modifications, it is not working !!!
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d07f3e88-554f-2b10-3cbf-ab8afea51b9f
    regards,
    -Amol Gupta

    Hi Amol,
    The way you described the things, I dont see any problems. Just to make sure that you are triggering the right event that you mapped as completion event for the task, try to cross check once again and see if the correct event is getting triggered. Also try to put some messages for debugging to see till where the control goes.
    Regards,
    Arafat

  • Problem when using WEB.SHOW_DOCUMENT and passing in lexical parameter

    Hi,
    I got a blank page with error "An error has occured while trying to use this document" when I tried to use web.show_document and passing a lexical parameter to 10g report on 10gAS. The URL in the web.show_document is:
    http://<srvname>:<portnum>/reports/rwservlet?server=repserver90&report=myrpt.rdf&destype=Cache&desformat=pdf&userid=<usr>/<pw>@<db>&where_clause=where%20product_type%20in%20('REPORT')
    If I change the desformat to htmlcss, it is fine to display the report. But doesn't work with desformat=pdf. The pdf file has been generated in the cache. Why can't it display on the screen.
    Also I tried to use double quote the value for where_clause. The pdf report showed up. But it ignored the where clause.
    Experts please help.
    Ying

    I use lexical parameters and they work fine, but I use a parameter list. The code is contained in a form that is called by all forms that wish to run a report. This way you only need the logic for printing in a single form. If you want the form, email me at [email protected]

  • Downloaded Firefox 4 to a new Laptop never used 4 before am having problems adding my custon buttons to frequently used web pages

    I downloaded Firefox onto a laptop that did not have Firefox already installed. Downloading went well, but I do not know how to use 4, I had the older version on my desktop and I can not figure out how to add the applications I want to use on my bar. I had customized web pages and do not know how to re-make the app on 4. before you went into customize and you could make your own app with a picture and it brought me to my frequently used web page. HELP

    Type '''about:config''' in the URL bar and hit Enter.
    ''If you see the warning, you can confirm that you want to access that page.''
    Filter = '''browser.tabs.insertRelatedAfterCurrent'''
    Double-click that preference to change the value to '''''false'''''

  • Very Urgent Unable to Launch Application using Web Start using JDK 1.4.2

    Hi all
    I am very serious issue i have ejb client swing application that uses
    RMI to contact a session bean deployed in JBoss now i want the client app to be installed in the client machine using web start . Also i understand i require security permission to access network resources. so i have signed all the JAR files with same certificate created using self certificate avialiable in JDK by default also in the JNLP file in have included the following tag
    <security>
    <all-permissions/>
    </security>
    Now when I launch my application using Web start it gives an error that " Unsigned application is trying to access local resources"
    I unable to understand what could be the problem . Please help me with the steps to be followed where in client should be able to RMI call to the server
    Thanks in Advance
    Naveen

    You may have tried this already, but you might have to sign the jars via command line, outside any export process from your IDE.
    $ jarsigner {filename}.jar {key from keystore}
    I also had problems using webstart and RMI through an RCP
    Ben

  • Using Spring beans from EJB MDB

    I have a situation where I need to use spring beans from an EJB 3.0 MDB. The project does not have any webapps or anything,
    it will be only a MessageBean facade that needs to call spring beans. It is meant to be a service, that can be called by usign a single EJB message.
    The problem is I cannot get the spring context to load properly, since the MDBean it self is initialized(constructor called) only when it receives the first message from the broker, thus It's "too late" to initialize the spring context. What I want to do is load the spring context when the EJB is deployed in the Java EE container. So, is there a way I can call a some method, class, anything when the EJB is deployed in the container. Can I do something with a deployment descriptor?
    I am using glassfish V2 UR1, EJB 3.0, Spring 2.0.7 The project is deployed as a jar.

    Miku wrote:
    I have a situation where I need to use spring beans from an EJB 3.0 MDB. The project does not have any webapps or anything,
    it will be only a MessageBean facade that needs to call spring beans. It is meant to be a service, that can be called by usign a single EJB message. Why not make it a real service? Spring's contract first web services are a very nice way to go. It hides the fact that you're using a message-driven component for processing, too.
    %

  • Using web logic 6.1 web service

    hello.
    I'm testing web services in weblogic 6.1
    I have created a web service and client. they exchange messages well.
    their request and Response messages are like below
    request Message------------------------------------------------------------------------------------
    POST /weather/weatheruri HTTP/1.1
    Content-length: 483
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
    xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:getTemp xmlns:ns0='urn:Weather'
    SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
    <arg0 xsi:type='xsd:string'>SomeString</arg0>
    </ns0:getTemp>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Response Message-------------------------------------------------------------------------------------
    HTTP/1.1 200 OK
    Date: Mon, 08 Sep 2003 02:08:02 GMT
    Server: WebLogic WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    Content-Type: text/xml; charset=UTF-8
    Transfer-Encoding: Chunked
    Connection: Close
    0291
    <?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
    xmlns:xsd='http://www.w3.org/1999/XMLSchema'>
    <SOAP-ENV:Body>
    <ns0:getTempResponse xmlns:ns0='urn:local' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
    <return xsi:type='bean:weatherResult' xmlns:bean='java:examples.webservices.rpc.weather'
    >
    <temperature xsi:type='xsd:float'>-273.15</temperature>
    <zipcode xsi:type='xsd:string'>SomeString</zipcode>
    </return>
    </ns0:getTempResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    0000
    they seems to work fine.
    but i'm getting error to decode response message on client side.
    C:\... >java Client
    java.lang.reflect.UndeclaredThrowableException: java.lang.InstantiationException
    : examples.webservices.rpc.weather.weatherResult
    at weblogic.soap.codec.SimpleSoapEncodingCodec.newInstance(SimpleSoapEnc
    odingCodec.java:198)
    at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncoding
    Codec.java:178)
    at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncoding
    Codec.java:151)
    at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:96)
    at weblogic.soap.codec.Operation.read(Operation.java:100)
    at weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
    at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
    at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:464)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:430)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at weblogic.soap.wsdl.WebServiceInvocationHandler.invoke(WebServiceInvoc
    ationHandler.java:31)
    at $Proxy0.getTemp(Unknown Source)
    at Client.main(Client.java:18)
    Exception in thread "main" java.lang.NullPointerException
    at Client.main(Client.java:23)
    weatherResult bean is like below.
    package examples.webservices.rpc.weather;
    public class weatherResult implements java.io.Serializable{
         private     String zipcode;
         private float temperature;
         public weatherResult ( String temp , float temp2 ) {
              this.zipcode = temp;
              this.temperature = temp2;
         public String getZipcode()
              return this.zipcode;
         public float getTemperature()
              return temperature;
         public void setZipcode(String temp)
              this.zipcode = temp;
         public void setTemperature(float temp)
              temperature = temp;
    what is problem you guess.. ?

    yes. service provider and consumer both are generated in weblogic.
    the only thing i did is to revise the 'weather' web service example to use java
    bean ( complex type ).
    ( the 'weather' web service example was in Document 'Programming WebLogic Web
    services' )
    thanks for quick response.
    Sam Pullara <[email protected]> wrote:
    Hmmm. Is this all being generated in WebLogic or are you using an external
    service? I think you should contact support. We may not support this
    in 6.1
    and you might have to move to 7.0 for more complete web service support.
    Sam
    dolso wrote:
    thanks for response.
    I have checked WSDL and i found another mystery.
    In my WSDL document that is generated in webLogic 6.1,
    'weatherResult' element's schema is like below
    <complexType name="weatherResult">
    <attribute name="temperature" type="float" />
    <attribute name="zipcode" type="string" />
    </complexType>
    as you can see, return element is supposed to be named 'weatherResult'and composed
    of attributes
    but responsed element is like below
    <return xsi:type='bean:weatherResult' xmlns:bean='java:examples.webservices.rpc.weather'>
    <temperature xsi:type='xsd:float'>-273.15</temperature>
    <zipcode xsi:type='xsd:string'>SomeString</zipcode>
    </return>
    there are two strange things.
    1. there is 'return' element .
    2. 'temperature' and 'zipcode' are elements, not attributes.
    where did 'return' element come from? and why response element is composedof
    elements?
    why it doesn't match up to WSDL document?
    I think that this problem caused error to instantiate weatherResultBean.
    do you know why?
    thanks for reading.
    Sam Pullara <[email protected]> wrote:
    It looks to me like you are returning a temperature and a zipcode but
    your
    weather result is expecting a zipcode and a temperature so the constructor
    is
    being called with a (float, String) rather than a (String, float).
    At
    least
    that is my guess. Maybe the two are listed in the other order in the
    WSDL?
    Sam
    dolso wrote:
    hello.
    I'm testing web services in weblogic 6.1
    I have created a web service and client. they exchange messages well.
    their request and Response messages are like below
    request Message------------------------------------------------------------------------------------
    POST /weather/weatheruri HTTP/1.1
    Content-length: 483
    <?xml version='1.0' encoding='UTF-8'?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
    xmlns:xsd='http://www.w3.org/1999/XMLSchema'><SOAP-ENV:Body><ns0:getTemp
    xmlns:ns0='urn:Weather'
    SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
    <arg0 xsi:type='xsd:string'>SomeString</arg0>
    </ns0:getTemp>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Response Message-------------------------------------------------------------------------------------
    HTTP/1.1 200 OK
    Date: Mon, 08 Sep 2003 02:08:02 GMT
    Server: WebLogic WebLogic Server 6.1 SP2 12/18/2001 11:13:46 #154529
    Content-Type: text/xml; charset=UTF-8
    Transfer-Encoding: Chunked
    Connection: Close
    0291
    <?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
    xmlns:xsd='http://www.w3.org/1999/XMLSchema'>
    <SOAP-ENV:Body>
    <ns0:getTempResponse xmlns:ns0='urn:local' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
    <return xsi:type='bean:weatherResult' xmlns:bean='java:examples.webservices.rpc.weather'
    <temperature xsi:type='xsd:float'>-273.15</temperature>
    <zipcode xsi:type='xsd:string'>SomeString</zipcode>
    </return>
    </ns0:getTempResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    0000
    they seems to work fine.
    but i'm getting error to decode response message on client side.
    C:\... >java Client
    java.lang.reflect.UndeclaredThrowableException: java.lang.InstantiationException
    : examples.webservices.rpc.weather.weatherResult
    at weblogic.soap.codec.SimpleSoapEncodingCodec.newInstance(SimpleSoapEnc
    odingCodec.java:198)
    at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncoding
    Codec.java:178)
    at weblogic.soap.codec.SimpleSoapEncodingCodec.decode(SimpleSoapEncoding
    Codec.java:151)
    at weblogic.soap.codec.CodecFactory.decode(CodecFactory.java:96)
    at weblogic.soap.codec.Operation.read(Operation.java:100)
    at weblogic.soap.codec.SoapMessage.readOperation(SoapMessage.java:200)
    at weblogic.soap.codec.SoapMessage.read(SoapMessage.java:130)
    at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:464)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:430)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at weblogic.soap.wsdl.WebServiceInvocationHandler.invoke(WebServiceInvoc
    ationHandler.java:31)
    at $Proxy0.getTemp(Unknown Source)
    at Client.main(Client.java:18)
    Exception in thread "main" java.lang.NullPointerException
    at Client.main(Client.java:23)
    weatherResult bean is like below.
    package examples.webservices.rpc.weather;
    public class weatherResult implements java.io.Serializable{
         private     String zipcode;
         private float temperature;
         public weatherResult ( String temp , float temp2 ) {
              this.zipcode = temp;
              this.temperature = temp2;
         public String getZipcode()
              return this.zipcode;
         public float getTemperature()
              return temperature;
         public void setZipcode(String temp)
              this.zipcode = temp;
         public void setTemperature(float temp)
              temperature = temp;
    what is problem you guess.. ?

  • JAVA WEB SERVER Problem

    Hai,
    I am using Java Web Server 1.2 . In JSP , when I use
    ResultSet.previous(), it is saying that :
    java.sql.ResultSet.previous() command not found. I do not know what to do ?
    But, In java file, it is working fine without any problem .But, I need to implement in JSP only.
    When I use the bean, which consists Rs.previous() also it says Resultset.previous() Command Not found It is very very urgent to me.
    Pl help me.
    Thanks & Regards

    S,
    1. Yes, you're rigth. Something is missing here.
    2. If it works for Java App and not in JSP,
    that would mean JAVA see your jdbc driver and not JSP
    but then how come JSP can use Connection ???
    3. I think we need some expert to clarify about setup on your machine. Some thing is not set up well so that JAVA app and JSP see at the same time. It look like only JAVA app see the whole.
    4. Can you post your article in JDBC forum also in waiting?
    -- Paul.

Maybe you are looking for

  • Help with texting problems??

    hi Im not sure  what to do. I was texting a good friend of mine the other night and he was texting me back too. The next morning I tried texting him again and it just said sent. But when I tried calling it just rings a ton until it eventually goes to

  • Poor signal in So. Florida

    Having problems with dropped calls and signal strength in South Florida. VZ map shows solid signal, but told by VZ tech that I'm in variable signal area. ATT and TMO both have great signal here, why not VZ?

  • Can't install itunes, "verify that you have access..." message

    I already had iTunes installed, but when I tried to open it just now it was as if it was installing for the first time, and before it could finish I got this message: Error writing to file: C:\Program Files\Common Files\Apple\Mobile Device Support\Sy

  • Tool for viewing the loaded classes, defining and initiating ClassLoaders

    Many modern Java based servers and tools such as IDEs employ a complex/hierarchical class loader architecture for modularity and isolation. Many Java debuggers have ability to display loaded classes. However sometimes it is neccesary to view defining

  • When I add a sound file to a slideshow the slides stop changing

    How can I add a sound file and have it play through the entire slideshow in Acrobat Pro X?