[solved] Troubleshoot ssh with keys (works from LAN, not WAN)

I'm trying to set up ssh so that I can connect to my work computer from home. It is pretty much essential that I keep the work box as secure as possible at all times. (So I can't disable the firewall, come home and test it because IT would not be at all happy.)
I'm not sure if this is an Arch question, a Fedora question or a general Linux/networking question.
The work box is running Fedora 17. It has a firewall eerily like the "simple stateful firewall" described on Arch's wiki. It is running sshd. Public key authentication is enabled. No other form of authentication is enabled. It has a rule allowing ssh connections.
My laptop is running Arch. It has a firewall very like that described on the "simple stateful firewall" page. It has a couple of rules allowing stuff I need at home (printer and something I had to enable for the LAN).
Initially, I was given an internal ip address. I got this working fine i.e. I could ssh into the box from my laptop while sitting next to it in my office over the LAN. I'm using the default form of key pair generated on Arch (i.e. rsa) and am using gpg-agent with ssh support in lieu of ssh-agent to manage keys. Pin entry is using the qt front end as I'm on KDE. (I adapted KDE's config so that it starts gpg-agent with ssh support for the session so that I didn't end up with two instances.)
Once the firewall was in place and sshd was running, they gave me a public ip address. At this point, no port was opened in their firewall to allow WAN connections but I tested the public ip address from within the LAN and it once again worked fine.
Once I'd confirmed the machine could connect out after getting a public ip, they arranged for the port to be opened for ssh. However, I cannot connect to the machine from home.
$ ssh -vvi .ssh/id_rsa [email protected]
OpenSSH_6.1p1, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 22: Applying options for xxx.xxx.xxx.x
debug1: /etc/ssh/ssh_config line 32: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/home/username/.ssh/[email protected]:nn" does not exist
debug2: ssh_connect: needpriv 0
debug1: Connecting to xxx.xxx.xxx.x [xxx.xxx.xxx.x] port nn.
debug1: connect to address xxx.xxx.xxx.x port nn: Connection timed out
ssh: connect to host xxx.xxx.xxx.x port nn: Connection timed out
xxx.xxx.xxx.x is the public ip (works fine from LAN)
nn is the port number
username is my user name (same on both machines)
The options for the host from ssh_config are:
AddressFamily inet
Compression yes
ControlMaster auto
ControlPath ~/.ssh/socket-%r@%h:%p
and the only generic option applied to all hosts is just a line to insist on protocol 2 which I think is default now anyway but I followed the wiki and specified it to be sure.
What have I missed? My networking knowledge is pretty basic at best. (I got this far using Arch's wiki, Fedora's documentation and a little trial and error. That seemed to work well but now I've added google and still can't figure it out. All the hits I get concern cases where the LAN connection works but authentication fails over WAN. But I'm not getting that far - it looks like my work box doesn't respond at all...)
Last edited by cfr (2012-09-25 22:12:06)

So I discovered I'd also managed to kill off LAN access as well as the machine's ability to use any sort of DNS... (I did say it needed to be secure...)
Anyway, I fixed that, reestablished working ssh from LAN but still can't get it to work from WAN.
Question: if ShieldsUp! reports the port as stealthed does that mean that the port has not actually been opened? So the campus firewall is blocking the connection? Because if so, I'm knocking my head against a brick (fire)wall to no purpose whatsoever...
I figure it can't be the software firewall else I'd not be able to connect on the LAN. And it is a public ip address so there's no NAT translation required...

Similar Messages

  • BGP route selection from LAN to WAN

    Hi,
    I am going to implement a multihome internet connection to two different ISP. Before implementing in real network, I have prepared the same in GNS3 and testing. Subnet 10.x.5.0/24 should take R1 to outside from LAN and 10.x.6.0/24 should take R2 to outside from LAN.
    Below is my configuration;
    HSRP between R1 and R2 towards LAN. R1 is the primary HSRP device.
    R6 is the host (example) and subnet .5.0/24 and .6.0/24 are connected to R6.
    R6 is sending a default route to HSRP VIP.
    R1 is advertising subnet 10.x.5.0/24 and R2 is advertising subnet 10.x.6.0/24
    iBGP is configured between R1 and R2
    From Internet to LAN:
    From router 5 (exam.: Internet) traffic is divided in to two routers. traffic for 10.x.5.0/24 coming to R1 and traffic for 10.x.6.0/24 coming to R2. This is absolutely fine. What i expected.
    From LAN to Internet:
    I need traffic from 10.x.5.0/24 should take R1 to go to internet (outside) and from 10.x.6.0/24 should take R2 to go to Inernet (outside).
    I have tried with higher Local Preference on each router but is not working. All traffic from R6 (i.e. LAN) to outside is taking only R1 to go outisde.
    Could any one can help on how I can share traffic for 10.x.5.0/24 & 10.x.6.0/24 divided in two Routers from LAN.
    Diagram is attached.

    As answered in other post, hosts belong to LAN2 (subnet 10.x.6.0/24) can have default gateway set to R2 (R2 could be HSRP active node) now R2 will have route from eBGP (AS300) as well ibgp session (from R1). We can tweak BGP attribute to prefer eBGP session. One good option is to set weight as we want to prefer AS300 routes locally to the router and not on R1. Similarly on R1 put weight for AS200 routes.
    Regards,
    Akash

  • PC to OSX Server works on LAN, not on WAN, Mac works on both

    So the subject pretty much says it. I've got VPN set up, my macbook pro can connect on LAN and WAN. My PCs can connect on LAN, but it times out over WAN.
    Thoughts?

    There are reports of VPN issues with AEBS devices around the forums, including some reports with the just-released 7.5.2 firmware. I don't run that configuration, so I'm not in a position to replicate that here. ([Here is an old thread|http://discussions.apple.com/thread.jspa?messageID=4046689], and also see [here|http://discussions.apple.com/thread.jspa?threadID=2312455].)
    Make sure your Windows (XP?) VPN is configured for NAT traversal. IIRC, that's not the default for the Windows VPNs, and Microsoft had some notes published on setting up VPNs from Windows. (I don't have a Windows box handy to test.) That's what port 4500 is for.
    Try both PPTP and L2TP, too. (You have both open, so try both paths.) Ensure the server is set for both PPTP and L2TP, too.
    The AEBS are good home WiFi routers and can serve admirably as wireless access points (APs; what Apple calls "bridge mode"), but they're not particularly intended as gateway devices for servers. I'd generally recommend getting yourself a VPN-capable server-grade network gateway, as that gets NAT out of the equation entirely, and it means you can connect to the LAN without needing the server to be functioning, and it means the server isn't fielding and processing and rejecting any (unauthorized) VPN connection traffic that might arrive.

  • BPC Report emails only work from server (not client) - BPC v5.1

    Hi all.
    Hope someone might have seen something like this before.
    Basically, I setup our servers to send email from BPC about 3 weeks ago.
    (NB - If it makes a difference, we use Lotus Notes via a Domino server)
    The SMTP settings are all correct in BPC WebAdmin, the servers have been added to the allow list on the mail server and the port is open.
    Anyway, when I try to send mail from a client (using the Offline Report Distribution Wizard), I get the following error:
    "The transport failed to connect to the server".
    At SAP's suggestion, I ran a test by installing Office and a BPC client directly onto the Web Server.
    When I ran the wizard from the server, the email sent perfectly.
    The problem I have now is that although I informed SAP of the test outcome, I haven't heard anything back in about 3 weeks, and I really need to get the reporting email system up and running properly.
    Does anyone have any suggestions on what could be causing this?
    It's as though the system is telling the client to send the email itself, via the forwarding server, but this would mean allowing every user PC to access the mail server.
    Hope you can help, but thanks for looking either way.
    Craig

    Hi Ludovic
    The problem turned out to be mail server white-lists, due to the way that BPC sends emil.
    Although you setup the email account/profile on the server, it actually sends from the client PC of whichever user makes the email request.
    Our system is only configured to block all email requests with individual exceptions (ie a White-List).
    It needed the PC of every user who would need to send email from the BPC system to be added to the white-list.
    This is why it worked from the server, as we had added the server address to the list as part of the testing.
    Not reall y a BPC problem, more of an issue with functionality due to the method that it uses to send the messages.
    Hope that helps
    Craig

  • Hi All, I have an Issue with iMessages working from iphone 4s but not from macbook air

    Hi everyone, I'm new to MAC's but have had an iphone for a while, so much so I had an iphone 4 but got an iphone 4s, I gave my 4 to my dad, and after recantly buying a MBA tried to imessage the old man but his name turns red and will not allow me to  send a message, I can however imessage him from my phone, I have the same issue with two other friends, but I know Imessage works on my MBA as I have two other people it works with (On the side the group Imessage is so cool) we did have an issue with facetime not recognising him untill he switched it off and on from system prefrance on his iphone, not sure if this is related or if this is a MBA issue or iphone issue, but could do with some help as I'm an Apple convert and I'm now hoping to convert the old man who loves microsoft, I told him how 'Apple just work' and at the moment have egg on my face
    Please help all surgestions greatlly reacived

    When sending a message from Mountain Lion's Message program, you should be careful about the recipient's address.  When you send a message to your dad, you should send it to his iPhone's phone number.
    Also, on your Mac's Messages > Preferences > Accounts, you should be logged in under your Apple ID (which is hopefully different from your dad's).
    Enjoy your Apple gear!  Indeed, it does "just work".

  • How can I solve the problem with copying text from Google Documents?

    Ctrl+C and Ctrl+X are not always working in Google Document opened with Mozilla Firefox 30. This problem first occurred 2 days ago. No changes to the software were made.
    The problem is not stable and permanent. I can successfully copy several lines from document and paste them somewhere else. And suddenly the next one is not copied using ctrl+c. Even ctrl+x is not working until I change the selection of the lines. Sometimes it begin to work after changing the selection, sometimes not.
    I'm using Google Documents for a long time. I always use Firefox to work with them. And I've never had this problem before.

    This problem happens for me as well. I can copy/paste from Firefox initially, but then after pasting elsewhere the Firefox page has to be refreshed in order to copy something else....

  • Transmitting with JMStudio works on LAN but not over the web!

    I've been reading all kinds of posts related to this problem.. it was asked many times but noone has given the answer.
    The transmitter has to put the receivers ip and some port.
    The receiver has to open rtp session with the transmitter's ip and the same port.
    On a LAN it works, but over the internet it doesn't (the receiver keeps "waiting for data").
    The two computers I used for trying that, are on no LAN's.. they are assigned a unique ip by the isp (two simple broadband or dial-up connections with single computers).
    Why doesn't it work?
    (The ip's I used are (for example) the ones that appear in whatsmyipaddress.com and i'm behind no proxy)

    I've been reading all kinds of posts related to this problem.. it was asked many times but noone has given the answer.
    The transmitter has to put the receivers ip and some port.
    The receiver has to open rtp session with the transmitter's ip and the same port.
    On a LAN it works, but over the internet it doesn't (the receiver keeps "waiting for data").
    The two computers I used for trying that, are on no LAN's.. they are assigned a unique ip by the isp (two simple broadband or dial-up connections with single computers).
    Why doesn't it work?
    (The ip's I used are (for example) the ones that appear in whatsmyipaddress.com and i'm behind no proxy)

  • Solving a maze with 4 exits from the inside

    Hi, I'm working on an algorithm that solves a maze from the inside, and seeks out 1 of the 4 exits on the sides, and after getting 1, it goes to the next until it has them all. The maze is always 22x22, and you only have 400 steps. I asked my teacher about using a recursive method to solve it, and he said that is probably the best way to go. But, the catch is that you don't know where the walls are, and they change every time. The rat (I'm trying to get a rat to all four exits) starts in the 4x4 box in the middle that has between 1 and 5 exits (it's different every time a maze is generated). The rat can see how far away a wall is, and you are allowed to store the positions in an array if you wish. He can also build walls and get his current x and y position.
    Here's an example of what a maze looks like:
    http://farm4.static.flickr.com/3528/3201086335_4556d4aed7_o.jpg
    I think that's everything, any help would be greatly appreciated =]

    code continued...
        // recursivly find the best path-of-travel
        public int[] recursePath()
            // if in an exit, kill the recursion process
            if(x==0||x==21||y==0||y==21) {int[] bestPath = new int[1]; return bestPath; }
            // x- and y- counters are to signify how many units in each direction
            // from the current real x, y that the algorithm is at
            int curX = x+xCounter;
            int curY = y+yCounter;
            // the maximum number of moves = the closestExitRange, plus however
            // many fewer/extra moves are needed so it lands EXACTLY on the exit,
            // minus the number of places generated so far.
            moveCount = closestExitRange + neededExtraMoves - spacesMoved;
            // give the bestPath a length if it is the first time running algorithm
            if(spacesMoved==0) bestPath = new int[moveCount];
            while(spacesMoved<moveCount)
                // if the algorithm will not land in an exit in EXACTlLY
                // x number of moves, edit x acordingly, and reset algorithm.
                // if there are not enough moves to make it to the exit, crear variables,
                // add 1 to extra moves, check again.
                if( spacesMoved==moveCount-1 && ((curX>1 && curX<20) || (curY>1 && curY<20)) )
                    neededExtraMoves++;
                    xCounter=0;
                    yCounter=0;
                    spacesMoved=0;
                    bestPath = new int[moveCount];
                    recursePath();
                // if there are not too many moves, crear variables,
                // subtract 1 from extra moves, check again.
                else if( spacesMoved<moveCount && (curX==0 || curX==21 || curY==0 || curY==21) )
                    neededExtraMoves--;
                    xCounter=0;
                    yCounter=0;
                    spacesMoved=0;
                    bestPath = new int[moveCount];
                    recursePath();
                // look in all directions, and find the highest value, and
                // move in that direction
                int moveDir = findFurthestWay(lookNorth, lookEast, lookSouth, lookWest);
                if(moveDir==NORTH) { yCounter--; bestPath[spacesMoved] = NORTH; }
                if(moveDir==SOUTH) { yCounter++; bestPath[spacesMoved] = SOUTH; }
                if(moveDir==WEST)  { xCounter--; bestPath[spacesMoved] = WEST;  }
                if(moveDir==EAST)  { xCounter++; bestPath[spacesMoved] = EAST;  }
    //             curX = x+xCounter;
    //             curY = y+yCounter;
                spacesMoved++;
                recursePath();
            //bestPath = new int[moveCount];
            return bestPath;
        // find the path that has thegreatest line of sight (in order n, e, s, w)
        public int findFurthestWay(int a, int b, int c, int d)
            int greatestNumber = 0;
            if(a>greatestNumber) greatestNumber = a;
            if(b>greatestNumber) greatestNumber = b;
            if(c>greatestNumber) greatestNumber = c;
            if(d>greatestNumber) greatestNumber = d;
            // NORTH=1, EAST=2, SOUTH=3, WEST=4
            if(a==greatestNumber) return NORTH;
            if(b==greatestNumber) return EAST;
            if(c==greatestNumber) return SOUTH;
            if(d==greatestNumber) return WEST;
            return 0;
        // reset recursePath vars.
        public void resetCounters()
            xCounter = 0;
            yCounter = 0;
            spacesMoved = 0;
            neededExtraMoves = 0;
            moveCount = 0;
            bestPath = new int[moveCount];
        // record the positions of the walls
        public void storeWallLocations()
            // Store the locations of the walls
            if(lookNorth!=100) wallLocations[x][y-lookNorth][0]=true;
            try{wallLocations[x][y-lookNorth-1][2]=true;} catch(Exception e){}
            if(lookSouth!=100) wallLocations[x][y+lookSouth][2]=true;
            try{wallLocations[x][y+lookSouth+1][0]=true;} catch(Exception e){}
            if(lookWest!=100) wallLocations[x-lookWest][y][3]=true;
            try{wallLocations[x-lookWest-1][y][1]=true;}  catch(Exception e){}
            if(lookEast!=100) wallLocations[x+lookEast][y][1]=true;
            try{wallLocations[x+lookEast+1][y][3]=true;}  catch(Exception e){}
    }

  • [SOLVED] firefox "open with" option missing from d

    Has anyone noticed that, in firefox 2, the "Save/OpenWith/Cancel dialog has changed to only "Save/Cancel" (with no option to open the file with a particular application)?
    For instance, clicking on the first "Excel" file type on this Web page only gives me a Save or Cancel option.  With firefox 1.5 there was an additional option for "Open With".  In other words, there is no way I can instantly open the document with Open Office using a temporary location.  I have  to first save it to my home directory and then open it with Open Office or something.
    When using firefox 2 with Web-based email clients like Yahoo! Mail, it's annoying that I can't just instantly open attachments (like PDFs).  Instead, I have to first save everything.
    Is there something I can change in about:config to get back the 1.5 behavior?

    No, I already checked my firefox preferences.  The preferences explain the behavior of Excel files (set to always save).   But, for me, the "Open with" option went missing for PDF attachments and some other unknown binary file types.
    I have PDFs set to open with acroread in FF preferences, so that seems okay.  Nothing in the filetypes configuration has changed.  In fact, the PDFs work okay (with acroread plugin) when I click a PDF link on a random web page.  It just doesn't work in email attachments  like in gmail (and, it used to before).  It used to be that it would give me the "Open With" dialog and I'd open the document with acroread (external application, not the plugin).  Now, it forces me to save or cancel.  I noticed it happens with some other unknown binary file types, too (I thought these were also supposed give me the "Open with" option).

  • Problem with DNS and/or Virtual Host (works from inside, not from outside)

    I am running several web sites (as virtual hosts) successfully on one Xserve (192.168.200), which are accessible internally and from the Internet (via forwarding port 80 on our firewall).
    Now I am trying to add another web site (newmini.domain.com), which however is running on a Mac mini (also on the same subnet as the Xserve) at 192.168.100. What I did is make an additional entry under the Xserve's DNS for the domain (domain.com) (+ Machine..., pointing to 192.168.0.100). (I also made the necessary changes to the Mac mini's httpd and hosts configuration--no problem there).
    Now, here's the strange thing: All computers on the subnet, whose DNS points to the Xserve, can see and browse newmini.domain.com fine. No problem. The computers ask the Xserve for the IP of the host in question, the Xserve says, "192.168.100", the request goes to the Mac mini, and it serves the web site as expected.
    But this doesn't happen if the request comes from the Internet. Instead of seeing the Mac mini, the client sees the default web site of the Xserve... So it appears that somewhere, the virtual host part of the HTTP request is lost between our firewall and the Xserve.
    Any ideas? Thanks.

    It's not going to.
    You say you've setup port forwarding on the firewall. Port forwarding only cares about the port number (80). It knows nothing about the nature of the request (e.g. the hostname that the web request is for). Therefore all extenal connections on port 80 get sent to the XServe. The newmini doesn't see the traffic at all.
    If you only have a single public IP address you can only forward port 80 traffic to a single machine. Your options are to either use a different port number, or configure the XServe to proxy the connection to the mini (so now the traffic goes router -> XServe -> Mini -> XServe -> router), although that might not do what you want since it still places load and dependencies on the XServe.

  • 5.7.1 Command rejected - EPrint / Works from laptops not mobile devices

    I have a new HP6500A Plus Printer and have trouble using EPrint with 3 mobile devices (Blackberry, Samsung & iTouch).  I get an error stating "5.3.0 Other mail system problem - '5.7.1 Command rejected'.  The process works fine when I send an email to print from my 2 laptops.  The ePrint Center records the emails that come in from my laptops but do not list the emails sent via my 3 mobile devices.  I followed all the typical/basic things - printer on, network on, correct address, no restrictions on who can sent printer emails, etc.  Any suggestions on how to get the mobile devices to work?

    One of these links should help:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02623193&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
    For more information on HP mobile printing solutions in general, look here: 
    http://www.hp.com/global/us/en/consumer/digital_photography/free/software/mobile-printing-solutions....
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • 5.1 Soundblaster not working, now LAN not working eith

    Hi,
    I'm new here, and would greatly appreciate any help anyone can give me. I've tried searching and looking through all the FAQ's I could find, but still am not able to find a solution.
    I am running windows XP and I have a Soundblaster 5. card, and it's worked perfectly until last night. I had my headphones plugged in, and decided to plug in my Creative speakers instead. When I tried to plug the speakers in, soundcard appeared to be not working. I opened up my computer and took out the sound card and put it back in again, thinking I had maybe knocked it loose. I then went to check it under Windows device manager and it was listed as 'Multimedia Audio Controller" and said I had no drivers installed. I came here to the website, typed in the model number, got the correct drivers, but when I try to install the drivers, I get an error message saying that there is not a compatible device installed. I tried removing the card and putting it back in, also tried putting it into a different slot, but to no avail.
    Now the biggest problem; after plugging my sound card in for the 4th time, my network connection stopped working. I'm connected to a LAN, and it keeps saying it's unable to renew my IP address. In device manager, it doesn't look like there's anything wrong with my network card.... could it be possible that I somehow fried the on-board network card when I was putting the sound card in?
    I'm really at a loss as to what to do here. ANY suggestions at all would be GREATLY appreciated.
    Thank you very much in advance.

    Quote from: Chrysomya on 29-April-13, 20:14:26
    Just downloaded a new driver for the realtek HD, will this resolve my problem? Current driver version is 6.0.1.6657.
    Your issue is drivers related.
    For Windows 8 use 6.0.1.6839
    http://www.msi.com/product/mb/Z77A-G43.html#/?div=Driver&os=Win8%2064

  • Inbound UMS Adapter Issues with Receiving Emails from Lotus Notes

    Hi,
    I have this requirement in my project where I need to read the mails from a particular Email Account which has been created in Lotus Notes. The IMAP Host and port is enabled for the same and I am setting all these in my Server's EM Console UMS Driver settings. I have provided all the Details required for Incoming Email Driver setup like: IncomingMailID, IncomingMailServer, Port, Server Type: IMAP, IncomingMailIDs etc. I have followed all the steps mentioned in regular UMS Adapter Documentation and Blogs.
    I can see that Soa-infra is able to access all the mails from this mail Account and I can see the same in the managed server log files also. But the issue is with the BPEL Process which I have created with the Inbound UMS adapter. This process has UMS inbound adapter with the Email address same as the one defined in UMS Configuration in EM Console.
    The Process is not getting triggered at all whenever a new mail comes to the mail id. I am not sure what is the issue. If anyone has faced similar issue please let me know the solution for the same.
    Also 1 strange thing I observed is, if I go to the Soa-infra proerties-> Human Workflow Management and Test the notification by sending mail to the IncomingMailId, the Process is getting triggered, but if I send a mail from any other gmail/any other account to the IncomingMailID set in Process and server, the Process is not getting triggered.
    In the logs I see the following Error messages which I don't think would be impacting the Process to receive messages as soa-infra is able to pick the messages without any issues.
            at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSou
    rce.java:119)
            at javax.activation.DataHandler.getInputStream(DataHandler.java:223)
            at javax.mail.internet.MimeBodyPart.getInputStream(MimeBodyPart.java:573
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.copyCo
    ntent(EmailResourceAdapter.java:998)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.copyCo
    ntent(EmailResourceAdapter.java:1023)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.create
    IncomingMessage(EmailResourceAdapter.java:593)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:440)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <31/07/2014 5:44:06 PM EST> <Warning> <oracle.sdp.messaging.driver.email> <SDP-2
    5700> <An unexpected exception was caught.
    javax.mail.FolderClosedException
            at com.sun.mail.imap.IMAPMessage.getProtocol(IMAPMessage.java:149)
            at com.sun.mail.imap.IMAPMessage.setFlags(IMAPMessage.java:871)
            at javax.mail.Message.setFlag(Message.java:578)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:501)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <31/07/2014 5:44:06 PM EST> <Warning> <oracle.sdp.messaging.driver.email> <SDP-2
    5700> <An unexpected exception was caught.
    javax.mail.FolderClosedException
            at com.sun.mail.imap.IMAPMessage.getProtocol(IMAPMessage.java:149)
            at com.sun.mail.imap.IMAPMessage.getHeader(IMAPMessage.java:715)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.getMes
    sageID(EmailResourceAdapter.java:1415)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:417)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    Hi,
    I have this requirement in my project where I need to read the mails from a particular Email Account which has been created in Lotus Notes. The IMAP Host and port is enabled for the same and I am setting all these in my Server's EM Console UMS Driver settings. I have provided all the Details required for Incoming Email Driver setup like: IncomingMailID, IncomingMailServer, Port, Server Type: IMAP, IncomingMailIDs etc. I have followed all the steps mentioned in regular UMS Adapter Documentation and Blogs.
    I can see that Soa-infra is able to access all the mails from this mail Account and I can see the same in the managed server log files also. But the issue is with the BPEL Process which I have created with the Inbound UMS adapter. This process has UMS inbound adapter with the Email address same as the one defined in UMS Configuration in EM Console.
    The Process is not getting triggered at all whenever a new mail comes to the mail id. I am not sure what is the issue. If anyone has faced similar issue please let me know the solution for the same.
    Also 1 strange thing I observed is, if I go to the Soa-infra proerties-> Human Workflow Management and Test the notification by sending mail to the IncomingMailId, the Process is getting triggered, but if I send a mail from any other gmail/any other account to the IncomingMailID set in Process and server, the Process is not getting triggered.
    In the logs I see the following Error messages which I don't think would be impacting the Process to receive messages as soa-infra is able to pick the messages without any issues.
            at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSou
    rce.java:119)
            at javax.activation.DataHandler.getInputStream(DataHandler.java:223)
            at javax.mail.internet.MimeBodyPart.getInputStream(MimeBodyPart.java:573
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.copyCo
    ntent(EmailResourceAdapter.java:998)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.copyCo
    ntent(EmailResourceAdapter.java:1023)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.create
    IncomingMessage(EmailResourceAdapter.java:593)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:440)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <31/07/2014 5:44:06 PM EST> <Warning> <oracle.sdp.messaging.driver.email> <SDP-2
    5700> <An unexpected exception was caught.
    javax.mail.FolderClosedException
            at com.sun.mail.imap.IMAPMessage.getProtocol(IMAPMessage.java:149)
            at com.sun.mail.imap.IMAPMessage.setFlags(IMAPMessage.java:871)
            at javax.mail.Message.setFlag(Message.java:578)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:501)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <31/07/2014 5:44:06 PM EST> <Warning> <oracle.sdp.messaging.driver.email> <SDP-2
    5700> <An unexpected exception was caught.
    javax.mail.FolderClosedException
            at com.sun.mail.imap.IMAPMessage.getProtocol(IMAPMessage.java:149)
            at com.sun.mail.imap.IMAPMessage.getHeader(IMAPMessage.java:715)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.getMes
    sageID(EmailResourceAdapter.java:1415)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:417)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

  • Web Service Client works from IDE, not standalone

    I'm using the Netbeans 5.5 IDE & JAX-WS 2.0 & jdk1.6.
    I use an Applet to call a webservice on an embedded web-server which has gSoap generated WebServices.
    The code works fine if I run it from the IDE. However, the following error occurs if I run it from the webserver:
    java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.apache.xml.internal.resolver.CatalogManager
         at com.sun.xml.internal.ws.util.xml.XmlUtil.createDefaultCatalogResolver(Unknown Source)
         at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
         at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source)
         at javax.xml.ws.Service.<init>(Unknown Source)
         at NetburnerWebfunctions.Webfunctions.<init>(Webfunctions.java:38)
         at IO.getDIPs(IO.java:32)
         at IO.<init>(IO.java:25)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Exception: java.lang.NoClassDefFoundError: Could not initialize class com.sun.org.apache.xml.internal.resolver.CatalogManager
    I believe this class is being found since I got a different error when I had the classname wrong.
    The console has reported:
    network: Connecting http://192.168.0.2/META-INF/services/javax.xml.ws.spi.Provider with proxy=DIRECT
    to which I serve up a file with the first line as:
    NetburnerWebfunctions.WebfunctionsPortType
    This class (autogenerated by Netbeans webservice import) contains:
    @WebService(name = "WebfunctionsPortType", targetNamespace = "http://www.red-earth.co.uk/Webfunctions")
    public interface WebfunctionsPortType {
        @WebMethod(action = "http://www.red-earth.co.uk/Webfunctions/getDIPs")
        @WebResult(name = "result", targetNamespace = "http://www.red-earth.co.uk/Webfunctions")
        @RequestWrapper(localName = "getDIPs", targetNamespace = "http://www.red-earth.co.uk/Webfunctions", className = "NetburnerWebfunctions.GetDIPs")
        @ResponseWrapper(localName = "getDIPsResponse", targetNamespace = "http://www.red-earth.co.uk/Webfunctions", className = "NetburnerWebfunctions.GetDIPsResponse")
        public int getDIPs();
    }In the applet the webfunction is called using the following code:
    NetburnerWebfunctions.Webfunctions service =
      new NetburnerWebfunctions.Webfunctions(new java.net.URL("http://192.168.0.2/webfunctions.wsdl.xml"),
      new javax.xml.namespace.QName("http://www.red-earth.co.uk/Webfunctions", "Webfunctions"));
    NetburnerWebfunctions.WebfunctionsPortType port = service.getWebfunctions();
    result = port.getDIPs();The Applet is placed on the html page thus:
    <APPLET  code="IO.class" Archive="Applet.jar" width=350 height=200></APPLET>Any Ideas why this error occurs - have I got the provider wrong?

    Hi,
    I could run the client as an application but not as an Applet out side IDE.
    can u please help me with sample code if u r done with Applet.
    if u want i can give u my sample code.
    thanks in advance.

  • Splash screen works from browser, not when double-clicked on desktop

    Hi,
    I am having trouble making a splash screen appear and have a specific question about it.
    The code is from the tutorial at:
    http://blogs.sun.com/thejavatutorials/entry/changing_the_java_web_start
    I have changed the codebase attribute of the jnlp element so it refers to my own server:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for ButtonDemo -->
    <jnlp spec="1.0+" codebase="https://justanexample.com/buttondemo" href="ButtonDemo.jnlp">
      <information>
        <title>ButtonDemo</title>
        <vendor>The Java(tm) Tutorial: Sun Microsystems, Inc.</vendor>
        <homepage href="http://java.sun.com/docs/books/tutorial/uiswing/examples/components/index.html#ButtonDemo"/>
        <icon href="mysplash.jpg" kind="splash"/>
        <description>ButtonDemo</description>
        <description kind="short">Demonstrates use of buttons within containers</description>
        <offline-allowed/>
      </information>
      <resources>
        <j2se version="1.6+"/>
        <jar href="ButtonDemo.jar"/>
      </resources>
      <application-desc main-class="components.ButtonDemo"/>
    </jnlp> This JNLP, the mysplash.jpg, and the ButtonDemo.jar are deployed to the web server, under a "buttondemo" subdirectory of the web server's DocumentRoot.
    If I access the JNLP from a browser (https://justanexample.com/buttondemo/ButtonDemo.jnlp), things work as expected:
    The first time "Java Loading" appears.
    The mysplash.jpg is cached and can be seen in the Resource list with "javaws -viewer."
    During the second and subsequent launches, the custom splash screen appears as expected.
    However, if I have the JNLP file on my desktop, and I open it from there with a double-click, I never see the splash screen.
    My question: Why is this? Shouldn't I see the splash screen after the first launch, even if I launched by double-clicking the JNLP file on my desktop?
    Why I care:
    While I've shown the problem using ButtonDemo, I am having the same issue with my own application. I'd like to have an icon on the desktop the user can click. I do have it working, but using a workaround I consider fragile and perhaps inappropriate.
    I am using the 1.6.0_18-b07 version of the JRE on Vista SP2.
    Thanks in advance for any explanation/help.
    Edited by: mmissire on Feb 10, 2010 7:52 PM

    I couldn't get this to work. For the benefit of anyone needing something similar, here's what I did to work around it.
    At install time, my app already unpacked some config files into a known place under the user's home directory. So I now unpack a splash screen there, as well.
    The desktop shortcut tells javaws to skip it's splash screen with -Xnosplash, and then tells the JVM to use a local one (with the -J"splash:" argument). Something like this worked well enough:
    C:\Windows\System32\javaws.exe -J"-splash:C:\Users\whoever\appname\splash.jpg" -Xnosplash "C:\Users\whoever\appname\app.jnlp"

Maybe you are looking for