Help a complete Java Noob out. Weird FileNotFound Exception error

So yeah, I'm pretty much completely new to Java. This is probably a very easy solution. I keep getting this error.
Exception in thread "main" java.io.FileNotFoundException: C:\Users\Stephen\Desktop\numbers (The system cannot find the file specified)
     at java.io.FileInputStream.open(Native Method)
     at java.io.FileInputStream.<init>(FileInputStream.java:106)
     at java.util.Scanner.<init>(Scanner.java:636)
     at Practice.main(Practice.java:19)
I have checked to see if the file is there and it is. Any solutions?
import java.io.*;
import java.util.Scanner;
public class Practice
   public static void main (String [] args) throws IOException
          Scanner scan = new Scanner (new File("C:\\Users\\Stephen\\Desktop\\numbers"));          
                int eventotal = 0;
          int n = scan.nextInt();                    
          while (n != -1)
               if (n % 2 == 0)
                    eventotal += n;
               else               
               n = scan.nextInt();
     System.out.println(n);

The JVM isn't lying -- it can't find the file. Are you sure that you're spelling everything exactly right? Do you need to add an extension? Sometimes capitalization matters here.
If this is Windows, you might right click on the file, copy its properties and post the information here.

Similar Messages

  • Java Index Out Of Bounds Exception error

    In the Query Designer when I choose access type for Result value as Master data, and execute, I get the following java Index Out Of Bounds Exception error:
    com.sap.ip.bi.webapplications.runtime.controller.MessageException: Error while generating HTML
         at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2371)
         at com.sap.ip.bi.webapplications.runtime.impl.Page.doServerRedirect(Page.java:2642)
         at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:2818)
         at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2293)
         at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:841)
         at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:775)
         at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:412)
         at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:21)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.ip.bi.base.exception.BIBaseRuntimeException: Error while generating HTML
         at com.sap.ip.bi.webapplications.ui.items.UiItem.render(UiItem.java:380)
         at com.sap.ip.bi.webapplications.runtime.rendering.impl.ContainerNode.render(ContainerNode.java:62)
         at com.sap.ip.bi.webapplications.runtime.rendering.impl.PageAssemblerRenderingRoot.processRendering(PageAssemblerRenderingRoot.java:50)
         at com.sap.ip.bi.webapplications.runtime.impl.Page.processRenderingRootNode(Page.java:3188)
         at com.sap.ip.bi.webapplications.runtime.impl.Page.processRendering(Page.java:2923)
         at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:2877)
         at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2293)
         ... 39 more
    Caused by: java.lang.IndexOutOfBoundsException: fromIndex = -7
         at java.util.SubList.<init>(AbstractList.java:702)
         at java.util.RandomAccessSubList.<init>(AbstractList.java:860)
         at java.util.AbstractList.subList(AbstractList.java:569)
         at com.sap.ip.bi.bics.dataaccess.base.impl.ModifiableList.remove(ModifiableList.java:630)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsDataCells.removeRows(RsDataCells.java:480)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.removeTuples(RsAxis.java:550)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1312)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1326)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1326)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1326)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1272)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.RsAxis.applyResultVisibility(RsAxis.java:1170)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.ResultSet.applyPostProcessing(ResultSet.java:282)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.resultset.ResultSet.refreshData(ResultSet.java:262)
         at com.sap.ip.bi.bics.dataaccess.consumer.impl.queryview.QueryView.getResultSet(QueryView.java:267)
         at com.sap.ip.bi.webapplications.ui.items.analysis.control.AcPivotTableInteractive.checkResultSetState(AcPivotTableInteractive.java:368)
         at com.sap.ip.bi.webapplications.ui.items.analysis.control.AcPivotTableExport.validateDataset(AcPivotTableExport.java:249)
         at com.sap.ip.bi.webapplications.ui.items.analysis.control.AcPivotTableInteractive.buildUrTree(AcPivotTableInteractive.java:282)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:33)
         at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayoutItem.iterateOverChildren(FlowLayoutItem.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayout.iterateOverChildren(FlowLayout.java:69)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.MatrixLayoutCell.iterateOverChildren(MatrixLayoutCell.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.MatrixLayoutRow.iterateOverChildren(MatrixLayoutRow.java:56)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.MatrixLayout.iterateOverChildren(MatrixLayout.java:69)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.container.matrixlayout.control.AcMatrixControlGrid.iterateOverChildren(AcMatrixControlGrid.java:40)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.Group.iterateOverChildren(Group.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.container.group.control.AcGroupControl.iterateOverChildren(AcGroupControl.java:259)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayoutItem.iterateOverChildren(FlowLayoutItem.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.FlowLayout.iterateOverChildren(FlowLayout.java:69)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.advancedcontrols.bridge.AcItemBridge.iterateOverChildren(AcItemBridge.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.unifiedrendering.controls.Group.iterateOverChildren(Group.java:63)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.container.group.control.AcGroupControl.iterateOverChildren(AcGroupControl.java:259)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.framework.base.composites.UiRootContainer.iterateOverChildren(UiRootContainer.java:40)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.process(CompositeBuildUrTreeTrigger.java:36)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.CompositeBuildUrTreeTrigger.start(CompositeBuildUrTreeTrigger.java:59)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.ExtendedRenderManager.triggerComposites(ExtendedRenderManager.java:69)
         at com.sap.ip.bi.webapplications.ui.framework.base.impl.BICompositeManager.renderRoot(BICompositeManager.java:79)
         at com.sap.ip.bi.webapplications.ui.items.UiItem.render(UiItem.java:376)
    Any help in solving this error is highly appreciated. Points will be given
    Best Regards,
    Vidyut K Samanta

    Hi.
    Go to line 9 of your code.
    You are trying to use an array there.
    Suppose you have an array x[4] - this array has 4 elements indexed 0..3.
    you are trying to access an element with an index higher than 3.
    Nimo.

  • REQUEST HELP ON  JSP ODBC EXCEPTION ERROR

    hello.
    1)currently im using the tomcat server 4.1.31 and am using jsp technology along with the microsoft access database as the backend. i havd placed the jsp files and the microsoft access database in a dir under the webapps/root/ on the tomcat server
    2) i get the following error below and am unable to determine the root cause
    3) im using the win xp professional .. please help
    when i login i get the following exception error
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:498)
         at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:82)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find file '(unknown)'.
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3074)
         at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:323)
         at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:193)
         at org.apache.jsp.loginHandler_jsp._jspService(loginHandler_jsp.java:54)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:162)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    Apache Tomcat/4.1.31

    hello.
    1)currently im using the tomcat server 4.1.31 and am
    using jsp technology along with the microsoft access
    database as the backend. i havd placed the jsp files
    and the microsoft access database in a dir under the
    webapps/root/ on the tomcat server
    2) i get the following error below and am unable to
    determine the root cause
    3) im using the win xp professional .. please help
    when i login i get the following exception error
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error
    () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: [Microsoft][ODBC
    Microsoft Access Driver] Could not find file
    '(unknown)'.
    at
    t
    org.apache.jasper.runtime.PageContextImpl.handlePageEx
    ception(PageContextImpl.java:498)
    at
    t
    org.apache.jsp.loginHandler_jsp._jspService(loginHandl
    er_jsp.java:82)
    at
    t
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspB
    ase.java:92)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:809)
    at
    t
    org.apache.jasper.servlet.JspServletWrapper.service(Js
    pServletWrapper.java:162)
    at
    t
    org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
    pServlet.java:240)
    at
    t
    org.apache.jasper.servlet.JspServlet.service(JspServle
    t.java:187)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:809)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.intern
    alDoFilter(ApplicationFilterChain.java:200)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.doFilt
    er(ApplicationFilterChain.java:146)
    at
    t
    org.apache.catalina.core.StandardWrapperValve.invoke(S
    tandardWrapperValve.java:209)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardContextValve.invoke(S
    tandardContextValve.java:144)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardContext.invoke(Standa
    rdContext.java:2358)
    at
    t
    org.apache.catalina.core.StandardHostValve.invoke(Stan
    dardHostValve.java:133)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.valves.ErrorDispatcherValve.invoke
    (ErrorDispatcherValve.java:118)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:594)
    at
    t
    org.apache.catalina.valves.ErrorReportValve.invoke(Err
    orReportValve.java:116)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:594)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardEngineValve.invoke(St
    andardEngineValve.java:127)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.coyote.tomcat4.CoyoteAdapter.service(Coyote
    Adapter.java:152)
    at
    t
    org.apache.coyote.http11.Http11Processor.process(Http1
    1Processor.java:799)
    at
    t
    org.apache.coyote.http11.Http11Protocol$Http11Connecti
    onHandler.processConnection(Http11Protocol.java:705)
    at
    t
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolT
    cpEndpoint.java:577)
    at
    t
    org.apache.tomcat.util.threads.ThreadPool$ControlRunna
    ble.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Microsoft
    Access Driver] Could not find file '(unknown)'.
    at
    t
    sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.jav
    a:6958)
    at
    t
    sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:711
    5)
    at
    t
    sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:
    3074)
    at
    t
    sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcCo
    nnection.java:323)
    at
    t
    sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.ja
    va:174)
    at
    t
    java.sql.DriverManager.getConnection(DriverManager.jav
    a:512)
    at
    t
    java.sql.DriverManager.getConnection(DriverManager.jav
    a:193)
    at
    t
    org.apache.jsp.loginHandler_jsp._jspService(loginHandl
    er_jsp.java:54)
    at
    t
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspB
    ase.java:92)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:809)
    at
    t
    org.apache.jasper.servlet.JspServletWrapper.service(Js
    pServletWrapper.java:162)
    at
    t
    org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
    pServlet.java:240)
    at
    t
    org.apache.jasper.servlet.JspServlet.service(JspServle
    t.java:187)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:809)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.intern
    alDoFilter(ApplicationFilterChain.java:200)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.doFilt
    er(ApplicationFilterChain.java:146)
    at
    t
    org.apache.catalina.core.StandardWrapperValve.invoke(S
    tandardWrapperValve.java:209)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardContextValve.invoke(S
    tandardContextValve.java:144)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardContext.invoke(Standa
    rdContext.java:2358)
    at
    t
    org.apache.catalina.core.StandardHostValve.invoke(Stan
    dardHostValve.java:133)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.valves.ErrorDispatcherValve.invoke
    (ErrorDispatcherValve.java:118)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:594)
    at
    t
    org.apache.catalina.valves.ErrorReportValve.invoke(Err
    orReportValve.java:116)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:594)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.catalina.core.StandardEngineValve.invoke(St
    andardEngineValve.java:127)
    at
    t
    org.apache.catalina.core.StandardPipeline$StandardPipe
    lineValveContext.invokeNext(StandardPipeline.java:596)
    at
    t
    org.apache.catalina.core.StandardPipeline.invoke(Stand
    ardPipeline.java:433)
    at
    t
    org.apache.catalina.core.ContainerBase.invoke(Containe
    rBase.java:948)
    at
    t
    org.apache.coyote.tomcat4.CoyoteAdapter.service(Coyote
    Adapter.java:152)
    at
    t
    org.apache.coyote.http11.Http11Processor.process(Http1
    1Processor.java:799)
    at
    t
    org.apache.coyote.http11.Http11Protocol$Http11Connecti
    onHandler.processConnection(Http11Protocol.java:705)
    at
    t
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolT
    cpEndpoint.java:577)
    at
    t
    org.apache.tomcat.util.threads.ThreadPool$ControlRunna
    ble.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:534)
    Apache Tomcat/4.1.31*************************************************************************
    Hi,
    I think u didn't create the DSN for ur Microsoft Access database.
    First create the DSN name by giving the location of ur .mdb file. U can browse and select the file by clicking the "select " button in the DSN creation window. U should give the DSN name in ur connection URL. If u need any further assistance let me know.
    Regards
    null

  • I am trying to download a DAW (Cubase Elements 7) it downloads almost completely 1.02GB out of 2.41GB then the download stops ...... I try to resume it but Apple tells me I don't have permission to do this..PLEASE HELP ME!!!

    I am trying to download a DAW (Cubase Elements 7) it downloads almost completely 1.02GB out of 2.41GB then the download stops ...... I try to resume it but Apple tells me I don't have permission to do this..PLEASE HELP ME!!!

    If this is an App Store issue, contact http://www.apple.com/support/mac/app-store/contact/
    You can try repair permissions with Disk Utility.
    Also make sure your hard drive isn't over 85% full after a full installation of Cubase Elements looking up its system requirements.

  • I need help finishing the java install

    i have windows Millenium Edition & am trying to download J2SDK 1.5.0_4 so that i can write small programs at home. However, i cannot get the install software to finish putting java onto my desktop. it just keeps telling me that the install is complete but, there is no java icon to open the package. i have removed the program completely and tried a second time to install the software but i can get no further that the installshield wizard. i am at a loss and desperately want to start writing programs with java. someone out there, please help!
    i tried downloading an installing " Windows Offline Installation, Mult-language jdk-1_5_0_04-windows-i586-p.exe ( J2SE Develop. Kit 5.0 Update 4 ) " but it won't let me open java to write any programs.
    Thank you for your help in this matter.
    kind regards
    eric d.

    Java does not have a desktop icon to click. You open the command window and type commands to compile and execute the programs you write.
    I strongly suggest that you go to this tutorial
    http://java.sun.com/docs/books/tutorial/
    and click the First Steps: link. Be sure to click the link to the installation instructions and read them, especially the instructions about setting the PATH environment variable and the coaution regarding the use of Windows' Notepad.

  • Someone please help a complete beginner with Enterprise Manager!

    Question moved from
    Someone please help a complete beginner with Enterprise Manager!
    Please be gentle with me, I'm absolutely new to all this. We don't have a proper DBA and I've been tasked with the role. There is no-one else in the company with oracle experience and we don't have any support. Until now I've just used enterprise manager to manage the database, but now I have a problem..
    We are using Windows Server 2003 and Oracle 10g. I (stupidly) installed some network monitoring software on our server (PRTG network monitor). I almost immediately uninstalled it and all components/registry settings, but it seems to have thrown something out regards the OEM web interface.
    We used to access the OEM GUI through http://<hostname>:5500/em, but after installing/uninstalling the network monitor software the OEM webpage would only stay up for a few minutes, before saying 'Internet Explorer cannot display the webpage'. Restarting the DBconsole in services fixed the problem, but again, only for a few minutes.
    Spent all day yesterday looking at logfiles (they didn't make much sense to me), but seemed to be saying access was denied to the server ('actively denied it'). Lots of googling led me to believe I needed to reconfigure OEM by dropping and recreating it using:
    emctl stop dbconsole
    emca -deconfig dbcontrol db
    emca -repos recreate
    during this process I was asked for various passwords and a port number? I didn't even know what to use as the port number but guessed it was 5500 ?!? (probably wrong). As it didn't work I used the default port number that I found somewhere on the web.
    However now I am even deeper in the **** as this didn't work either, (some error about listnener?) and I have now lost the DBConsole in windows services. Obviously the OEM web console doesn't work at all now
    I would be eternally grateful for some patient, beginners help here..I can post whatever log files are necessary - I just need to know what I'm supposed to be doing and where to start..
    We used to log on to the OEM as 'SYSTEM', but nowhere in the process does it seem to ask me for the password for that (its asked me for SYS and SYSMAN)
    It could be that I'm going about this completely wrong, but with only a days experience in all this its pretty hard to know what I'm doing really!
    As you can tell I'm in way over my head..I just need OEM web interface to work!
    Thanks in advance

    ok, thanks to helpful comments from other people in my initial thread (posted in general database forum), after rebuilding the console/repository I now have EM up and running. But there are more problems..
    Firstly I have an error at the very top of the screen:
    java.lang.Exception: Number of responses does not match queries
    Also, the 'Host CPU' and 'Active Sessions' are blank and say 'No Data Is Currently Available' beneath them
    my emagent.trc file contains this error, repeating with different thread IDs every 30 seconds...
    (error = 10061)
    2012-04-30 17:19:28 Thread-4376 ERROR pingManager: nmepm_pingReposURL: Cannot connect to http://hostname:5500/em/upload/: retStatus=-1
    2012-04-30 17:19:59 Thread-1448 WARN http: snmehl_connect: connect failed to (hostname:5500): No connection could be made because the target machine actively refused it.
    Help!

  • Help needed with java

    Hello everyone
    I'm a Student and new to java and I have been given a question which I have to go through. I have come across a problem with one of the questions and am stuck, so I was wondering if you guys could help me out.
    here is my code so far:
    A Class that maintains Information about a book
    This might form part of a larger application such
    as a library system, for example.
    @author (your name)
    *@version (a version number or a date)*
    public class Book
    // instance variables or fields
    private String author;
    private String title;
    Set the author and title when the book object is constructed
    public Book(String bookAuthor, String bookTitle)
    author = bookAuthor;
    title = bookTitle;
    Return The name of the author.
    public String getAuthor()
    return author;
    Return The name of the title.
    public String getTitle()
    return title;
    and below are the questions that I need to complete. they just want me to add codes to my current one, but the problem is I don't know where to put them and how I should word them, if that makes sense.
    Add a further instance variable/field pages to the Book class to store the number of pages in the book.
    This should be of type int and should be set to 0 in the Constructor.
    Add a second Constructor with signature
    public Book(String bookAuthor, String bookTitle, int noPages) so it has a third parameter passed to it as well as the author and title;
    this parameter is used - obviously?? - to initialise the number of pages.
    Note: This is easiest done by making a copy of the existing Constructor and adding the parameter.
    Add a getPages() accessor method that returns the number of pages in the book.
    Add a method printDetails() to your Book class. This should print out the Author title and number of pages to the Terminal Window. It is your choice as to how the data is formatted, perhaps all on one line, perhaps on three, and with or without explanatory text. For instance you could print out in the format:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:226
    Add a further instance variable/field refNumber() to your Book class. This stores the Library's reference number. It should be of type String and be initialised to the empty String "" in the constructor, as its initial value is not passed in as a parameter. Instead a public mutator method with the signature:
    public void setRefNumber(String ref) should be created. The body of this method should assign the value of the method parameter ref to the refNumber.
    Add a corresponding getRefNumber() accessor method to your class so you can check that the mutator works correctly
    Modify your printDetails() method to include printing the reference number of the book.
    However the method should print the reference number only if it has been set - that is the refNumber has a non-zero length.
    If it has not been set, print "ZZZ" instead.
    Hint Use a conditional statement whose test calls the length() method of the refNumber String and gives a result like:
    Title: Jane Eyre, Author: Charlotte Bronte, Pages:226, RefNo: CB479 or, if the reference number is not set:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:347, RefNo: ZZZ
    Modify your setRefNumber() method so that it sets the refNumber field only if the parameter is a string of at least three characters. If it is less than three, then print an error message (which must contain the word error) and leave the field unchanged
    Add a further integer variable/field borrowed to the Book class, to keep a count of the number of times a book has been borrowed. It should (obviously??) be set to 0 in the constructor.
    Add a mutator method borrow() to the class. This should increment (add 1 to) the value of borrowed each time it is called.
    Include an accessor method getBorrowed() that returns the value of borrowed
    Modify Print Details so that it includes the value of the borrowed field along with some explanatory text
    PS. sorry it looks so messey

    1. In the future, please use a more meaningful subject. "Help needed with java" contains no information. The very fact that you're posting here tells us you need help with Java. The point of the subject is to give the forum an idea of what kind of problem you're having, so that individuals can decide if they're interested and qualified to help.
    2. You need to ask a specific question. If you have no idea where to start, then start here: [http://home.earthlink.net/~patricia_shanahan/beginner.html]
    3. When you post code, use code tags. Copy the code from the original source in your editor (NOT from an earlier post here, where it will already have lost all formatting), paste it in here, highlight it, and click the CODE button.

  • Dump complete java VM state as core dump (not via OS) possible?

    Hi everyone,
    I've a problem debugging an application.
    Background: Sometimes my application comes to a very unlikely state, which at the moment results in an error message. The stack trace alone has no great value, since this state is cause by the interaction of more than one thread. The state is resolved throwing an exception, the program continues normally.
    Goal: If I reach this state, I want to suspend the application, dump the complete state of all java threads, objects, ... (complete java memory core dump) to analyse it later.
    Question: Is there a possibility to generate such dumps?
    Just thinking:
    One posibility would be, to send a signal from the vm to some external program (e.g. udp packet), this program attaches a standard OS-level debugger (e.g. gdb under linux), dumps the core, resumes app, detach. But I guess reconstruction of internal VM state from complete dump is rather hard, is it?
    I've looked at jdb, to see if it has some java-core-dump functions, but it seems not to be so. Are there alternative implementations, or helper scripts that make jdb loop over all java object addresses and dump them?
    Does someone known about the jdb remote debugging interface? Is the protocol public, can I implement such a feature on myself?

    Hi everyone,
    I was looking for a way to dump the complete state of a JVM (all runing threads, objects, ...) and afterwards to analize the dumped data. I have found a thread(http://forum.java.sun.com/thread.jspa?threadID=735052) here in the forums with some explainations how this could be done using the Java 2 sdk 1.5.0 - troubleshooting tools (http://java.sun.com/j2se/1.5.0/docs/tooldocs/experimentaltools.html).
    I've made a small application, which starts a thread and just prints out continously some messages to the console.
    After that I attached with gdb to the running process as described, and generated a core file.
    Unfortunatelly on calling jdsadebugd with the core dump it throws the following exception:
    jsadebugd /..../jdk1.5.0_07/bin/java core.18294 DebServ
    Attaching to core core.18294 from executable /.../jdk1.5.0_07/bin/java and starting RMI services, please wait...
    Error attaching to core file or starting server: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the core file
    at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method)
    at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:258)
    at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:624)
    at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:610)
    at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:323)
    at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:298)
    at sun.jvm.hotspot.HotSpotAgent.startServer(HotSpotAgent.java:234)
    at sun.jvm.hotspot.DebugServer.run(DebugServer.java:94)
    at sun.jvm.hotspot.DebugServer.main(DebugServer.java:29)
    at sun.jvm.hotspot.jdi.SADebugServer.main(SADebugServer.java:46)
    Even if I try to print the shared objects mapping with jmap it fails with the following message:
    jmap /.../jdk1.5.0_07/bin/java core.18294
    Attaching to core core.18294 from executable /.../jdk1.5.0_07/bin/java, please wait...
    Error attaching to core file: Can't attach to the core file
    Does anyone have an idea what goes wrong here?

  • Error Message: Could not complete your request because of a program error. when I try to save. help!

    I am getting this message when I try to save any of my photos (Photographer).   "Could not complete your request because of a program error."   Only when I try to save my photo though.  Ive tried doing some research but have had no luck with any of the possible solutions I have come accross.  Please help me solve this problem.
    Computer specs
    MAC
    Software  Mac OS X Lion 10.7.2 (11C74)
    Processor  2.5 GHz Intel Core i5
    Memory  4 GB 1333 MHz DDR3
    Graphics  AMD Radeon HD 6750M 512 MB
    Photoshop CS5.1

    Please be aware that this Forum will be locked on the 3rd of January.
    Does Save As-work?
    Boilerplate-text:
    Are Photoshop and OS fully updated?
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by keeping command-alt-shift pressed on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.

  • Firefox telling users that Java is out of date

    Currently, the latest Java version out for WIndows PC, is Java7 U51. Java8 has been released in Beta version. When you do a check in Firefox to check if your plugins are up do date, Firefow tells you that Java is out of date. It wants you to upgrade to Java8. Its been this way from the day Java8 was released in Bate version
    That shouldn't be. As long as Java8 is only Beta, the lates veriosn that can be referenced is Java7U51. Please fix.

    Yes, sorry, this is a known problem and has been posted in the bug tracking system where different approaches are under discussion.
    Due to a change in Firefox 29, a completely different system is being developed for plugin checking, and based on what I read yesterday, that might be taking priority over various lingering problems with the current plugin checker.

  • Help with some java work ... :(

    Hi, I was wondering can anyone here give me some help or show me the way with this programming assignment. This is my first week of programming in Java and is really struggling ...
    I already have some very useful help from some people on here but still have no luck.
    Below is what my assignment is about and what I've done so far, sorry if it's very basic but I'm trying my hardest.
    You are required to write a program in Java that can store the details of three books. Their details are
    Author
    Shelf location
    Availability
    The program should give each book a unique shelf location starting from 0001. The details should be entered from the keyboard. The program should, on request, be able to print the details of each book to the screen. The program should terminate on request. The program should first ask for a preset password to be given before continuing executing any operation described above
    public class Library {
    public static void main(String[] args) {
    String[][] books =
         { "Shelf Location", "Author   ", "Book Name     ", "Availability" },
    { "0001          ", "A. Smith ", "Hello World   ", "1           " },
    { "0002          ", "C. Jones ", "Goodbye World ", "0           " },
    { "0003          ", "D. Wan   ", "Whatever      ", "5           " }
    for (int i = 0; i < books.length; i++) {
         System.out.print(books[0] + " ");
    for (int j = 1; j < books[i].length; j++) {
         System.out.print(books[i][j] + " ");
         System.out.println();
    import java.io.*;
    public class Login2
    private static BufferedReader in;
    private static BufferedReader keyboard;
    public static void main(String[] args) throws IOException
    keyboard = new BufferedReader(
    new InputStreamReader(System.in));
    String input;
    boolean done = false;
    while (!done)
    System.out.print("Enter Password in UPPERCASE (QUIT to exit)");
    input = keyboard.readLine();
    if ((input.equals("LOGIN")) || (input.equalsIgnoreCase("QUIT")))
    done =
    true;
    return.Library();
    I was told to use cases, instances, etc ... nothing complicated is needed but it is still to much for me. I saw some examples of people's work and they only have approx 1.5 pages of code.
    Thanx very much for people who reads this thread and offers me help.

    Here's something to play around with (minimal error handling)
    import java.io.*;
    class Library
      private final String password = "java";
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      private String books[][] = new String[3000][];
      int bookTotal = 0;
      public Library() throws IOException
        options();
      private void options() throws IOException
        System.out.print("\nLibrary Options - \n0 - quit\n1 - Enter book details"+
              "\n2 - List book details\n\nPlease enter selection number: ");
        int selection = Integer.parseInt(br.readLine());
        if(selection == 0) goodBye();
        else
          checkPassword();
          if(selection == 1) newBook();
          else listBook();
      private void newBook() throws IOException
        String another="";
        do
          if(bookTotal == books.length)
            System.out.println("Unable to add more books");
            return;
          books[bookTotal] = new String[4];
          System.out.print("\nEnter title details: ");
          books[bookTotal][0] = br.readLine();
          System.out.print("Enter author details: ");
          books[bookTotal][1] = br.readLine();
          System.out.print("Enter shelf location details: ");
          books[bookTotal][2] = br.readLine();
          System.out.print("\n0 - out of stock\n1 - available\n2 - on loan"+
                                           "\nEnter availability details: ");
          books[bookTotal][3] = br.readLine();
          bookTotal++;
          System.out.print("\nEnter another book? (y/n): ");
          another = br.readLine();
        }while(another.toLowerCase().equals("y"));
        options();
      private void listBook() throws IOException
        String another="";
        String titles = "\n";
        String availability[] = {"out of stock","available","on loan"};
        for(int i=0;i<bookTotal;i++) titles += (i+1)+" - "+books[0]+"\n";
    int selection = 0;
    if(bookTotal > 0)
    do
    System.out.print(titles+ "Please enter selection number: ");
    selection = Integer.parseInt(br.readLine()) - 1;
    System.out.println("\nBook title = "+books[selection][0]);
    System.out.println("Book author = "+books[selection][1]);
    System.out.println("Book shelf location = "+books[selection][2]);
    System.out.println("Availability = "+availability[Integer.parseInt(books[selection][3])]);
    System.out.print("\nList another book? (y/n): ");
    another = br.readLine();
    }while(another.toLowerCase().equals("y"));
    else System.out.println("\nno books to list\n");
    options();
    private void goodBye()
    System.out.println("\nThank you for using the Library program.\nGoodbye.\n");
    System.exit(0);
    private void checkPassword() throws IOException
    System.out.print("\nEnter password to continue: ");
    String pwd = br.readLine();
    if(!pwd.equals(password)) goodBye();
    public static void main(String args[]) throws IOException
    new Library();

  • Oracle BPM installed  Java out-of-memory exception

    Hi,
    I have installed the oracle BPM software in the server have the Ram capacity 8 GB,Could you please suggest some of the do's and don't's to avoid the Java out-of-memory exception which normally appearing on the console of weblogic server.
    My Server details,
    Windows 2008 R2 64 bit, RAM 8 GB,
    The required BPM s/w I installed from the link below,
    http://www.oracle.com/technetwork/middleware/bpm/downloads/index.html?ssSourceSiteId=ocomen
    Thanks in advance for your help.
    Regards,
    Shyam
    Edited by: user13821489 on 06-Feb-2011 22:45

    I had to increase JVM xmx/maxperm in the "set*Env.sh" scripts in the directory where you start WLS. In my dev environment, deploying BAM & BPM together with the Admin server, I finally allocated 4GB max. Jdev.conf is also better if you allocate > 1GB - mine is 1.4GB. I also watch process memory. Multiple re-deployments in my development environment seem to increase the memory, even if I remove process instances and undeploy first. I don't understand the internals very well so perhaps it is behaving correctly, but restarting WLS frees the unused memory that I expected gc to reclaim.

  • Java/lang/out of memoryerror

    i have nokia c2-06 and i have installed a app in it but when went to open it didn't open and it showed me java/lang/out of memory error so help how 2 solve this promblem

    Hi,
    May I ask what is the name of the application that you are trying to install? Is the application came from Nokia Store?
    thanks,

  • Java Embedding Weird XML Node Error

    Ok, I am going crazy. I have a java embedding node that takes a date string in, changes it to a different format and creates another date that contains the current time. if I run this in java to code run ok and there are no issues. At the end of the java I print out the string and they are exactly what I want. The thing that is going on is when I set the 2 string BPEL variables in the java embedding, when I try to reference them the 2nd time,I get a weird node object error. I get through the first pass ok. when I try to reference Test1 or Test2 on the 2nd pass I get the error below. Its like when I set the variable currentDB2UpdateDate and currentDB2CurrTimeDate it does something to them. Instead of setting it to just the string it seems to set it to some kind of object.
    I have 3 steps here. Assign -> Java Embedding -> Assign.
    Assign 1 => Initialize 2 String variables to X.
    <code>
    <assign name="Assign_2">
    <copy>
    <from expression="string('X')"/>
    <to variable="currentDB2UpdateDate"/>
    </copy>
    <copy>
    <from expression="string('X')"/>
    <to variable="currentDB2CurrTimeDate"/>
    </copy>
    </assign>
    </code>
    Java Embedding =>
    <code>
    String currentFileDate = (String)getVariableData("currentFileDate");
    String currentDate = "";
    try
    SimpleDateFormat sdfSource = new SimpleDateFormat("MM/dd/yyyy");
    Date date = sdfSource.parse(currentFileDate);
    SimpleDateFormat sdfDestination = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    currentFileDate = sdfDestination.format(date);
    catch(ParseException pe)
    System.out.println("Parse Exception : " + pe);
    try
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    currentDate = sdf.format(cal.getTime());
    catch(Exception pe)
    System.out.println("Parse Exception : " + pe);
    System.out.println("currentFileDate : " + currentFileDate.toString());
    System.out.println("currentDate : " + currentDate.toString());
    setVariableData("currentDB2UpdateDate",currentFileDate);
    setVariableData("currentDB2CurrTimeDate",currentDate);
    </code>
    Assign 3 =>
    <code>
    <assign name="Assign_1">
    <copy>
    <from variable="currentDB2UpdateDate"/>
    <to variable="Test1"/>
    </copy>
    <copy>
    <from variable="currentDB2CurrTimeDate"/>
    <to variable="Test2"/>
    </copy>
    </assign>
    </code>
    <code>
    <bpelFault><faultType>0</faultType><selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>Invalid to part type.
    When performing the assign operation, the to node 2010-07-17 12:00:00 is invalid.
    The node named in the error message was either null or an empty node set, and it was not an instance of org.w3c.Element.
    Verify the node value at line number 819 is not null and is an instance of org.w3c.Element.
    </summary></part></selectionFailure></bpelFault>
    </code>
    The 2nd pass to this throws the following error when trying to set Test1 and Test2 again... Its like it is setting the variable to an object and not just the string. I tried using toString() in the setVariable too and it didn't work. I don't get it.
    Edited by: 806312 on Dec 1, 2010 8:13 AM
    Edited by: 806312 on Dec 1, 2010 8:26 AM

    I am also facing a similar issue.There is selection failure in assignment to local variable of BPEL .
    PFB the logs :
    parts: {{
    summary=&amp;lt;summary&amp;gt;Invalid to part type.
    When performing the assign operation, the to node false is invalid.
    The node named in the error message was either null or an empty node set, and it was not an instance of org.w3c.Element.
    Verify the node value at line number 3577 is not null and is an instance of org.w3c.Element.
    &amp;lt;/summary&amp;gt;}
    Here is the code:
    <copy>
    <from expression="xpath20:add-dayTimeDuration-to-dateTime($calculatednpexectime,'P200YT')"/>
    <to variable="calculatednpexectime"/>
    </copy>
    It seems as if Oracle is not accepting the date format .
    Is there some issue with local variables of new version of BPEL ??

  • HELP:  JBO-29000: java.lang.IllegalArgumentException

    em.createQuery("update Planroleinfo o set o.planroleinfo=:planrole where o.planroleinfoid=:planroleid").setParameter("planroleid",planroleid).setParameter("planrole", planrole).executeUpdate();
    Error:
    1.JBO-29000: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager; nested exception is: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
    2.java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager; nested exception is: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
    Help me.

    Did you run out of memory assigned to the VM?
    Maybe you should look at increasing it using the -Xmx option.
    -SteveA

Maybe you are looking for

  • Email problems on Macbook.

    My IPhone 5 has 4 email accounts set up on it, all of the accounts are receiving and sending emails fine. However when i go on my macbook and try to "get mail" it finds mail but does not show them in the inbox, i have tried changing a few settings on

  • HD output from mac to tv

    I can import my HD Videocamera movie into my MACBookpro and edit it with imovie 6 and then "burn" the HD movie back to my video camera. I then use the camera to play beautiful HD on my HDTV using an HDMI cable. However this is a real pain. Is there a

  • How can I find a list of authorized computers?

    I'd like to see which computers are listed as authorized. That way I can see which ones should be deauthorized.

  • Substitution variables in a calculation - Analyzer

    I have a report set up in Analyzer and I am using substitution variables. the first column is the current month (&curr_mon) and the secomd column is the prior month (&prior_mon). I want to add a third column that would subtract the first two and give

  • ADCS Policy Web Service - Access was denied by the remote endpoint. 0x803d0005 (-2143485947)

     Hi there fellow colleagues, I am currently facing a problem with ADCS Policy Web Service on Windows Server 2008 R2 Enterprise (SP1). • Hotfix installed http://support.microsoft.com/default.aspx?scid=kb;EN-US;2545850 • Application Pool Identity: Appl