Problem with sqlj connection
error in java compilation "java.io.IOException: create process:javac-J-Djavac.pipe.output=true TestInstall.java error=0"
What is the problem please?
Phil
// You need to import the java.sql package to use JDBC
import java.sql.*;
// We import java.io to be able to read from the command line
import java.io.*;
class JdbcCircle
public static void main (String args [])
throws SQLException, IOException
// Load the Oracle JDBC driver
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
// Prompt the user for connect information
System.out.println ("Please enter information to test connection to the database");
String user;
String password;
String database;
user = readEntry ("user: ");
int slash_index = user.indexOf ('/');
if (slash_index != -1)
password = user.substring (slash_index + 1);
user = user.substring (0, slash_index);
else
password = readEntry ("password: ");
database = readEntry ("database (a TNSNAME entry): ");
System.out.print ("Connecting to the database...");
System.out.flush ();
// Connect to the database
// You can put a database name after the @ sign in the connection URL.
System.out.println ("Connecting...");
Connection conn =
DriverManager.getConnection ("jdbc:oracle:oci8:@" + database,
user, password);
System.out.println ("connected.");
// Create a statement
Statement stmt = conn.createStatement ();
// RetrieveRadius
ResultSet rset =stmt.executeQuery("select Radius from RADIUS_VALS");
while (rset.next ()) {
// If you wish to print the values:
System.out.println (rset.getInt ("RADIUS"));
int radInput = rset.getInt ("RADIUS");
// Retrieve Radius value, calculate area:
double result = area(radInput);
// insert the value into AREAS
String sql = "insert into AREAS values ("+radInput+","+result+ ")";
// If you want to print the SQL statement:
System.out.println(sql);
// Create a statement for the insert:
Statement insArea = conn.createStatement ();
// Execute the insert:
boolean insertResult = insArea.execute(sql);
// close the resultset
rset.close();
// Close the statement:
stmt.close();
// Close the connection
conn.close();
// Utility function to calculate the area
public static double area (int rad) {
double pi=3.1415926;
double areacircle=pi*rad*rad;
return areacircle;
// Utility function to read a line from standard input
static String readEntry (String prompt)
try
StringBuffer buffer = new StringBuffer ();
System.out.print (prompt);
System.out.flush ();
int c = System.in.read ();
while (c != '\n' && c != -1)
buffer.append ((char)c);
c = System.in.read ();
return buffer.toString ().trim ();
catch (IOException e)
return " ";
Hi Elango,
This file compiles and runs but it's only connecting to the database, the retrieve Radius part does not seem to be working, the appropriate tables are in my Oracle schema,
Philip
Similar Messages
-
Problem with JCo Connection Pool
Hi,
I have a problem with using an RFC Model in my WebApplication. So sometimes the access to the function block works, and sometimes it doesn't work. Now I know, that there is a problem with the connection pool. Look at this message:
com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool WD_X24_MODELDATA_DEST_CPIC_REKTO_DE_useDefinedUser is exhausted. The current pool size limit (max connections) is 10 connections.
So it looks like a problem with closing the JCo Connections after using. Do know where the problem is? Because I'm using many other function blocks with no problems.Hello,
You need to increase the pool size via Visual Administrator.
Server 0 -> Services -> JCO RFC Connections.
Change the pool size from there. I believe a restart is in order.
Regards,
Jan -
Problems with ipod connection.
Problems with ipod connection.
I have problems to connect my ipod to computer windows 7.
When I connect I get the following error:
"We encountered an ipod, but could not be identified correctly. Disconnect and reconnect the ipod and try again."
And it recognizes the ipod when trying to go play music or videos make me the following error:
"Error while trying to copy on disk. The device is not connected."
I've uninstalled all apple applications and re-installing, as I formatted the ipod and continues to set the same error.
What else can I do?Hello,
While your symptoms don't exactly match the descriotion, this article may be usefull in discovering if there is a setting on your computer that is causing this to happen.
iPod not recognized in 'My Computer' and in iTunes for Windows
http://support.apple.com/kb/ts1369
-Griff W. -
I have an iPhone 4. I use iTunes 11.1.5 on my Mac. I am trying to update to ios 7.1 through iTunes, but every time I do that, I get a "connection reset" error, even when I know there has been no problem with my connection.
The exact error message is as follows:
"There was a problem downloading the software for the iPhone "Anne's iPhone". The network connection was reset.
Make sure your network settings are correct and your network connection is active, or try again later."
I have checked several times. There is no problem with the connection, and I have tried to download the software several times today.
Any help you can give me would be appreciated.Just managed to successfully download the update, having retried five or six times. I did unplug my phone while the download was taking place (had asked iTunes to download only, not to update) -- suspect this had no bearing on it whatsoever, and that persistence is the only way here.
-
Exchange Server 2010 SP3 - Rollup 8 - Issue - Problems with client connections - MS Outlook 2013
Exchange Server 2010 SP3 - Rollup 8 - Issue - Problems with client connections - MS Outlook 2013
Detected Problems:
- Access denied for attached mailbox (department mailbox)
- Access denied for delete or move messages on own mailbox
- Can't send new messages with error (Error: [0x80004005-00000000-00000000])
Solution:
- Rollback to Exchange 2010 SP3 - Rollup 7
- You can rollback to Exchange 2010 SP3 - RollUp 7 in 30 min
Algunos de los destinatarios no recibieron su mensaje.
Asunto: Hola
Enviado el: 11/12/2014 8:35
No se puede localizar a los destinatarios siguientes:
'[email protected]' en 11/12/2014 8:35
Este mensaje no se pudo enviar. Inténtelo de nuevo más tarde, o póngase en contacto con el administrador de red.
Error: [0x80004005-00000000-00000000].See the following forum thread:
https://social.technet.microsoft.com/Forums/en-US/1be9b816-b0ab-40ea-a43a-446239f8eae3/outlook-client-issues-following-exchange-2010-rollup-8 -
My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category
My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category
-
I can't make a purchase with iTunes because it says there's a problem with the connection. How do I fix this?
Morning Gjakleinmark,
Thanks for using Apple Support Communities.
For more information on this, take a look at this article:
Can't connect to the iTunes Store
http://support.apple.com/kb/ts1368
Best of luck,
Mario -
Problems with Document Connect
I have a problem with Document Connect. I am unable access office live workspace.
I have been on the help line with microsoft but they were unable to help.
Then I went to an apple store and was informed by one of the sales assistance that Document Connect never worked with the apple. Well what was the point in having it then?I wish I knew what Document Connect is. I'd bet I could fix it. Not really, but what is it?
-
I have an Ipad mini with IOS7. A few days ago I began to have problems with wifi connectivity. I can connect to wifi with Google but cannot navigate in Safari nor any of my aps are able to acess wifi. Very strange. Not sure what to do!
Hi ..
Reset the device:
Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
If that doesn't help, tap Settings > General > Reset > Reset All Settings
If that doesn't help, tap Settings > General > Reset > Reset Network Settings
You may have to re enter your Wi-Fi password.
If nothing above has helped, try here > iOS: Troubleshooting Wi-Fi networks and connections -
Hi,
I have this Windows 2008 R2 on which I installed remoteapp some years ago.
Now the certificate expired and I get the message
"There is a problem with this connection's security certificate
The remote computer cannot be authenticated due to problems with its security certificate.
Security certificate problems might indicate an attempt to fool you or intercept any data you send to the remote computer."
How should I renew the certificate? I already went to certification store and tried to renew certificate with same key but then it says "the request contains nor certificate template information".
Please advise.
J.
J.
Jan HoedtDoes the computer account have Enroll permission to the certificate template?
From the Server running your CA, run mmc, click File then Add/Remove Snap-in...
Add Certificate Templates and click OK.
Find the certificate template, then right click and select properties. On my CA its call ed RemoteDesktopComputers but might be called something different depending on what what template your certificate is based on.
On the security tab, click Oblect types, check Computers then OK. Enter the Computername and click OK. Then give your computer account Enroll permisssion.
HTH,
JB -
but every time i try to its fine until it processes it and then it says it has a problem with my connection but my firewall is off?? Please help.
I'm having the same problem trying to update my iphone 4(Just got a replacement), I also have firewall off...Hopefully someone can help. Mine says error -3259
-
Problem with database connectivity
Hi guys,
I'm having a problem with database connectivity . I'm using the mySQL database & org.gjt.mm.mysql driver.
I've kept the org folder under the directory where the Database.java program is residing .
My program is as follows:
import java.sql.*;
public class Database
Connection con;
public void connect()
System.out.println("In connect.");
public Connection connectDB(String username,String password,String database)
try
Class.forName("org.gjt.mm.mysql.jdbc.Driver");
String url="jdbc:mysql:"+database;
con=DriverManager.getConnection(url,username,password);
catch(SQLException e)
System.out.println("SQL Exception caught:"+e);
catch(Exception e)
System.out.println("Exception e caught:"+e);
return con;
public static void main(String args[])
try
Connection c;
Database db=new Database();
c=db.connectDB("root","","//192.168.0.2/squid");
System.out.println("Connection created.");
c.close();
catch(Exception e)
System.out.println("Exception caught:"+e);
It gets compiled but gives the following error when run.
Exception e caught:java.lang.ClassNotFoundException: org.gjt.mm.mysql.jdbc.Driver
Connection created.
Exception caught:java.lang.NullPointerException
I don't know why the class is not found.Pl . help me rectify my mistake.Is there any other path to be set?
Thanks.You need to run it with the JDBC driver in the classpath
java -classpath .;[mySqlJdbcDriver.jar] Database -
I have problem with Access Connections on L412 after that utilyty upgrade
I have problem with Access Connections on L412 after that utilyty upgrade in early August. Windows 7 Ultimate/x64.
It stops connecting to WPA2 Enterprise (AES-CCMP), Microsoft PEAP, no server cert, with any credentials I try to use. The same account(s) works with native Intel manager on other notebooks and on mobile devices. I lost the wireless connectivity to enterprise WiFi network.
And, after deinstallation of Access Connections, the inability to connect keeped intact with native Win7 WiFi management.
I think, something was broken in Access Connections 5.83 Build 83C753WW and some registry settings/ dll modules were altered but not returned to normal after deinstall.Access Connections is definitely broken for WPA encryption. Both versions 5.02 and 5.84 fail for me. If I use the Windows XP wireless configuration instead of Access Connections, everything works.
Does anyone know how to report this to Lenovo? I chased links around the web site but couldn't find a place. -
Problem with Internet connection sharing between eMac and Powerbook G3
Hi,
I seem to be having a slight problem with internet connection sharing.
My eMac is the main machine with the internet connection, and its running 10.4.6, the Powerbook G3 is running 10.2.8.
I can connect them all up and get online with both, but I the problem I am having is when I turn the Firewall on on the eMac, the powerbook can't connect.
Is there anyway I can keep the Firewall enabled and still use internet connection sharing?How do I know which ports the Powerbook is using?
Also I had web sharing enabled on the eMac and it made no difference at all.
Plus I don't know if this means anything to you, trying to decipher it myself, all I can make out myself on there is port 80.
May 31 21:26:30 Craigs-Macintosh ipfw: 12190 Deny TCP 10.0.2.2:49743 67.15.24.40:80 in via en1
May 31 21:26:34 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49531
May 31 21:26:34 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49532
May 31 21:26:39 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49533
May 31 21:26:39 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49534
May 31 21:26:42 Craigs-Macintosh ipfw: 12190 Deny TCP 10.0.2.2:49743 67.15.24.40:80 in via en1
May 31 21:26:44 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49535
May 31 21:26:44 Craigs-Macintosh ipfw: Stealth Mode connection attempt to UDP 10.0.2.1:192 from 10.0.2.2:49536
May 31 21:29:12 Craigs-Macintosh ipfw: 12190 Deny TCP 10.0.2.2:49746 17.254.0.91:80 in via en1
May 31 21:29:15 Craigs-Macintosh ipfw: 12190 Deny TCP 10.0.2.2:49746 17.254.0.91:80 in via en1 -
SAP Screen Personas error "A problem with network connectivity has been detected"
Hi,
We just installed Personas release 100 SP02 and performed the
configuration steps necessary. But when we acces the url and logon to
personas we get the following erre
A problem with network connectivity has been detected.
Please check you connection and refresh your browser.
Any help to solve this issue would be appreciated.
Best Regards.Please use this checklist to see if everything is correct:
1. restgui service handler class has CL_HTTP_EXT_ITS_BASIC
2. SPRO -> Sap screen Personas -> Maintain system has
- 3 letter system id
- "Server.Url" without typo and value in http(s)://<SERVER>:<PORT>/ format
- "Service.Uri" without typo and value as /restgui
3, Note 2026487 is installed
4. If target system is different from source system then you are able to access the following
- http(s)://<TARGETSERVER>:<PORT>/clientaccesspolicy.xml
- http(s)://<TARGETSERVER>:<PORT>/crossdomain.xml
5. role is assigned to user under /n/persos/admin_ui -> User Maintenance -> Search -> Show user -> Role
If you still get error, then if you are using SSO, please check if you have configured login/create_sso2_ticket parameter correctly.
Thanks
Chinthan
Maybe you are looking for
-
How do i share files from my pc to my mac
I need to know how to get a pic off my pc and transfer it to my mac wirelessly. I was trying to sell something online using my mac, and the pic i needed was on my pc. I tried to "share it" but was not able to get into my pc. Any suggestions?
-
Revision: 10075 Author: [email protected] Date: 2009-09-08 18:01:58 -0700 (Tue, 08 Sep 2009) Log Message: Cleanups from the spark text changes and some bug fixes for VideoElement. Also some PARB changes for UIComponent. TitleBar: Changing the
-
How to include a button in report header like rowspan? &logfile generation?
I am really new to this form and I have some questions on the APEX HTML DB: The project I need to work on is like this: Based on some criteria, I need to do a database lookup. Then in the result, I need to be able to edit the individual record. So fa
-
Using iCloud mail in Snow Leopard - AND restoring old mail system
I use Snow Leopard and cannot upgrade to Lion since my MacBook Pro is too old. Apple discontinued my traditional Mail service last week and said it is now transferred to iCloud. 1. Is there any way I can get my traditional Mail service restored since
-
RCVR_DETERMINATION" NO_RECEIVER_CASE_ASYNC error while monitering
hi every body.... <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!-- Receiver Identification --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">