|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
java.net.SocketException: No buffer space availableGreetings
I've been playing with JGroups implementing a quite simple application. Until yesterday, it was warking. Today, without any change I'm aware of I started getting this message when connecting to a channel, no matter the number of nodes (all have the same error and never connect to the group) WARNING: failed to join /224.0.75.75:7500 on lo: java.net.SocketException: No buffer space available My code does just this: System.setProperty("java.net.preferIPv4Stack", "true"); channel = new JChannel(); channel.setReceiver(this); channel.connect(group); Tracing the code, I've found it happends here PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line: not available [native method] [local variables unavailable] PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface) line: 196 MulticastSocket.joinGroup(SocketAddress, NetworkInterface) line: 357 TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>, MulticastSocket) line: 1872 TP$DiagnosticsHandler.start() line: 1780 UDP(TP).start() line: 851 UDP.start() line: 229 ProtocolStack.startStack(String, Address) line: 744 JChannel.startStack(String) line: 1763 JChannel.connect(String, boolean) line: 406 JChannel.connect(String) line: 381 Thanks in advance Pablo -- ======================================================================== 0 0 0 Pablo Chacin | Dept. d'Arquitectura de Computadors 0 0 0 e-mail: pchacin@... | UPC-Campus Nord. Modul D6-212 0 0 0 phone: +34 +93 405 4059 | Jordi Girona, 1-3 U P C fax: +34 +93 401 7055 | 08034 Barcelona - SPAIN www: http://personals.ac.upc.es/pchacin ======================================================================== ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ javagroups-users mailing list javagroups-users@... https://lists.sourceforge.net/lists/listinfo/javagroups-users |
|
|
Re: java.net.SocketException: No buffer space availableI forgot to mention in my previous email that the Draw demo application
doesn't work either, so it doesn't looks like a problem of my application, but maybe a configuration problem. pchacin wrote: > Greetings > > I've been playing with JGroups implementing a quite simple application. > Until yesterday, it was warking. Today, without any change I'm aware of > I started getting this message when connecting to a channel, no matter > the number of nodes (all have the same error and never connect to the group) > > WARNING: failed to join /224.0.75.75:7500 on lo: > java.net.SocketException: No buffer space available > > My code does just this: > > System.setProperty("java.net.preferIPv4Stack", "true"); > > channel = new JChannel(); > channel.setReceiver(this); > channel.connect(group); > > Tracing the code, I've found it happends here > > > PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line: > not available [native method] [local variables unavailable] > PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface) > line: 196 > MulticastSocket.joinGroup(SocketAddress, NetworkInterface) line: 357 > TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>, > MulticastSocket) line: 1872 > TP$DiagnosticsHandler.start() line: 1780 > UDP(TP).start() line: 851 > UDP.start() line: 229 > ProtocolStack.startStack(String, Address) line: 744 > JChannel.startStack(String) line: 1763 > JChannel.connect(String, boolean) line: 406 > JChannel.connect(String) line: 381 > > > Thanks in advance > > Pablo > > -- ======================================================================== 0 0 0 Pablo Chacin | Dept. d'Arquitectura de Computadors 0 0 0 e-mail: pchacin@... | UPC-Campus Nord. Modul D6-212 0 0 0 phone: +34 +93 405 4059 | Jordi Girona, 1-3 U P C fax: +34 +93 401 7055 | 08034 Barcelona - SPAIN www: http://personals.ac.upc.es/pchacin ======================================================================== ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ javagroups-users mailing list javagroups-users@... https://lists.sourceforge.net/lists/listinfo/javagroups-users |
|
|
Re: java.net.SocketException: No buffer space availableDisable diagnostics (enable_diagnostics="false") in UDP portion of your
XML configuration file. Most likely you will never use diagnostics anyway! Regards, Vladimir On 09-11-05 12:34 PM, pchacin wrote: > Greetings > > I've been playing with JGroups implementing a quite simple application. > Until yesterday, it was warking. Today, without any change I'm aware of > I started getting this message when connecting to a channel, no matter > the number of nodes (all have the same error and never connect to the group) > > WARNING: failed to join /224.0.75.75:7500 on lo: > java.net.SocketException: No buffer space available > > My code does just this: > > System.setProperty("java.net.preferIPv4Stack", "true"); > > channel = new JChannel(); > channel.setReceiver(this); > channel.connect(group); > > Tracing the code, I've found it happends here > > > PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line: > not available [native method] [local variables unavailable] > PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface) > line: 196 > MulticastSocket.joinGroup(SocketAddress, NetworkInterface) line: 357 > TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>, > MulticastSocket) line: 1872 > TP$DiagnosticsHandler.start() line: 1780 > UDP(TP).start() line: 851 > UDP.start() line: 229 > ProtocolStack.startStack(String, Address) line: 744 > JChannel.startStack(String) line: 1763 > JChannel.connect(String, boolean) line: 406 > JChannel.connect(String) line: 381 > > > Thanks in advance > > Pablo > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ javagroups-users mailing list javagroups-users@... https://lists.sourceforge.net/lists/listinfo/javagroups-users |
|
|
|
|
|
Re: java.net.SocketException: No buffer space availableLooks like this is not a JGroups problem; if you google "no buffer space
available" you find many answers how to fix this issue pchacin wrote: > Greetings > > I've been playing with JGroups implementing a quite simple application. > Until yesterday, it was warking. Today, without any change I'm aware of > I started getting this message when connecting to a channel, no matter > the number of nodes (all have the same error and never connect to the group) > > WARNING: failed to join /224.0.75.75:7500 on lo: > java.net.SocketException: No buffer space available > > My code does just this: > > System.setProperty("java.net.preferIPv4Stack", "true"); > > channel = new JChannel(); > channel.setReceiver(this); > channel.connect(group); > > Tracing the code, I've found it happends here > > > PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line: > not available [native method] [local variables unavailable] > PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface) > line: 196 > MulticastSocket.joinGroup(SocketAddress, NetworkInterface) line: 357 > TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>, > MulticastSocket) line: 1872 > TP$DiagnosticsHandler.start() line: 1780 > UDP(TP).start() line: 851 > UDP.start() line: 229 > ProtocolStack.startStack(String, Address) line: 744 > JChannel.startStack(String) line: 1763 > JChannel.connect(String, boolean) line: 406 > JChannel.connect(String) line: 381 > > > Thanks in advance > > Pablo > > -- Bela Ban Lead JGroups / Clustering Team JBoss ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ javagroups-users mailing list javagroups-users@... https://lists.sourceforge.net/lists/listinfo/javagroups-users |
|
|
Re: java.net.SocketException: No buffer space availableThat's depend on how you define the problem. First, it happened with
just one process in a JVM with plenty of memory. Second, it happened when the local network doesn't allow ip multicast. Just moving to another network "solved the issue". As Vladimir pointed out, I could get rid of the message after turning diagnostics off in the configuration. I thing that maybe , just maybe, JGropus message is misleading as it wrongly identifies a problem with the ip multicast with a memory issue. Bela Ban wrote: > Looks like this is not a JGroups problem; if you google "no buffer > space available" you find many answers how to fix this issue > > pchacin wrote: >> Greetings >> >> I've been playing with JGroups implementing a quite simple application. >> Until yesterday, it was warking. Today, without any change I'm aware of >> I started getting this message when connecting to a channel, no matter >> the number of nodes (all have the same error and never connect to the >> group) >> >> WARNING: failed to join /224.0.75.75:7500 on lo: >> java.net.SocketException: No buffer space available >> >> My code does just this: >> >> System.setProperty("java.net.preferIPv4Stack", "true"); >> channel = new JChannel(); >> channel.setReceiver(this); >> channel.connect(group); >> >> Tracing the code, I've found it happends here >> >> >> PlainDatagramSocketImpl.join(InetAddress, NetworkInterface) line: >> not available [native method] [local variables unavailable] >> PlainDatagramSocketImpl.joinGroup(SocketAddress, NetworkInterface) >> line: 196 MulticastSocket.joinGroup(SocketAddress, >> NetworkInterface) line: 357 >> TP$DiagnosticsHandler.bindToInterfaces(List<NetworkInterface>, >> MulticastSocket) line: 1872 TP$DiagnosticsHandler.start() line: >> 1780 UDP(TP).start() line: 851 UDP.start() line: 229 >> ProtocolStack.startStack(String, Address) line: 744 >> JChannel.startStack(String) line: 1763 JChannel.connect(String, >> boolean) line: 406 JChannel.connect(String) line: 381 >> >> >> Thanks in advance >> >> Pablo >> >> > -- ======================================================================== 0 0 0 Pablo Chacin | Dept. d'Arquitectura de Computadors 0 0 0 e-mail: pchacin@... | UPC-Campus Nord. Modul D6-212 0 0 0 phone: +34 +93 405 4059 | Jordi Girona, 1-3 U P C fax: +34 +93 401 7055 | 08034 Barcelona - SPAIN www: http://personals.ac.upc.es/pchacin ======================================================================== ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ javagroups-users mailing list javagroups-users@... https://lists.sourceforge.net/lists/listinfo/javagroups-users |
| Free embeddable forum powered by Nabble | Forum Help |