Cisco WCCP (multicast method ) with Bluecoat Implementation

hi
Cisco WCCP with Bluecoat Implementation  . during implemetation multicast packet not flow to other vlan interface.
few observation .
Cisco wccp with bluecoat proxy ( Multicast method )  - Multicast IP # 224.1.1.103 , Group 11, dense-mode
Same Vlan  its working ( user and Proxy SG )
Different Vlan not working ( user Vlan 10 and server Vlan 20 )
sample configuration :
ip multicast-routing
ip wccp 11 group-address 224.1.1.103 redirect-list 103
sh ip access-lists 103
Extended IP access list 103
    40 permit tcp 10.10.10.0 0.0.0.31 any eq 443
    50 permit tcp 10.10.10.0 0.0.0.31 any eq www
    60 permit tcp 10.10.10.0 0.0.0.31 any eq ftp
    70 deny ip any any
interface Vlan10 description "AP_User_Range"
 ip address 10.10.10.0 255.255.255.0
 ip helper-address 10.10.20.100
 ip wccp 11 redirect in
 ip wccp 11 group-listen
 ip pim dense-mode

Dear Jon,
After changes the WCCP Command  ,still  WCCP not working
but  both client and Proxy Same VLAN its working fine with Multicast mode
interface Vlan10
 description "AP_User_Range"
 ip address 10.10.10.10 255.255.255.0
 ip helper-address 10.10.10.100
 ip wccp 11 redirect in
interface Vlan20
 description PROXY_WAN_VLAN
 ip address 10.10.20.10 255.255.255.0
 ip helper-address 10.10.10.100
 no ip redirects
 no ip unreachables
 no ip proxy-arp
 ip wccp 11 group-listen
ip wccp 11 group-address 224.1.1.103 redirect-list 103
sh ip access-lists 103
Extended IP access list 103
    40 permit tcp 10.10.10.0 0.0.0.255 any eq 443
    50 permit tcp 10.10.10.0 0.0.0.255 any eq www
    60 permit tcp 10.10.10.0 0.0.0.255 any eq ftp
    70 deny ip any any
sh ip wccp
Global WCCP information:
    Router information:
        Router Identifier:                   -not yet determined-
        Protocol Version:                    2.0
    Service Identifier: 11
        Number of Service Group Clients:     0
        Number of Service Group Routers:     0
        Total Packets s/w Redirected:        0
          Process:                           0
          CEF:                               0
        Service mode:                        Open
        Service Access-list:                 -none-
        Total Packets Dropped Closed:        0
        Redirect access-list:                103
        Total Packets Denied Redirect:       0
        Total Packets Unassigned:            0
        Group access-list:                   -none-
        Total Messages Denied to Group:      0
        Total Authentication failures:       0
        Total GRE Bypassed Packets Received: 0

Similar Messages

  • WCCP Multicast with 6500

    I have two 6500s (6509-1 and 6509-2)and two WAE-674 devices. I am trying to configure these devices in a redundant way. However the WAEs form wccp relation only with the 6509-2.
    6509-2#sh ip wccp 61 detail
    WCCP Cache-Engine information:
    Web Cache ID: 172.27.249.65
    Protocol Version: 2.0
    State: Usable
    Redirection: GRE
    Packet Return: GRE
    Assignment: HASH
    Initial Hash Info: 00000000000000000000000000000000
    00000000000000000000000000000000
    Assigned Hash Info: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
    00000000000000000000000000000000
    Hash Allotment: 128 (50.00%)
    Packets Redirected: 0
    Connect Time: 00:36:19
    Web Cache ID: 172.27.249.66
    Protocol Version: 2.0
    State: Usable
    Redirection: GRE
    Packet Return: GRE
    Assignment: HASH
    Initial Hash Info: 00000000000000000000000000000000
    00000000000000000000000000000000
    Assigned Hash Info: 00000000000000000000000000000000
    FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
    Hash Allotment: 128 (50.00%)
    Packets Redirected: 0
    Connect Time: 00:36:18
    however on the 6509-1
    6509-1#sh ip wccp 61 detail
    WCCP Cache-Engine information:
    Web Cache ID: 172.27.249.66
    Protocol Version: 2.0
    State: NOT Usable
    Redirection: L2
    Packet Return: L2
    Packets Redirected: 0
    Connect Time: 01:17:18
    Assignment: MASK
    Web Cache ID: 172.27.249.65
    Protocol Version: 2.0
    State: NOT Usable
    Redirection: L2
    Packet Return: L2
    Packets Redirected: 0
    Connect Time: 00:00:15
    Assignment: MASK
    Redirection (L2 on 6509-1 and GRE on the 6509-2) methods are shown differently on the 6500 switches.
    However the configurations on the WAE side is same:
    HOAE1674#sh run
    <outputs omitted>
    primary-interface Standby 1
    interface Standby 1
    ip address 172.27.249.65 255.255.255.240
    exit
    interface GigabitEthernet 1/0
    standby 1 priority 250
    exit
    interface GigabitEthernet 2/0
    standby 1
    exit
    ip default-gateway 172.27.249.78
    <outputs omitted>
    wccp router-list 1 224.10.10.10
    wccp tcp-promiscuous router-list-num 1
    wccp version 2
    And the 6500 configurations:
    6509-2#sh run int vlan 311
    interface Vlan311
    description WAAS-Normal
    ip address 172.27.249.77 255.255.255.240
    ip wccp 61 group-listen
    ip wccp 62 group-listen
    ip pim dense-mode
    standby 211 ip 172.27.249.78
    6509-2#sh run | i redire
    ip wccp 61 group-address 224.10.10.10 redirect-list 101
    ip wccp 62 group-address 224.10.10.10 redirect-list 102
    I know that L2-redirection and masking advised on the 6500s, however when I configure, 6500 sh ip wccp output shows that GRE masking is used.
    The WAE devices are connected directly to the 6509-2, I suspected a multicast issue, to test I shutdown the 6509-2 vlan interface but no help
    The version on the 6500s are same (12.2SXF8), as I know that 12.2SXF14 is suggested. However a software upgrade requires a lot of change management procedures. I want to be sure that I did not make a configuration mistake.

    Thanks Dan, Matthew
    After I remove l2-return, wccp seems to be ok:
    HOAE1674#sh run | i wccp
    wccp router-list 1 224.10.10.10
    wccp tcp-promiscuous router-list-num 1 l2-redirect mask-assign
    wccp version 2
    6509-1#sh ip wccp 61
    Global WCCP information:
    Router information:
    Router Identifier: 192.168.2.253
    Protocol Version: 2.0
    Service Identifier: 61
    Number of Cache Engines: 2
    Number of routers: 2
    Total Packets Redirected: 0
    Redirect access-list: 101
    Total Packets Denied Redirect: 13843
    Total Packets Unassigned: 0
    Group access-list: -none-
    Total Messages Denied to Group: 0
    Total Authentication failures: 0
    6509-1#sh ip wccp 61 de
    WCCP Cache-Engine information:
    Web Cache ID: 172.27.249.66
    Protocol Version: 2.0
    State: Usable
    Redirection: L2
    Packet Return: GRE
    Packets Redirected: 0
    Connect Time: 01:32:23
    Assignment: MASK
    Mask SrcAddr DstAddr SrcPort DstPort
    0000: 0x00001741 0x00000000 0x0000 0x0000
    Value SrcAddr DstAddr SrcPort DstPort CE-IP
    0032: 0x00001000 0x00000000 0x0000 0x0000 0xAC1BF942 (172.27.249.66)
    0033: 0x00001001 0x00000000 0x0000 0x0000 0xAC1BF942 (172.27.249.66)
    0034: 0x00001040 0x00000000 0x0000 0x0000 0xAC1BF942 (172.27.249.66)
    0035: 0x00001041 0x00000000 0x0000 0x0000 0xAC1BF942 (172.27.249.66)
    0036: 0x00001100 0x00000000 0x0000 0x0000 0xAC1BF942 (172.27.249.66)
    0037: 0x00001101 0x00000000 0x0000 0x0000 0xAC1BF942 (172.27.249.66)
    0038: 0x00001140 0x00000000 0x0000 0x0000 0xAC1BF942 (172.27.249.66)
    Now I am trying to redirect packets over the these appliances.
    However TCP connections could not be established between redireced subnets. I can sniff that packet is forwarded to the WAAS but it did not send a respond. I saw that bad bucket error are incrementing when I try new connections.
    HOAE1674#sh wccp gre | i buckets
    Packets dropped due to bad buckets: 516
    regards,
    Bulent

  • A question about a method with generic bounded type parameter

    Hello everybody,
    Sorry, if I ask a question which seems basic, but
    I'm new to generic types. My problem is about a method
    with a bounded type parameter. Consider the following
    situation:
    abstract class A{     }
    class B extends A{     }
    abstract class C
         public abstract <T extends A>  T  someMethod();
    public class Test extends C
         public <T extends A>  T  someMethod()
              return new B();
    }What I want to do inside the method someMethod in the class Test, is to
    return an instance of the class B.
    Normally, I'm supposed to be able to do that, because an instance of
    B is also an instance of A (because B extends A).
    However I cannot compile this program, and here is the error message:
    Test.java:16: incompatible types
    found   : B
    required: T
                    return new B();
                           ^
    1 errorany idea?
    many thanks,

    Hello again,
    First of all, thank you very much for all the answers. After I posted the comment, I worked on the program
    and I understood that in fact, as spoon_ says the only returned value can be null.
    I'm agree that I asked you a very strange (and a bit stupid) question. Actually, during recent months,
    I have been working with cryptography API Core in Java. I understood that there are classes and
    interfaces for defining keys and key factories specification, such as KeySpec (interface) and
    KeyFactorySpi (abstract class). I wanted to have some experience with these classes in order to
    understand them better. So I created a class implementing the interface KeySpec, following by a
    corresponding Key subclass (with some XOR algorithm that I defined myself) and everything was
    compiled (JDK 1.6) and worked perfectly. Except that, when I wanted to implement a factory spi
    for my classes, I saw for the first time this strange method header:
    protected abstract <T extends KeySpec> T engineGetKeySpec
    (Key key, Class<T> keySpec) throws InvalidKeySpecExceptionThat's why yesterday, I gave you a similar example with the classes A, B, ...
    in order to not to open a complicated security discussion but just to explain the ambiguous
    part for me, that is, the use of T generic parameter.
    The abstract class KeyFactorySpi was defined by Sun Microsystem, in order to give to security
    providers, the possibility to implement cryptography services and algorithms according to a given
    RFC (or whatever technical document). The methods in this class are invoked inside the
    KeyFactory class (If you have installed the JDK sources provided by Sun, You can
    verify this, by looking the source code of the KeyFactory class.) So here the T parameter is a
    key specification, that is, a class that implements the interface KeySpec and this class is often
    defined by the provider and not Sun.
    stefan.schulz wrote:
    >
    If you define the method to return some bound T that extends A, you cannot
    return a B, because T would be declared externally at invocation time.
    The definition of T as is does not make sense at all.>
    He is absolutely right about that, but the problem is, as I said, here we are
    talking about the implementation and not the invocation. The implementation is done
    by the provider whereas the invocation is done by Sun in the class KeyFactory.
    So there are completely separated.
    Therefore I wonder, how a provider can finally impelment this method??
    Besides, dannyyates wrote
    >
    Find whoever wrote the signature and shoot them. Then rewrite their code.
    Actually, before you shoot them, ask them what they were trying to achieve that
    is different from my first suggestion!
    >
    As I said, I didn't choose this method header and I'm completely agree
    with your suggestion, the following method header will do the job very well
    protected abstract KeySpec engineGetKeySpec (Key key, KeySpec key_spec)
    throws InvalidKeySpecException and personally I don't see any interest in using a generic bounded parameter T
    in this method header definition.
    Once agin, thanks a lot for the answers.

  • ACS 5.3.0.40 with Bluecoat Packetshaper via Radius Auth using PAP/CHAP

    Hi,
    We have a strange issue may be an known issue. We have the ACS 5.3.0.40 with Bluecoat Packetshaper (Packeteer) as the Radius Client and tried with PAP as well as CHAP with the suggested VSA. But once we try to authenticate with GUI in the PS end we get authentication failed. i.e its says invalid password but in the ACS end we get it as the Auth success log. We are not able to login to the PS as well. Anyone have any idea what is the issue anything to be done with the patch upgrade or any issue with the packetshaper??????
    below is the logs in ACS server.
    Logged At:        September 4,2012 4:10:26.250 PM
    RADIUS Status: Authentication        succeeded
    NAS Failure:
    Username: knpdtf
    MAC/IP Address:
    Network        Device: Test-PS : 10.187.115.83:
    Access Service: Radius Network
    Identity        Store: Internal Users
    Authorization Profiles: Permit Access
    CTS        Security Group:
    Authentication Method: PAP_ASCII
    By
    Karthik

    Hi,
    Do you have any special characters in the password? I would see if you can create an internal user in ACS and use a basic password (like cisco123) and see if the authentication will succeed. I have seen with some GUI based products that some special characters can cause some headaches.
    thanks,
    Tarik Admani
    *Please rate helpful posts*

  • Building a method with more than one result data

    Hi, everyone:
    I'm a little shy to ask this question, however, it's been hanging in my mind for so long, so I think I'd rather make a confession on it. You may laugh at me if you want, I'm ready for that, but I more look forward to that someone can really give me the light, or even the link, or some hint....
    For your ease of reading, I give the question first, and my whole story behind:
    When I need a method which can provide more than one result( in other words, multiple outputs), how can I do it in Java? As I know, either you pass and object, or the result of the function is an object will do , for the object contains the datas you want, but that means your needs for those data have to be defined in object format in advance, won't that be inconvinient? Or Java has a better solution for that?
    //And here's the whole story....
    I began my career as a programmer by starting with LabVIEW, it's a graphical programming language made by National Instrument, and it's powerful on DAQ, and industrial field. One of the most important issues on design is to devide your system into multiple functions( in its own term: subVI), I think it's just like applying structured analysis method.
    When we dealing with functions in LabVIEW, a programmer can define his own function with mulitiple inputs and outputs, for example, I can design a function called SumAndDevide, which accepts two input ( two variables to be summed and devided) and gives two results( result of summing and that of deviding).
    The methodology has its power, at least it provide the functional decomposition, and you can compose a suitable solution in certain circumstance even they are not the smallest unit function. And testing is easy. It affects me so large that I look the trail of it when I come to other programming languages. In COBOL( well, that is a VERY old COBOL version ), I was scared to find there is no protection to the inner data on the performed sections, while making a outside subroutine to be called is cubersome and really a hard work. When I came to Delphi, I knew that using the result of a function cannot satisfy me, for it give only one output, even you can define it as variant, but I think it's vague to realize. So I use the difference of called by value and called by reference to handle the problem, that is: a value parameter for the input, and a variable paramter for the output.
    Well, when I came to Java, I am stunned again, now there is no passing by reference mechanism in Java, otherwise you have to pass it as an object, but that means when you need multiple outputs, the output has to be defined in object form in advance. And that will be very inconvinient!! I tried to find some solutions, but I can't. So is there any way that in Java you can define a method with multiple output? or Java handles the problem in totally different way?
    Any comments will be appreciated!!
    Thanks!!
    aQunx from Taiwan

    You missed the most common OO solution - separation of concerns and implementation hiding.
    If you have a function which returns a string, that is one method of the object that provides the service.
    If you have a function which returns a real, that is a different method of the object.
    If both functions require common code, move that into a private method which is called by both. If the method is costly, cache the result.
    eg an aerodynamics properties class, which could be done as a multivalued return of (lift, drag), refactored to independent lift() and drag() methods, which delegate to an interpolate() method, which caches the interpolated value and uses mach, pressureHeight and _alpha to determine whether it should recalculate:  /**
       * Calculates the aerodynamic drag force at a given mach, alpha and pressure height.
      public double drag (final double aMach, final double aPressureHeight, final double aAlpha) {
        interpolate(aMach, aPressureHeight, aAlpha);
        return _drag;
       * Calculates the aerodynamic lift force at a given mach, alpha and pressure height.
      public double lift (final double aMach, final double aPressureHeight, final double aAlpha) {
        interpolate(aMach, aPressureHeight, aAlpha);
        return _lift;
      private void interpolate (final double aMach, final double aPressureHeight, final double aAlpha) {
        if (aMach != _mach) {
          setMach(aMach);
          _pressureHeight = Double.NaN;
        if (aPressureHeight != _pressureHeight) {
          setPressureHeight(aPressureHeight);
          _alpha = Double.NaN;
        if (aAlpha != _alpha) {
          setAlpha(aAlpha);
    ... actual interpolation happens in the private setXXX methods.

  • Runtime Error in JTable with JTableModel Implementation

    Hi,
    I tried to do a JTable (named "table) in my program, with an implementation of JTableModel, called DataContent (obj named "dc"). Now if I try to change dc's data and refresh the table in the window by doing a "table.setModel(dc);", my programm gives me just runtime errors.
    class MyFrame extends JFrame implements ActionListener{
    // This is the class of the JFrame which contains the table
    // globally defined vars:
    private DataContent dc;
    private final JTable table;
    // in someMethod(){
    public MyFrame(){
    // creates, inits and draws the table into the window - this works !
         JPanel jpPreview = new JPanel(new GridLayout(1,0));
         dc = new DataContent();
            table = new JTable(dc.getTableData(), dc.getCol());
            table.setPreferredScrollableViewportSize(new Dimension(500, 40));
            table.setBorder(borderPanel);
            jpPreview.add(table);
         jpSeparator.add(jpPreview);
    public void actionPerformed(ActionEvent ae) {
    // in the same class
              if(ae.getSource() == butLoadPath){
                   // choose a path by clicking on a button "butLoadPath"
                   szPath = sg.readPath();
                   labelLoadPath.setText(szPath);
                   dc.setPath(szPath);
                   dc.setContent(szToken);
              }else if(ae.getSource() == butSeparator){
                   // choose a different separator token by JRadioButtons
                   // when someone clicks on the button butSeparator,
                   // the table should be refreshed, with this function:
                   setPreview();
              }else...
    private void setPreview(){
              // reads out which option was chosen by the radiobuttons - this works
              // refreshes the Object[][] oData in dc - this works, too
              dc.setContent(szToken);
              // this should refresh the table obj in the JFrame,
              // this gives me some Null.pointer.exception - why ?
              table.setModel(dc);// ??? P R O B L E M ???
         }I have implemented the Interface DataContent like this:
    public class DataContent implements TableModel{
         // vars
         private int iRow,iCol;
         private String szInputData = "";
         char cToken, cLineLimiter;
         private Object[][] oData;
         // ctor
         public DataContent(){
              reset(); // set Elements...
         public void setPath( String szPath){          
              // read line from file obj...
         private void reset(){
              // set up an epmty set of data in the table...
         public void setContent( String szToken){          
              // separate content of szInputData by szToken and set oData...
         public Object[][] getTableData(){
              // return oData...
         public String[] getCol(){
              // gives some name for each column...
    ////////////////////////////////// automatic generated for the implementation of the interface JTableModel /////////////////
         /* (non-Javadoc)
          * @see javax.swing.table.TableModel#getRowCount()
         public int getRowCount() {
              // TODO Auto-generated method stub
              return iRow;
         /* (non-Javadoc)
          * @see javax.swing.table.TableModel#getColumnCount()
         public int getColumnCount() {
              // TODO Auto-generated method stub
              return iCol;
         /* (non-Javadoc)
          * @see javax.swing.table.TableModel#getColumnName(int)
         public String getColumnName(int columnIndex) {
              // TODO Auto-generated method stub
              String[] szColumnName = getCol();
              return szColumnName[columnIndex];
         /* (non-Javadoc)
          * @see javax.swing.table.TableModel#getColumnClass(int)
         public Class getColumnClass(int columnIndex) {
              // TODO Auto-generated method stub
              return null;
         /* (non-Javadoc)
          * @see javax.swing.table.TableModel#isCellEditable(int, int)
         public boolean isCellEditable(int rowIndex, int columnIndex) {
              // TODO Auto-generated method stub
              return false;
         /* (non-Javadoc)
          * @see javax.swing.table.TableModel#getValueAt(int, int)
         public Object getValueAt(int rowIndex, int columnIndex) {
              // TODO Auto-generated method stub
              return oData[rowIndex][columnIndex];
         /* (non-Javadoc)
          * @see javax.swing.table.TableModel#setValueAt(java.lang.Object, int, int)
         public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
              // TODO Auto-generated method stub
              // NO editing !
         /* (non-Javadoc)
          * @see javax.swing.table.TableModel#addTableModelListener(javax.swing.event.TableModelListener)
         public void addTableModelListener(TableModelListener l) {
              // TODO Auto-generated method stub
         /* (non-Javadoc)
          * @see javax.swing.table.TableModel#removeTableModelListener(javax.swing.event.TableModelListener)
         public void removeTableModelListener(TableModelListener l) {
              // TODO Auto-generated method stub
    }I tried to implement some of the automatic generated methods, without success, still the same problem. What can I do, that...
    table.setModel(dc);
    ...works without probs ???
    Is there a better way to do this - the table should not even be editable, just to be shown in the window, to give an impression ??
    THX

    Why are you creating you own TableModel. Use the DefaultTableModel its easier. If you don't want you cells to be editable then you just do this:
    JTable table = new JTable(...)
         public boolean isCellEditable(int row, int column)
              return false;
    };

  • How to create a method with an interface parameter?

    Hi there.
    I would create a method with an interface parameter. I mean this:
    public interface MyInt {
        public void method(int i);
    public class SubClass implements MyInt {
        public void method(int i) {
            System.out.println("The number is: " + i);
    public class MainClass {
        public MainClass(MyInt inter) {
            inter.method(10);
        public static void main(String[] args) {
    (*)     new MainClass(new SubClass());
    }I tried to compile this but do not work (incompatible types on (*)) . Is it possible to do something like that or not?

    I compiled and runned this code on my machine and it works fine.
    How did you did to compile and run this code ?
    Did you put each code on its own file or all codes in the same file ?
    I did like this:
    I put each code in its own file and put all in the same dir, after I did:
    javac -classpath . MainClass.java
    After that, I did:
    java -classpath . MainClass
    I hope this help you
    Lucas

  • Multicast issue with Win XP

              I am wondering if anyone else has encountered Multicast problems with Windows XP.
              I think I am, and believe these issues are preventing the servers in my clusters
              from syncing their JNDI tree bindings.
              I noticed this while configuring a JMS Server and Queues in a clustered development
              environment. It is a simple cluster of 2 servers both on a single Win XP machine,
              see post 14712 in weblogic.developer.interest.jms (http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jms&item=14712&utag=).
              I tried the MultiCast test utility (http://e-docs.bea.com/wls/docs81/admin_ref/utils.html#1199798)
              and found what I think means I have a multicast problem. Output follows:
              ------ Begin MultiCast test utility output: ------
              C:\bea\weblogic81\server\lib>java -cp weblogic.jar utils.MulticastTest -N server200
              -A 237.155.155.1 -t 15
              ***** WARNING ***** WARNING ***** WARNING *****
              Do NOT use the same multicast address as a running WLS cluster.
              Starting test. Hit any key to abort
              Using multicast address 237.155.155.1:7001
              Will send messages under the name server200 every 2 seconds
              Will print warning every 15 seconds if no messages are received
              I (server200) sent message num 1
              I (server200) sent message num 2
              I (server200) sent message num 3
              I (server200) sent message num 4
              I (server200) sent message num 5
              I (server200) sent message num 6
              I (server200) sent message num 7
              java.net.SocketTimeoutException: Receive timed out
              at java.net.PlainDatagramSocketImpl.receive(Native Method)
              at java.net.DatagramSocket.receive(Unknown Source)
              at utils.MulticastTest$Receiver.run(MulticastTest.java:304)
              I (server200) sent message num 8
              I (server200) sent message num 9
              I (server200) sent message num 10
              I (server200) sent message num 11
              ------ End MultiCast test utility output: ------
              I expected to see "Received message X from server200" messages, like I saw from
              the Win2K machines I tried.
              There is a Microsoft Knowledge Base Article - 827536, "An IP multicast may not
              be sent correctly from Windows XP or from Windows Server 2003" (http://support.microsoft.com/default.aspx?scid=kb;en-us;827536).
              The issue appears to be limited to computers with more than one network adapter
              (like I have). I am pursuing the hotfix from Microsoft, but these things take
              time.
              Anyone else having similar issues?
              Any and all help is appreciated.
              

              I am facing a problem and believe that its because of multicast too. The problem
              is seen on XP but not on W2000.
              The MulticastTest when executed does not show any message exchange at all. When
              a server is started I get following exception
              <BEA-000364> <Server failed during initialization. Exception:weblogic.server.ServerLifecycleException:
              Failed to listen on multicast address
              weblogic.server.ServerLifecycleException: Failed to listen on multicast address
                   at weblogic.cluster.ClusterCommunicationService.initialize(ClusterCommunicationService.java:57)
                   at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:922)
                   at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
                   at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
                   at weblogic.Server.main(Server.java:32)
              Caused by: java.net.SocketException: error setting options
                   at java.net.PlainDatagramSocketImpl.join(Native Method)
                   at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:134)
                   at java.net.MulticastSocket.joinGroup(MulticastSocket.java:274)
                   at weblogic.cluster.FragmentSocket.initializeMulticastSocket(FragmentSocket.java:92)
                   at weblogic.cluster.FragmentSocket.start(FragmentSocket.java:109)
                   at weblogic.cluster.MulticastManager.startListening(MulticastManager.java:164)
                   at weblogic.cluster.ClusterCommunicationService.initialize(ClusterCommunicationService.java:52)
                   ... 4 more
              >
              Are you experiencing similar problem ?
              Parag
              "Andy Frank" <[email protected]> wrote:
              >
              >I am wondering if anyone else has encountered Multicast problems with
              >Windows XP.
              > I think I am, and believe these issues are preventing the servers in
              >my clusters
              >from syncing their JNDI tree bindings.
              >
              >
              >I noticed this while configuring a JMS Server and Queues in a clustered
              >development
              >environment. It is a simple cluster of 2 servers both on a single Win
              >XP machine,
              >see post 14712 in weblogic.developer.interest.jms (http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jms&item=14712&utag=).
              >
              >
              >I tried the MultiCast test utility (http://e-docs.bea.com/wls/docs81/admin_ref/utils.html#1199798)
              >and found what I think means I have a multicast problem. Output follows:
              >
              >
              >------ Begin MultiCast test utility output: ------
              >C:\bea\weblogic81\server\lib>java -cp weblogic.jar utils.MulticastTest
              >-N server200
              >-A 237.155.155.1 -t 15
              >***** WARNING ***** WARNING ***** WARNING *****
              >Do NOT use the same multicast address as a running WLS cluster.
              >
              >
              >Starting test. Hit any key to abort
              >
              >
              >Using multicast address 237.155.155.1:7001
              >Will send messages under the name server200 every 2 seconds
              >Will print warning every 15 seconds if no messages are received
              >
              > I (server200) sent message num 1
              > I (server200) sent message num 2
              > I (server200) sent message num 3
              > I (server200) sent message num 4
              > I (server200) sent message num 5
              > I (server200) sent message num 6
              > I (server200) sent message num 7
              >java.net.SocketTimeoutException: Receive timed out
              > at java.net.PlainDatagramSocketImpl.receive(Native Method)
              > at java.net.DatagramSocket.receive(Unknown Source)
              > at utils.MulticastTest$Receiver.run(MulticastTest.java:304)
              > I (server200) sent message num 8
              > I (server200) sent message num 9
              > I (server200) sent message num 10
              > I (server200) sent message num 11
              >------ End MultiCast test utility output: ------
              >
              >I expected to see "Received message X from server200" messages, like
              >I saw from
              >the Win2K machines I tried.
              >
              >
              >There is a Microsoft Knowledge Base Article - 827536, "An IP multicast
              >may not
              >be sent correctly from Windows XP or from Windows Server 2003" (http://support.microsoft.com/default.aspx?scid=kb;en-us;827536).
              > The issue appears to be limited to computers with more than one network
              >adapter
              >(like I have). I am pursuing the hotfix from Microsoft, but these things
              >take
              >time.
              >
              >
              >Anyone else having similar issues?
              >
              >Any and all help is appreciated.
              

  • Interface methods with Exceptions

    I have an interface like the following
    public interface FooInterface
         void doMethod() throws Exception;
    }I've created a class which implements the interface
    public class BarClass implements FooInterface
         public void doMethod()
              // Code...
    }Why is it that when I compile the class, no warnings or compiler errors are generated when the exception reference is absent. When I change the signature of the class method to become..
    public void doMethod() throws ExceptionThe compiler error that appears is...
    doMethod() in BarClass cannot implement doMethod() in FooInterface; overridden method does not throw java.lang.Exception
    I'm confused. I recall seeing the opposite. That is, aren't compiler errors generated when I fail to add the exception to the implemented method in the class...Isn't that necessary to comply with the contract specified by the interface..

    When you implement an interface (or override amethod in a parent class)
    you can declare that you throw a narrower set ofexceptions--including
    none--because that doesn't violate the interface's(or parent class')
    promise not to throw more than that exception.Then the interface will define only "as bad as things
    could be" (struggling for words here) but will not
    impose requirements on the class to alert calling
    methods that the exception could be thrown.Yes, the interface is declaring a "things will be no worse than this" promise, but the method still has to declare any unchecked exceptions that it could throw. If the interface says throws FooException, BarException, then the implementing method is allowed to throw FooE, BarE, and any of their children. But if it turns out that my implementation only throws FooE, then I can declare throws FooE and skip the BarE in the implementation. If I also throw BarE, then I have to declare it. If the implementation also throws BazE and doesn't declare it, the compiler will complain about throwin an exception without declaring it, but if I declare it, then I'm violating the interface's contract, and the compiler will complain about that.
    So which exceptions are declared/thrown is bound by a couple of things:
    1) All methods must declare all the unchecked exceptions they throw (or superclass(es) that encompass those exceptions).
    2) Any method that implements an interface cannot declare or throw any unchecked exceptions outside of what the interface declares.
    2a) But it can declare/throw less
    2b) But it still has to declare what it throws.
    >
    A user of your class who codes to the interfacestill has to handle the
    exception that the interface throws. If they code toyour implementing
    class, then they only have to handle whateverexceptions it throws--i.e.
    a (possibly) empty subset of what the interfacedeclares.
    This sounds like the class should declare that the
    method could throw an exception... I'm not sure what
    you mean by code to the interface vs code to the
    implementing class..I've compiled a class which
    implements an interface, the method in which includes
    an Exception Specification. The class, however,
    compiles without any mention of the Exception. Are
    you saying that methods which call the method in the
    class, must be prepared to catch the Exception of the
    method which is implemented from the interface,
    regardless of whether it is even announced in the
    class?... It is implicitly passed on then..
    interface Foo {
        void foo() throws FooE;
    class FooImpl implements Foo {
        public void foo() { // I don't throw any exceptions, so I needn't declare anything
            // do nothing
    // coding to the interface--the preferred way. All I know about f1 is that it's a Foo
    Foo f1 = new FooImpl();
    // coding to the implementation. I know that f2 is a FooImpl which implements Foo
    FooImpl f2 = new FooImpl();
    // f1 is a Foo, and therefore can throw FooE
    try {
        f1.foo();
    catch (FooE exc) {
        // handle
    // f2 is a FooImpl, and therefore we know it throws no exceptions
    f2.foo();Now that I think about it, I'm actually not 100% sure that my claims about having to catch only the implementation's exceptions (none, here) if you code to the implementation are accurate. I suggest you put the above code into some boilerplate and see if it compiles.

  • How do I call methods with the same name from different classes

    I have a user class which needs to make calls to methods with the same name but to ojects of a different type.
    My User class will create an object of type MyDAO or of type RemoteDAO.
    The RemoteDAO class is simply a wrapper class around a MyDAO object type to allow a MyDAO object to be accessed remotely. Note the interface MyInterface which MyDAO must implement cannot throw RemoteExceptions.
    Problem is I have ended up with 2 identical User classes which only differ in the type of object they make calls to, method names and functionality are identical.
    Is there any way I can get around this problem?
    Thanks ... J
    My classes are defined as followes
    interface MyInterface{
         //Does not and CANNOT declare to throw any exceptions
        public String sayHello();
    class MyDAO implements MyInterface{
       public String sayHello(){
              return ("Hello from DAO");
    interface RemoteDAO extends java.rmi.Remote{
         public String sayHello() throws java.rmi.RemoteException;
    class RemoteDAOImpl extends UnicastRemoteObject implements RemoteDAO{
         MyDAO dao = new MyDAO();
        public String sayHello() throws java.rmi.RemoteException{
              return dao.sayHello();
    class User{
       //MyDAO dao = new MyDAO();
       //OR
       RemoteDAO dao = new RemoteDAO();
       public void callDAO(){
              try{
              System.out.println( dao.sayHello() );
              catch( Exception e ){
    }

    >
    That's only a good idea if the semantics of sayHello
    as defined in MyInterface suggest that a
    RemoteException could occur. If not, then you're
    designing the interface to suit the way the
    implementing classes will be written, which smells.
    :-)But in practice you can't make a call which can be handled either remotely or locally without, at some point, dealing with the RemoteException.
    Therefore either RemoteException must be part of the interface or (an this is probably more satisfactory) you don't use the remote interface directly, but MyInterface is implemented by a wrapper class which deals with the exception.

  • Error when calling method with a return of double in j2me

    hello all,
    i have following problem with a j2me program:
    if i call a method with a return of double, then i get following error
    message:
    ERROR: floating-point constants should not appear
    Error preverifying class test.hallo
    what i'm doing wrong
    thanks in regard
    ----------------example----------------------------
    double yourValue(int y, int m, int d)
    double v = 0.10;
    v = 3.39 y m *d
    return v;
    public void startApp()
    int td;
    int y =2;
    int m =2;
    int d =2;
    td = yourValue(y,m,d);
    return(td);

    It's true for MIDP 1.0.
    But you can always use implementation of the float
    point arithmetic which was written by independent
    developers. For example see J2ME section of my
    homepage http://henson.newmail.ru
    anyway, double is reserved word in java, the way you wrote the source code in your example neither the preverifier nor the compiler will recognize that you intend to use your own types for double and float. maybe with Double or Float it would be different ...
    further question: you declare a void function, in the body, however, you try to return some value. something wrong with this function??
    regards
    bernard

  • Why not to use static methods - with example

    Hi Everyone,
    I'd like to continue the below thread about "why not to use static methods"
    Why not to use static methods
    with a concrete example.
    In my small application I need to be able to send keystrokes. (java.awt.Robot class is used for this)
    I created the following class for these "operations" with static methods:
    public class KeyboardInput {
         private static Robot r;
         static {
              try {
                   r = new Robot();
              } catch (AWTException e) {
                   throw new RuntimeException(e + "Robot couldn't be initialized.");
         public static void wait(int millis){
              r.delay(millis);
         public static void copy() {
              r.keyPress(KeyEvent.VK_CONTROL);
              r.keyPress(KeyEvent.VK_C);
              r.keyRelease(KeyEvent.VK_C);
              r.keyRelease(KeyEvent.VK_CONTROL);
         public static void altTab() {
              r.keyPress(KeyEvent.VK_ALT);
              r.keyPress(KeyEvent.VK_TAB);
              r.keyRelease(KeyEvent.VK_TAB);
              r.keyRelease(KeyEvent.VK_ALT);
                   // more methods like  paste(), tab(), shiftTab(), rightArrow()
    }Do you thinks it is a good solution? How could it be improved? I've seen something about Singleton vs. static methods somewhere. Would it be better to use Singleton?
    Thanks for any comments in advance,
    lemonboston

    maheshguruswamy wrote:
    lemonboston wrote:
    maheshguruswamy wrote:
    I think a singleton might be a better approach for you. Just kill the public constructor and provide a getInstance method to provide lazy initialization.Thanks maheshguruswamy for advising on the steps to create a singleton from this class.
    Could you maybe advise also about why do you say that it would be better to use singleton? What's behind it? Thanks!In short, it seems to me that a single instance of your class will be able to coordinate actions across your entire application. So a singleton should be enough.But that doesn't answer why he should prefer a singleton instead over a bunch of static methods. Functionally the two are almost identical. In both cases there's only one "thing" on which to call methods--either a single instance of the class, or the class itself.
    To answer the question, the main reason to use a Singleton over a classful of static methods is the same reason the drives a lot of non-static vs. static decisions: Polymorphism.
    If you use a Singleton (and and interface), you can do something like this:
    KeyboardInput kbi = get_some_instance_of_some_class_that_implements_KeyboardInput_somehow_maybe_from_a_factory();And then whatever is calling KBI's public methods only has to know that it has an implementor of that interface, without caring which concrete class it is, and you can substitute whatever implementation is appropriate in a given context. If you don't need to do that, then the static method approach is probably sufficient.
    There are other reasons that may suggest a Singleton--serialization, persistence, use as a JavaBean pop to mind--but they're less common and less compelling in my experience.
    And finally, if this thing maintains any state between method calls, although you can handle that with static member variables, it's more in keeping with the OO paradigm to make them non-static fields of an instance of that class.

  • Interfaces and methods with complex object

    In all the examples I have, the methods of an interface use only basic java datatypes (int, Character, ..)
    I want to pass a Vector that represents a list of objects from one of my own classes to an interface method.
    class Myclass ...
    private String p1;
    private int p2;
    myInterfaceMethod(..., Vector list, ...)
    // list is a vector of Myclass objects
    How do I know about Myclass when implementing the interface and how do I access p1 and p2 ?

    You can use any kind of "complex" object in your interface methods, all of them are objects at last.
    The other question seems to be a misunderstanding of interface implementation. When u "implement" an interface in a class, all that JVM does is to check that you actualy have one method (with code inside its body) for each method you defined previously in the interface.
    Think of an interface as a contract signed by a class. It's forced to implement each method definied in you interface. So, as the method is defined inside the class, you can access any data member of the class without doing anything "special". Do u catch it?

  • Cisco 5508 Wireless Controller with Splash Page Disclaimer

    How do one configure a splash disclaimer page on a Cisco Wireless Controller 5508 with no authentication?
    Jimmy

    There are many options to you in this scenario, but if you're looking to simply provide a splash page via the WLC without interacting with any other web servers, you can configure Local Web Authentication (LWA) as seen in this configuration example.
    http://www.cisco.com/c/en/us/support/docs/wireless-mobility/wlan-security/69340-web-auth-config.html?referring_site=RE&pos=1&page=http://www.cisco.com/c/en/us/support/docs/wireless-mobility/wlan-security/71881-ext-web-auth-wlc.html
    If you are not wanting the authentication, you can choose the "passthrough" method which will not require any credentials, only accepting an AUP or whatever you want.

  • H323 Video End Point calling Cisco Video Point seamlessly-How to Implement

    Dear All,
    Undergoing following scenario which as per technology should work but not able to implement it:
    1) Components available - CUCM 7.x, Polycom Video Phone (H323) , Cisco 7985 Video Phone , Normal PBX Phone
    Requirement:
    1) To assign a valid extension to all the Phone irrespective of whether it is Polycom, Cisco or PBX Phone
    2) All the phone can talk to each other seamlessly
    In case of PBX Phone= PBX Phone can reach to Cisco or Polycom unit via a PBX gateway. The calls from PBX phone is only Audio as PBX phone are not having Video support
    Polycom Video phone can call Cisco 7985 without any access code.
    Polycom and Cisco 7985 should register with their Valid DN to cisco Call Manger 7.x.
    Any pointer toward the config for implementing this will be of great help
    Regards
    M

    You can't loop anything you want.  You have to plan for it.  Have you planned for it?  The best you can do with it is add a couple of dissolves, then loop it.

Maybe you are looking for

  • I WANT TO PICK UP RFQ DATE ( REQUEST FOR QUATATION )  ?

    I WANT TO PICK UP RFQ DATE ( REQUEST FOR QUATATION ) . please tell me how to find RFQ Creation date. i used RM06E-ANFDT . but RM06E is the structure . i want the table name from which i can find RFQ DATE . PLEASE HELP ME.

  • 20" imac upgraded to yosemite, it doesn't recognise d2 quadra lacie

    previous i divided the lacie d2 quadra in two part: storage and back-up. after this os upgrade, not immediately, this external hd, with its partition doesn't appear on desktop, but the os recognize the d2 quadra lacie in the utility disk too. In util

  • On a Mac where can I find the Thunderbird library?

    I am trying to move my mailboxes to Apple Mail and I can't find the Thunderbird library. Where can I find the file?

  • Survey not found(CRM QUESTIONNAIRE)

    we have added a questionnaire in CRM. it works fine in SAP GUI.But when i try to see it in PCUI screen it says the survey is not assigned to a object.Can anyone suggest the possible causes.

  • Transaction FCHN authorization

    Hi Experts, I have a user who is trying to use transaction code FCHN with Payroll checks box checked.  First SU53 showed she was missing P_ABAP for a report with deg. of  simplification 02.  Now she gets passed the first step but she still gets missi