Unsatisfied Link Error when using Oracle OCI (Type II) driver
Using Oracle OCI (Type II) driver on HPUX with Oracle 9.2.0.4.
If when creating a connection pool via the console, using the Oracle OCI (Type
II) driver, you get the error "Unsatisfied link error with library libocijdbc9.sl
or format error" then check that the library included in the SHLIB_PATH is pointing
at the $ORACLE_HOME/lib32 directory and not just the $ORACL_HOME/lib
We do not offer a JDBC driver for Linux in version 5.1. In version 6.0,we
do offer a type 4 driver for Linux.
In version 5.1, I suggest trying the platform independent type 4 JDBC driver
available for free from Oracle. It is supported (as is any JDBC driver)
with WebLogic Server. To download it:
Go to http://www.oracle.com and select the "Download" option.
From the resulting page, use the "Select Utility or Driver" dropdown to
select Oracle JDBC drivers
From the resulting page, scroll down a little (since SQLJ stuff appears at
the top).
Or, to go directly there:
http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
Thanks,
Michael
Michael Girdley, BEA Systems Inc
Learning WebLogic? Buy the book.
http://www.learnweblogic.com/
"Michael W. Warren, Sr." <[email protected]> wrote in message
news:[email protected]..
I have installed WebLogic 6.0 on Solaris platform and verified that the
server comes up
and that I can connect to it via Netscape. Next step was to verify
installation of WebLogic
jDriver for Oracle. When I run the following:
java utils.dbping ORACLE scott tiger
I get the following error:
Starting Loading jDriver/Oracle .....
Error encountered:
java.sql.SQLException: System.loadLibrary threw
java.lang.UnsatisfiedLinkError
with the message
'/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
fatal: libgen.so.1: open failed: No such file or directory'.
at
weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:146)
at utils.dbping.main(dbping.java:182)
Anyone seen this? Help!!!
Thanks in advance
Mike Warren, Sr.
[email protected]
Similar Messages
-
Error when using Oracle Migration WorkBench (Sql Server 2k to Oracle 8i)
I'm trying to migrate a Sql Server 2k database to an Oracle 8i schema using OMWB. After using BCP to collect metadata information on the source database, I tried to capture the source data model and got a "Capture aborted" message on the progress screen (even though then it appears a dialog window reporting "0 errors and 0 warnings", funny!). Down there is the error log OMWB generated. After reading some posts, I changed some columns of the OMWB dictionary that holds the source database name, but still got the same error. If someone can enlighten me on this toppic, I'd greatly appreciated it.
Here's the error log of OMWB:
** Oracle Migration Workbench
** Production
** ( Build 20050629 )
** OMWB_HOME: D:\Datos\Download\Oracle\Oracle Migration Workbench\omwb
** user language: es
** user region: null
** user timezone:
** file encoding: Cp1252
** java version: 1.4.2_04
** java vendor: Sun Microsystems Inc.
** o.s. arch: x86
** o.s. name: Windows 2000
** o.s. version: 5.0
** Classpath:
..\lib\boot.jar
** Started : Fri Feb 23 17:18:48 GMT-03:00 2007
** Workbench Repository : Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production
With the Partitioning option
JServer Release 8.1.6.0.0 - Production
Repository Connection URL: jdbc:oracle:thin:@ServerCms:1521:sigcewbc
** The following plugins are installed:
** Microsoft Access 2.0/95/97/2000/2002/2003 Plugin, Production Release 10.1.0.4.0
** Microsoft SQLServer 2000 Plugin, Production Release 10.1.0.4.0
** Microsoft SQLServer 6.5 Plugin, Production Release 10.1.0.4.0
** Microsoft SQLServer 7.0 Plugin, Production Release 10.1.0.4.0
** Active Plugin : SQLServer2K
EXCEPTION :SQLServer2KDisconnSourceModelLoad.loadSourceModel(): oracle.mtg.migration.MigrationStopException: java.lang.IndexOutOfBoundsException: Index: 15, Size: 15
** Shutdown : Fri Feb 23 18:00:50 GMT-03:00 2007Duplicate thread
Error when using Oracle Migration WorkBench (Sql Server 2k to Oracle 8i) -
Error when using oracle.j2ee.ws.StatelessJavaRpcWebService as ws wrapper
I have a problem when using Oracle oracle.j2ee.ws.StatelessJavaRpcWebService as a web service wrapper. I get the exception below in the server.log:
java.lang.IllegalStateException: Data has already been written to the OutputStream
at com.evermind.server.http.EvermindHttpServletResponse.setBufferSize(EvermindHttpServletResponse.java:1965)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:541)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
The server response with 500 Internal Server Error when contacted as a web service.
The error only occurs patriotic on the server.
If anyone have experience with this error please response :-)Hi,
can you point me to the "FSCM TUD" doc you follow so I can reproduce the issue ? Is it a JDeveloper tutorial? Also, which version of JDeveloper do you use ?
Frank -
Linking errors when using ibsta
Hello,
I have been trying to write C code to automate a Keithley 2410 through GPIB. I am using Windows XP 32-bit, and VC++.
I believe I was successful in getting a handle to the gpib-32.dll. However, I am getting a linking error when I try to use ibsta: 1>helloworld.obj : error LNK2001: unresolved external symbol _ibsta
1>C:\Documents and Settings\Prober\My Documents\C Programs\helloworld\Debug\helloworld.exe : fatal error LNK1120: 1 unresolved externals
However, when I look through the ni488.h, I see that ibsta is a global variable. Therefore I am confused as to why I am getting a linking error
I am following this guide: http://na.tm.agilent.com/pna/help/latest/Programming/GPIB_Example_Programs/GPIB_using_Visual_C++.htm
My code is attached
Attachments:
code.c 3 KBCheck out the 4882query.c example located on your computer at National Instruments > NI-488.2 > Examples > Standard C > 4882query. The National Instruments folder might be in a sub-folder of Public or Public Documents. Look at the ReadMe.txt file first. It contains a C++ section. Then try compiling the example and see what happens.
Jeff Munn
Applications Engineer
National Instruments -
Link error when using WebLogic 6.0 and Oracle 8.1.6
I have installed WebLogic 6.0 on Solaris platform and verified that the
server comes up
and that I can connect to it via Netscape. Next step was to verify
installation of WebLogic
jDriver for Oracle. When I run the following:
java utils.dbping ORACLE scott tiger
I get the following error:
Starting Loading jDriver/Oracle .....
Error encountered:
java.sql.SQLException: System.loadLibrary threw
java.lang.UnsatisfiedLinkError
with the message
'/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
fatal: libgen.so.1: open failed: No such file or directory'.
at
weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:146)
at utils.dbping.main(dbping.java:182)
Anyone seen this? Help!!!
Thanks in advance
Mike Warren, Sr.
[email protected]
[att1.html]We do not offer a JDBC driver for Linux in version 5.1. In version 6.0,we
do offer a type 4 driver for Linux.
In version 5.1, I suggest trying the platform independent type 4 JDBC driver
available for free from Oracle. It is supported (as is any JDBC driver)
with WebLogic Server. To download it:
Go to http://www.oracle.com and select the "Download" option.
From the resulting page, use the "Select Utility or Driver" dropdown to
select Oracle JDBC drivers
From the resulting page, scroll down a little (since SQLJ stuff appears at
the top).
Or, to go directly there:
http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
Thanks,
Michael
Michael Girdley, BEA Systems Inc
Learning WebLogic? Buy the book.
http://www.learnweblogic.com/
"Michael W. Warren, Sr." <[email protected]> wrote in message
news:[email protected]..
I have installed WebLogic 6.0 on Solaris platform and verified that the
server comes up
and that I can connect to it via Netscape. Next step was to verify
installation of WebLogic
jDriver for Oracle. When I run the following:
java utils.dbping ORACLE scott tiger
I get the following error:
Starting Loading jDriver/Oracle .....
Error encountered:
java.sql.SQLException: System.loadLibrary threw
java.lang.UnsatisfiedLinkError
with the message
'/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
fatal: libgen.so.1: open failed: No such file or directory'.
at
weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:146)
at utils.dbping.main(dbping.java:182)
Anyone seen this? Help!!!
Thanks in advance
Mike Warren, Sr.
[email protected] -
Error when using record group type as param in a function in where clause
Hi folks.
I have a record type defined in a packages specification. I have to use this record as parameter to call a function. I am able to call the function if as return its value to a string variable. However, the function should be called into a query to compare the returned value and this code is not compiled.
The code is below:
DECLARE
l_line_group_rec INL_CUSTOM_PUB.inl_ship_headers_rec;
l_name VARCHAR2(100);
l_count NUMBER;
BEGIN
l_name := INL_GET_PARTY_SITE_NAME(l_line_group_rec); -- Compiling successfully
SELECT COUNT(1)
INTO l_count
FROM dual
WHERE INL_GET_PARTY_SITE_NAME(l_line_group_rec) = 'Allied Manufacturing'; --- Error when compiling
END;
I got the error: PLS-00306: wrong number or types of arguments in call to 'INL_GET_PARTY_SITE_NAME'
I would like to know if there is any restriction in using record type as parameter in where clauses or if there is another way to do it.
Thanks in advanceHi.
The definition of INL_GET_PARTY_SITE_NAME:
FUNCTION INL_GET_PARTY_SITE_NAME(p_line_group_rec INL_CUSTOM_PUB.inl_ship_headers_rec) RETURN VARCHAR2 IS
l_party_site_name VARCHAR2(100);
BEGIN
l_party_site_name := 'Allied Manufacturing';
URN l_party_site_name;
END INL_GET_PARTY_SITE_NAME;
Thanks. -
Business Transaction Profile - Error when using Z-Transaction Type
Dear Experts,
we are using SAP CRM 7.0 (Support Level 0007 - SAPKU70007). I have created a Z-Business Transaction Profile Z_IC_SERVICE.
SAP Help says:
Enter the transaction type to be used as a default in your scenario in the IC WebClient. For example, choose the transaction type 0010 (Interaction Record) if an interaction record is to be created automatically. The system creates this interaction record automatically after the interaction has started (for example, after accepting a call). During this, the activity clipboard in the interaction record is filled with the relevant data.
So when I am using the transaction type 0010 (Interaction Record) in my Business Transaction Profile all is OK that means I can search for accounts and I can confirm them to go on with the process.
BUT: When I entering here a Z Transaction Type (Z000) the systems shows the errors:
- Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event InteractionStarted.
- Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event BPConfirmed.
Then I have made a copy of the transaction type 0010 (Name of copy: Z010) and tried to use it in my Business Transaction Profile the system says:
Customizing settings missing. Assign partner functions to Z010
Anybody know what to do and where to avoid errors? Note 1346892 is obsolete in this case because we already have the highest Support Package Level.
Best Regards
OliverHi yes you were right. In the case of both transaction type I have corrected the customizing parameters in
SPRO -> Customer Relationship Management -> Interaction Center WebClient -> Business Transaction -> Assign Partner Functions to Business Transactions
In the case of Transaction Type Z010 I had Z-Partner Functions and and that leaded to the errors:
- Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event InteractionStarted.
- Error occurred in class CL_ICCMP_CUCOIREC_IMPL, event BPConfirmed.
In case of the Transaction TYPE Z000 I forgot to assign the Partner Functions that is why this error appeared:
Customizing settings missing. Assign partner functions to Z010
Thread Closed -
URGENT! SEGV-errors when using Oracle C XML Parser for Solaris
I often (not always) got SEGV-error with core dump when I use Oracle Oracle C XML Parser for Solaris. This Error is always got in the call of the the function xmlinit(...) with all params as NULL but the first required for the error code and the second which i assign a macro that evaluates to "US-ASCII". Does anyone knows about this problem?
I am using a very short, wellformed and validated XML document.
I would be very glad for some help about this!
nullPlease provide a sample program along with the version number of the XML parser.
-
Error when using 557 movement type to remove stocks from intransit
Dear All,
We have some stocks left in intrasit where we use only inventory management to do this stock transfer(ie. we are not using STO),now we want to remove this stock from intransit. When i tried to use movment type 557 I got an error (Deficit of PL Stock in transit 10 DZ : CHS10088 2KUR 0000000867) with message number M7021. I cross this material with mb52 to find the avalability of this intransit stock and found that it is available at given plant but with out a batch number. When I tried to use this movement type it asks for a batch number so i have given an available batch number. Can you please help me to remove this stock from intransit.
Thanks & Best Regards,
ChameendriHi
the movement types 557 ( and 558 ) can only be used to update intra-company
transit stock which is saved in MARC-TRAME. IF you are using purchase
orders cross-company stock transfers, the transit stock is only a virtual transit stock what is calculated
based on the purchase order history. So this issue cannot be addressed
by changing the data in a stock table.
Are you using intra-company STO ?
Please check carefully note 392205 that contains the report ZTRAME
.Please see the following information:
A report attached to the note 392205 tries to explain the stock in
transit using the documents existing in the system. First verify the
current stock in transit situation using the report ZTRAME as per the
note 392205. This program tries to 're-calculate' the stock in transit
based on the material documents and the purchase order history.
Based on the results of the program the movement-types 557 and 558 can
be used to correct the stock in transit (-> add or book out stock in
transit).
I hope this can be of help
BR
Nadia Orlandi -
Error when using RTF as type of web report
When I use RTF as type of web report ,the program will exceptionly terminate with exceptoin.When I use html,Pdf format,it work well.Who can help,Thanks in advance.
It seems your browser is not properly configured to handle RTF content. You can try to load a local RTF directly into your browser and see if that works.
-
Within a Tx data source by administered by Weblogic, I receive these
errors when trying to access a Stored Procedure (that returns a
resultset) through JDBC.
The code fails at line ***, with the call to getObject;
Any ideas?
-H
Here's an example of some code:
try {
stmt = getConnection().prepareCall(getTarget());
stmt.registerOutParameter(1, OracleTypes.CURSOR);
// set the input param
stmt = JDBCHelper.paramSetter(stmt, getParameters());
// execute and retrieve the result set
stmt.execute();
*** rs = (ResultSet)stmt.getObject(1);
crs = new CachedRowSet();
crs.populate(rs);
a.add(crs);
setResult(a);
catch (Exception e) {Humphrey,
Support of a feature means that it's gone though the full QA and
PM approval cycle and it has been officially declared as supported.
Feature may work well even if it's not supported. It just means you use
it at your own risk.
Regards,
Slava Imeshev
"Humphrey" <[email protected]> wrote in message
news:[email protected]..
According to the BEA documentation, this version of the driver is not
supported due to "Known Issues" - does anyone know of what these
issues are, perhaps there's a list somewhere?
This is particularly strange since another document from BEA at
http://e-docs.bea.com/wls/docs61/jdbc/thirdparty.html does mention how
to upgrade the driver to 9.0.1, with no mention of any problems. -
Linking error when using C++ DLL for writing TDM files
I try to integrate TDM into my C++ code. Then I downloaded the package from the NI website "Integrating TDMS in Third-Party Products". I tested the the sample "writeFile.c". But a linking error as following occurred:
1>Linking...
1>nilibddc.lib(implib.obj) : error LNK2019: unresolved external symbol __imp__wsprintfA referenced in function _LoadDLLIfNeeded
1>.\Debug/Test TDM.exe : fatal error LNK1120: 1 unresolved externals
Can anyone help me out. Many thanks.
Solved!
Go to Solution.I migrated my code from VC++ 6 compiler to VC++ 2005. Then linking errors are gone.
nilibddc.lib(implib.obj) : error LNK2001: unresolved external symbol ___security_cookie
nilibddc.lib(implib.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
P.S. "Read me" from NI says "The Microsoft 32-bit format is compatible with Microsoft Visual C version 6.0". But I tested the code with VC++6 professional with SP6 package and upgrade the SDK to the latest version that supports vc6. I still have the linking errors. My test seems prove that the dll does not support VC6.
Message Edited by Kuo on 04-22-2010 05:03 AM -
ORA-03113 error when using Oracle 9i with Mapx 5.0
Hello,
I am using Personal Oracle 9i Release 2 with Mapx5.0 on Delphi.
Accessing the layers using tab files also as server layers..,
and commonly using the method of Mapx Layer.SearchAtPoint
Search is done on region, line as well as on point objects...,
at some point of time it flashes me the error
ORA-03113 end-of-file on communication channel
I am not exactly able to figure out when it gives..,
but i m getting it after some clicks on the layers
The same executable is working fine with Oracle 8.1.7
As anybody faced such a problem and knows the possible cause
Thanks,
BinoyThere is some java bug that is causing some problems if you are using 9.2.0.3. Here is some information:
Workaround for bug 2755842:
Event 10499 can be set (any non-zero level) to revert to the old behaviour.
==================================================
Setting the EVENT 10499
=======================
Check if the database server is using a server parameter (spfile) a parameter (init.ora) file.
From sqlplus, connect as sysdba and execute the command:
show parameters spfile
If the value is NULL or empty, then spfile is NOT enabled and init.ora is used.
1) If SPFILE is used:
SQL> show parameters spfile
NAME TYPE VALUE
spfile string
%ORACLE_HOME%\DATABASE\SPFILE%ORACLE_SID%.ORA
a) Using sqlplus logon as sysdba
b) Execute: alter system set event="10499 trace name context forever,level 4" scope=spfile
sid='*';
c) shutdown
d) startup the database
2) If INIT.ORA is used:
a) In the init<SID>.ora file, add the parameter event="10499 trace name context forever,level 4"
b) Stop and start the database
Hope this is it.
Dan -
Error when using Oracle OTD wizard
I'm getting this message when I try to create an OTD using the oracle otd wizard with Netbeans in Windows. Does anyone know how to resolve this issue?
java.lang.NullPointerException
at com.stc.oracle.wizard.TablesVisualPanel.isValid(TablesVisualPanel.java:133)
at java.awt.Component.invalidateIfValid(Component.java:2787)
at java.awt.Component.setLocale(Component.java:1857)
at javax.swing.JComponent.<init>(JComponent.java:584)
at javax.swing.JPanel.<init>(JPanel.java:65)
at javax.swing.JPanel.<init>(JPanel.java:92)
at javax.swing.JPanel.<init>(JPanel.java:100)
at com.stc.oracle.wizard.TablesVisualPanel.<init>(TablesVisualPanel.java:61)
at com.stc.oracle.wizard.TablesPanel.getComponent(TablesPanel.java:87)
at com.stc.oracle.wizard.NewOtdIterator.initialize(NewOtdIterator.java:128)
at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:100)
at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(TemplateWizardIteratorWrapper.java:76)
at org.openide.loaders.TemplateWizard.setTemplateImpl(TemplateWizard.java:193)
at org.openide.loaders.TemplateWizard.setTemplate(TemplateWizard.java:211)
at com.stc.otd.launcher.WizardSelectionPanel.storeSettings(WizardSelectionPanel.java:158)
at org.openide.WizardDescriptor.setValueOpen(WizardDescriptor.java:1288)
at org.openide.WizardDescriptor.setValue(WizardDescriptor.java:1266)
at org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1131)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
at java.awt.Dialog$1.run(Dialog.java:1046)
at java.awt.Dialog$3.run(Dialog.java:1098)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1096)
at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:867)
at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:901)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:889)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:109)
at org.openide.util.Mutex.doEventAccess(Mutex.java:1355)
at org.openide.util.Mutex.readAccess(Mutex.java:268)
at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:874)
at java.awt.Component.show(Component.java:1563)
at java.awt.Component.setVisible(Component.java:1515)
at java.awt.Window.setVisible(Window.java:842)
at java.awt.Dialog.setVisible(Dialog.java:986)
at org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:495)
at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:362)
at com.stc.otd.launcher.WizardManager.showWizardSelectionDialog(WizardManager.java:75)
at com.stc.otd.launcher.OTDWizardLauncherAction.createNewElement(OTDWizardLauncherAction.java:66)
at com.stc.egate.toolbus.toolAction.BaseToolAction.actionPerformed(BaseToolAction.java:53)
at com.stc.egate.gui.projectexplorer.BasicSubMenuAction$SubMenuModel.performActionAt(BasicSubMenuAction.java:264)
at org.openide.awt.Actions$ISubActionListener.actionPerformed(Actions.java:1150)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)I've had the same problem. The cause was, that i was using jdk version 1.6.0_19.
After installing the highest supported version of the jdk (1.6.0_11) the problem was solved.
s.a. http://docs.sun.com/app/docs/doc/821-0449/inst_support_jdk_r?a=view
Hope this helps,
Peter -
The simple program below is a client that executes a SELECT query -
there are 13 rows in the table, of which 10 are printed when I run the
program, then after that the ORA-01002 error is reported. I am not
doing anything with LOBs, or updates. I've tried putting
con.setAutoCommit(false) as well, but that does not do anything.
Why am I getting this error? Can anyone help.
Thanks
-H
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,
"t3://127.0.0.1:7001");
PreparedStatement stmt = null;
ResultSet rs = null;
UserTransaction ut = null;
try {
ctx = new InitialContext(ht);
javax.sql.DataSource ds
= (javax.sql.DataSource) ctx.lookup ("jtaXADS");
java.sql.Connection conn = ds.getConnection();
// You can now use the conn object to create
// Statements and retrieve result sets:
ut = (UserTransaction)
ctx.lookup("javax.transaction.UserTransaction");
ut.begin();
stmt = conn.prepareStatement("select firstname,surname from
EMPLOYEE ");
stmt.executeQuery();
rs = stmt.getResultSet();
// Close the statement and connection objects when you are finished:
while (rs.next())
System.out.println("Result is " + rs.getString("firstname") + " " +
rs.getString("surname"));
ut.commit();
stmt.close();
conn.close();
catch (Exception e) {
e.printStackTrace();
// a failure occurred
finally {
try {ctx.close();
rs.close();}
catch (Exception e) {
// a failure occurred
e.printStackTrace();Thanks everybody.
I have tried this, calling ut.begin() first before getConnection,
however no difference. However the problem goes away if I call
stmt.setFetchSize(100);
But I would prefer not to have to code this in every time!!!
I see there is a setting within Weblogic Admin console to see the
row-prefetch, but that is already set to 45 rows, so why do have to
explicitly call stmt.setFetchSize(100)!!!
Thanks
-H
"Carl Lawstuen" <[email protected]> wrote in message news:<[email protected]>...
Agreed. The transaction must start before the connection. This is what
is most likely causing the error.
"Nils Winkler" <[email protected]> wrote in message
news:[email protected]...
Hi,
one more thing: The UserTransaction has to be started before you obtain
the connection, not after.
Nils
Humphrey wrote:
The simple program below is a client that executes a SELECT query -
there are 13 rows in the table, of which 10 are printed when I run the
program, then after that the ORA-01002 error is reported. I am not
doing anything with LOBs, or updates. I've tried putting
con.setAutoCommit(false) as well, but that does not do anything.
Why am I getting this error? Can anyone help.
Thanks
-H
Context ctx = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,
"t3://127.0.0.1:7001");
PreparedStatement stmt = null;
ResultSet rs = null;
UserTransaction ut = null;
try {
ctx = new InitialContext(ht);
javax.sql.DataSource ds
= (javax.sql.DataSource) ctx.lookup ("jtaXADS");
java.sql.Connection conn = ds.getConnection();
// You can now use the conn object to create
// Statements and retrieve result sets:
ut = (UserTransaction)
ctx.lookup("javax.transaction.UserTransaction");
ut.begin();
stmt = conn.prepareStatement("select firstname,surname from
EMPLOYEE ");
stmt.executeQuery();
rs = stmt.getResultSet();
// Close the statement and connection objects when you are finished:
while (rs.next())
System.out.println("Result is " + rs.getString("firstname") + " " +
rs.getString("surname"));
ut.commit();
stmt.close();
conn.close();
catch (Exception e) {
e.printStackTrace();
// a failure occurred
finally {
try {ctx.close();
rs.close();}
catch (Exception e) {
// a failure occurred
e.printStackTrace();
============================
[email protected]
Maybe you are looking for
-
Itunes ver8.0.1 disc burner not found?
I downloaded the upgrade and tried to burn a cd from a play list. Message in the apple window above the play list said no disc burner foundno software found. Did not have a proble before. Any ideas??
-
Hello All, I have a dilemma. I have a server that originally had 9i client installed. We installed 10g and ODP .Net to gain use of some new funcionality used in .Net and batch processing. Halfway through testing we realized that 10g's version of ODP.
-
SLD - Auto Registration of installed products ??
Hi Gurus, I am trying IDOC-XI-FILE scenario. I need to register SAP R/3 system in SLD. I re-started J2EE engine(SMICM) in XI. This should register all installed products in SLD automatically. But, I still do not see R/3 system in SLD. So, i tried to
-
My company is investing into shares, how to handle this in sap?
Hi Gurus, How share market investments can be handled in SAP Asset Accounting module? thanks, Ganesh.
-
10.4.8 Update = Mail Death?
After months of Mail working well on my MBP I upgraded to 10.4.8 last week and Mail has taken a d*mp. Can't send, repeatedly asks for the password, generally useless. This and the iTunes 7 debacle in two weeks. Oh, and I just started getting the RSD