[Q] Help me - Java for Android App Development

I am getting this error to connect sql database in eclipse
Exception in thread "main" com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost/1433, port 1433 has failed. Error: "null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)
at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:241)
at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2243)
at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:491)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1309)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at jdbc.Main.main(Main.java:13)

do you have your firewall open on your server to allow the connection? That is what the error is talking about.

Related

How do I access network resources from Pocket File Explorer?

I have recently purchased a MobilDox Ethernet-Serial adapter to allow me to connect my XDA to a network.
When I enter the path to open in file explorer (\\pcname\C$) I get the message;
"Network resource cannot be found or you do not have permission to access the network"
I have a 'hosts' entry in the registry for my PC's name. I can successfully ping the XDA from my PC and PC from the XDA, I can even use VNC to remote control the PC.
I would normally expect to have to supply a userid/password to access the resource and suspect this may be the problem, but don't know how to supply the credentials.
Can anyone help???

pls help remote access error 734

i trying to use xda 2 as a modem for gprs on laptop.
i am using usbmodem dialer.exe and i had this error
remote access error 734
pls help thanks
Remote Access Auto Connection Manager
Are you on Windows XP?
make sure your modem driver installed correctly and the property of Dialer was right (user, etc)
Check your XP service.
Right click My Computer --> Manage.
Take a look 'service' under 'service and application'
Find 'Remote Access Auto Connection Manager' and 'Remote Access Connection Manager'. Start both of those service, change their property to Automatic if necessary so they'll loaded on windows start up.
Does it fix your problem?

[Q] DDMS - device disappears after ~10s until adb is reset

Hi,
I've got adb all setup properly and working, but for the first time today I was trying DDMS. It has my DHD there for a few seconds (anywhere from 2-10), then it disappears from the list until I choose "Actions>Reset ADB". Here's the cmd window of DDMS:
04:06:11 E/adb:
04:06:11 E/adb: This application has requested the Runtime to terminate it in an
unusual way.
04:06:11 E/adb: Please contact the application's support team for more informati
on.
04:06:16 W/DeviceMonitor: Failed to connect to client '2807': timeout
04:06:17 E/DDMS: An existing connection was forcibly closed by the remote host
java.io.IOException: An existing connection was forcibly closed by the remote ho
st
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at com.android.ddmlib.AdbHelper.read(AdbHelper.java:640)
at com.android.ddmlib.AdbHelper.read(AdbHelper.java:616)
at com.android.ddmlib.AdbHelper.readAdbResponse(AdbHelper.java:216)
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:734)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:276)
at com.android.ddmuilib.SysinfoPanel.loadFromDevice(SysinfoPanel.java:15
9)
at com.android.ddmuilib.SysinfoPanel.deviceSelected(SysinfoPanel.java:12
6)
at com.android.ddmuilib.SelectionDependentPanel.deviceSelected(Selection
DependentPanel.java:52)
at com.android.ddms.UIThread.selectionChanged(UIThread.java:1684)
at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:752
)
at com.android.ddmuilib.DevicePanel.notifyListeners(DevicePanel.java:740
)
at com.android.ddmuilib.DevicePanel.access$1100(DevicePanel.java:56)
at com.android.ddmuilib.DevicePanel$1.widgetSelected(DevicePanel.java:35
7)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at com.android.ddms.UIThread.runUI(UIThread.java:492)
at com.android.ddms.Main.main(Main.java:103)
04:06:17 E/DeviceMonitor: Adb connection Error:An existing connection was forcib
ly closed by the remote host
04:06:17 W/DeviceMonitor: Failed to connect to client '2840': An existing connec
tion was forcibly closed by the remote host
04:06:19 E/DeviceMonitor: Connection attempts: 1
04:06:19 E/Logcat: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:367)
at com.android.ddmlib.Device.executeShellCommand(Device.java:284)
at com.android.ddmuilib.logcat.LogPanel$3.run(LogPanel.java:527)
04:06:19 W/DeviceMonitor: Failed to connect to client '2906': Connection refused
: connect
04:06:20 W/DeviceMonitor: Failed to connect to client '2938': Connection refused
: connect
04:06:20 E/EventLog: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at java.nio.channels.SocketChannel.open(Unknown Source)
at com.android.ddmlib.AdbHelper.runLogService(AdbHelper.java:464)
at com.android.ddmlib.AdbHelper.runEventLogService(AdbHelper.java:445)
at com.android.ddmlib.Device.runEventLogService(Device.java:290)
at com.android.ddmuilib.log.event.EventLogPanel$8.run(EventLogPanel.java
:454)
04:06:21 E/DeviceMonitor: Connection attempts: 2
04:06:21 W/DeviceMonitor: Failed to connect to client '3047': Connection refused
: connect
04:06:22 W/DeviceMonitor: Failed to connect to client '3078': Connection refused
: connect
04:06:23 E/DeviceMonitor: Connection attempts: 3
04:06:25 E/DeviceMonitor: Connection attempts: 4
04:06:27 E/DeviceMonitor: Connection attempts: 5
04:06:32 E/DeviceMonitor: Connection attempts: 6
04:06:34 E/DeviceMonitor: Connection attempts: 7
04:06:38 E/DeviceMonitor: Connection attempts: 8
04:06:40 E/DeviceMonitor: Connection attempts: 9
04:06:42 E/DeviceMonitor: Connection attempts: 10
04:06:44 E/DeviceMonitor: Connection attempts: 11
Any ideas are appreciated
Any ideas?
Please guys?
Code:
http://code.google.com/p/android/issues/detail?id=12141
replace your adb.exe with the one posted in the link.
Thank you so much But for some reason the parts under emulation tab are greyed out? Can I not send a mock location/call/sms to my physical DHD?
have you enabled allow mock locations on your device? settings->applications->developement-> Allow mock locations
Yep, mock locations is selected, and usb debugging is also :/
i think you can't simulate call/sms when ddms is connected to a device. i think it's only for the emulator. According to the documentation If your application depends on the location of the phone, you can have DDMS send your device or AVD a mock location
Check this two links.
http://developer.android.com/guide/developing/debugging/ddms.html
http://developer.android.com/guide/topics/location/obtaining-user-location.html#MockData
Ah fair enough, I thought it was fine for a physical device too. Thanks for all your help

[Q] OpenVPN on Andriod

Hello all. I am trying to get OpenVPN working on my rooted Asus Transformer Prime. I have the OpenVPN server setup on Ubuntu. I am trying both OpenVPN Settings and OpenVPN for Android. Both of them say they connect to my server, but my IP never changes. Can someone help me troubleshoot this?
I get these messages from OpenVPN for Andriod:
OpenVPN needs a gateway parameter for a --route-ipv6 option and no default was specified by either --router-ipv6-gateway or --ifconfig-ipv6 options
failed to parse/resolve rout for host/network: ::/0

[Q] PPPOE connection error- plz help!

Hi.
I have Lenovo A2107A-H with android 4.0.3 and i rooted this tablet.
I download several PPPoE apk and install them.
But they can not connect pppoe ADSL.
for exam the software: PPPoE for Android show me this errors:
couldn't set tty to ppp discipline: invalid argument
pppoe: read (asyncReadFromppp): Session 2280: input/output error
pppoe: read (asyncReadFromppp): Session 2326 : input/output error
therefore i can not use pppoe internet connection.
please help and show a solution.
Thanks

Categories

Resources