Weird error when sending DatagramPackets from a multicastSocket

hi i got this error when running a program that uses a multicastSocket in different Threads
the error is java.lang.NullPointerException: null address || null buffer
        at java.net.TwoStacksPlainDatagramSocketImpl.send(Native Method)
        at java.net.DatagramSocket.send(DatagramSocket.java:638)
        at network.Main$LocalServer.runloop(Main.java:363)
        at network.Main$LocalServer.run(Main.java:382)line 363 is
                DatagramPacket dp=new DatagramPacket(b, 19);
                System.out.println("LocalServer: Packet created with 19 bytes");
                sleep(100);
                SL.send(dp);line 283 is (the run method of LocalServer)
public void run() {
            runloop();
        }variable SL is created at line 173 in class main.java
sl=new MulticastSocket(1234);
            System.out.println("local socket created");
            sa=new MulticastSocket(51234);
            System.out.println("global socket created");
            InetAddress g1=InetAddress.getByName("[ff05::1]");
            InetAddress g2=InetAddress.getByName("[ff1e::1]");
            sl.joinGroup(g1);
            System.out.println("local socket group joined");
            sl.setLoopbackMode(true);
            sa.joinGroup(g2);sl is passed to Thread as SL at line 290:
LocalServer s=new LocalServer(sl);
            s.start();and at line 343
SL=sl;i am using JDK 1.7.0
and Netbeans IDE 6.0
please help me fix this problem!
thanks in advance for any help

The DatagramPacket has to be constructed so as to contain the target address.
MulticastSocket.joinGroup() doesn't help that. It only affects incoming datagrams.

Similar Messages

  • Runtime error when sending email from PCUI

    Hi,
    When sending email from an activity in PCUI, I get runtime error, Line 2201, error, 'Object Expected'.
    Any idea?
    Thanks,
    AR

    Hi AR,
    This appears to be a javascript error. Could you give some more details about this error.
    Regards,
    Hemanth

  • Error when sending data from Cube to ODS

    HI,
    I am extracting data from 2lis_02_itm & I stored the data in 0pur_o01(ODS) tha data is fine in ODS but when I am trying to send data from ODS to Cube 0pur_c07 it is giving the above error
    InfoSource 80PUR_O01 is not defined in the source system
    Errors in source system     
    InfoSource 80PUR_O01 is not defined in the source system.
    Message no. R3005
    Diagnosis
    The InfoSource 80PUR_O01 specified in the data request, is not defined in the source system.
    System response
    The data transfer is terminated.
    Procedure
    In the Administrator Workbench of the Business Information Warehouse, update the metadata for this source system, and delete the InfoPackages belonging to InfoSources that no longer existing
    Thanks
    Priya

    Hi A Priya
    First check if infosource 80PUR_O01 is present in datasource list of your BW system. Check this in RSA1-> Infosources-> here do Settings -> display generated objects and then do search on 80PUR_O01.
    if it not present there go to ODS 0PUR_O01-> right click
    -> generate export datasource.
    If it is present there then replicate the datasource by right click on transfer rules and then go to SE38-> Enter program name as RS_TRANSTRU_ACTIVATE_ALL -> Enter Infosource name as 80PUR_O01 and BW System as source system-> Execute. This will activate the transfer rules.
    Then try reloading from ODS to cube
    Regards
    Pradip

  • Error when sending email from a web application that runs on GlassFish

    Hello all, I hope some can give me some hints on how to fix this problem.
    I have a web application built in Java that runs on GlassFish v3.
    The application uses a mail plugin that makes use of mail.jar
    Whenever I try to use the plugin to send an email out I get an error.
    The application is programmed to send emails from a gmail account, and I believe there is a problem with the SSL version that Googlemail is expecting.
    By the way, everything works fine if I run the web app on other servers like Jetty or Apache.
    The stacktrace I get from the log when the error occurs is as follows:
    INFO: 2009-05-08 19:48:57,500 [httpWorkerThread-8080-0] ERROR errors.GrailsExceptionResolver - org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
    java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
    org.codehaus.groovy.runtime.InvokerInvocationException: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
    java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:883)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:732)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:554)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:485)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:377)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382)
    at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
    at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
    at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
    at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
    at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
    at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
    at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
    Any help would be really appreciated... honestly I'm pretty stuck.
    Alex

    Hi Alex,
    Since I had a Gmail test servlet kicking around, I ran it on the latest V3 nightly build.
    On the first run, I encountered the following nested exceptions:
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465
    --> java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
        --> java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
            --> java.security.UnrecoverableKeyException: Password must not be nullThe UnrecoverableKeyException is a manifestation of [https://glassfish.dev.java.net/issues/show_bug.cgi?id=6938|https://glassfish.dev.java.net/issues/show_bug.cgi?id=6938]
    I worked around this by adding the following JVM config options to domain.xml
    <jvm-options>-Djavax.net.ssl.keyStorePassword=changeit</jvm-options>
    <jvm-options>-Djavax.net.ssl.trustStorePassword=changeit</jvm-options> (Note: the default master password is "changeit")
    These lines are placed in /domain/configs/config/java-config of domain.xml for the particular server config you're using. There's only one server config in the default domain.xml shipped with V3. Then restart the server.
    I retested the code on both port 465 and 587, with and without the above config changes. Without the change, they both fail the same way, and with the change, they both work. Let me know if this helps.
    -Peter

  • Kern-Exec Error when sending emails from 9500

    Hi There
    My first post so hopefully someone may be able to help and I'll try to help others if I can.
    Just recently I have been unbale to send emails from my Nokia 9500. I don't think I've been doing anything differently but I keep getting KERN-EXEC error reason No 3, when I try to send email messages. Strange that I'm able to receive messages ok though.
    I looked at some of the other posts and followed mobile manic's advice for other KERN-EXEC errors. I backed up the phone contents to the PC, restored the phone to default settings and then re-loaded all the backed up stuff.
    Sadly, I still get the KERN-EXEC error message when I try to send emails. It seems to conect to GPRS ok but then the message just sits in the Outbox waiting to go but never does. So when I close the program (after leaving it for a few mins) that's when I get the KERN-EXEC error message.
    Any help greatly appreciated.
    Cheers
    Sparky007

    Hi there Sparky!
    I don't suppose you tried to send an email before you restored the backup did you? Sometimes backups can back up the problem as well which is a bit annoying.
    If you can send an email ok before restoring the backup then the problem must be embedded in the backup... otherwise the only thing I could suggest is contacting a Nokia engineer to get them to have a look at it.
    Not sure what else to suggest... good luck though and let us know how you get on.

  • ACL error when sending email from Oracle 11g

    Hi,
    It returned something like "error...ACL security" when I tried to send email from Oracle 11g. Is there any security thing that I need to release in Oracle 11g? I used to send emails from Oracle 10g and didn't find any problem.
    Thanks.
    Andy

    In Database 11g Oracle introduced Network Access Control Lists (ACLs) to protect the database from users using the many internet-capable packages such as UTL_INADDR, UTL_HTTP, UTL_TCP, etc.
    Read all about it in the docs and look at the code demos here:
    http://www.morganslibrary.org/library.html
    under DBMS_NETWORK_ACL_...

  • Gettin a MAPI error when sending emails from another program

    Using Thunderbird, I used to ne able to send emails from MYOB.
    Since an update of Thunderbird on one particular machine, it no longer works. It comes up with a MAPI error. All the other computers in the network send from MYOB with no problem.
    Could someone please assist as the computer that wont send is the invoicing computer!

    Do I assume the windows XP the forum detected is or is not the operating system.
    What operating system, 32 or 64 bit?

  • Error when sending photos from iPhoto 08 (send to e-mail button)......

    When I go to e-mail pictures from iPhoto 08 I get the following message (the e-mail is correctly created though), any suggestions on what to fix / look at?
    Mail got an error: AppleEvent handler failed http://discussions.apple.com/thread.jspa?threadID=1734304&tstart=0
    Little Know Software SignatureProfiler 1.4.10 also installed....
    Message was edited by: Matt Packwood

    The specific text of the error message is very important here — I'm not sure exactly you're encountering here.
    If you're able to connect to your email server and are able send email to other email addresses and if the failures are specific to one email recipient address, then please contact the intended recipient of the failing email, and confirm their address is valid.  (This is the way I'm reading your question.)
    If you are unable to send any email to any other email addresses and this is specific to your email address, then try the web mail client interface (if one is available) to verify your login user and password, and check with your email ISP for assistance.  If your email password works via web mail, follow this Apple troubleshooting guide, then — if everything else fails — I'd probably then entirely remove the email account from Mail.app and re-add it per your email ISP's particular setup requirements.  (Some issue with the setup or maybe a corrupt setting in OS X or a problem at the mail ISP servers is a common problem, but this effects attempts to send to all email addresses via that account.)
    An email account setup is specific to an email provider, unfortunately.   If you're using one of the more common email ISPs, then there are usually setup guides and frequently-asked questions posted online.

  • Authentication error when sending email from workflow but list alters email work fine

    I have a list. When a user enables alert on this list then he/she is able to receive email from SharePoint when someone adds a new item or change item.
    But emails sent by SharePoint workflow or Nintex workflow are not being sent. Error is:
    Error 530 5.7.1 Client was not authenticated
    Why emails are not being sent by workflows?
    EDIT
    And by SharePoint workflow, I mean OOB Publishing workflow.

    Hi Frank,
    For solving your issue , you can do as the followings:
    1. Check all the email addresses are valid and they are not blocked by your SMTP admin
    2. Check firewall settings if emails are blocking by any firewall or antivirus
    3. You need to also check SPLog file if anything log there
    4. Also create simple workflow with SharePoint Designer 2013, and give proper email to check whether it is working or not
    Here is a similar article for you to take a look at:
    http://techsuite.wordpress.com/2008/12/08/workflow-history-the-email-message-cannot-be-sent-make-sure-the-outgoing-email-settings-for-the-server-are-configured-properly/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Error when sending photos from iPhoto '08.....

    When I go to e-mail pictures from iPhoto 08 I get the following message (the e-mail is correctly created though), any suggestions on what to fix / look at?
    Mail got an error: AppleEvent handler failed http://discussions.apple.com/thread.jspa?threadID=1734304&tstart=0
    Little Know Software SignatureProfiler 1.4.10 also installed....

    This
    leads to this:
    OT

  • Weird error when installing caps from AUR

    I get this error:
    ==> Starting build()...
    Traceback (most recent call last):
      File "./configure.py", line 30, in <module>
        store()
      File "./configure.py", line 20, in store
        print >> f, "_CFLAGS=" + ' '.join (CFLAGS)
    TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'
        Aborting...
    ==> ERROR: Makepkg was unable to build caps
    Am i missing some package or something?
    I need caps for alsaequal.

    Hello, I have exactly the same problem.
    So I replaced
    type -p python 1>/dev/null && ./configure.py 
    by
    type -p python2.7 1>/dev/null && ./configure.py
    The compilation does not work and I have the following error message:
    Lancer la compilation de caps ? [O/n]
    ==> -------------------------------------
    ==>
    ==> Construction et installation du paquet
    ==> Création du paquet caps 0.4.4-1 (lun. oct. 25 08:28:06 CEST 2010)
    ==> Vérification des dépendances...
    ==> Vérification des dépendances pour la compilation...
    ==> Récupération des sources...
      -> caps_0.4.4.tar.gz trouvé
    ==> Validation des fichiers sources avec md5sums...
        caps_0.4.4.tar.gz ... Réussite
    ==> Validation des fichiers sources avec sha256sums...
        caps_0.4.4.tar.gz ... Réussite
    ==> Extraction des sources...
      -> Extraction de caps_0.4.4.tar.gz avec bsdtar
    ==> Suppression du répertoire pkg/ existant...
    ==> Lancement de build()...
    Traceback (most recent call last):
      File "./configure.py", line 30, in <module>
        store()
      File "./configure.py", line 20, in store
        print >> f, "_CFLAGS=" + ' '.join (CFLAGS)
    TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'
        Abandon...
    ==> ERROR: Makepkg n'a pas pu construire caps.

  • Test message from RWB: Error when sending message: 401 Unauthorized

    Hi Experts,
    While I am sending test message from RWB, I am getting following error:
    Error when sending message: 401 Unauthorized
    I am using correct userid/password as I am working with Repository/directory. Also in one of the test scenario files are picking up from folder but never got processed because of similar issue (HTTP_RESPONSE_CODE_NOT_OK) and SERVICE NOT AVAILABLE.
    I am having SAP_ALL authorizations and few days back everything was fine.
    I think something wrong with configuration in XI but I am unable to pin point.
    Please help.
    Regards,
    Gourav

    Yes,
    but
    Role of Business System : Integration system
    Corresponding Integ. Server : http://<XI server>:<http port>/sap/xi/engine?type=entry
    How can I change it to Application system
    and RUNTIME->IS_URL = http://<XI server>:<http port>/sap/xi/engine?type=entry
    Regards,
    Gourav

  • Weird error when clicking on instance- flow from the console

    When I have heavy volume coming in for the bpel server(ex: hundreds of instances generated at a time), I see the following weird error when I am trying to see the instance flow from console:
    Process state off. The process class "BugBAM" (revision "v2004_12_20__61032" ) has not been turned on. No operations on the process or any instances belonging to the process may be performed if the process is off. Please consult your administrator if this process has been turned off inadvertently.
    I didn't do anything to the process to turn the state off. What does this error message mean?
    Thanks, Jenny

    I am assuming that you are using 10.1.2 beta 1. Is that correct? I am wondering if in that version there is a switch that turns a process off when a new version of the process is deployed (this would be a bug because the active process should only be switched to retired).
    Next time you get this error, could you please go to the BPEL Console and check the state of the BPEL process.
    We will try to trace the error message in the source code and try to determine if there are other circumpstances which would generate the same error code.
    Edwin

  • Why do I get an error code 5 when sending photos from iPhoto?

    why do I get an error code 5 when sending photos from iPhoto?

    Read related topic
    Thank you & Best regards
    syrpimp
    =======================================================
    “You must continue to gain expertise, but avoid thinking like an expert." -Denis Waitley

  • Error when sending message(e-mail) from Process Chain ?

    Hello SDN s,
    How ya all ?
    I scheduled a Process Chain with Message option to send it to (U - INternet Address) email ID but it says some error in sending message. What could be the reason ?
    The following is the Job Log Entries....
    30.06.2006 18:05:53 Job started                                                                          00        516         S    
    30.06.2006 18:05:53 Step 001 started (program RSPROCESS, variant &0000000000261, user ID ALEREMOTE)     00        550         S    
    30.06.2006 18:05:54 Hierarchy/attribute change successfully carried out                                RSM        794         I    
    30.06.2006 18:06:00 Document <PV FOR GETTING MESSAGE THROUGH E-MAIL - SUCCE> could not be sent          SO        654         S    
    30.06.2006 18:06:00 Error when sending message                                                        RSRA2        11         S    
    30.06.2006 18:06:01 Job finished                                                                        00        517         S    
    Thanks !!!
    Best Regards....
    Sankar Kumar
    +91 98403 47141

    Hey yes, in that T.Code all the values are 0. What to do to activate that ????????????
                                                                         Duration   Duration 
                             Completed  Error      In transit Waiting    In transit Waiting  
                                                                             hh:mm      hh:mm                                                                               
    B08(100)                        0          0          0          0                                                                               
    FAX Telefax              0          0          0          0       0:00       0:00
         5  INT Internet             0          0          0          0       0:00       0:00                                                                               
    SMTP              0          0          0                  0:00       0:00                                                                               
    X40 X.400                0          0          0          0       0:00       0:00
            RML R/Mail or            0          0          0          0       0:00       0:00
            PAG                      0          0          0          0       0:00       0:00
            PRT                      0          0          0          0       0:00       0:00
    So, how to solve this issue ? how to send e-mails ? what configuration or settings to be done ?
    could u give the steps to do that ? as i am the only one BW guy here !?
    Thanks !!!
    Best Regards....
    Sankar

Maybe you are looking for

  • Changed hard drive now I cant move playlist to iphone.

    So my hard drive died and I replaced it. Not a problem as I thought I kept everything on my external hard drive. But now when I plug in my iphone 5 in and try to move newly created playlists across, it wont let me, says this phone is locked to my old

  • I bought a ebook yesterday my adobe id will not work

    I bought a ebook and on my macbook i didn't put my adobe id. So the ask for: E-book leverancier, because i want to put my name in it, but this does not work So Bol.com where i bought the e-book told me to contact Adobe for help. I want my adobe id on

  • 5.1.2 Audio bug with AIFF files

    I've encountered a strange bug after upgrading to 5.1.2 today. I have 3 Macs with FCP (all upgraded to 5.1.2 today). Was working on a project at work on one of them today and everything worked fine. I imported an AIFF file and decreased the levels on

  • STAY LOGGED IN AND CONNECTED AS A MEMBER

    About the first 3 or 4 month I had no big problems with the CC. But since 2 or 3 month there is one thing after the other ... First the big problem with collapsing InDesign CC ... and now: I'm loosing very often the conntection / logg in to the serve

  • STO availability check

    When you create an STO & if there is not enough stock in supplying plant, you got a WARNING message saying something like u201C of Material XXXXXX, only 49 EA are available on desired dateu201D. The STO is saved but the system put a date of 12/31/999