2wire connection problems, help please?
I recently got a 2wire wireless router from AT&T and I can connect it through the airport to my laptop, but the weird thing is that only Firefox can connect to the internet, but all the other applications (Safari, iTunes, System Update, Widgets, etc) will not connect to the internet, it just hangs and will not do anything for me. What could I possibly do to fix this problem?
Thanks a lot
Generally this would be the steps to try...
Reapply the The combo update for Intel-based Macs...
http://www.apple.com/support/downloads/macosx10411comboupdateintel.html
Repair Permissions before & after re-install, then reboot again each time.
If that doesn't work, An Archive & Install, which gives you a new OS, but can preserve all your files, pics, music, settings, etc., as long as you have plenty of free disk space...
http://docs.info.apple.com/article.html?artnum=107120
Be sure to use Preserve Users & Settings.
Lastly, if you have everything you need backed up, an Erase & Fresh Install.
Similar Messages
-
610 Car Kit connection problem, help please!
Hi, I have a 610 and have just switched from a Nokia 8800 to the new 6500 Classic.
The 6500 doesn't seem to want to connect first up and the always comes up with a message User 1 or User 2 not found.
It offers the 'reconnect' or 'assign SIM card' options but this means that I have to input the 16 digit code (although I have turned off the authorisation request!).
When it is connected it works perfectly!
Can anyone suggest a solution please?
Thanks
NigelHi,
I just talked directly to Nokia to be told that the 6500 Classic isn't compatible with the 610!
They said I was extremely fortunate that it worked at all!!
Anyway, now I need either to 'downgrade' the phone to one compatible with the 610 or invest in a CK-15W which is compatible with the 6500!
Well done Nokia for an excellent piece of marketing - forcing people to constantly upgrade their technology really endears the Nokia brand! -
My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!
Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?
-
My iphone 5 previously can connect to my Wifi at home, but now my phone can't connect to the Wifi even if it's in range , it appears ( unable to connect ) any help please ??
Try reseting network settings.
-
RFC Receiver adpater Connection problem , Help us to solve ?
Hi Friends ,
Our scenarilo is Mail to RFC. It was running fine. In RFC Receiver adapter i have given <b>Maximium connection property to 1</b> .
While multiple set data passed to rfc will connection problem will come ?
Most data not uploaded . I am getting the following error.
<b> If i set max connection to 5 . It is 5 times or more than that it is pusing the data .</b>
i am getting the following error <b>while i set the Max connection to 1 .</b> . <b>Any other place i need to change configuration ?</b>
<i><b> - Error: 2007-09-24 10:51:22 GMT-05:30: Message processed for interface YRFC_EXT_WARR: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[CC_EXTE_WAREN_2W_RFC_RECEIVER]e7fa21f86ec535e883636c0beffc0f0c is exhausted. The current pool size limit (max connections) is 1 connections.</b></i>
Please give the description . I have referred many likns . Help us to solve this problem .
Regards.,
V.Rangarajan<b></b>
Message was edited by:
ranga rajanHi,
Have a look at this.This will help you.
1.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2
2. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3103eb90-0201-0010-71af-be6f4a6f61d1
Regards,
Akshay Jamgaonkar.
Reward points if find useful.
Message was edited by:
Akshay Jamgaonkar -
SQL INSERT problem - help please
Hello,
I'm having a problem with INSERT statement.
There is a "ShowFinal.jsp" page, which is a list of candidates who selected from the second
interview. The user picked some candidates from the list and conduct the 3rd interview. After
he check suitable candidates(who are selected from the 3rd interview) from the list , enter
basic salary for every selected candidate, enter date of interview and finally submit the form.
These data should be save into these tables.
FinalSelect(nicNo,date)
EmpSalary(nicNo,basicSal)
In this "ShowFinal.jsp" page, it validates the following conditions using JavaScript.
1) If the user submit the form without checking at least one checkbox, then the system should be
display an alert message ("Please select at least one candidate").
2) If the user submit the form without entering the basic salary of that candidate which was
checked, then the system should be display an alert message ("Please enter basic salary").
These are working well. But my problem is how to wrote the "AddNewFinal.jsp" page to save these
data into the db.
Here is my code which I have wrote. But it points an error.
"AddNewFinal.jsp"
String interviewDate = request.getParameter("date");
String[] value = request.getParameterValues("ChkNicno");
String[] bs = request.getParameterValues("basicSal");
String sql ="INSERT INTO finalselect (nicNo,date) VALUES(?,?)";
String sql2 ="INSERT INTO EmpSalary (nicNo,basicSal) VALUES(?,?)";
for(int i=0; i < value.length; i++){
String temp = value;
for(int x=0; x < bs.length; x++){
String basic = bs[x];
pstmt2 = connection.prepareStatement(sql2);
pstmt2.setString(1, temp);
pstmt2.setString(2, basic);
int RowCount1= pstmt2.executeUpdate();
pstmt1 = connection.prepareStatement(sql);
pstmt1.setString(1, temp);
pstmt1.setString(2, interviewDate);
int RowCount= pstmt1.executeUpdate();
Here is the code for "ShowFinal.jsp".
<form name="ShowFinal" method="POST" action="AddNewFinal.jsp" onsubmit="return checkEmpty() &&
ValidateDate();">
<%-- Loop through the list and print each item --%>
<%
int iCounter = 0; //counter for incremental value
while (igroups.hasNext()) {
Selection s = (Selection) igroups.next();
iCounter+=1; //increment
%>
<tr>
<td style="background-color:ivory" noWrap width="20">
<input type="checkbox" name="<%= "ChkNicno" + iCounter %>"
value="<%=s.getNicno()%>"></td>
<td style="background-color:ivory" noWrap width="39">
<%= s.getNicno() %> </td>
<td style="background-color:ivory" noWrap width="174">
<input type="text" name="<%= "basicSal" + iCounter %>" size="10"> </td>
</tr>
<%
%>
Date of interview<input type="text" name="date" size="17"></td>
<input type="submit" value="APPROVE CANDIDATE" name="B1" style="border: 1px solid #0000FF">
</form>........................................................
Here is the error generated by TOMCAT.
root cause
java.lang.NullPointerException
at org.apache.jsp.AddNewFinal_jsp._jspService(AddNewFinal_jsp.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
I have goto the file "AddNewFinal_jsp.java". The line 70 points to the following line.
for(int i=0; i < value.length; i++){ [/b]
Please can someone help me to solve this problem? Please help me to do this task.
Thanks.Hi Casabianca ,
It is clearly that your problem is not on the database end, more like a servlet/jsp issue.
I will not comment on the javascript portion, but rather the 2 jsps.
a simple way to trace what's go wrong is to check the final result (the html code) of the first jsp (showFinal.jsp), and compare against what is expected by the 2nd jsp (AddNewFinal.jsp). Most browser do provide "view source" on the page visited.
the following code
<input type="checkbox" name="<%= "ChkNicno" + iCounter %>" value="<%=s.getNicno() %>">
<input type="text" name="<%= "basicSal" + iCounter %>"
would likely to be "translated" to html code something as follow:
<input type="checkbox" name=""ChkNicno0" value="nicNo>">
<input type="text" name="basicSal0">
the original code in "AddNewFinal.jsp" using
request.getParameterValues("ChkNicno");
which looking for a none exist http request parameter (sent as "ChkNicno0",etc but look for "ChkNicno"), which has explained before.
the second attempt to use String[] value = request.getParameterValues("ChkNicno" + iCounter); give Cannot resolove symbol :iCounter. because iCounter never defined in the 2nd jsp!
Most of the error message do give clue to cause of error... : )
not too sure on your intension, assume you wish to update only those selected (checked) row to db.
some suggestions:
1) <input type="text" name="ChkNicno" size="10"> </td>...
<input type="text" name="basicSal" size="10"> instead.
then use javascript to based on checked element index (refer to javascript spec for more details), for those index not checked, clear off the correspond index "basicSal" field value.
e.g. ChkNicno[1] is not checked, empty basicSal[1] value before submission.
This will give us only selected rows values.
2) retain the code
String[] value = request.getParameterValues("ChkNicno");
String[] bs = request.getParameterValues("basicSal");at 2nd jsp, as now the http request will pass parameters using "ChkNicno" and "basicSal".
3) some change to the code for optimization
for(int i=0; i < value.length; i++){
String temp = value;
for(int x=0; x < bs.length; x++){
String basic = bs[x];
pstmt2 = connection.prepareStatement(sql2);
pstmt2.setString(1, temp);
pstmt2.setString(2, basic);
int RowCount1= pstmt2.executeUpdate();
pstmt1 = connection.prepareStatement(sql);
pstmt1.setString(1, temp);
pstmt1.setString(2, interviewDate);
int RowCount= pstmt1.executeUpdate();
to
pstmt1 = connection.prepareStatement(sql);
pstmt2 = connection.prepareStatement(sql2);
for(int i=0; i < value.length; i++){
String temp = value;
for(int x=0; x < bs.length; x++){
String basic = bs[x];
pstmt2.setString(1, temp);
pstmt2.setString(2, basic);
int RowCount1= pstmt2.executeUpdate();
pstmt1.setString(1, temp);
pstmt1.setString(2, interviewDate);
int RowCount= pstmt1.executeUpdate();
preparestatement created once should be sufficient as we do not change the sql statement throughout the loop.
there are better solutions out there, this just some ideas and suggestions.Do try out if you wish.
Hope it helps. : ) -
Connected to Talk Talk wi-fi with full signal but not connecting to internet, then my connection to wi-fi goes and I try to connect again which it does but still can't load to internet, help please
Some things to try first:
1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
4. Go into your router security settings and change from WEP to WPA with AES.
5. Renew IP Address: (especially if you are droping internet connection)
• Launch Settings app
• Tap on Wi-Fi
• Tap on the blue arrow of the Wi-Fi network that you connect to from the list
• In the window that opens, tap on the Renew Lease button
~~~~~~~~~~~~~~~~~~~~~~~~~
iOS 6 Wifi Problems/Fixes
Fix For iOS 6 WiFi Problems?
http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
iOS 6 iPad 3 wi-fi "connection fix" for netgear router
http://www.youtube.com/watch?v=XsWS4ha-dn0
Apple's iOS 6 Wi-Fi problems
http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
~~~~~~~~~~~~~~~~~~~~~~~
Look at iOS Troubleshooting Wi-Fi networks and connections http://support.apple.com/kb/TS1398
iPad: Issues connecting to Wi-Fi networks http://support.apple.com/kb/ts3304
WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
How to Fix: My iPad Won't Connect to WiFi
http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
iOS: Recommended settings for Wi-Fi routers and access points http://support.apple.com/kb/HT4199
How to Quickly Fix iPad 3 Wi-Fi Reception Problems
http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
iPad Wi-Fi Problems: Comprehensive List of Fixes
http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
Fix iPad Wifi Connection and Signal Issues http://www.youtube.com/watch?v=uwWtIG5jUxE
Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
Unable to Connect After iOS Update - saw this solution on another post.
https://discussions.apple.com/thread/4010130
Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
~~~~~~~~~~~~~~~
If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
Cheers, Tom -
K8N Neo2-fx Ram problem Help please
I have three ram(2x512MB single sided , 1x1GB double sided). Is there any way I can put them all on the motherboard? When I place them all the computer is not starting and it`s making a "beep" every 2-3 seconds. If i connect the 1GB double sided on the Dimm1(green) and the one 512MB single sided on the Dimm3(green) it`s working properly. Is there any way I can use all my ram at the same time. I`m desperate. Help please... thank you
Quote from: wodahS on 09-November-06, 05:55:17
How can I put my computer facts under any post I am posting? I should make it my signature?
That's the rule mate which you need to gives all your component in details including your PSU and Bios revision so that others can help you! Like what BOSSKILLER say it won't works with 3 DIMMS unless you purhased another 1 GB of RAM then it can solve your problem with 4 DIMMS or else with 2*512MB RAM. Make sure that you've lowered your HT to <=800Mhz as default is 1000Mhz. GD luck. -
VIRUS PROBLEMS, HELP PLEASE???
I continue to have messages popping up saying my computer is infected. It wants me to cleanup and I have to register with Mac Shield 2.6. Pronograhic websites keep popping up. Anyone having this problem? Did not have this problem yesterday, but it's here today! There is also a Red Sheild on the top of the toolbar where it shows the time, battery life, etc. Right clicking on the sheild drops down Scan Now, Cleanup, Control Center, Scan, System Info, Settings, About, and Register. A pron site just popped up again! Need help Please!!
Fuony wrote:
The Mac Shield malware can come through Firefox too if you allow it to and you click on it!
Your exactly right, it is possible that if you visit a site and need the scripts to run for something that the malware that uses Javascript is on that site, then your going to be presented with it.
The thing is with the Firefox + NoScript combination defeats alot of the web side trickery the malware authors are using to get the malware to appear in the first place.
Also this "MacDefender" isn't the only malware making the rounds. There are some serious Flash vulnerabilities being hosted on hostile/adult websites that are running scripts for no apparent reason other than to try to infect your machine.
By running all scripts all the time, your computer is in a state as if you tried running across a busy highway blindfolded.
As a lifelong "MacHead" I can understand Apple loyalty, but if Apple isn't cutting the mustard on their browser security, rather place their users security at serious risk for the sake of convenience, then I have to think about using and recommending to others something else that is more secure.
As a example, I surf thousands of web pages a day, some on really nasty sites, yet I haven't seen this "MacDefender" appear on my computer. Even when I purposely visited links that people have submitted that had the malware. (I maintain a couple of bootable clones of my boot drive just in case) -
ICloud problems help please!
I have an iPhone 6 and during the setup I must have did something wrong and now I have my old iCloud account on it that I no longer remember the password, security questions, and no longer have the email address to that account. I think I was hacked and my password and security questions changed. I want to log out of iCloud and start using my current iCloud account. I know these are security measures, but how can I get logged out??? My iPhone is having problems since the latest update and now I can't make a call or text. I can't call apple support without a working number HELP Please.
Hello shelbyrecords,
Oh no! That sounds really frustrating. Unfortunately, if iCloud Find my iPhone Activation Lock is enabled on the device we’ll need to gain access to your previous Apple ID account to disable it. Based on the information you have provided, it sounds like you may need a personalized support experience to recover your previous Apple ID:
If you forgot your Apple ID password - Apple Support
http://support.apple.com/en-us/HT201487
Make sure that you’re entering the correct Apple ID. In most cases, your Apple ID is also the primary email address of your Apple ID account. If these steps didn't help you change your password, contact Apple Support.
Thanks,
Matt M. -
Soundtrack problems - help please
Help please. I tried doing a send to multi-track project from FCP with the base layer video option and kept getting the 'error sending selection to Soundtrack Pro' message. I did a search and the suggestion is that I have no disk space but I have over 600GB!
Then I tried a send with the full video and the file saved okay. However when I try to open the .stmp file, Soundtrack Pro starts and then freezes. I've tried opening in various ways.
Help please, I just cannot figure this out! What am I doing wrong?Not sure how much help this is, but since you're having problems with the layout, did you try deleting the layout file? MacintoshHD/users/username/Library/Application Support/Soundtrack Pro/Layouts
BTW, I found a BKiLifeConfiguration.plist in the following path:
MacintoshHD > Library > Application Support > ProApps > Internal Plug-ins > BrowserKit > iLife.bkplugin > Contents > Resources
Do you find it there? -
T60 -- Bad Wireless connection​. Help please!
Hi Guys, my T60 has unstable wireless connection problem. I make sure the radio is "ON". It gets connected to the DSL network but it gets disconnected on and off ( the radio turns off by itself sometimes). Something wrong with my Intel PRO Wireless driver 3945abg? Can anyone guide me how to fix the problem??
Thank you!!
-meLittlebeeHi there,
I'm having the exact same problem - installed the OS (Windows XP Pro) adding SP3 and updating all drivers.
Then I connect to the wireless whitout any problems. I go to sleep, and next day wireless don't work!
The Machine is a T60 2008-WGV. I have made a image of the clean disk with Clonezilla, and therefore I can restore the OS quickly to a working wireless, but I find it quite anoing to have a clean OS every morning, in order to use network.
anyone please?
Message Edited by denbert on 05-03-2009 09:47 AM -
Multiselect problem Help please!!
Hi all,
I am currently using Application Express 3.1.2.00.02 I have developed an online questionnaire with a multiselect list for one of the questions. The problem i am having is that i need each choice to be totaled up separately on the report generated.
My table of answers looks like this:
Column name e.g. (Question 9)
Answer "Dog" "Cat" "Mouse" "Snake" (underneath column name Question 9 depending on what is selected).
The reporting page would look like below:
*(Column Question 9)* Count
Dog 1
Mouse 1
Snake 1
and for the question you could have another respondent who chooses similar of items on the multiselect, so their answer looks like this:
Answer
"Question 9" Dog
"Question 9" Snake
This would then start a new row on the reporting page like below which is not what i want:
*(Column Question 9)* Count
Dog 1
Mouse 1
Snake 1
Dog: Snake 1
But the report should look like this:
*(Column Question 9)* Count
Dog 2
Mouse 1
Snake 2
The current SQLquery i am using is below:
select "QUESTION 9",
count(*) c
from "P1 DQUESTIONNAIRE"
group by "QUESTION 9"
Thanks for your help and suggestions,
'S'How to make sure your forum post will never be answered:
1) Make sure your subject line is completely meaningless (i.e. HELP PLEASE!) and describes no part of your actual problem
2) State that you are having "a few problems" but make sure to offer no details whatsoever what those problems are or what the symptoms are.
3) Post large volumes of code instead of distilling the problem down to a compact snippet
4) For extra points, make the code hard to read by refusing to make use of the "code" tag. -
Mildet connect to oracle DB using servlet problem ,help please
hi guys i have a problem am tring to connect my midlet to databse through midlet but i don`t know what is the problem so far the midlet already connect to my servlet url but the servlet cant read the parameters to open the connection for database
my servlet code
* To change this template, choose Tools | Templates
* and open the template in the editor.
import java.io.*;
import java.net.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.text.*;
* @author freddy
public class getconnection extends HttpServlet {
Statement statement;
ResultSet rs=null;
String bstr=null;
String bstr1=null;
String bstr2=null;
public void init()
* Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
/* TODO output your page here
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet getConnection</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet getConnection at " + request.getContextPath () + "</h1>");
out.println("</body>");
out.println("</html>");
} finally {
out.close();
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
* Handles the HTTP <code>GET</code> method.
* @param request servlet request
* @param response servlet response
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
doPost(request,response);
* Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
DataInputStream in = new DataInputStream(
(InputStream)request.getInputStream());
String sid = in.readUTF();
String user = in.readUTF();
String pwd = in.readUTF();
// "jdbc:oracle:thin:@localhost:1521"+": "+sid
String message = message = "Name:"+bstr+" telephone:"+bstr1+" burthday:"+bstr2;
try {
connect(sid,user, pwd);
message += "100 ok connected";
} catch (Throwable t) {
message += "200 " + t.toString();
response.setContentType("text/plain");
response.setContentLength(message.length());
PrintWriter out = response.getWriter();
out.println(message);
in.close();
out.close();
out.flush();
private void connect(String sid, String user,String pwd)
throws Exception {
// Establish a JDBC connection to the MYSQL database server.
//Class.forName("org.gjt.mm.mysql.Driver");
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:"+sid,user,pwd);
System.out.print("connected");
try{
statement =conn.createStatement();
rs=statement.executeQuery(" Select*from WOH.P_DEMGRAPHICS where P_ID='P1000 '");
catch(SQLException e)
System.err.print(e);
try{
while (rs.next()) {
bstr=rs.getString(2);
bstr1=rs.getString(3);
bstr2=rs.getString(4);
statement.close();
catch (SQLException e) {
//bstr += e.toString();
System.err.println(e);
System.exit(1);
// Establish a JDBC connection to the Oracle database server.
//DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
//Connection conn = DriverManager.getConnection(
// "jdbc:oracle:thin:@localhost:1521:"+db,user,pwd);
// Establish a JDBC connection to the SQL database server.
//Class.forName("net.sourceforge.jtds.jdbc.Driver");
//Connection conn = DriverManager.getConnection(
// "jdbc:jtds:sqlserver://localhost:1433/"+db,user,pwd);
* Returns a short description of the servlet.
public String getServletInfo() {
return "Short description";
// </editor-fold>
}Midlet code
* To change this template, choose Tools | Templates
* and open the template in the editor.
import java.io.*;
import java.util.*;
import javax.microedition.io.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
* @author freddy
public class testOrcl extends MIDlet implements CommandListener {
protected String url;
private String username;
private Display display;
private Command exit = new Command("EXIT", Command.EXIT, 1);;
private Command connect = new Command("Connect", Command.SCREEN, 1);
private TextField tb;
private Form menu;
private TextField tb1;
private TextField tb2;
DB db;
public testOrcl() throws Exception
display=Display.getDisplay(this);
url="http://localhost:8084/getConnection/getconnection";
public void startApp() {
displayMenu();
public void displayMenu()
menu= new Form("connect");
tb = new TextField("Please input database: ","",30,
TextField.ANY );
tb1 = new TextField("Please input username: ","",30,
TextField.ANY);
tb2 = new TextField("Please input password: ","",30,
TextField.PASSWORD);
menu.append(tb);
menu.append(tb1);
menu.append(tb2);
menu.addCommand(exit);
menu.addCommand(connect);
menu.setCommandListener(this);
display.setCurrent(menu);
public void pauseApp() {
public void destroyApp(boolean unconditional) { }
public void commandAction(Command command, Displayable screen) {
if (command == exit) {
destroyApp(false);
notifyDestroyed();
} else if (command == connect) {
db = new DB(this);
db.start();
db.connectDb(tb.getString(),tb1.getString(),tb2.getString());
* To change this template, choose Tools | Templates
* and open the template in the editor.
import java.io.*;
import java.util.*;
import javax.microedition.io.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.lang.*;
* @author freddy
public class DB implements Runnable {
testOrcl midlet;
private Display display;
String sid;
String user;
String pwd;
public DB( testOrcl midlet)
this.midlet=midlet;
display=Display.getDisplay(midlet);
public void start()
Thread t = new Thread(this);
t.start();
public void run()
StringBuffer sb = new StringBuffer();
try {
HttpConnection c = (HttpConnection) Connector.open(midlet.url);
c.setRequestProperty(
"User-Agent","Profile/MIDP-2.1, Configuration/CLDC-1.1");
c.setRequestProperty("Content-Language","en-US");
c.setRequestMethod(HttpConnection.POST);
DataOutputStream os =
(DataOutputStream)c.openDataOutputStream();
os.writeUTF(sid.trim());
os.writeUTF(user.trim());
os.writeUTF(pwd.trim());
os.flush();
os.close();
// Get the response from the servlet page.
DataInputStream is =(DataInputStream)c.openDataInputStream();
//is = c.openInputStream();
int ch;
sb = new StringBuffer();
while ((ch = is.read()) != -1) {
sb.append((char)ch);
showAlert(sb.toString());
is.close();
c.close();
} catch (Exception e) {
showAlert(e.getMessage());
/* This method takes input from user like db,user and pwd and pass
to servlet */
public void connectDb(String sid,String user,String pwd) {
this.sid = sid;
this.user = user;
this.pwd = pwd;
/* Display Error On screen*/
private void showAlert(String err) {
Alert a = new Alert("");
a.setString(err);
a.setTimeout(Alert.FOREVER);
display.setCurrent(a);
Comment out process request or rewrite & move it to a position after you read the parameters and connect to the db. Decide where you want to write to the output stream. Also, you have some superfluous casting.
I take it that you are using netbeans? If you debug and step through the code you will get an idea of the flow. The steps should be, midlet connects with POST, doPost is called, server reads parameters, server opens connection, executes query, releases/closes connection, and writes a response to the midlet.
Some notes about the connect method; The scope of rs may cause problems. It is unlike you will have a valid result set if you have a problem with create statement or execute. Take a look at connection pooling and be mindful how the connections are opened, used, and closed; put all the important cleanup operations in a finally. Remove system.exit from your servlet. Actually I would suggest limiting the scope of all your vars;
If you store the username, password, and sid on the midlet, you may have trouble updating the installation base if you need to change the values for any reason. Also, you have clients which contain your database u/p, susceptible to snooping and decompilation. Use the servlet to abstract the db from the client. And use a datasource (with connection pooling) for obtaining connections to db. -
(Lost in space) Connection to BOXI problem help please.
Hi
I'm new to this, I'm getting the following error in my jce_default.log file, can any one shed some light on this problem for me please:
<log4j:event logger="com.crystaldecisions.sdk.framework.LocaleHelper" timestamp="1295545348425" level="ERROR" thread="http-8443-Processor25">
<log4j:message><![CDATA[LanguagePacks.xml not found:C:\Program Files\Business Objects\LanguagePacks.xml]]></log4j:message>
<log4j:throwable><![CDATA[java.io.FileNotFoundException
at com.businessobjects.foundation.language.LocaleHelper.getInstalledLocales(LocaleHelper.java:127)
at com.businessobjects.foundation.language.LangMgr.getInstalledLocales(LangMgr.java:39)
at com.businessobjects.foundation.exception.ExceptionWorker.getSupportedLanguages(ExceptionWorker.java:356)
at com.businessobjects.foundation.exception.ExceptionWorker.getErrorMessages(ExceptionWorker.java:299)
at com.businessobjects.foundation.exception.ExceptionWorker.<init>(ExceptionWorker.java:132)
at com.businessobjects.foundation.exception.CheckedException.<init>(CheckedException.java:50)
at com.crystaldecisions.celib.exception.CEException.<init>(CEException.java:92)
at com.crystaldecisions.celib.exception.CEException.<init>(CEException.java:122)
at com.crystaldecisions.celib.exception.AbstractException.<init>(AbstractException.java:109)
at com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException.<init>(OCAFrameworkException.java:103)
at com.crystaldecisions.enterprise.ocaframework.OCAFrameworkException$NotFoundInDirectory.<init>(OCAFrameworkException.java:133)
at com.crystaldecisions.enterprise.ocaframework.RawSocketDirectory.find(RawSocketDirectory.java:205)
at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildBootstrapAPSInfo(APSServerHandler.java:445)
at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildAPSClusterInfo(APSServerHandler.java:881)
at com.crystaldecisions.enterprise.ocaframework.APSServerHandler.buildServerInfo(APSServerHandler.java:359)
at com.crystaldecisions.enterprise.ocaframework.ServerController.redirectServer(ServerController.java:549)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.redirectServer(ServiceMgr.java:1094)
at com.crystaldecisions.enterprise.ocaframework.ManagedSessions.get(ManagedSessions.java:256)
at com.crystaldecisions.enterprise.ocaframework.ServiceMgr.getManagedService(ServiceMgr.java:697)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:507)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:654)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:295)
at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:162)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:425)
at com.acuma.boxi.LogonManager.logon(Unknown Source)
at com.acuma.boxi.LogonManager.logon(Unknown Source)
at com.acuma.boxi.LogonManager.logon(Unknown Source)
at bham.birms.boxi.integration.BirmsBoxiIntegration.createToken(BirmsBoxiIntegration.java:168)
at uk.ac.bham.boxi.authenticator.BOXIAuthenticatorServlet.getBOXIToken(BOXIAuthenticatorServlet.java:137)
at uk.ac.bham.boxi.authenticator.BOXIAuthenticatorServlet.doGet(BOXIAuthenticatorServlet.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
]]></log4j:throwable>
</log4j:event>
<log4j:event logger="com.crystaldecisions.sdk.framework.LocaleHelper" timestamp="1295545348425" level="ERROR" thread="http-8443-Processor25">
<log4j:message><![CDATA[LanguagePacks.xml not found:C:\Program Files\Business Objects\LanguagePacks.xml]]></log4j:message>
<log4j:throwable><![CDATA[java.io.FileNotFoundException
at com.businessobjects.foundation.language.LocaleHelper.getInstalledLocales(LocaleHelper.java:127)
at com.businessobjects.foundation.language.LangMgr.getInstalledLocales(LangMgr.java:39)
at com.businessobjects.foundation.exception.ExceptionWorker.getSupportedLanguages(ExceptionWorker.java:356)
at com.businessobjects.foundation.exception.ExceptionWorker.getErrorMessages(ExceptionWorker.java:299)
at com.businessobjects.foundation.exception.ExceptionWorker.<init>(ExceptionWorker.java:132)
at com.businessobjects.foundation.exception.CheckedException.<init>(CheckedException.java:50)
at com.crystaldecisions.celib.exception.CEException.<init>(CEException.java:92)
at com.crystaldecisions.celib.exception.AbstractException.<init>(AbstractException.java:83)
at com.crystaldecisions.sdk.exception.SDKException.<init>(SDKException.java:152)
at com.crystaldecisions.sdk.exception.SDKException$OCAFramework.<init>(SDKException.java:246)
at com.crystaldecisions.sdk.exception.SDKException.map(SDKException.java:214)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.ensureServiceStub(LogonService.java:550)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.doUserLogon(LogonService.java:654)
at com.crystaldecisions.sdk.occa.security.internal.LogonService.userLogon(LogonService.java:295)
at com.crystaldecisions.sdk.occa.security.internal.SecurityMgr.userLogon(SecurityMgr.java:162)
at com.crystaldecisions.sdk.framework.internal.SessionMgr.logon(SessionMgr.java:425)
at com.acuma.boxi.LogonManager.logon(Unknown Source)
at com.acuma.boxi.LogonManager.logon(Unknown Source)
at com.acuma.boxi.LogonManager.logon(Unknown Source)
at bham.birms.boxi.integration.BirmsBoxiIntegration.createToken(BirmsBoxiIntegration.java:168)
at uk.ac.bham.boxi.authenticator.BOXIAuthenticatorServlet.getBOXIToken(BOXIAuthenticatorServlet.java:137)
at uk.ac.bham.boxi.authenticator.BOXIAuthenticatorServlet.doGet(BOXIAuthenticatorServlet.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
]]></log4j:throwable>
</log4j:event>
<log4j:event logger="com.crystaldecisions.sdk.occa.security.internal.LogonService" timestamp="1295545348425" level="ERROR" thread="http-8443-Processor25">
<log4j:message><![CDATA[Server corp64.bham.ac.uk not found or server may be down (FWM 01003) Connection timed out: connect]]></log4j:message>
</log4j:event>
<log4j:event logger="com.crystaldecisions.sdk.occa.security.internal.LogonService" timestamp="1295545348425" level="ERROR" thread="http-8443-Processor25">
<log4j:message><![CDATA[Is the CMS alive? Ensure the CMS supports SDK version 1200]]></log4j:message>
</log4j:event>Not without more info.
Steps to reproduce would be a great start.
And specific versions of Cr and maybe BOE is you are using that too.
And what is jce_default.log?
Thank you
Don
Maybe you are looking for
-
My MacBook Pro is running slow and...
...while the Network appears to be connected, I cannot load any web applications. HELP! Here's what I've tried so far. I have reset the router and my AirPort Extreme. And by the way, my iPhone has had a WIFI connect with my network throughout the
-
Hi, Can I get good documentation links regarding Oracle Sessions. I searched in Internet and found some, but cant able to understand them quite well. Thanks Edited by: user10679113 on Jan 5, 2009 2:37 PM
-
Software for backup of external disk
I have the latest MacBook Pro Retina 15 with 16gb of RAM but am having problems with one of my external HDDs (1TB LaCie Rugged USB 3.0/2.0). I was using 500GB for Time Machine and that seemed to be working well but when trying to write to the other
-
Oject List Data Provider is not working
I am having trouble using an Object List Data Provider. The Field Guide books says when I drop an Object List Data Provider, then select the list property, to bind it to a list, there is suppose to be an edit box to the right of the property that lau
-
I bought a new I-Mac and tried to migrate the I-Web sites from the old one to the new. I copied them in exactly the same folders but don't appear. What can I do? thanks in advance for help uli