Swing app can't connect to DB outside jDev

I am using jDeveloper 11.1.1.3 and have create a simple swing app with a Model and View project that connects to DB. Everything runs fine inside the IDE but when i try to execute the program outside of jDeveloper i get a null password error when it tries to access my DB. I have created the connection in application resources and have checked the 'Save Password' option. I am executing the command from a .bat file, the same command jDev uses to launch the main form inside the IDE. The form displays and the buttons work but it will not connect.
I tried to enter the password in the connections.xml file but the main form will not load if i do this.
What am i missing here?
Thanks a lot.
Edited by: user10378872 on Feb 17, 2011 8:03 AM
Edited by: user10378872 on Feb 17, 2011 8:03 AM
Edited by: user10378872 on Feb 17, 2011 8:06 AM

Hello !!
He tenido problemas con PERSISTENCIA en NETBEANS 6.1 cuando trabajo en modo grafico. (Your same problem ! ).
Hoy por fin lo pude solucionar. La solucion:
En la clase principal que contine el metodo MAIN, en mi caso ContaApp.java busque el metodo " public static void main(String[] args) "
en este metodo metodo se lanza la aplicacion en la linea:
ESTAS 2 LINEAS SE DEBEN COLOCAR ANTES DE LANZA EL METODO launch( INDICADO MAS ABAJO.
// This is the solution !!!
EntityManagerFactory emf = Persistence.createEntityManagerFactory("contabilidad");
EntityManager em = emf.createEntityManager();
// solution end
// este es el metodo que se lanza autmaticamente (class method)
launch(ContaDianApp.class, args);
Y ESO ES TODO. TU PUEDES COLOCAR TU CONEXION NORMAL EN CUALQUIER PARTE DE TU CODIGO. ES IMPORTANTE VOLVER A INSTANCIAR LA PERSISTENCIA EN TU CODIGO. ES DECIR, QUE MAS ADELANTE NECESITAS VOLVER A COLOCAR:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("contabilidad"); // contabilidad en mi caso, tu lo debes cambiar.
EntityManager em = emf.createEntityManager();
Cualquier inquietud te puedes comunicar conmigo al email: [email protected]
saludos,
Luis Carlos

Similar Messages

  • Messages app can't connect

    Hi,
    I can't connect to my iMessage account with the Messages application from my Mac ( 10.8.5)
    I am retyping my user/password - which works for my other Apple services ( iCloud, iTunes store,...) but the Messages app can't connect.
    Also, the FaceTime application can't connect either.
    Thanks,

        for the       Points.
    8:00 pm      Wednesday; April 23, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Nokia 2730classic app can't connect to internet

    Hi, I'm trying to use the E-mail application of my phone (Nokia 2730 classic) but when I try to connect it says "Comunication Error", I've tried with the Opera mini browser and the native web browser and definitely there is a internet connection available, but when I try with other apps (with the appropiate permissions) there's errors everywhere, "can't connect" "Comunication Error" etc etc etc, does anybody know something about it ? thanks for reading

    I have the same problem on pc in the office. I uninstalled and installed the old ovi suite 2, but it dosn`t work. When You connect Your phone it will do, but connect to Your Ovi account through the telefone. I havn`t got any answer until today.
    I use Nokia 5230, want to connect to my Ovi account also, when the phone isnt connected to the pc. I hope, we will got a resolution.
    By installing the old Ovi suite there are only problems with winxp, it dosn`t work really. Thank everyone for help or answer. philipp

  • Can't connect to mail outside of the company

    Hi!
    I have a company email adress which i can easily configure in Windows, Android, iPhone, iPad you name it!
    Except when i configure it on my mac with the Mail app it only connects to the Mail server when i'm using the company's wireless network (same where the physical server is). When i use my broadband connection i simply can't receive email as the Mail app keeps asking for my password...
    I can't connect fine using my iPhone and iPad so i have the right configurations (i double tripple checked!!!).
    I can access to the web interface (it's an Exchange server) and the adress for the web interface is the same i have to configure in the Mail app settings.
    I ran out of ideas.
    Anyone has a clue what i might be missing?

    I believe it's the second guess but, as they have blocked it, I'm not sure how much it matters which.

  • Apple TV apps can't connect to the internet

    So my Apple TV is connected to the internet (Movies, TV shows, Airplay, etc. all work), but 3rd party apps like netflix, hulu plus, and WSJ can't connect. They get to various stages of logging in, but then go to a black screen saying something like "Accessing <app name>", and hang there as long as I let it.
    Any ideas?
    BTW, the ATV is connected via ethernet, if that is a factor at all.

    As backwards and dumb as I know this sounds try using a WiFi connection.  There is an odd bug after the last two updates that can cause eithernet connection problems with some network setups.

  • Apps can't connect to the internet

    hi, no matter which net my phone is connected to (3g, home network, school network) the apps show that they can't connect to the internet. the browser works perfectly.

    nevermind, found out why.. apparently the iphone does not like being set back two years..

  • Nokia 2700 java apps can't connect to internet ( g...

    java apps like opera mini , ebuddy what want internet connection to work can't connect to internet in my nokia 2700 ! pls can anyone help me ??

    Alert types yes Customization Download MP3, Video Ringtones, Video, Type Polyphonic, MP3, video tones Vibration Yes Java MIDP 2.0- 3.5mm AV jack- MP3/MPEG4 player
     i hope you like these features Nokia 2700 Classic because this mobile are very nice.

  • Issue with Twitter app - "Can't connect to Twitter...

    Hi everyone,
    I've got some trouble with the native Twitter app on my Nokia N9. The first time I turned on the phone, I was able to connect to some of my accounts (Gmail, Mail for Exchange, Facebook,..) and, native Twitter app too. No problem with this one.
    But - and i don't know why i did this -, I deleted my Twitter account and then tried an other one (Twimgo. Really bad one imho, btw). But when i decided to come back to the native app, i've not been able to connect to Twitter : when i launch the app, the first thing i see is "unable to load trending topic", then when i try to connect "sorry, can't connect to Twitter".
    I've got - of course - a good Wifi connection and i'm sure about my ID & password. I tried to reset the phone but nothing changed. And, as suggested here, i checked date&time and it's ok
    Help ? :-) Thanks
    Belgian guy speaking french. Sorry for mistakes in my language ;-)
    Solved!
    Go to Solution.

    you have to be sure that you are typing exactly what is there.
    here is a cheat way to minimize the errors.
    type the first one...make sure it is correct. then hit enter.
    then, instead of typing it all over again, just tap the up arrow on the toolbar. (if you dont have the arrows, the either tap the top right of the screen for the menu/toolbar/Arrows, or you can simply swipe above the current bar right-to-left and it will switch)
    after you tap the up arrow, just back space until you get to:
    gconftool --recursive-unset /system/
    and enter only the last segment then enter again.

  • Apps can't connect with OS different than 2.2

    Hello, I've looked around the forum and I see common issues as mine but not the same. So my problem is from updating my Ipod Touch 2G 16GB with ANY OS. With the original 2.2 I have no problems at all, but since 3.0 is out every single update I've tried is preventing me from using Wi-Fi. The OS3 was preventing me from using entirely the internet if I remember right, while the OS4 is preventing me from downloading apps and connecting with the current ones. I can browse around YouTube and web pages, I can browse the App Store, but I can't download anything. When I try to download an app, it's just trying to connect until I stop it. When I try to run apps that I already have, by restoring from Itunes, they just can't connect to internet, it says that there is no active internet connection. The Wi-Fi is up and running, just not for the apps it seems.
    So I've tried reseting the network settings, full reset, restore, WAP/WEP/no password on router, and no result at all. I just keep going back to 2.2 after every update because I need my apps to be able to connect to internet.
    Because Apple were very unhelpful I am looking for any input that could help.
    Thanks in advance.

    You can get support from Apple by visiting an Apple store or by calling technical support. This is a user forum.
    I am going to suggest that you work on your WiFi problem. There are no inherent OS problems in 2, 3, or 4 that would cause what you are describing. If Safari can connect and you can browse, you don't have a problem. If you can send/receive e-mail, you don't have a problem. If you can connect to the App store but can't buy/download anything, then your problem is with the App store.
    But if you do have WiFi issues, then you can try the following (works on all versions of the OS):
    1. Reboot your router (unplug it from the power)
    2. Reset the touch network settings - tap Settings > General > Reset > Reset Network Settings
    3. When your touch restarts, tap Settings > WiFi > Other and completely re-enter your network name, security, and network password.
    You can always check to see what your internet connection is up to by tapping Settings > WiFi > and then tapping the blue ">" next to your network name. If your device IP address starts with 169.x, then your most likely problems are with your router or the encryption system you have chosen.
    If your iP address is the expected 192.168.x.x series, then your problems may be with your ISP's DNS service. If you know how to work with your wireless router, you can always change the DNS to something a bit more reliable like OpenDNS.
    If you still have problems after you try the 3 steps above, post your network configuration for us - type of router, encryption used, etc.

  • Some of my Mac apps can´t connect to the internet, while Firefox can

    All of a sudden, Safari, ITunes, Software Update, can´t connect to the internet.  It happens in my office and in my house.  Have not checked other networks.  Firefox wors fine, as does Mail (for now).  What can be the problem?

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    As Guest, test. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on some Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode.) Post the results of steps 1 and 2.

  • HT5361 Mail.app can't connect to Gmail, but was working fine yesterday

    Suddenly this morning gmail can't connect to server.  I tried changing the password, still nothing.  I'm getting mail in Gmail if I log into Google and I'm
    getting it on my phone, just not on my MackBook Air.

    Hi there barbls,
    You may find the troubleshooting steps in the article below helpful.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    -Griff W. 

  • TS3276 Connect to internet via browser over Airport Express, but Mail app can't connect to internet

    Hi - I just moved to a new apartment, and I have an Airport Express that is allowing me to connect to the internet through a browser, but Mail keeps telling me that it can't connect to the internet. I'm guessing it has something to do with the network settings for my Airport Express? Not sure what the right configuration should be. Thanks!

    In Mail, from the Window menu select Connection Doctor - any feedback there? Within the window click on Network Diagnostics to see if it offers any clues.

  • Server App can't connect to a Mountain Lion server

    Hi,
    I installed OS X Mountain Lion Server (2.2.1) on a 2012 Mac Mini running OS X 10.8.4. I am able to access all the options using the Server.app on the Mini. Then I installed the Server.app (2.2.1) on a 2010 MacBook Pro running 10.8.4. On trying to configure the Server options on the Mac Mini from the MacBook Pro by providing the correct Mac Mini admin credentials, the password is not validated correctly. This happens when both the systems are on the same network or on different networks.
    I am certain that the username / password provided is correct, since using the same credentials I can successfully remote into the Mac Mini using Apple Remote Desktop (3.6.1) when both the systems are on the same network or on different networks.
    My situation supersedes the resolution provided in http://support.apple.com/kb/TS3960?locale=en_US. Note that the command sudo launchctl list | grep -q com.apple.servermgrd && echo loaded || echo not loaded returns loaded on the Mac Mini.
    Please help!

    I am having exactly the same setup and exactly the same problem - nevertheless I would like to add some more information in order to hopefully find / get help from other readers in here.
    I am using DynDNS - not a dedicated domain. I do not utilize an AirPort Extreme for port forwarding and else. All the necessary port forwardings were triple checked!
    - First of all "Apple Remote Desktop" is able to connect to my server over the internet (screen sharing) and locally in my LAN. No troubles here.
    - My iOS devices can connect using various VNC clients without any troubles.
    - VNC connections started within Safari (MacBook Pro) do work very well, too.
    - All kinds of WebDAV connections are working like a charme.
    - When connecting with "Server.app" from my MacBook Pro it asks if I would like to trust the self-signed certificate before I can enter name and password. After trusting that certificate it doesn't matter which account information I am entering: none is accepted. It does not make any difference if I am using a local user account or a user network account (both configured as being allowed to administer that server). "Server.app" does not accept any information provided.
    I've been following the KB advice, too that c xavier mentioned. "servermgrd" is loaded!
    For some odd yet unknown reason neither WAN nor LAN FTP login does work, too. It just gives me a time out, as already mentioned WebDAV is working fine.
    Sorry I could not help You, c xavier! I just thought that some additional information could help...

  • Third-Party apps can't connect to public wifi  networks.

    When I connect my iPhone to my university's Wi-Fi connection, Apple Apps (Safari, Mail, iTunes, App Store...) all function normally. But when it comes to third-party apps I can't get them to connect to the internet. So is there a workaround to this? Maybe get iPhone to treat apps as an "Apple App" so the proxy server gives it access to the connection (The server requires a username and password verification to connect). This happens with other public wi-fi connections. I dunno if I'm giving all the necessary info. so if anything is unclear, I can explain further...
    Thanks
    Message was edited by: A-Jay

    You don't give any examples of the apps that are not working.
    Some public WiFi networks will only have certain network ports open, like those for web and mail. If an app uses an unusual network port then it may not work on the public WiFi network.

  • Server app can't connect to AirPort Extreme

    I just got a Mac Mini, 2010 and did the upgrade to Mountain lion and then included Mountain lion server. Before I going to further I need to preface by saying that server administration is something new for me so be kind please! Long story short every time I try to Set up airport extreme administration from the server app it tells me that my password is incorrect. I know the password is correct because I'm able to login from my iPad and from my MacBook Pro also to verify that the password is correct. In addition to that, I even changed the password and then entered the   new password in the server app set up and it still won't connect and it tells me I have the wrong password. To be clear I know that this is the base station password I need not the network password. I'm not sure if I need to reset my airport extreme or if I need to reload the software on the computer if something is wrong somewhere in the software that's preventing this connection from happening does anybody else know from their experience what the problem might be and how I can fix it? Everything I read up to this point has told me how great it is that I have the AirPort Extreme because it makes it easier to configure ports for VPN and filesharing etc. etc. so you can imagine how frustrated I am that it's not working. Any help would be greatly appreciated thanks in advance.

    Had the same issue today randomly and found a thread stating that "Apple knew about this and was working on it". I solved it trying all of theses steps each on their own and it did not work BUT did work in this order for me.
    -On the server shut down airport utility and server app if you have them open.
    -Go to /Library/Server/ move Network folder to trash and empty
    -Open the keychain and search for airport, erase all that come up
    -Command line steps (so in Terminal)
    sudo rm /var/db/.ServerSetupDone
    sudo /usr/libexec/PlistBuddy -c "delete :managedIGD" /Library/Server/Network/Config/autoportmap.plist
    sudo /usr/libexec/PlistBuddy -c "delete :lastIGD" /Library/Server/Network/Config/autoportmap.plist
    (at this point it should say it can't find 'lastIGD")
    reboot
    -open airport utility and enter password for airport app leave open
    -open server app, run through config then enter password for airport
    This was basically all of the steps I found on various forums and seems to be either a keychain permissions issue or some funky server app issue.

Maybe you are looking for

  • Can anyone tell me how to block a number from contacting me on my iphone please?

    Please can you help? I am getting nuisance texts from a person & i dont want to have to change my phone number. My network provider says they cant help me but that it is possible with the iphone to block a certain number from texting/phoning me. I ca

  • Apple Script for deleting podcasts

    I subscribe to a lot of podcasts, but I don't want to keep them in my iTunes library after I'm done listening to them. Is there an Apple Script for automatically deleting podcasts? Thanks.

  • Non-transactional datastores

    In the WebLogic 5.1 documentation it mentions that for non-transactional           datastores in a cluster that you can use a custom "dictionary" object to           keep track of which webLogic server instance is currently hosting a given           

  • RoboDemo skipping last question

    Well, we still have a few RoboDemo files that we are still updating using RoboDemo. But, the OS on my computer was upgraded to XP and my copy of RoboDemo was removed. I have a couple of RoboDemo 5 cds (different builds) but they are all having an iss

  • Sharing in-game downloaded content between devices (Catan Seafarers)

    I've got a question for you gurus out there. I've got an iPhone 3GS and an iPad both registered under the same Apple account. As such, I've been able to install all of the content I've paid for from iTunes on both devices. Yesterday I made my first i