Wireless Messaging From Servlet

Can I send wireless messages from a servle using Wireless Messaging API ???
I have a little test (taken from http://jan.netcomp.monash.edu.au/internetdevices/wireless/wma.html).
There's a client that send messages, and a server that listens for incoming messages.
It work fine when I run the both under J2ME emulator, the client sends the messages ok and the server receive ok too.
Now I want to send the messages from a servlet. So I left the server unchanged and put the client code in the servlet but it doesn't works
The client's something like this
try
String address = "sms://+5550000:5432";
String msg = "Hello";
MessageConnection smsconn = (MessageConnection) Connector.open(address);
TextMessage txtmessage = (TextMessage)smsconn.newMessage(MessageConnection.TEXT_MESSAGE);
txtmessage.setPayloadText(msg);
smsconn.send(txtmessage);
catch (Exception e)
System.out.println(e.toString());
System.out.println (e.getMessage());
e.printStackTrace();
But running in the servlet, when opening the MessageConnection it throws an IOException "java.io.IOException: NYI".
Any Ideas??
Thanx

From a servlet I got it working (sends the messages ok from the servlet to the device listening).
I did it using the wma-tck.jar bundeled with Wireless Messaging API.
The servlet code to send the message's something like this.
String address = "sms://+5550000:5432"; //phone_number:port on wich the device is listening
String message = "MESSAGE";
MessageConnection conn = null;
Message mess = null;
conn = (new SMSConnector()).open(address);
mess = conn.newMessage("text");
((TextMessage)mess).setPayloadText(message);
mess.setAddress(address);
conn.send(mess);

Similar Messages

  • Error message from servlet to jsp

    Hi again,
    I have servlet and check error on this servlet then i would like
    to send error message to jsp page.Every error message will send to
    same JSP page.So JSP must receive message from Servlet.Can i do this?
    Please give me details and some sourcecode.I will appreciate for your helps.

    you could do something like this..
    request.setAttribute("error", stringErrormessage);
    Then in the jsp just do
    <%= request.getAttribute("error") %>
    That will print an errormessage.
    Basically, by setting anything on the request and then redirecting to that page you cn display it...
    //Johan

  • How to send a message from Servlet to JSP

    Dear all,
    I have JSP, with JavaScript (AJAX). If the user click on the button, the text will be sent to a Servlet parsed by doGet() and the user get a response to his input, without reloading a page.
    How can I send a message to the users (JSP) from Servlet, if he didn't clicked any button and to other visitor of the page also? Is it possible? I think like a chat, the server sends a message to all users who are subscribed.
    I don't know, what should I get from user, maybe session, that I could send him personal or common messages in his textarea. I should also invoke some JavaScript function to update his page. I have met some chats, you don't do nothing and get messages. It is also without a JavaScript timer, which invokes doGet() method. Asynchronous, only when there is a message.
    Please help me with a problem.
    Thanks in advance.

    Hai ,
    You can send any message through response.sendRedirect();
    here is the coding try it
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class SimpleCounter extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException {
    res.setContentType("text/plain");
    PrintWriter out = res.getWriter();
    String username="java";
    res.sendRedirect("http://localhost:8080/yourprojectname/jspfile.jsp?username="+username);
    }

  • Best practice from passing messages from servlets

    Is there a best practice for passing user messages (typically errors) back to the page from servlets?
    e.g. http://localhost:4502/content/geometrixx/en.html?message=Some user error message
    Dan

    Well I suppose that answer to that question depends somewhat on your requirements, but I would say using a query string as you have indicated would be less than ideal because the page with the message would not be cached. No depending on your requirements and what sort of message you are passing that might be OK - especially if you message is highly personalized.
    If however you have a limited number of standard messages to display a more common approach is to have each message have it's own page and then to configure the servlet to redirect to the appropriate page based on the desired message.
    If you want the user to end up on the same page they submitted to the servlet from then another common approach would be to have the post to the servlet be AJAX and then display the message client side without having to change the URL.

  • I have connected my time capsule to motorola SG6580 modem via ethernet.  I have a wireless network on the motorola and a wireless network from the time capsule.  I get duplicate IPs error messages sometimes. How do I fix?

    I have connected my time capsule to motorola SG6580 modem via ethernet.  I have a wireless network on the motorola and a wireless network from the time capsule.  I get duplicate IPs error messages (no connection) sometimes when trying to connect devices to the wireless network. How do I fix? Sometimes devices cannot connect to the network because of conflicting IPs.  I look on the Motorola and every device has a unique IP assigned but occasionally a device has taken the IP of another device.  I have been writing down all the devices and the IPs they have been using.  It happens more with PCs than Macs, ipads or iPhones.

    If the Time Capsule is set up correctly in bridge mode, then it is the responsibility of the Motorola modem/router to provide the correct IP address assignments for all devices on the network.
    Check to insure that the Time Capsule is correctly set up to operate in bridge mode as follows:
    On your Mac, open AirPort Utility
    Finder > Applications > Utilities > AirPort Utility
    Click on the Time Capsule icon, then click Edit in the smaller window that appears
    Click the Network tab at the top of the next window
    Insure that the setting for Router Mode is configured to read "Off (Bridge Mode)"
    Once you have confirmed that the Time Capsule is configured correctly, everything else is the responsibility of the Motorola modem/router as far as network routing and IP address assignments for devices.
    If you continue to have IP address issues, then you should contact the Internet Service Provider (ISP) that provided the Motorola device to you and ask them to fix the issue.

  • Servlet cannot receive message from applet after sent message to applet

    In my Applet-Servlet communication, my servlet can not receive message from the applet after the servlet sent message to the applet. It will throw java.io.EOFException: Expecting code
    Can someone tell me what is wrong?
    ==============
    This is relevant code on applet side:
    String inMsg = "";
    try {
    _owner.textArea.append("run start...please wait......\n");
    String location = "http://111.111.11.111:8080/mdo/servlet/BLServlet";
    URL servletURL = new URL(location);
    URLConnection servletConnection = servletURL.openConnection();
         _owner.textArea.append("URL = "+location+"\n");
    servletConnection.setDoOutput(true);
    servletConnection.setDoInput(true);
    servletConnection.setUseCaches(false);
    servletConnection.setDefaultUseCaches(false);
    servletConnection.setRequestProperty("Content-Type", "application/octet-stream");
    _owner.textArea.append("servlet connection: \n  "+servletConnection.toString()+"\n");
    outputToServlet = new ObjectOutputStream(servletConnection.getOutputStream());
    _owner.textArea.append("output to servelt:  "+outputToServlet.toString()+"\n");
    _owner.textArea.append("Send msg: Register\n");
    outputToServlet.writeObject("Register");
    _owner.textArea.append("Sent. \n");
    outputToServlet.flush();
    _owner.textArea.append("Flush. \n");
    try {
    Thread.sleep(3000);
    } catch (InterruptedException exc) {
    _owner.textArea.append("Cannot Sleep.\n");
    return;
    inputFromServlet = new ObjectInputStream(servletConnection.getInputStream());
    _owner.textArea.append("input from servlet:   "+inputFromServlet.toString()+"\n");
    Object inMessage = new Object();
    inMessage = (Object) inputFromServlet.readObject();
    inMsg = inMessage.toString();
    _owner.textArea.append("Receive: "+inMsg+"\n");
    _owner.textArea.append("output-to-servelt:  "+outputToServlet.toString()+"\n");
    _owner.textArea.append("input-from-servlet: "+inputFromServlet.toString()+"\n");
    _owner.textArea.append("Send msg: Hello\n");
    outputToServlet.writeObject("Hello");
    _owner.textArea.append("Sent. \n");
    outputToServlet.flush();
    _owner.textArea.append("Flush. \n");
    try {
    Thread.sleep(3000);
    } catch (InterruptedException exc) {
    _owner.textArea.append("Cannot Sleep.\n");
    return;
    _owner.textArea.append("output-to-servelt:  "+outputToServlet.toString()+"\n");
    _owner.textArea.append("input-from-servlet: "+inputFromServlet.toString()+"\n");
    inMessage = new Object();
    inMessage = (Object) inputFromServlet.readObject();
    inMsg = inMessage.toString();
    _owner.textArea.append("Receive: "+inMsg+"\n");
    _owner.textArea.append("End of run\n");
    } catch (Exception e) {
    _owner.textArea.append("Exception:  "+e.toString()+"\n");
    Code on Servlet side:
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    String inMsg;
    try {
    textArea.append("start of main\n");
    inputFromApplet = new ObjectInputStream(request.getInputStream());
    inMsg = (String) inputFromApplet.readObject();
    textArea.append(" - BLServlet - from Applet: "+inMsg+"\n");
    if (inMsg.equals("Register")) {
    outMsg = "Register Accept";
    } else {
    outMsg = "MISTAKE2";
    textArea.append("output message: "+outMsg+"\n");
    outputToApplet = new ObjectOutputStream(response.getOutputStream());
    textArea.append("object output stream: "+outputToApplet.toString()+"\n");
    outputToApplet.writeObject(outMsg);
    outputToApplet.flush();
    try {
    Thread.sleep(3000);
    } catch (InterruptedException exc) {
    return;
    inMsg = (String) inputFromApplet.readObject();//Throw java.io.EOFException: Expecting code
    textArea.append(" - BLServlet - from Applet: "+inMsg+"\n");
    inputFromApplet.close();
    if (inMsg.equals("Hello")) {
    outMsg = "Hello! How are you!";
    else {
    outMsg = "MISTAKE3";
    textArea.append("output message: "+outMsg+"\n");
    outputToApplet.writeObject(outMsg);
    outputToApplet.flush();
    } catch (Exception exc) {
    textArea.append("Exception: "+exc.toString()+"\n");
    return;
    } // end of try/catch
    } // end of doPost method

    I have the same problem. I'm trying to send an ImageIcon through an ObjectOutputStream from an Applet to a Servlet. Here is my code:
    URL url = new URL(getCodeBase(),"/License/SnapshotServlet");
    URLConnection con = url.openConnection();
    con.setDoOutput(true);
    con.setUseCaches(false);
    con.setRequestProperty("Content-Type", "application/x-java-serialized-object");
    OutputStream os = con.getOutputStream();
    BufferedOutputStream bos = new BufferedOutputStream(os);
    ObjectOutputStream oos = new ObjectOutputStream(bos);
    oos.writeObject(icon);
    oos.flush();
    oos.close();
    Here is my error:
    [5/6/02 17:41:31:312 CDT] 7f8b8205 SystemOut     U service() called
    java.io.EOFException
    at java.io.DataInputStream.readFully(DataInputStream.java:168)
    at java.io.ObjectInputStream.readFully(ObjectInputStream.java:2076)
    at java.io.ObjectInputStream.inputArray(ObjectInputStream.java:1085)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:380)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:242)
    at javax.swing.ImageIcon.readObject(ImageIcon.java:373)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2219)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1416)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:392)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:242)
    at dps.license.webcam.SnapshotServlet.doPost(SnapshotServlet.java:39)
    at dps.license.webcam.SnapshotServlet.service(SnapshotServlet.java:75)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
    at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167)
    at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297)
    at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110)
    at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
    at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
    at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
    at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523)
    at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282)
    at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112)
    at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91)
    at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184)
    at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
    at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106)
    at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125)
    at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
    at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)[5/6/02 17:41:31:859 CDT] 7f8b8205 SystemOut     U saving image...
    [5/6/02 17:41:31:859 CDT] 7f8b8205 SystemOut     U ERROR: Image is null!
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252)
    at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
    Does anyone have any idea what is going on here?

  • I am on a wireless network.  Why do I keep getting messages from iTunes stating that I am not?

    I am on a wireless network and keep getting messages from ITunes stating that I am not on a wireless network.  I know the wireless is working.  Itunes will not allow me to rent a movie until i get on the wireless network of which I am already on.  Help.

    I just bought two song without problem, then i tried to get the video of the week (free) in canada and I had the same message as you.
    the video is just over 50 MB, which is the new limit for file size for App on IOS over 3G and LTE.
    I tried on my iPhone same thing. I even put it in the Airplane mode, and then activeated the WiFi
    with the same result.
    I then bought another song, smaller than 50 MB and it worked.
    My video is not listed as Bought, and it is not available in the "Check for available downoload"
    Did any of you had tried to buy something under the size of 50 MB ?
    Try the free song to see if is it seize related.
    Franco

  • I got the message "Your handheld has been registered with the wireless network" from blackberry?

    So I got my curve 9360 about 3 months ago and last night I got a message from blackberry saying "Your handheld has been registered with the wireless network". I don't have a data plan but after I got this message I was able to go on the internet without wifi.. I thought it was extremely weird and I was scared my carrier, Rogers, will charge me so I turned my data off. I asked my dad today and he said I could use it and we won't pay if they charge me.. I'm still really worried that I'll get a ridicous bill at the end of the month. So why did I randomly get data and will it charge me? What should I do? 

    I've heard through the Rogers support forums that Rogers is offering a free data trial to its users.  I haven't seen anything official yet, but I've heard that on atleast two occasions so far.
    For that reason, I would go ahead and enjoy your free data while it lasts.  If you're really worried about it, call Rogers to confirm it.  Just remember, you never signed a data plan agreement with them so they can't charge you for it.
    I hope that helps you. 
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • Weird text message from Verizon Wireless

    I have been receiving the text message from 900080004000 three times a day.  It is from Verizon Wireless.  The tech at Verizon store tried to fix this problem by blocking all text messages from email and website.  It didn't work.  Does anyone know how to stop it? 

    YF wrote:
    I have been receiving the text message from 900080004000 three times a day.  It is from Verizon Wireless.  The tech at Verizon store tried to fix this problem by blocking all text messages from email and website.  It didn't work.  Does anyone know how to stop it? 
    YF if these messages keep coming an you cant get them stopped Call CS an have them change your phones No. an see if that pute a stop to it. as those Msg's can drive you crazy.! i had to do this some time back before i got my Droids.

  • Send short message from Java application on mobile phone to server; http

    Hello!
    My question is: can I send short message from Java application on mobile phone to server - with the use of SMS (WMA) or http connection?
    I found this topic http://forums.sun.com/thread.jspa?threadID=5405431 about: "how to send data from midlet to servlet using doPost method".
    There is also such topic http://forums.sun.com/thread.jspa?threadID=5408046&tstart=0 about: "CLDC and MIDP - sending SMS to server -> Wireless Messaging API (WMA)".
    Please, kindly help me.
    Code from the topic mentioned above, edited by me so that it can be read easily:
    //http://forums.sun.com/thread.jspa?threadID=5405431
    //CLDC and MIDP - Re: how to send data from midlet to servlet using doPost method
    I want to know how to pass the values .
    for examples : this is what i wrote for doGet
    String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="+loggedInUserId"&svComp="saveCompHex;
    userId and svComp has the data which is very long so i wanted to use doPost.
    Now i dont know how to do it.
    This is what i have done in doGet (midlet)
    public void saveCompanyProfile(String saveComp,int flag,String blankFieldNm)
         System.out.println("flag===" flag);
         if (flag==1)
              displayAlert("Company Profile Edit",blankFieldNm+" field cannot be blank.",AlertType.ERROR, edCmpRecForm, true);
         else
              String saveCompHex = helper.encodeHexString(saveComp);
              // String saveCompHex =saveComp;
              HttpConnection httpConn = null;
              serverSettings setting = new serverSettings();
              System.out.println("saveCompHex===" saveCompHex);
              String url = setting.getUrl().toString()"/testProServlet/servlet/UpdateCompanyProfile?userId="loggedInUserId"&svComp="saveCompHex;
              System.out.println("url of save company profile:: "+url);
              InputStream is = null;
              OutputStream os = null;
              try {
                   // Open an HTTP Connection object
                   httpConn = (HttpConnection) Connector.open(url);
                   System.out.println("urlMidlet1 save edited company data===::" url.length());
                   // Setup HTTP Request
                   httpConn.setRequestMethod(HttpConnection.POST);
                   httpConn.setRequestProperty("User-Agent","Profile/MIDP-1.0 Confirguration/CLDC-1.0");
                   System.out.println("urlMidlet2===" url);
                   int respCode = httpConn.getResponseCode();
                   System.out.println("respCode edit company profile=====" respCode);
                   if (respCode == httpConn.HTTP_OK)
                        StringBuffer sb = new StringBuffer();
                        os = httpConn.openOutputStream();
                        is = httpConn.openDataInputStream();
                        int chr;
                        while ((chr = is.read()) != -1)
                             sb.append((char) chr);
                        String sResultSvCompanyProfile= sb.toString();
                        System.out.println("+++++++++++++Company sResult+++++++++++++==="sResultSvCompanyProfile);
                        if (resultViewCompanyProfile.trim().equals(""))
                             System.out.println("++++++++++++++If++++++++++++++SaveCompanyProfile===");
                             displayAlert("Login Incorrect","Username and Password incorrect", AlertType.ERROR, mainForm, true);
                        else
                             System.out.println("++++++++++++++Else++++++++++++++SaveCompanyProfile===");
                             //companyProfile();
                             displayAlert1("Information","Company Profile edited successfully", AlertType.INFO, profileMenuScreen, true);
                   else
                        System.out.println("Error in opening HTTP Connection. Error#" respCode);
                        //the line below divided into two lines because it was too long
                        displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
                        AlertType.ERROR, mainForm, false);
              catch(IOException e)
                   e.getMessage();
              finally {
                   if(is!= null)
                        try
                             is.close();
                        catch (IOException e)
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                             displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
                             AlertType.ERROR, mainForm, false);
                   if(os != null)
                        try
                             os.close();
                        catch (IOException e)
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                             displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
                             AlertType.ERROR, mainForm, false);
                   if(httpConn != null)
                        try
                             httpConn.close();
                        catch (IOException e)
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                             displayAlert("Connection Failed","Cannot connect to server, please contact the Administrator.",
                             AlertType.ERROR, mainForm, false);
              } //end finally
         } //end else (?)
    } //end savecompany

    hi,
    SMS API(WMA) is an optional package. It is not a MIDP1.0 or MIDP2.0 api's.
    There are phones which has WMA api with MIDP1.0 support .... Nokia 3650
    Seimens has some phone with their own api's to send sms.Check out seimens site for more info
    BTW, What do you mean buy sending SMS to Server????
    If you want to send message to server you can do it with Http.
    HTH
    phani

  • How can I block spam text messages from an email address?

    Twice per week I am getting spam texts in the middle of the night from a random email address, in reference to a free Target gift card. The problem is, the sender's email address is different every time. Any ideas how to make it stop??

    tikibar1 wrote:
    Forward the texts to SPAM and follow the directions in the reply text that you receive from Verizon.
    Or log into your on-line MyVerizon account, click on the blue More Actions under I Want To, under Safety and Security, click on the blue Block Internet Spam.  Enter the e-mail addresses, or go to the bottom and check block all.  Click the red Apply.
    That was one of the first things I did when starting my current account with Verizon Wireless. I blocked all premium messages and messages from the Internet. Those blocks are still in place to this day.

  • Is there any tools for move messages from errorqueues in WLS 8.1.5?

    Hello!
              I have created a JMSDestination (MyQueue) in my wls 8.1.5.
              I have also created an other JMSDestination (MyErrorQueue) in my wls 8.1.5.
              In the wls it is possible to specify an "Error Destination:" for a JMSDestination. In my wls I have specified MyErrorQueue as error destination for MyQueue.
              If anything goes wrong during consuming message from MyQueue the message will be moved to the error destination MyErrorQueue.
              If this situation ever occur, for eg. there is a cable connection loss or something. The error destination will save me alot of trouble.
              Very nice!
              But now I wonder if there is any tool or function i wls 8.1.5 that helps me move the message back to MyQueue from the error destination, MyErrorQueue, when the problem is solved.? For eg, when the broken cable is replaced.
              Or do I have to write such a application my self? Seems strange since the concept of error destination exists.
              Best regards
              Fredrik

    Have a look at this
              http://www.hermesjms.com/confluence/display/HJMS/Home
              We use it and it works very well for handling messages on error queues.
              Some messages we automatically re-queue using a modified version of this
              code here
              https://codesamples.projects.dev2dev.bea.com/servlets/Scarab/remcurreport/true/template/ViewIssue.vm/id/S134/eventsubmit_dosetissueview/foo/resultpos/1/nbrresults/285/action/ViewIssue/tab/2/readonly/true
              Hope that helps.
              Pete
              Fredrik Andersson wrote:
              > Hello!
              >
              > I have created a JMSDestination (MyQueue) in my wls 8.1.5.
              > I have also created an other JMSDestination (MyErrorQueue) in my wls 8.1.5.
              >
              > In the wls it is possible to specify an "Error Destination:" for a JMSDestination. In my wls I have specified MyErrorQueue as error destination for MyQueue.
              >
              > If anything goes wrong during consuming message from MyQueue the message will be moved to the error destination MyErrorQueue.
              >
              > If this situation ever occur, for eg. there is a cable connection loss or something. The error destination will save me alot of trouble.
              >
              > Very nice!
              >
              > But now I wonder if there is any tool or function i wls 8.1.5 that helps me move the message back to MyQueue from the error destination, MyErrorQueue, when the problem is solved.? For eg, when the broken cable is replaced.
              >
              > Or do I have to write such a application my self? Seems strange since the concept of error destination exists.
              >
              > Best regards
              > Fredrik

  • ISE 1.2 rejects RADIUS messages from 5508 WLC

    The setup in ref is:
    WLC 5508 HA pair running 7.6 talking to ISE 1.2 patch 7 (was 6).
    Wireless users are authenticated fine, so the 5508 is a valid NAD in ISE, but...
    When I setup active RADIUS fallback, so that the WLC can poll the ISE servers I get the message:
    "The RADIUS request from a non-wireless device was dropped because the installed license is for wireless devices only"
    Why would ISE drop a RADIUS message from a WLC which is a wireless device?  Surely this is a mistake?

    Hi Nicholas,
    This is a known defect.
    CSCug34679    ISE drop keep alive coming from WLC. 
    <B>Symptom:</B>
    ISE drops keep alive authentications coming from the WLC, with message 11054 Request from a non-wireless device due to installed wireless license.
    <B>Conditions:</B>
    When only a wireless license is install on the ISE and using active keep alive on the WLC.
    <B>Workaround:</B>
    Use passive keep alive on the WLC and not active.
    Regards,
    Jatin Katyal
    *Do rate helpful posts*

  • Problem to connect to mysql from servlet using a javabean

    Hi,
    I'm new here and beginner on java to.
    I have problem to connect to MySql database, by a connection javabean.
    It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
    It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
    Detail: there is no problem, using the javabean to connect to MS Access database.
    I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
    I set the classpath:
    SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
    I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
    But I don't know why.
    Please Why?
    Below there are the fragment of errors, servlet code e javabean code.
    Thank you.
    Zovao.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
    at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
    Note: The line 47 is calling insertIntoDB javabean method.
    ========///////////////===============
    // Here is the servlet CadServletFileBeanConexArq.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    import conJdbc.*;
    public class CadServletFileBeanConexArq extends HttpServlet {
    public ConexPed connect = null;
    private String driver = "com.mysql.jdbc.Driver";
    private String URL = "jdbc:mysql://localhost:3306/cadastro";
    public void init( ServletConfig config )
    throws ServletException
    super.init( config );
    try
    connect = new ConexPed(driver, URL, "monty", "some_pass");
    catch ( Exception e )
    e.printStackTrace();
    connect = null;
    public void doPost( HttpServletRequest req,
    HttpServletResponse res )
    throws ServletException
    boolean success = true;
    String email, nome, sobrenome, produto, valor;
    email = req.getParameter( "Email" );
    nome = req.getParameter( "Nome" );
    sobrenome = req.getParameter( "Sobrenome" );
    produto = req.getParameter( "Produto" );
    valor = req.getParameter( "Valor" );
    res.setContentType( "text/html" );
    if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
    /* inserting data */
    success = connect.insertIntoDB(
    "'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
    //closing connection
    public void destroy()
    connect.fecharConexao();
    =============///////////////============
    Here is the JavaBean.
    package conJdbc;
    import java.sql.*;
    public class ConexPed
    public Connection connection;
    public Statement statement;
    public ConexPed (String driver, String urlServidor, String user, String password)
    try
    Class.forName(driver);
    connection = DriverManager.getConnection(urlServidor,user,password);
    catch (ClassNotFoundException ex)
    System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel conectar ao servidor");
    try
    statement = connection.createStatement();
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel criar a statement");
    *Inserting data to database
    public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
    try
    statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
    catch ( Exception e ) {
    System.err.println(
    "ERROR: Problemas ao adicionar nova entrada" );
    e.printStackTrace();
    return false;
    return true;
    * Close statement.
    public void fecharStatement()
    try
    statement.close();
    catch (SQLException ex)
    ex.printStackTrace();
    * close database
    public void fecharConexao()
    try
    connection.close();
    catch (SQLException ex)
    ex.printStackTrace();
    }

    Hi,
    I'm new here and beginner on java to.
    I have problem to connect to MySql database, by a connection javabean.
    It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
    It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
    Detail: there is no problem, using the javabean to connect to MS Access database.
    I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
    I set the classpath:
    SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
    I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
    But I don't know why.
    Please Why?
    Below there are the fragment of errors, servlet code e javabean code.
    Thank you.
    Zovao.
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
    at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
    Note: The line 47 is calling insertIntoDB javabean method.
    ========///////////////===============
    // Here is the servlet CadServletFileBeanConexArq.java
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    import java.sql.*;
    import conJdbc.*;
    public class CadServletFileBeanConexArq extends HttpServlet {
    public ConexPed connect = null;
    private String driver = "com.mysql.jdbc.Driver";
    private String URL = "jdbc:mysql://localhost:3306/cadastro";
    public void init( ServletConfig config )
    throws ServletException
    super.init( config );
    try
    connect = new ConexPed(driver, URL, "monty", "some_pass");
    catch ( Exception e )
    e.printStackTrace();
    connect = null;
    public void doPost( HttpServletRequest req,
    HttpServletResponse res )
    throws ServletException
    boolean success = true;
    String email, nome, sobrenome, produto, valor;
    email = req.getParameter( "Email" );
    nome = req.getParameter( "Nome" );
    sobrenome = req.getParameter( "Sobrenome" );
    produto = req.getParameter( "Produto" );
    valor = req.getParameter( "Valor" );
    res.setContentType( "text/html" );
    if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
    /* inserting data */
    success = connect.insertIntoDB(
    "'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
    //closing connection
    public void destroy()
    connect.fecharConexao();
    =============///////////////============
    Here is the JavaBean.
    package conJdbc;
    import java.sql.*;
    public class ConexPed
    public Connection connection;
    public Statement statement;
    public ConexPed (String driver, String urlServidor, String user, String password)
    try
    Class.forName(driver);
    connection = DriverManager.getConnection(urlServidor,user,password);
    catch (ClassNotFoundException ex)
    System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel conectar ao servidor");
    try
    statement = connection.createStatement();
    catch (SQLException ex)
    System.out.println("N�o foi poss�vel criar a statement");
    *Inserting data to database
    public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
    try
    statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
    catch ( Exception e ) {
    System.err.println(
    "ERROR: Problemas ao adicionar nova entrada" );
    e.printStackTrace();
    return false;
    return true;
    * Close statement.
    public void fecharStatement()
    try
    statement.close();
    catch (SQLException ex)
    ex.printStackTrace();
    * close database
    public void fecharConexao()
    try
    connection.close();
    catch (SQLException ex)
    ex.printStackTrace();
    }

  • Why can I not print from pages but can if I copy to text edit, I get "printer off line message " from pages ?

    Why can I not print from pages but can if I copy to text edit, I get "printer off line message " from pages ?  I use HP wireless printer .

    Are you sure you have the right printer?
    In UNIX/OSX printers are virtual links to devices and even with the same name can be trying to reach a printer via another network address, so it thinks it is another printer.
    Peter

Maybe you are looking for