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.
Similar Messages
-
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/ -
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. -
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.
-
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) -
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 -
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. -
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
-
Please help, cannot connect to Access database with a jar file
Hi, i created a jar file from my java project, using eclipse.
When i try open the jar through command prompt, the following error is given:
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Could not find
file '(unknown)'.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at Methods.con(Methods.java:15)
at LoginScreen.getCmboLogins(LoginScreen.java:80)
at LoginScreen.getJContentPane(LoginScreen.java:65)
at LoginScreen.initialize(LoginScreen.java:46)
at LoginScreen.<init>(LoginScreen.java:31)
at DataUse.main(DataUse.java:25)
No Connection to dataBASE
The program runs fine within eclipse and the database is bundled in the jar.rohangr wrote:
The program runs fine within eclipse Because the database isn't in the jar.
...and the database is bundled in the jar.That isn't going to work.
The MS ODBC driver (which has absolutely nothing to do with java) expects to find the MS Access file in the windows file system.
And the contents of the jar file does not fit into that requirement. -
Connecting to Access Database on another server
I'm trying to connect to an ODBC remotely from my local computer. I know the IP address of the machine and how to set up the DSN, but I don't know the port that the ODBC listens too! I've looked all over the web but I can't figure out how to figure this out. Can someone help me?
Also, as a sidebar, is it possible to open up this connection through an applet if the ODBC and the web server are on the same computer? That would be really helpful.I'm trying to connect to an ODBC remotely from my
local computer. I know the IP address of the machine
and how to set up the DSN, but I don't know the port
that the ODBC listens too! I've looked all over the
web but I can't figure out how to figure this out.
Can someone help me?Nope. MS Access doesn't work like that. (And you don't know how to set up the DSN, since it can't be set up that way.) -
How to connect Access database Dynamically
Hi,
I want to make connection to Access database with java with dynamically. I know to make connect to database in the following way:
This way, I go to setting->controlPanel->Administrative tools->ODBC & then i select database & i use following code"
public void databaseconnect(){
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
connection = DriverManager.getConnection("jdbc:odbc:student");
output.append("Connection Successful\n");
catch(ClassNotFoundException cnex){
cnex.printStackTrace();
output.append("Connection Unsuccessful\n"+cnex.toString());
catch(SQLException sqlex){
sqlex.printStackTrace();
output.append("Connection unsuccessful\n"+sqlex.toString());
catch(Exception ex){
ex.printStackTrace();
output.append(ex.toString());
}But now i want to know the way to make connection to database dynamically. How this is possible? I want to make connection to database without selecting database from the Administrative tool? Is there anybody can help me?
With regards
Binahttp://faq.javaranch.com/view?OdbcJdbcQuestions
-
Connecting Access Databases remotely?
Currently:
Currently I have a Java application which performs all I wanted and the limitation in it is "It only resides on the Local machine for which it needs to work". I have the Microsoft Access Databases located on a Remote Server and I install the Java app on the remote server to connect the databases using a connectionString "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=D:\DATA\DPPI\DATA\DPPI\DPPIPR01.mdb"; It connects to Access Databases and do all the bussiness logics with them.
Enhancements (to be done):
1. Making the application online - not a big issue.
2. Connecting the databases remotely - its the only concern.
So, if I make the Application Online the Access Databases need to be connecting through network (somewhat like ip or some web address).
Problem:
But after going through this http://stackoverflow.com/questions/11388277/connect-to-access-database-remotely, it seems my requirement can not be completed.
Is there any way if I'm able to upload the database to the online web hosting server and access the database from there only? If yes, then how should I do the connectivity since Access Database connects by giving the fully qualified name containing drive letter and all. But how should I proceed further so that I may be able to connect the mdb Databases remotely?
ADO .Net Solution:
After going through the link:
http://webcheatsheet.com/ASP/access_connection_strings.php , it seems we can perform remote Access Database connectivity.
The solution for the ADO is something like:
connectionString="Provider=MS Remote; Remote Server=http://your_remote_server_ip;" &_ "Remote Provider=Microsoft.Jet.OLEDB.4.0; Data Source=c:\your_database_name.mdb"
I'm a tad confused to how Access Database we can connect.
EDIT
There is one more question in my head.
I'm making use of Type-1 Driver. By making use of Type-4 Driver like HXTT Access(http://www.hxtt.com/access.html), a commercial type 4 driver for MS Access, supports it. But is there any open source Type-4 Driver like this?
Edited by: Sanchit Java Dev on May 29, 2013 9:54 PMThanks for your responses guys. It seems I'm heading in a right direction (but can't completely say as I would also like to be concerned about the performance issues.)
For the time being I would like to consider this approach until it is fully confirmed.
Please let me know if I'm proceeding in a right way? (developed a webservice using Jax-ws testing application)
1. I wrote a Jax-ws webservice published and tested on the localhost - its returning the response (tested using Soap-Ui).
So, I would like to have the same application to be acting as a Server to be deployed on the Server housing the Microsoft Access Databases. It would connect the database and return the result to be consumed from Client.
2. From the other end I opened the Soap-Ui such that I edited the Endpoint like: (this call would be actually made from the Online Application)
Previous End point of the Wsdl- http://localhost:8080/myService/services/Invoker - tried and tested
Edited End point of the Wsdl for testing - http://remoteIp:8080/myService/services/Invoker
I got the Error stating:
ERROR:org.apache.http.conn.HttpHostConnectException: Connection to http://192.168.1.6:8080 refused.
Please let me know what I'm doing wrong or is there a special requirements for calling the services remotely?
EDIT
I took the IP address by executing ipconfig.
Edited by: Sanchit Java Dev on May 31, 2013 3:28 AM
Maybe you are looking for
-
I tunes doesn't open in windows seven
i tunes doesn't open in windows seven
-
Flattening script damages file
I use Acrobat Pro 7.1.0 - Win XP SP2 I receive 2D monochrome CAD drawings from a vendor for approval. I add an "Approved" stamp and use the doc.FlattenPages() JavaScript command to make the stamp permanent. When I do this, some of the thin lines of t
-
Handle Idoc errors through workflow
How to handle inbound idoc errors through workflow and How to handle outbound idoc errors through workflow Thanks, Asha
-
On startup I get a nimax.exe application error. The instruction at "0x1ce30df7" referenced memory at "0x00000000". The memory could not be "read". This happens every time I start the computer, run a vi with the initialize.vi or try to use the measure
-
I'm having trouble configuring web sessions. I've followed the documentation and seemingly there are no errors, but functionally it doesn't work and conceptually it doesn't seem right. I'd guess it is down to my configuration. Wonder if someone can h