Java class bean can not access to DB in JSP file

Hi, I wrote a java class bean in order to access to MySql database ,and this bean is used in a JSP file,so that the bean can query from DB and then display the queried information on the JSP file,but it can not work correctly,the following is the source code and error message popup by the system,
does anybody has experience in solving thus question,Please reply ,Thank you for your help.
%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import = "java.sql.*" %>
<jsp:useBean id="conn" scope="page" class="news.conn"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>1</title>
<style>
<!--
A:link {
     COLOR: #993399
.s {
     FONT-SIZE: 13px; LINE-HEIGHT: 170%; FONT-FAMILY: "utf-8"
-->
</style>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="100%">
<img border="0" src="images/ruanjian.jpg" width="770" height="154"></td>
</tr>
<tr>
<td width="100%">@</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="13%">@</td>
<td width="87%">
<img border="0" src="images/mid-rdxw2.gif" width="101" height="18"><p>
<%
          ResultSet rs,rsNest;
String strSql=null;
strSql = "select * from news where TYPE=1";     
          rs = conn.executeQuery(strSql);
          while (rs.next()){
%>
<span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt(id")%">"><%=rs.getString("Title")%></a><br>
<%
%>
<p>
<img border="0" src="images/mid-hyxw2.gif" width="94" height="19"></p>
<%
strSql="select * from news where TYPE=2";     
          rs = conn.executeQuery(strSql);
          while (rs.next()){
%>
<span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt("id")%>"><%=rs.getString("Title")%></a><br>
<%
%>
<p>@</td>
</tr>
</table>
<p align="center">Study Online</p>
<p align="center">@</p>
</body>
</html>
Error message:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /newsMain.jsp:47
44: strSql = "select * from news where TYPE=1";     
45:           rs = conn.executeQuery(strSql);
46:           
47:           while (rs.next()){
48:
49: %>
50:
Stacktrace:
     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
root cause
java.lang.NullPointerException
     org.apache.jsp.newsMain_jsp._jspService(newsMain_jsp.java:98)
     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 l</a>

nogoodatcoding wrote:
Tolls wrote:
Is that Jasper Exception telling us where the problem is in the jsp, though?
If it is, then "rs" is null in the call rs.next()...which means conn.executeQuery() is returning null. Which means that whatever class conn is (news.conn?) has a problem maybe?That's possible. Though, it may just be the case that the 'conn' object itself is null! That line is the first place where it's being used and there are no checks that I can see...we'll have to wait for the OP to investigate and reply I guess.That's what I originally thought, then I noticed it was saying line 47, which is the rs.next() line. Assuming Jasper is correct in its choice of line, then it's the rs that's null. Which means the conn is doing strange things.
Edit: Now that I think about it, going by the previous thread the OP posted, I'm wondering whether news.conn class is their attempt to move the JDBC stuff out of the JSP page, and it's grabbing the "real" connection (java.sql.Connection) and getting the result set and returning it...or getting something wrong and returning null.
Edited by: Tolls on 11-Jun-2009 12:24

Similar Messages

  • Can not access to blackberry balance work files with *.zip extension

    I have a playbook 32 GB running OS 2.1.0.1526.
    For my work e-mail, I used to use playbook often. I downloaded lots of files from my work e-mail. However using native file manager app on playbook, I can only see pictures, videos, music, office, pdf files of the downloaded ones. Other unsupported files are MISSING !!! There are also some zipped files I downloaded. I am sure. But I can not access them !!!
    I tried another way using dsktop manager, but I can not reach the blackberry balance files by PC. 
    I tried some file manager apps from the market but no solution.
    I need that unsupported files, is there a way to reach them ?

    tarumar wrote:
    I have a playbook 32 GB running OS 2.1.0.1526.
    For my work e-mail, I used to use playbook often. I downloaded lots of files from my work e-mail. However using native file manager app on playbook, I can only see pictures, videos, music, office, pdf files of the downloaded ones. Other unsupported files are MISSING !!! There are also some zipped files I downloaded. I am sure. But I can not access them !!!
    I tried another way using dsktop manager, but I can not reach the blackberry balance files by PC. 
    I tried some file manager apps from the market but no solution.
    I need that unsupported files, is there a way to reach them ?
    Have you tried the free Air Browser, and there is also File and Folder (paid) both of which are very good
    Using the Playbook and the Z10 and the Z30 and loving them
    Martin

  • Pls I have encountering a problem with my phone I can not access any information on my file in

    Please I can not open my file and also I could not download and update my whatsapp too it was just writting 907 invalid LOD

    TheArtificialNerd wrote:
    I can say 100% that the AppleCare phone number only redirects to other AppleCare groups.
    ALL of them Apple corporate or Apple Authorized partners.

  • Can anyone explain error: can not access a member .. with modifiers ""

    Can anyone explain why this would occur:
    javax.faces.FacesException: Can't instantiate class: 'com.package.MyBean'.. class com.package.MyBean : java.lang.IllegalAccessException: Class java.beans.Beans can not access a member of class com.package.MyBean with modifiers ""

    also if the class is not defined as public
    myClass()
    public myClass()
    i got this when building my custom class loader and it took me sometime to figure this out since my editor generates my class templates I didn't even think to check something as basic as not having a public class - hopefully this saves someone else some trouble

  • Reflection problem: can not access a member of class java.lang.IllegalAcces

    package org.struts.ets.utility;
    import java.lang.reflect.Constructor;
    import java.lang.reflect.Field;
    import java.lang.reflect.InvocationTargetException;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import org.struts.bean.FieldTrouble;
    import org.struts.bean.GenericDAOBean;
    public class DynamicObjectCreation
         public static void main(String... args)
              FieldTrouble ft = new FieldTrouble();
              try
                   Class<?> c = ft.getClass();
                   //Class<?> c = FieldTrouble.class;
                   /*Class<?> c = null;
                   try
                        c = Class.forName("org.struts.bean.FieldTrouble");
                   } catch (ClassNotFoundException e)
                        e.printStackTrace();
                   Field f = c.getDeclaredField("var1");
                   //f.setInt(ft, 42); // IllegalArgumentException
                   f.set(ft, new String("A"));
                   System.out.println(ft.getVar1());
                   // production code should handle these exceptions more gracefully
              } catch (NoSuchFieldException x)
                   x.printStackTrace();
              } catch (IllegalAccessException x)
                   x.printStackTrace();
    }// If I put FieldTrouble.java in any other package than the current package I am running this code from. I get the following error:
    java.lang.IllegalAccessException: Class org.struts.ets.utility.DynamicObjectCreation can not access a member of class org.struts.bean.FieldTrouble with modifiers ""
         at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
         at java.lang.reflect.Field.doSecurityCheck(Unknown Source)
         at java.lang.reflect.Field.getFieldAccessor(Unknown Source)
         at java.lang.reflect.Field.set(Unknown Source)
         at org.struts.ets.utility.DynamicObjectCreation.main(DynamicObjectCreation.java:35)
    I tried all possible ways of creating class as:
    Class<?> c = ft.getClass(); OR
    Class<?> c = FieldTrouble.class; OR
                   /*Class<?> c = null;
                   try
                        c = Class.forName("org.struts.bean.FieldTrouble");
                   } catch (ClassNotFoundException e)
                        e.printStackTrace();
    Edited by: ..-__Kris__-.. on Feb 21, 2008 10:26 AM
    Edited by: ..-__Kris__-.. on Feb 21, 2008 10:26 AM

    Any hidden performance or memory issue here?
    Let us consider an object:
    public class SomeObject
         private String fieldA;
         private String fieldB;
         private String fieldC;
         private String fieldD;
         private String fieldE;
         //... say 50 declared fields....
         public SomeObject()
         public SomeObject(String fieldA, String fieldB)
              this.fieldA = fieldA;
              this.fieldB = fieldB;
    // getters and setters..     
    }When I create an object using the constructor with only two fields initialized such as the following code above, and look at what is happening to other fields as shown in the code below, I see that they are also AVAILABLE, now this is important, but they are set to null. What I wanted to know was, if I created an object with many fields, as many as 50 (getDeclaredFields = 50), and used a constructor with only two input fields to initialize an object, I still have 48 other fields available but set as NULL's. When I create more than 100,000 of these objects in a list and send to a .jsp page, I am unable to understand if this has more memory load than when you use a list of another object which has actually has only two declared fields in it. Each of this new object will have only two declared fields, when I say getDeclaredFields() it would return 2.
    This is where I am unable to figure out if this has anything to do with performance or memory, rather, what is the difference between the many possible ways you can initialize an object when there are too many fields which you probably won't use? Either create a new constructor with only two input arguments OR a generic constructor with all fields as input arguments but all those fields which you won't use assigned NULL's OR create another new object with only two declared fields
    SomeObject someObj = new SomeObject("abcd","cdef");
              Field[] fields = someObj.getClass().getDeclaredFields();
              System.out.println("Number of available fields: " + fields.length);
              for(int i = 0 ; i < fields.length ; i++)
                   try
                        fields.setAccessible(true);
                        System.out.println("Field " + i + ", with value: " + fields[i].get(someObj));
                        fields[i].get(someObj);
                   } catch (IllegalArgumentException e)
                        e.printStackTrace();
                   } catch (IllegalAccessException e)
                        e.printStackTrace();
              }Edited by: ..-__Kris__-.. on Mar 23, 2008 5:04 PM
    Edited by: ..-__Kris__-.. on Mar 23, 2008 5:05 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Axis Fault: JavaProvider can not access a member of class Hello with mod.

    Hi,
    I am getting the following Axis Fault with content
    Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.IllegalAccessException: Class org.apache.axis.providers.java.JavaProvider can not access a member of class Hello with modifiers ""
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:SNR143052
    java.lang.IllegalAccessException: Class org.apache.axis.providers.java.JavaProvider can not access a member of class Hello with modifiers ""
         at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:719)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
         at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
    The client code for the webservice using instant deployment is
    import java.net.URL;
    import javax.xml.rpc.ParameterMode;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.utils.Options;
    public class ClientHello {
         public ClientHello(){
         public static void main(String[] args) throws Exception{
              Options options = new Options(args);
              String endpoint = "http://localhost:" + options.getPort()+"/WebServices/Hello.jws";
              args = options.getRemainingArgs();
              Service services = new Service();
              Call call = (Call) services.createCall();
              call.setTargetEndpointAddress(new URL(endpoint));
              call.setOperationName(args[0]);
              call.addParameter("op1",XMLType.XSD_STRING,ParameterMode.IN);
              call.setReturnType(XMLType.XSD_STRING);
              System.out.print(args[1]);
              String s = new String(args[1]);
              String result = (String) call.invoke(new Object[]{s});
              System.out.println(result);
    The hello.jws is as follows
    class Hello {
         public String hi(String message){
              return "Hello "+ message;
    I am not sure why the message is substituted with "" instead of the parameter i have sent in args[1].
    Please help me out in this regard.
    Thanks,
    winkidzz

    Thanks swatdba.
    Any idea on how to proceed with implementing Webservices using Websphere MQ?

  • Can not access a member of class Test with modifiers ""

    Hi!
    I am trying to get a application into a applet, but I just get this errormessage:
    Exception: Java.lang.IllegalAccessException: Class sun.applet.AppletPanel can not access a member of class Test with modifiers ""
    Anyone that have any idea whats wrong here?
    Best regards Raymond

    Post class where the exception was ocurred.

  • Can not access the Instance Data of a Singleton class from MBean

    I am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
    I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
    Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
    Can anyone explain or have hints on what's happening ? Any help will be appreciated.
    I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
    Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
    Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
    I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
    http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
    http://www.theserverside.com/discussions/thread.tss?thread_id=12194
    http://www.jguru.com/faq/view.jsp?EID=1051835
    Thanks,
    Krishna

    I am working against the deadline and i am sweating now. From past few days i have been working on a problem and now its the time to shout out.
    I have an application (let's call it "APP") and i have a "PerformanceStatistics" MBean written for APP. I also have a Singleton Data class (let's call it "SDATA") which provides some data for the MBean to access and calculate some application runtime stuff. Thus during the application startup and then in the application lifecysle, i will be adding data to the SDATA instance.So, this SDATA instance always has the data.
    Now, the problem is that i am not able to access any of the data or data structures from the PerformanceStatistics MBean. if i check the data structures when i am adding the data, all the structures contains data. But when i call this singleton instance from the MBean, am kind of having the empty data.
    Can anyone explain or have hints on what's happening ? Any help will be appreciated.
    I tried all sorts of DATA class being final and all methods being synchronized, static, ect.,, just to make sure. But no luck till now.
    Another unfortunate thing is that, i some times get different "ServicePerformanceData " instances (i.e. when i print the ServicePerformanceData.getInstance() they are different at different times). Not sure whats happening. I am running this application in WebLogic server and using the JConsole.
    Please see the detailed problem at @ http://stackoverflow.com/questions/1151117/can-not-access-the-instance-data-of-a-singleton-class-from-mbean
    I see related problems but no real solutions. Appreciate if anyone can throw in ideas.
    http://www.velocityreviews.com/forums/t135852-rmi-singletons-and-multiple-classloaders-in-weblogic.html
    http://www.theserverside.com/discussions/thread.tss?thread_id=12194
    http://www.jguru.com/faq/view.jsp?EID=1051835
    Thanks,
    Krishna

  • I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed

    I'm note a firefox geek, but ever since my friend told me to install NoScript I can not access my msn and hotmail page. It tells me that Java Script is required, what ever that is. What do I do next. Do I uninstall the No Script. Thanks Ed edit
    Details

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • Can not access sample & admin tools after configuring Oracle8.1.7

    Hi all,
    I am using WLS6.1(sp2) and WLPortal4.0(sp1).
    I changed the default database(i.e. Cloudscape) to Oracle by following the doc
    http://edocs.bea.com/wlp/docs40/deploygd/oraclnew.htm
    But, after setting up the Oracle8.1.7, when i try to access the sample stock portal
    from the homepage, i am getting the following exception
    PortalPersistenceManager: portal 'portal/stockportal' not found
    <Feb 20, 2002 12:33:19 PM EST> <Error> <HTTP> <[WebAppServletContext(1467076,stockportal,/stockportal)]
    Servlet failed with S
    ervletException
    javax.servlet.ServletException: Received a null Portal object from the PortalManager.
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.setupPortalRequest(PortalWebflowServlet.java:194)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWebflowServlet.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241)
    at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
    at jsp_servlet.__index._jspService(__index.java:92)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    even i can not access the admin tools.....i get the follwing error when i try
    to access the portalTools/index.jsp
    <Feb 20, 2002 12:38:18 PM EST> <Warning> <Webflow> <Webflow could not resolve
    a destination given: appname [tools], namespace
    [admin_main], origin [begin], event [defaultEvent] with request id [3121877];
    Attempting to load Configuration-error-page.>
    <Feb 20, 2002 12:38:18 PM EST> <Error> <Webflow> <Error while parsing uri /portalTools/application,
    path null, query string n
    amespace=admin_main - Webflow XML does not exist, is not loaded properly, or you
    do not have a configuration-error-page defin
    ed.
    Exception[com.bea.p13n.appflow.exception.ConfigurationException: The configuration-error-page
    node was not found in the webfl
    ow xml file. for webapp [tools], namespace [admin_main]. While trying to display
    CONFIGURATION ERROR: [Exception[com.bea.p13n
    .appflow.exception.ConfigurationException: Bad Namespace - namespace [admin_main]
    is not available for webflow execution. Mak
    e sure the [admin_main.wf] file is deployed in webapp [tools].]],]
    at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processConfigurationError(WebflowExecutorImpl.java:786)
    at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequest(WebflowExecutorImpl.java:484)
    at com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequest(WebflowExecutorImpl.java:419)
    at com.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doGet(WebflowServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:241)
    at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
    at jsp_servlet.__index._jspService(__index.java:92)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    Am i missing any step here???
    can anybody help me????
    thanks
    Vijay

    oops...i missed step5.
    it is working now after doing the sync.
    thanks
    Vijay
    "Daniel Selman" <[email protected]> wrote:
    Did you sync the applications and load the sample data?
    Sincerely,
    Daniel Selman
    "vijay bujula" <[email protected]> wrote in message
    news:[email protected]...
    Hi all,
    I am using WLS6.1(sp2) and WLPortal4.0(sp1).
    I changed the default database(i.e. Cloudscape) to Oracle by followingthe
    doc
    http://edocs.bea.com/wlp/docs40/deploygd/oraclnew.htm
    But, after setting up the Oracle8.1.7, when i try to access the samplestock portal
    from the homepage, i am getting the following exception
    PortalPersistenceManager: portal 'portal/stockportal' not found
    <Feb 20, 2002 12:33:19 PM EST> <Error> <HTTP><[WebAppServletContext(1467076,stockportal,/stockportal)]
    Servlet failed with S
    ervletException
    javax.servlet.ServletException: Received a null Portal object fromthe
    PortalManager.
    atcom.bea.portal.appflow.servlets.internal.PortalWebflowServlet.setupPortalReq
    uest(PortalWebflowServlet.java:194)
    atcom.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWe
    bflowServlet.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:241)
    atweblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
    at jsp_servlet.__index._jspService(__index.java:92)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2495)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    even i can not access the admin tools.....i get the follwing errorwhen i
    try
    to access the portalTools/index.jsp
    <Feb 20, 2002 12:38:18 PM EST> <Warning> <Webflow> <Webflow could notresolve
    a destination given: appname [tools], namespace
    [admin_main], origin [begin], event [defaultEvent] with request id[3121877];
    Attempting to load Configuration-error-page.>
    <Feb 20, 2002 12:38:18 PM EST> <Error> <Webflow> <Error while parsinguri
    /portalTools/application,
    path null, query string n
    amespace=admin_main - Webflow XML does not exist, is not loaded properly,or you
    do not have a configuration-error-page defin
    ed.
    Exception[com.bea.p13n.appflow.exception.ConfigurationException: The
    configuration-error-page>> node was not found in the webfl>> ow xml file. for webapp [tools, namespace [admin_main]. While tryingto
    display
    CONFIGURATION ERROR: [Exception[com.bea.p13n
    appflow.exception.ConfigurationException: Bad Namespace - namespace[admin_main]
    is not available for webflow execution. Mak
    e sure the [admin_main.wf] file is deployed in webapp [tools].]],]
    atcom.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processConfigurati
    onError(WebflowExecutorImpl.java:786)
    atcom.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequ
    est(WebflowExecutorImpl.java:484)
    atcom.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequ
    est(WebflowExecutorImpl.java:419)
    atcom.bea.p13n.appflow.webflow.servlets.internal.WebflowServlet.doGet(WebflowS
    ervlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
    l.java:241)
    atweblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
    at jsp_servlet.__index._jspService(__index.java:92)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2495)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    Am i missing any step here???
    can anybody help me????
    thanks
    Vijay

  • Can not access my Time machine HD after CLEAN install Mountain Lion

    Hi Everyone!
    Thank you in advance for your interest and help, I really appreciate it.
    I recently did a clean Install of Mountain Lion and already did all the updates that appeared. However, before doing these clean install, I did a back up with Time Machine on my external Hard drive. Now I can't access to it, doesn't even appear on my sidebar when I connect it. On the other hand it does appear as connected when I open Disk Utility, but I can not access to it. There I have all my 5 years of University works and classes, photos, and music. This Hard drive is only dedicated for my Mac Backups and nothing more.
    I guess that if I install again Snow Leopard, it will work, but I have to re install everything as my Mac is a Mid or Late 2007 15-inch Macbook pro and it came with the OS before the snow leopard 10.5 or something like that.
    What can I or should I do to access my Hard Drive again?
    Best Regards
    Edd

    Hi Mende,
    Sorry for my late reply but I want to thank you for your help.
    I followed your instructions and now I can access the drive thank you a lot for this. However, now I don't want to restore everything from my last back-up just some files, How can I do this? Also I want to restore My iLife, but the copy I have from the CD that came with my mac doesn't allow to install it, what can I do.
    Take good care, and happy holidays.
    Best Regards
    Edd
    PD. Are you from Spain?

  • HT1338 Why I can not access to yahoo games from my Mackbook Air?

    Why I can not access to yahoo games from my Mackbook Air?. I am using Mac OS X 10.7. 4.

    http://jdk7.java.net/download.html
    u10 fixes yahoo game problem.

  • Java.lang.AssertionError: Can not find generic method public abstract

    I just downloaded the JDev 11g and trying to test the JEE web app. Below is my install:
    JDeveloper 11g
    JEE Web Project
    EJB 3.0
    Steps taken:
    1. Created an entity bean from a table.
    2. Created a session facade
    3. Create sample Java client to use the facade (Right-click on the session facade, and choose New sample Java Client from the context menu)
    4. Run the session facade
    5. Run the Java client
    I got the following error.
    java.lang.AssertionError: Can not find generic method public abstract java.util.List<com.oracle.orm.model.ejb.persistence.Hosttags> queryHosttagsFindAll() in EJB Object
    I checked the methods in the beans and interfaces, they are all there. Any idea?
    Thanks.

    I have a customer that has this problem.
    We wrote me that:
    we got a java.lang.NoSuchMethodException while the method exist even in the generated (by WLS) stub.
    when we change the interface by putting a "list" instead of list <> then it works.
    hope it can help, but should be great know why.
    Regards
    Marco
    글 수정: user10649412

  • When I plug in my Ipod touch to my computer a warning appears "The program cant start because MSVCR80.dll is missing."  I can not access my Itunes library.  Also, an "error 7 Windows error 126" appears as well.  Any ideas?

    When I plug in my Ipod Touch to my computer I can not access my Itunes library.  The following message appears "The program cant start because MSVCR80.dll is missing."  Also, another message appears as well - "Error 7  Windows error 126" as well as APSDaemon.exe.
    I have NO IDEA what the heck to do.
    Any ideas?
    Thanks!

    Issues installing iTunes or QuickTime for Windows
    solving MSVCR80
    iTunes 11.1.4 for Windows: Unable to install or open
    Troubleshooting issues with iTunes for Windows updates

  • TS4002 I bought iPad and I can not access, A message appears asking me account and password when i return to the person who I purchased it from him, he told me that he forgot the account and password I want a solution to the problem, because in this way I

    I bought iPad and I can not access, A message appears asking me account and password when i return to the person who I purchased it from him, he told me that he forgot the account and password
    I want a solution to the problem, because in this way I will not benefit from the iPad

    There is no solution.  You have to provide the ID and password.  There is no way around it.  If the person you bought it from can't provide it, return it and get your money back.

Maybe you are looking for

  • Inventory Report for Statutory

    Good Evening Experts, Please help me in writing the query for the following format.                              Opening Stock          In Stock                 Stock Transfer         Goods Issue                Closing Stock                          

  • Closing company code FI impact

    Hi Guru We have two company codes xxx1 and xxx2, business requriement is close xxx2 company code and transfer all the GL balance. customer and vendor open items. we have 7 fixed asset which we need to transfer to xxx1 company code. I am new to FI. ca

  • URGENT: Parameter Passing Problem

    In Forms 6i I am sucessfully passing parameters from one form to another. The problem is I want the receiving form to execute the query at startup. I cant run execute_query; unless the form is in enter_query mode. In a trigger execute_query cannot be

  • Install and use Adobe Digital Editions on a computer without internet access ?

    Hello, I have a pair of PCs, one of them, with Windows Vista, has never been connected to the internet since many years. It is used for word processing mostly. I didn't even bother to plug an ethernet cable inside or think about a Wifi USB key, in a

  • Exchange 2003

    I have one problem. At work we are using exchange 2003 and I'd like to read and asnwer my email at home using mail.app, but I cannot. How I set mail.app? I have to use exchang or exchange IMAP? I can read my mail wit my Iphone, I use the same usernam