Problem in connecting to Access Database.
Hi,
I am new to this Java/JSP Concepts. I am using IBM Websphere Studio(Application Developer 5.1.2). I am facing a problem to connect to the Access database. I have written a java file to connect to the Access Database. When i compile my java code and run it. It was working fine and i am able to insert into the Access database.The java file is working fine without errors. But when i create an object in the jsp and called the methods through that object i am getting "java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver", "java.sql.SQLException: No suitable driver", "java.lang.NullPointerExceptionexceptions" exceptions.
Please help me in solving the problem.
My Java code is :
package myPack;
import javax.sql.*;
import java.sql.*;
import java.io.*;
import java.util.*;
public class DB_Connect {
private Connection con;
private Driver driver;
//private String connectStr ="jdbc:odbc:MS Access Database;DBQ=C:\\Movie_Club.mdb";
public void initialiseDrivers(){
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("driver found");
catch (ClassNotFoundException e){
e.printStackTrace();
System.out.println("driver not found");
try{
con = DriverManager.getConnection("jdbc:odbc:MS Access Database;DBQ=C:\\Movie_Club.mdb","","");
System.out.println("database found");
//"jdbc:odbc:MS Access Database;DBQ=C:\\156761\\Movie_Club.mdb");
//"jdbc:odbc:MC","",""); I have tried with both of them they are working.
catch (SQLException ce){
ce.printStackTrace();
System.out.println("database not found");
public int insertDB(String empno, String empname, String action, String adventure, String animation, String comedy, String horror, String romantic, String thriller, String sci_fic) throws SQLException {
int i=0;
Statement stmt = null;
try {
if(!con.equals(null))
stmt = con.createStatement();
i = stmt.executeUpdate("insert into Movie_Flavour values("+empno+","+empname+","+action+","+adventure+","+animation+","+comedy+","+horror+","+romantic+","+thriller+","+sci_fic+")");
stmt.close();
con.close();
else
System.out.println("con not made");
catch (java.sql.SQLException exception) {
exception.printStackTrace();
return i;
public ResultSet getDetails(){
Statement stmt = null;
ResultSet rs = null;
try{
stmt = con.createStatement();
rs = stmt.executeQuery("select * from Movie_Flavour where empno = 1");
catch(Exception e){
e.printStackTrace();
return rs;
public static void main(String[] args) {
int i=0;
DB_Connect db = new DB_Connect();
try{
db.initialiseDrivers();
i = db.insertDB("1","2","3","4","5","6","7","8","9","10");
System.out.println(i);
catch(Exception e){
e.printStackTrace();
and my JSP code is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@ page import="myPack.DB_Connect" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@ page import="javax.sql.*" %>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM WebSphere Studio">
<TITLE>User_Input</TITLE>
</HEAD>
<BODY>
<%
DB_Connect db = new DB_Connect();
try
db.initialiseDrivers();
db.insertDB("1","1","1","1","1","1","1","1","1","1");
catch(Exception e)
e.printStackTrace();
%>
</BODY>
</HTML>
Websphere shows the following messages in the console.
[3/1/06 16:35:27:986 IST] 57687dab WebGroup I SRVE0180I: [RTSC_MCWeb] [RTSC_MCWeb] [Servlet.LOG]: /User_Input.jsp: init
[3/1/06 16:35:28:002 IST] 57687dab SystemErr R java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
[3/1/06 16:35:28:002 IST] 57687dab SystemErr R at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:390)
[3/1/06 16:35:28:002 IST] 57687dab SystemErr R at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:300)
[3/1/06 16:35:28:002 IST] 57687dab SystemErr R at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
[3/1/06 16:35:28:002 IST] 57687dab SystemErr R at java.lang.Class.forName1(Native Method)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at java.lang.Class.forName(Class.java(Compiled Code))
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at myPack.DB_Connect.initialiseDrivers(DB_Connect.java:28)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at org.apache.jsp._User_5F_Input._jspService(_User_5F_Input.java:126)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[3/1/06 16:35:28:049 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[3/1/06 16:35:28:064 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[3/1/06 16:35:28:064 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[3/1/06 16:35:28:064 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[3/1/06 16:35:28:064 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[3/1/06 16:35:28:064 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[3/1/06 16:35:28:064 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[3/1/06 16:35:28:064 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[3/1/06 16:35:28:064 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)[3/1/06 16:35:28:111 IST] 57687dab SystemOut O driver not found
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R java.sql.SQLException: No suitable driver
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at java.sql.DriverManager.getConnection(DriverManager.java:558)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at java.sql.DriverManager.getConnection(DriverManager.java:188)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at myPack.DB_Connect.initialiseDrivers(DB_Connect.java:38)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at org.apache.jsp._User_5F_Input._jspService(_User_5F_Input.java:126)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[3/1/06 16:35:28:111 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[3/1/06 16:35:28:127 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
[3/1/06 16:35:28:127 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
[3/1/06 16:35:28:127 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[3/1/06 16:35:28:127 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[3/1/06 16:35:28:127 IST] 57687dab SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
[3/1/06 16:35:28:127 IST] 57687dab SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[3/1/06 16:35:28:127 IST] 57687dab SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
[3/1/06 16:35:28:127 IST] 57687dab SystemOut O database not found
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R java.lang.NullPointerException
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at myPack.DB_Connect.insertDB(DB_Connect.java:54)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at org.apache.jsp._User_5F_Input._jspService(_User_5F_Input.java:127)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[3/1/06 16:35:28:143 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[3/1/06 16:35:28:158 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[3/1/06 16:35:28:158 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[3/1/06 16:35:28:158 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
[3/1/06 16:35:28:158 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
[3/1/06 16:35:28:158 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[3/1/06 16:35:28:158 IST] 57687dab SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[3/1/06 16:35:28:158 IST] 57687dab SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
[3/1/06 16:35:28:158 IST] 57687dab SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[3/1/06 16:35:28:158 IST] 57687dab SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Check if the OdbcDriver is in the classpath
Similar Messages
-
How do i connect ms access database in Eclipse ?
Help me to solve the problem
how do i connect ms access database in Eclipse ?
Its urgent please
give any link that gives the procedure to connect ...........The Eclipse WTP by default has a database explorer: Window - Show View - Data. Finally rightclicking at the new "DB Servers" console gives straightforward menu options.
-
How to connect my access database using applet?
hi all,
i need to connect my access database in my applet program which should work like an atm machine..I dont know how to connect it. Im new to applet same thing in JDBC application. Please help i terribly need it, our deadline in our case study is fast approaching and i still dont know how to do it. I tried the tutorial but i received some sql exception error. thanks!Try this link
http://java.sun.com/docs/books/tutorial/jdbc/basics/ -
To connect MS Access database in back ground
Hello Gurus,
I have a requirement in which I need to connect to MS Access database in back ground as a daily job. I tried using OLE2, Its working fine in front end but failed in back ground.
Please help me in this regard.
Thanks,
Naresh.Hi naresh,
I am also facing this requirement to connect MS ACCESS database in front end or back end. Could you please help me out in this.
plz provide me steps and program.
thanks
Sarayu. -
Connecting MS-Access database with Oracle Forms
Hai,
Can any one suggest as to how I can connect MS-Access database
with Oracle Developer Forms. What is the procedure ? Suggest me
if I need to install any drivers. Waiting for an early reply.
Warm Regards,
Raghav.
email:[email protected]Not possible as far as I know.
Probably because ODBC itself (the defined interface) doesn't support it.
There is a commercial MS Access (java only) driver that might support it. -
Failed to Generate Wrapper Class exception while connecting to access database.
i tried to connect to access database in windows. i made a user dsn in windows
control panel and added this to the connection pool. after which i created a JDBC
datasource using this connection pool.(specifying the driver as sun.jdbc.odbc.JdbcOdbcDriver
and url=jdbc:odbc:xyz
where xyz is the user dsn name pointing to the relevant access database file.
on testing this in the weblogic admin console it showed successful operation.
when i tried to use this connection pool in weblogic 8.1 workshop and tried
building a rowset control to check the connectivity it gave the following exception.
file attached.
any hints on how to get it working/ how to use access database with wl 8.1
workshop.
Exception in context_onAcquire
java.sql.SQLException: Failed to Generate Wrapper Class.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
[DB-error.txt]ashok wrote:
i tried to connect to access database in windows. i made a user dsn in windows
control panel and added this to the connection pool. after which i created a JDBC
datasource using this connection pool.(specifying the driver as sun.jdbc.odbc.JdbcOdbcDriver
and url=jdbc:odbc:xyz
where xyz is the user dsn name pointing to the relevant access database file.
on testing this in the weblogic admin console it showed successful operation.
when i tried to use this connection pool in weblogic 8.1 workshop and tried
building a rowset control to check the connectivity it gave the following exception.
file attached.
any hints on how to get it working/ how to use access database with wl 8.1
workshop.
Exception in context_onAcquire
java.sql.SQLException: Failed to Generate Wrapper Class.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
Hi Askok. This exception usually means that the weblogic server's environment
doesn't have all it needs to make the jdbc connection you want. You should
ensure that the OS environment variable PATH has all the libraries you need
for making a jdbc-odbc connection, and that it's classpath also contains the
driver you want.
What DBMS are you connecting to? The reason I ask is because if there is a
pure JDBC driver for it, that will be preferable, because the jdbc-odbc bridge
from Sun is not threadsafe, so it can corrupt Weblogic.
Joe
>
Exception in context_onAcquire
java.sql.SQLException: Failed to Generate Wrapper Class.
Nested Exception: java.lang.RuntimeException: Failed to Generate Wrapper Class
at weblogic.utils.wrapper.WrapperFactory.createWrapper(WrapperFactory.java:141)
at weblogic.jdbc.wrapper.JDBCWrapperFactory.getWrapper(JDBCWrapperFactory.java:73)
at weblogic.jdbc.jts.Driver.newConnection(Driver.java:674)
at weblogic.jdbc.jts.Driver.createLocalConnection(Driver.java:196)
at weblogic.jdbc.jts.Driver.connect(Driver.java:154)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:298)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.getConnection(DatabaseControlImpl.jcs:1360)
at com.bea.wlw.runtime.core.control.DatabaseControlImpl.context_onAcquire(DatabaseControlImpl.jcs:1252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:393)
at com.bea.wlw.runtime.core.container.Invocable.fireEvent(Invocable.java:603)
at com.bea.wlw.runtime.core.context.WlwThreadContext.sendEvent(WlwThreadContext.java:989)
at com.bea.wlw.runtime.core.context.WlwThreadContext.raiseEvent(WlwThreadContext.java:919)
at com.bea.wlw.runtime.core.container.Container.raiseContextEvent(Container.java:553)
at com.bea.wlw.runtime.jcs.container.JcsContainer.onAcquire(JcsContainer.java:513)
at sun.reflect.GeneratedMethodAccessor325.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:353)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:420)
at com.bea.wlw.runtime.core.container.Invocable.sendContextEvent(Invocable.java:524)
at com.bea.wlw.runtime.jcs.container.JcsContainer.sendContextEvent(JcsContainer.java:464)
at com.bea.wlw.runtime.core.context.WlwThreadContext.acquireResources(WlwThreadContext.java:676)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:307)
at processes.Audit.insertAuditData(Audit.ctrl)
at processes.ExceptionHandler.auditInsertAuditData(ExceptionHandler.jpd:78) -
Post Author: arfetgas
CA Forum: Data Connectivity and SQL
Hi im trying to view a simple report , this report have some parameters from a MS Access database.I configure everything, The ODBCJDBC bridge, the dns System on Windows, etc... and the problem its like this, I connect the database, but the schema its empty , i cant map, the dinamic parameters of my report, with my access database.I have this errors : at same time 1. This report uses a data connection that isn't fully supported by this version of the Crystal Reports designer. You can modify the report in the designer, but the following actions that access this connection will fail: Browse data, verify database, and report preview. We recommend you set the datasource location to a JDBC or Java Result Set data source. 2. Java.lang.RuntimeException: WARNING: Blocked recursive attempt to close part com.businessobjects.crystalreports.integration.eclipse.jspeditor.CRJSPEditor while still in the middle of activating it at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1247) at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1367) at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:61) at org.eclipse.ui.internal.PartStack.close(PartStack.java:543) at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:206) at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:122) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:81) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$1.closeButtonPressed(DefaultTabFolder.java:67) at org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:596) at org.eclipse.ui.internal.presentations.PaneFolder$3.close(PaneFolder.java:189) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2159) at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:320) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.ui.texteditor.AbstractTextEditor.handleEditorInputChanged(AbstractTextEditor.java:4403) at org.eclipse.ui.texteditor.StatusTextEditor.handleEditorInputChanged(StatusTextEditor.java:220) at org.eclipse.ui.texteditor.AbstractTextEditor.sanityCheckState(AbstractTextEditor.java:4555) at org.eclipse.ui.texteditor.StatusTextEditor.sanityCheckState(StatusTextEditor.java:210) at org.eclipse.ui.texteditor.AbstractTextEditor.safelySanityCheckState(AbstractTextEditor.java:4533) at org.eclipse.wst.sse.ui.StructuredTextEditor.safelySanityCheckState(StructuredTextEditor.java:2945) at org.eclipse.ui.texteditor.AbstractTextEditor$ActivationListener.handleActivation(AbstractTextEditor.java:921) at org.eclipse.ui.texteditor.AbstractTextEditor$ActivationListener.partActivated(AbstractTextEditor.java:879) at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57) at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70) at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73) at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171) at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:124) at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:115) at org.eclipse.ui.internal.WWinPartService$1.partDeactivated(WWinPartService.java:48) at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:113) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53) at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:111) at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:116) at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:165) at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56) at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126) at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3402) at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2946) at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:265) at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:98) at org.eclipse.ui.internal.presentations.PresentablePart.setFocus(PresentablePart.java:191) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:92) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:272) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.handleMouseDown(AbstractTabFolder.java:342) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder$3.mouseDown(AbstractTabFolder.java:79) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:178) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173)!ENTRY com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Error loading file prueba.rpt!STACK 0java.lang.Exception: Error loading file prueba.rpt at com.businessobjects.integration.eclipse.shared.EclipseLogger.logMessage(Unknown Source) at com.businessobjects.integration.eclipse.shared.EclipseLogger.handleMessage(Unknown Source) at com.businessobjects.integration.capabilities.logging.LogManager.message(Unknown Source) at com.businessobjects.crystalreports.integration.eclipse.wtp.CrystalReportsValidator.validateOneFile(Unknown Source) at com.businessobjects.crystalreports.integration.eclipse.wtp.CrystalReportsValidator.validate(Unknown Source) at com.businessobjects.crystalreports.integration.eclipse.wtp.CrystalReportsValidator.validateInJob(Unknown Source) at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:75) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Plug-in Provider:.... Business Objects!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Plug-in name:.... Crystal Reports Java Development Tools!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Plug-in ID:.... com.businessobjects.crystalreports.integration.eclipse!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Version:.... 1.0.4.v1094!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE The error was detected in com.businessobjects.crystalreports.integration.eclipse Please PEOPLE OF BUSINESS OBJECTS , I need some support , I think the problem its in your plug in09 April 2008 , let me how much time i need to wait Your support , maybe , ill try jasper Reports, or Birth, it depends on You people of BO any req -
> [email protected] thanks to people that can help ...Post Author: arfetgas
CA Forum: Data Connectivity and SQL
Hi im trying to view a simple report , this report have some parameters from a MS Access database.I configure everything, The ODBCJDBC bridge, the dns System on Windows, etc... and the problem its like this, I connect the database, but the schema its empty , i cant map, the dinamic parameters of my report, with my access database.I have this errors : at same time 1. This report uses a data connection that isn't fully supported by this version of the Crystal Reports designer. You can modify the report in the designer, but the following actions that access this connection will fail: Browse data, verify database, and report preview. We recommend you set the datasource location to a JDBC or Java Result Set data source. 2. Java.lang.RuntimeException: WARNING: Blocked recursive attempt to close part com.businessobjects.crystalreports.integration.eclipse.jspeditor.CRJSPEditor while still in the middle of activating it at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1247) at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1367) at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:61) at org.eclipse.ui.internal.PartStack.close(PartStack.java:543) at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:206) at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:122) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:81) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1) at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$1.closeButtonPressed(DefaultTabFolder.java:67) at org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:596) at org.eclipse.ui.internal.presentations.PaneFolder$3.close(PaneFolder.java:189) at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2159) at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:320) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.ui.texteditor.AbstractTextEditor.handleEditorInputChanged(AbstractTextEditor.java:4403) at org.eclipse.ui.texteditor.StatusTextEditor.handleEditorInputChanged(StatusTextEditor.java:220) at org.eclipse.ui.texteditor.AbstractTextEditor.sanityCheckState(AbstractTextEditor.java:4555) at org.eclipse.ui.texteditor.StatusTextEditor.sanityCheckState(StatusTextEditor.java:210) at org.eclipse.ui.texteditor.AbstractTextEditor.safelySanityCheckState(AbstractTextEditor.java:4533) at org.eclipse.wst.sse.ui.StructuredTextEditor.safelySanityCheckState(StructuredTextEditor.java:2945) at org.eclipse.ui.texteditor.AbstractTextEditor$ActivationListener.handleActivation(AbstractTextEditor.java:921) at org.eclipse.ui.texteditor.AbstractTextEditor$ActivationListener.partActivated(AbstractTextEditor.java:879) at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57) at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70) at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73) at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171) at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:124) at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:115) at org.eclipse.ui.internal.WWinPartService$1.partDeactivated(WWinPartService.java:48) at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:113) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53) at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:111) at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:116) at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:165) at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56) at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126) at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3402) at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2946) at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:265) at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:98) at org.eclipse.ui.internal.presentations.PresentablePart.setFocus(PresentablePart.java:191) at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:92) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:272) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.handleMouseDown(AbstractTabFolder.java:342) at org.eclipse.ui.internal.presentations.util.AbstractTabFolder$3.mouseDown(AbstractTabFolder.java:79) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:178) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219) at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447) at org.eclipse.equinox.launcher.Main.run(Main.java:1173)!ENTRY com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Error loading file prueba.rpt!STACK 0java.lang.Exception: Error loading file prueba.rpt at com.businessobjects.integration.eclipse.shared.EclipseLogger.logMessage(Unknown Source) at com.businessobjects.integration.eclipse.shared.EclipseLogger.handleMessage(Unknown Source) at com.businessobjects.integration.capabilities.logging.LogManager.message(Unknown Source) at com.businessobjects.crystalreports.integration.eclipse.wtp.CrystalReportsValidator.validateOneFile(Unknown Source) at com.businessobjects.crystalreports.integration.eclipse.wtp.CrystalReportsValidator.validate(Unknown Source) at com.businessobjects.crystalreports.integration.eclipse.wtp.CrystalReportsValidator.validateInJob(Unknown Source) at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:75) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Plug-in Provider:.... Business Objects!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Plug-in name:.... Crystal Reports Java Development Tools!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Plug-in ID:.... com.businessobjects.crystalreports.integration.eclipse!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE Version:.... 1.0.4.v1094!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788!MESSAGE The error was detected in com.businessobjects.crystalreports.integration.eclipse Please PEOPLE OF BUSINESS OBJECTS , I need some support , I think the problem its in your plug in09 April 2008 , let me how much time i need to wait Your support , maybe , ill try jasper Reports, or Birth, it depends on You people of BO any req -
> [email protected] thanks to people that can help ... -
Hi im trying to view a simple report , this report have some parameters from a MS Access database.
I configure everything, The ODBCJDBC bridge, the dns System on Windows, etc...
and the problem its like this,
I connect the database, but the schema its empty , i cant map, the dinamic parameters of my report, with my access database.
I have this errors : at same time
1. This report uses a data connection that isn't fully supported by this version of the Crystal Reports designer. You can modify the report in the designer, but the following actions that access this connection will fail: Browse data, verify database, and report preview. We recommend you set the datasource location to a JDBC or Java Result Set data source.
2. Java.lang.RuntimeException: WARNING: Blocked recursive attempt to close part com.businessobjects.crystalreports.integration.eclipse.jspeditor.CRJSPEditor while still in the middle of activating it
at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1247)
at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1367)
at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:61)
at org.eclipse.ui.internal.PartStack.close(PartStack.java:543)
at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:206)
at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:122)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:81)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)
at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$1.closeButtonPressed(DefaultTabFolder.java:67)
at org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:596)
at org.eclipse.ui.internal.presentations.PaneFolder$3.close(PaneFolder.java:189)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2159)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:320)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.texteditor.AbstractTextEditor.handleEditorInputChanged(AbstractTextEditor.java:4403)
at org.eclipse.ui.texteditor.StatusTextEditor.handleEditorInputChanged(StatusTextEditor.java:220)
at org.eclipse.ui.texteditor.AbstractTextEditor.sanityCheckState(AbstractTextEditor.java:4555)
at org.eclipse.ui.texteditor.StatusTextEditor.sanityCheckState(StatusTextEditor.java:210)
at org.eclipse.ui.texteditor.AbstractTextEditor.safelySanityCheckState(AbstractTextEditor.java:4533)
at org.eclipse.wst.sse.ui.StructuredTextEditor.safelySanityCheckState(StructuredTextEditor.java:2945)
at org.eclipse.ui.texteditor.AbstractTextEditor$ActivationListener.handleActivation(AbstractTextEditor.java:921)
at org.eclipse.ui.texteditor.AbstractTextEditor$ActivationListener.partActivated(AbstractTextEditor.java:879)
at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:72)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57)
at org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:70)
at org.eclipse.ui.internal.PartService.firePartActivated(PartService.java:73)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:171)
at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:124)
at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:115)
at org.eclipse.ui.internal.WWinPartService$1.partDeactivated(WWinPartService.java:48)
at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:113)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:53)
at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:111)
at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:116)
at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:165)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:56)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:126)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3402)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2946)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:265)
at org.eclipse.ui.internal.EditorPane.requestActivation(EditorPane.java:98)
at org.eclipse.ui.internal.presentations.PresentablePart.setFocus(PresentablePart.java:191)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:92)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:272)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.handleMouseDown(AbstractTabFolder.java:342)
at org.eclipse.ui.internal.presentations.util.AbstractTabFolder$3.mouseDown(AbstractTabFolder.java:79)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:178)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
!ENTRY com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788
!MESSAGE Error loading file prueba.rpt
!STACK 0
java.lang.Exception: Error loading file prueba.rpt
at com.businessobjects.integration.eclipse.shared.EclipseLogger.logMessage(Unknown Source)
at com.businessobjects.integration.eclipse.shared.EclipseLogger.handleMessage(Unknown Source)
at com.businessobjects.integration.capabilities.logging.LogManager.message(Unknown Source)
at com.businessobjects.crystalreports.integration.eclipse.wtp.CrystalReportsValidator.validateOneFile(Unknown Source)
at com.businessobjects.crystalreports.integration.eclipse.wtp.CrystalReportsValidator.validate(Unknown Source)
at com.businessobjects.crystalreports.integration.eclipse.wtp.CrystalReportsValidator.validateInJob(Unknown Source)
at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:75)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788
!MESSAGE Plug-in Provider:.... Business Objects
!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788
!MESSAGE Plug-in name:.... Crystal Reports Java Development Tools
!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788
!MESSAGE Plug-in ID:.... com.businessobjects.crystalreports.integration.eclipse
!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788
!MESSAGE Version:.... 1.0.4.v1094
!SUBENTRY 1 com.businessobjects.crystalreports.integration.eclipse 4 4 2008-04-02 15:30:13.788
!MESSAGE The error was detected in com.businessobjects.crystalreports.integration.eclipse
Please PEOPLE OF BUSINESS OBJECTS , I need some support , I think the problem its in your plug in
09 April 2008 , let me how much time i need to wait Your support , maybe , ill try jasper Reports, or Birth, it depends on You people of BO
any req -
> [email protected]
thanks to people that can help ...There are some other solutions possible.
1. Get another driver. The only one known is java only so it wont crash. But is not not free.
2. Use a proxy driver. That means that another app actually does the database work. If it crashes you just start it again (which you can do in your main code.) That way it won't take down your server. There are commercial jdbc drivers that claim MS Access but are are really just proxy implementations as an option in this area. -
Refreshing Excel 2010 workbook with connection to Access database on shared network drive
I have an Excel 2010 workbook that has a connection to an Access database that's on a shared drive on the company network. I can refresh the data in the regular Excel application but when it's hosted in the browser I get this error message "The data
connection uses Windows Authentication and user credentials could not be delegated."
Next, I installed PowerPivot for SQL server 2008 and used PowerPivot to connect to the same Access database. I uploaded it to a PowerPivot gallery but when I try to refresh the data but it says "the workbook was created in an older version of Excel
and PowerPivot and cannot be refreshed until the file is upgraded." I tried to go to "Manage data refresh" but I get the "Sorry, something went wrong" page. Do I need to install PowerPivot for SQL server 2012 to do scheduled data refreshes?
What about manual refreshes?I have an Excel 2010 workbook that has a connection to an Access database that's on a shared drive on the company network. I can refresh the data in the regular Excel application but when it's hosted in the browser I get this error message "The data
connection uses Windows Authentication and user credentials could not be delegated."
Next, I installed PowerPivot for SQL server 2008 and used PowerPivot to connect to the same Access database. I uploaded it to a PowerPivot gallery but when I try to refresh the data but it says "the workbook was created in an older version of Excel
and PowerPivot and cannot be refreshed until the file is upgraded." I tried to go to "Manage data refresh" but I get the "Sorry, something went wrong" page. Do I need to install PowerPivot for SQL server 2012 to do scheduled data refreshes?
What about manual refreshes? -
Error while connecting to Access Database from Oracle
Dear All,
I'm trying to connect Oracle 9i to Access Database.
but im getting the below error while executing query.
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from MYSQLi did the following thing through to connect the database.
1) First i made odbc driver called ODBC1
2) I create the following file on oracle server C:\oracle\ora9I\hs\admin\initodbc1.ora
i edit the below thing in initodbc1.ora
HS_FDS_CONNECT_INFO =ODBC1
HS_FDS_TRACE_LEVEL = ON3) I made some changes in sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES= NONE
before it was *NTS*4) Below are the entries in tnsnames.ora i changed the port from 1521 to 1522 cos 1521 already exists.
ODBC1.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ODBC1)
ODBC1.WORLD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.251) (PORT = 1522)
(CONNECT_DATA =
(SID = ODBC1)
(HS=OK)
)5) Listener file code
ODBC1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = orcl)
(SID_DESC =
(PROGRAM = hsodbc)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = ODBC1)
)6) after that i created
SQL> CREATE DATABASE LINK MYSQL CONNECT TO XTRACK IDENTIFIED BY XTRACK USING 'ODBC1.WORLD'
Database link created.7) Listener Status
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 04-MAR-2012 21:26:16
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
Start Date 04-MAR-2012 20:52:33
Uptime 0 days 0 hr. 33 min. 44 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora
Listener Log File C:\oracle\ora9I\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "ODBC1" has 1 instance(s).
Instance "ODBC1", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfullyi did exactly what documentation says and it will not through any error but atlast when i try to access the access database tables it give me the below error
SELECT * FROM DBO_COMPANY@MYSQL
ERROR at line 1:
ORA-28545: error diagnosed by Net8 when connecting to an agent
NCRO: Failed to make RSLV connection
ORA-02063: preceding 2 lines from MYSQLi'm using Oracle9i Enterprise Edition Release 9.2.0.1.0 any help will appreciate.
Regards
Moazam
Edited by: Moazam Shareef on Mar 4, 2012 10:25 AMfirst of all thanks for your support Mr. Kgronau
I did what u said but still its giving me below error.
SQL> SELECT * FROM DBO_PATINS@MYSQL
2 ;
SELECT * FROM DBO_PATINS@MYSQL
ERROR at line 1:
ORA-12154: TNS:could not resolve service namei re-check the service, and restart the listener as you said below are the logs could you help me to solve this issue plz.
TNSNAMES.ORA
# TNSNAMES.ORA Network Configuration File: C:\oracle\ora9I\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORCL.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
ODBC1 =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = ODBC1)
INST1_HTTP.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = MODOSE)
(PRESENTATION = http://HRService)
EXTPROC_CONNECTION_DATA.TADAWI.LOC =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)LISTENER.ORA
# LISTENER.ORA Network Configuration File: C:\oracle\ora9I\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1521))
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
ODBC1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = admin-amc)(PORT = 1522))
SID_LIST_ODBC1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = ODBC1)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = hsodbc)
(SID_DESC =
(GLOBAL_DBNAME = ODBC1)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = ODBC1)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\ora9I)
(PROGRAM = extproc)
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME = C:\oracle\ora9I)
(SID_NAME = orcl)
)then i restart both listener entries (ie lsnrctl start ODBC1 and lsnrctl start ) and both are running fine without any error below are the status.
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:42:09
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
Start Date 05-MAR-2012 18:32:15
Uptime 0 days 0 hr. 9 min. 56 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora
Listener Log File C:\oracle\ora9I\network\log\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC2ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=8080))(Presentation=HTTP)(Session=RAW))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=2100))(Presentation=FTP)(Session=RAW))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "orcl" has 2 instance(s).
Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
Instance "orcl", status READY, has 1 handler(s) for this service...
Service "orclXDB" has 1 instance(s).
Instance "orcl", status READY, has 1 handler(s) for this service...
The command completed successfullyLISTENER.ORA ODBC1 status
LSNRCTL for 32-bit Windows: Version 9.2.0.1.0 - Production on 05-MAR-2012 18:41:52
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=admin-amc)(PORT=1522)))
STATUS of the LISTENER
Alias ODBC1
Version TNSLSNR for 32-bit Windows: Version 9.2.0.1.0 - Production
Start Date 05-MAR-2012 18:32:08
Uptime 0 days 0 hr. 9 min. 46 sec
Trace Level off
Security OFF
SNMP OFF
Listener Parameter File C:\oracle\ora9I\network\admin\listener.ora
Listener Log File C:\oracle\ora9I\network\log\odbc1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=admin-amc.tadawi.loc)(PORT=1522)))
Services Summary...
Service "ODBC1" has 1 instance(s).
Instance "ODBC1", status UNKNOWN, has 2 handler(s) for this service...
The command completed successfullyWhere hope i'm near to retrive the access data.
Regards
Moazam -
Error while connecting to Access Database
hi
i am making an application using Access Database using the following code
*try {*
*Connection conn=null;*
*Statement s=null;*
*ResultSet rs=null;*
*Context ctx=new InitialContext();*
*DataSource ds=(DataSource)ctx.lookup("jdbc/AccessDb");*
** conn = ds.getConnection();**
** s = conn.createStatement();**
*rs = s.executeQuery("select empname from stable");*
** IPrivateApplic1View.IRsElement elm=null;**
** while (rs.next())**
** elm=wdContext.nodeRs().createRsElement();**
** elm.setValue(rs.getString(1));**
** wdContext.nodeRs().addElement(elm);**
** } catch (Exception e) {**
** wdComponentAPI.getMessageManager().reportSuccess(""+e);**
** e.printStackTrace();**
but it is showing the error
*com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of AccessDb.*Hi
refer
[Connecting to MS Access using receiver JDBC Adapter (Without DSN)|Connecting to MS Access using receiver JDBC Adapter (Without DSN)]
[/thread/147169 [original link is broken]|/thread/147169 [original link is broken]]
thanks
suresh -
Hi all,
I was facing problem from last week.Suddenly i was getting ora-12505 error while connecting to the database through toad.I tried to change tnsnames.ora & listener.ora in multiple ways,but no luck...Inspite i was getting different errors like ora - 01034: ORACLE not available / ora - 27101: shared memory realm does not exist...When i try to connect using sys / sys as sysdba,connection is establishing and when issue the command startup it was throwing the error ORA-01821: date format not recognized......Fed up solving these issues....Can some one help me out...It's very very urgent..
Thanks in advance,
pavankumar.Well, the obviously solution is to use separate Apple ID's for iCloud.
-
Problem to connect to a database from an Excel pivot table
Hello,
I have Office 365 private. I could connect to the database and then all of a sudden it stopped and when i wanted to refresh the pivot table i got the following error: "an error was encountered in the transport layer", then i click OK and
i get a prompt to logon to the database which I do and get this message: "Errors in the OLE DB database. The Integrated Securty property cannot be set if a username and password is supplied". Again, i could connect without any problem and since few
days it stopped.
thank you in advance for any help,
ArmaIf the database you mentioned is a Cube, please check the post:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/b2861abd-0060-4efb-970b-bf455731f5a9/an-error-was-encountered-in-the-transport-layer?forum=sqlanalysisservices
Best Regards,
Wind -
Urgent: Problems with connecting to a database
I have problems with getting a connection to both Oracle and Access.
For Access I added the .jar files in my classpath.
For Oracle I don't know which files I should add to the classpath.
Here's the code:
To connect with Access:
public class AccessDatabase extends JFrame {
private Connection conn;
private Statement stmt;
public AccessDatabase() throws SQLException,IOException{
DriverManager.registerDriver(new easysoft.sql.jobDriver());
System.out.println("Connecting...");
conn= DriverManager.getConnection ("jdbc:odbc:easysoft:db1");
System.out.println("Connected");
stmt=conn.createStatement();
ResultSet r=stmt.executeQuery("select name,adress from Tabel1");
while(r.next()){
String a=r.getString("name");
String b=r.getString("adress");
System.out.println(a+""+b);
and for Oracle:
public class AccessDatabase extends JFrame {
private Connection conn;
private Statement stmt;
public AccessDatabase() throws SQLException,IOException{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
System.out.println("Connecting...");
conn= DriverManager.getConnection ("jdbc:odbc:easysoft:db1");
System.out.println("Connected");
stmt=conn.createStatement();
ResultSet r=stmt.executeQuery("select name,adress from Tabel1");
while(r.next()){
String a=r.getString("name");
String b=r.getString("adress");
System.out.println(a+""+b);
}}}For getting connection from oracle you need to do 2 things.
1-- As said earlier put classes12.zip in classpath
2. For getting connection use as below ---
instead of --conn= DriverManager.getConnection ("jdbc:odbc:easysoft:db1");
Use thin driver ---
conn = DriverManager.getConnection (jdbc:oracle:thin:@servername:portno , UserName,Password);
replace servername UserName,Password in code you will get the connection.
Thanks
Rakesh -
A problem to connect to my database and to insert a line into it.
I can't connect to my database there's an error
in my index file i have written this code:
<?php
mb_http_input("iso-8859-1");
mb_http_output("iso-8859-1");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<title>Formulaire</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Miseenforme" href="Miseenforme.css" />
<style type="text/css">
@import url("ModuleStyleSheets.css");
</style>
<link href="CSS/colors5.css" rel="stylesheet" type="text/css" />
<style type="text/css">
h1 {
font-size: xx-large;
#corps form p {
font-size: 24px;
text-align: left;
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
#corps form p br {
font-family: Palatino Linotype, Book Antiqua, Palatino, serif;
font-size: 24px;
#corps form p label {
text-align: left;
#corps form p label {
text-align: left;
</style>
<link href="CSS/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="corps">
<form action="creation.php" method="post" enctype="multipart/form-data">
<p><!-- #BeginDate format:fcAm1 -->Friday, August 23, 2013<!-- #EndDate -->
</p>
<p> </p>
<table width="500" border="1" align="center" cellpadding="2" cellspacing="2">
<tr>
<th width="500" align="center" bgcolor="#66FFFF" scope="row">SAISIE DES DONNEES ADMINISTRATIVES DU FIDELE</th>
</tr>
</table>
<p> </p>
<p>
<label>Nom</label>
<input type="text" name="Nom"/> <br/>
<label>Prenom</label> : <input type="Prenom:" name="Prenom"/> <br/>
<label>Adresse</label> :</br> <textarea type="text" name="Adresse" rows="8" cols="25"></textarea> <br/>
<label>codepostal</label> : <input type="codepostal" name="codepostal"><br>
<label>Ville</label> : <input type="text" name="Ville"/> <br/>
<label>Commentaires</label> : <textarea type="text" name="Commentaires" rows="8" cols="25"></textarea> <br/>
<label>Don</label>: <select name="don">
<option value="chabat">chabat</option>
<option value="rochhachana">roch hachana</option>
<option value="kippour">kippour</option>
<option value="souccot">souccout</option>
<option value="simhatthorah">simhat thorah</option>
<option value="pessah">simhat thorah</option>
<option value="chavouot">chavouot</option>
</select>
</p>
<p>Montant :
</label><input type="number" name="montant" style="color:#33C; background-color:#F60;
font-size:36px"/> <br/>
</p>
<p>
<input name="Submit" type="submit" value="Submit" /> <input type="reset"/>
</p>
</form>
</div>
</body>
</html>
and in my creation.php which is the name of the action form there's the following code:
creation.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title> Envoie des données </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" media="screen" type="text/css" title="Miseenforme" href="Miseenforme.css" />
</head>
<body>
<p>
<?php
define('DB_SERVER', 'localhost'); // serveur mysql
define('DB_SERVER_USERNAME', 'localhost@localhost'); // nom d utilisateur
define('DB_SERVER_PASSWORD', ''); // mot de passe
define('DB_DATABASE', fideles); // nom de la base
$Nom=$_POST['Nom'];
$Prenom=$_POST['Prenom'];
$Adresse=$_POST['Adresse'];
$Lien=$_POST['Lien'];
$Image=$_FILES['Image'];
$Ville=$_POST['Ville'];
$Cd_post=$_POST['Cd_post'];
$Commentaires=$_POST['Commentaires'];
$montantT=$_POST['Montant'];
$db=mysql_connect("localhost","localhost@localhost","")or die("Erreur de connexion au serveur");
mysql_select_db("fideles",$db)or die ("Erreur de connexion à la base FIDELES");
$MonSql="INSERT INTO 'fideles'(F_NOM, F_PRENOM,F_ADRESSE, F_CD_POST, DON,F_comment, F_VILLE,F_MONTANT) VALUES('$Nom','$Prenom','$Adresse','$Cd_post','$Don','$Commentaires','$Ville','$Montant') ";
$res=mysql_query($MonSql);
if (!$res && mysql_errno() == 1062)
echo 'Ce titre existe déjà, l\'enregistrement a échoué.';
mysql_close($db);
?>
<a href="Formulairemodif.php">Creation d un évènement </a>
<table border="4" color="black">
<caption>Fiche</caption>
<thead>
<tr border="5">
<th width="100">Nom</th>
<th width="141">Prenom</th>
<th width="102">Adresse</th>
<th width="78">Don</th>
<th width="77">Code postal</th>
<th width="79">Ville</th>
<th width="139">Commentaires</th>
<th width="104">Montant</th>
</tr>
</thead>
<tbody>
<tr>
</tr>
</tbody>
</table><br/>
<h3><a href="Formulairemodif.php"> Modifier un évènement </a></h3> <h3><a href="supprimer.php"> Supprimer un évènement </a></h3>
</p>
</body>
</html>
Tell me where is my error
Thank you>I can't connect to my database there's an error
What error?
Also, this post belongs in the app dev forum.
Maybe you are looking for
-
How to get rid of scratch on my 20" Apple monitor screen?
Hi, I recently scratched (2inch) my apple 20" LCD monitor. As you know if you own one of these, the screen is not made of glass but of some kind of plastic. As I was preparing a package on my desk the scissors slipped and scratched the screen. Does a
-
Hey all, I've narrowed it down to a point I'll post some specs to see what you guys think (mainly for parts compatibility reasons). I have a set budget so this is going to have to work. MSI K8N Neo2 Platinum AMD64 3200+ 90nm 1 GB Corsair ValueSelect
-
I have itunes credit card and scrached off the # and cant see it how do i redeem now?
I have a itunes credit card I scrached the # off and cant see it how do I redeem it now?
-
PO: Rounding of Total Amount
Hi SAP Experts, We are encountering a problem with regards to the printing of Total Amount PO. In the break down of each item, the amount is correct. But when it comes to the total amount, the value is rounded to the next cent (local currency). Ex. Q
-
Video intensive work on Mac Pro? Advice Needed
Hi everyone, I've been originally saving up for a while now for an iMac 24" as it offers the best specification price wise. But now I leaning on the Mac Pro and therefore need some advice. I know that there are alot of posts on advice - need to buy m