160n halt when connected using this method
hi there,
I have the following scenario which cause router 160n to be down
I have a 160n linksys router which is used as dsl router and directly connected to the internet, and I have another linksys router 160n which is connected to the first 160n router "DSL Router", and linux server (Squid & dhcp) which is also connected directly to the first 160n router " DSL router",
the problem accurs when I turn my linux srever on, the DSL router start flashing its lights and stop working until I disconnect my server and restart the router.
I wonder if anybody can help,
thanks with best regards
Make sure you have different IP for both routers and they are cascaded correctly. Search the Linksys web site on how to cascade two routers correctly.
Similar Messages
-
When to use "this." when not to ?
Hi, I know this will be a basic question, but can someone tell me the rule of when to use this.method/variable/etc and when not to ?
If I have (And I'll cut down the code,leaving construtors, etc.)
public abstract class DataStuff
protected String message = null;
protected void clearMessage()
this.message = null; // Do I use this.
message = null; // Or not ?
} // End clearMessage()
} // End Class ---------
Lets get more complicated
public class MoreStuff extends DataStuff
public void someMethod()
this.message = "Do I use This ?";
message = "Or Do I not ?";
this.clearMessage(); // or
clearMessage();
} // End someMethod()
} // End Class ------
I know this will be fairly simple, and I am sure there are lots of Tutorials I could not find that explain the difference between "this"
thanks
PaulBesides using the this reference for instance variables that have the same name as a local variable, it is also used when your class implements an interface and uses it in the class. Let me further explain. Lets pretend that you create a JFrame that has buttons on it. You want your buttons to handle events so you add an ActionListener to the buttons. You also want to code your event handling in the JFrame so you cause your JFrame to implement the ActionListener interface and implement the required method actionPerformed() in your JFrame class. Well, when you add and actionListener to the buttons, you have to use the this reference in the method signature. See code for example.import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class ExampleJFrame extends JFrame implements ActionListener {
public ExampleJFrame() {
super("Example using 'this' reference!");
Container c = getContentPane();
JButton button = new JButton("Push Me");
/* Here is the example of how the 'this' reference is
used. Since this class implements ActionListener,
that means it is an ActionListener. So, when
we add the method addActionListener to the button,
it requires that an ActionListener be put into
the method signature. So, I just pass a reference
to this class into it (using the 'this' reference).
Its actionPerformed method will be called. There
are 3 ways I could think of to handle the
events for this button. One is to do it the way
I chose to do it; that is, have the originating
class (ExampleJFrame) handle it. That is where
the 'this' reference comes into play. Two is
to use an anonymous inner class. The second
option is useful if the code is small and
self contained. Three is to have another
class handle it, such as an Action. */
button.addActionListener(this);
c.add(button);
/* incidentally, you could put the this keyword in
front of each of these methods for readability,
but most people don't. I used it on the first
one to demonstrate it. */
//cause the program to end when closing
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
pack();
setVisible(true);
}//end constructor
/*=**************************************************
* actionPerformed(): required ActionListener method *
public void actionPerformed(ActionEvent e) {
/* the this reference is also used in here because
the showMessageDialog() should have as its
parent a component and we want the component to
be this JFrame */
JOptionPane.showMessageDialog(this,"You used the this pointer!");
}//end actionPerformed
public static void main(String args[]) {
/* when you run this class, a small JFrame with
a button will appear in the top left corner. */
ExampleJFrame app = new ExampleJFrame();
}//end main
}//end ExampleJFrame classtajenkins -
When we use setHeader() method??
hi,
when we use setHeader() method??Hello,
I need to place some parameters in a header and send the others as
a body. However when i try to place some in a header i get error.
This is the code of the CLIENT:
Header header=new Header();
Vector params = new Vector ();
params.addElement (new Parameter("UserName", String.class,
"xxx", Constants.NS_URI_SOAP_ENC));
(...) <-- other params (similar as the one above)
header.setHeaderEntries(params);
// build the call.
Call call = new Call();
call.setSOAPTransport(st);
call.setSOAPMappingRegistry (smr);
//"urn:xmethods-Temperature" (below--> for the temperature thing
call.setTargetObjectURI("https://www.creditinform.no/creditinform
.standardwebservice.ws2005207/InfoXML");
call.setMethodName("HitListPerson");
call.setEncodingStyleURI("http://schemas.xmlsoap.org/soap/encodin
g/");
call.setHeader(header);
And i get the following error:
java.lang.ClassCastException: org.apache.soap.rpc.Parameter
at org.apache.soap.Header.marshall(Header.java:134)
at org.apache.soap.Envelope.marshall(Envelope.java:197)
at org.apache.soap.Envelope.marshall(Envelope.java:162)
at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnect
ion.java:354)
at org.apache.soap.rpc.Call.invoke(Call.java:261)
Any sugestion could be helpfull.
Thank you for your time,
C.E. -
How to close parent window when we use call method l_window_manager- create
hi...
how to close parent window when we use call method l_window_manager->create_external_window
thank you.hi
good
go through this link,hope this ll help you to solve your problem
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/63a47dd9-0b01-0010-3d8e-de27242bf011
thanks
mrutyun^ -
Hi Experts,
How can i get a file header using this method cl_gui_frontend_services=>gui_download
Thanks
BasuHi,
You can use the FM - GUI_DOWNLOAD to specify the headers. It can be done in the following manner -
TYPES: BEGIN OF ty_head, "Structure for header
h(10) TYPE c,
END OF ty_head.
DATA: it_head TYPE TABLE OF ty_head WITH HEADER LINE.
"Adding header details
it_head-h = 'Field1'.
APPEND it_head.
it_head-h = 'Field2'.
APPEND it_head.
it_head-h = 'Field3'.
APPEND it_head.
it_head-h = 'Field4'.
APPEND it_head.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = p_file
filetype = 'ASC'
write_field_separator = 'X'
header = '00' "<= note this
TABLES
data_tab = it_tab
fieldnames = it_head[] "<= Pass your header table here
EXCEPTIONS
OTHERS = 1.
Hope this helps.
Regards,
Himanshu -
My computer is running very slowly and I have been told to delete everything off it and reinstall applications I need - iTunes is one of them...
However I'm scared that if I uninstall iTunes then reinstall it my music on my iPod will be deleted. If I use this method will my music be saved and be able to be reloaded onto iTunes and my iPod?!Backup iTunes to an External Hard Drive... Make sure Everything is on the EHD and Working to your satisfaction BEFORE Deleting anything on your computer.
iTunes: How to move the library to an EHD -
SetDataValueAt() ? How do i use this method ?
Hello,
I have a application that was made using jdeveloper and
bc4j,and in it I want to update a jjtextfield that is bound to a view object.I've read up on jutextfieldbinding and it has a method setDataValueAt(java.lang.Object,int attrindx) that I think i need.
Please show me how to use this method as I can't find examples anywhere.I am new to programming with BC4j.
Thanks in advance,
Carl LangFor textfields bindings, you may use
setDataValueAt(yournewvalue, 0) -
What is a Factory method and when to use this concept?
Could any one please describe what a factory method is and explain how I can use it by giving a simple example
A Factory Method (sometimes called a "virtual constructor") is a way to avoid hard coding what class is instantiated. Consider:
DataSource myDataSource = new DataSource();Now, if you want to use some other DataSource in your app, say, an XMLDataSource, then you get to change this code and all subsequent lines that use this, which can be a lot. If, however, you specified and interface for your DataSources, say, IDataSource, and you gave the DataSource class a static "create" method that would take some indication of what sort of DataSource to actually use, then you could write code like:
IDataSource myDataSource = DataSource.create(dataSourceString);And be able to pass in a dataSourceString describing what DataSource you wanted to use - and not have to recompile. Check out the Java Design Patterns site ( http://www.patterndepot.com/put/8/JavaPatterns.htm )
Make sense?
Lee -
Freeze/Hang when connecting using SSLSocket
Hi
I have a client/server connection using a SSLSocket. The SSL stuff is using a certificate inside a keystore with a public key which is stored in a signed .jar file, as part of the set of jars obtained by the client using Java Web Start (jars are signed, of course).
In the server side I have estabished the javax.net.ssl.keyStore and javax.net.ssl.keyStorePassword properties with the right values, and are pointing to the keystore where I have the private key wired to the public key inside the certificate stored in the client's keystore. This way I can use the default SSLServerSocketFactory to get a SSLServerSocket (and then SSLSockets from the ssocket.accept() method).
In the client side I do this:
char[] passwordKeystore = "keyForTheKeystore".toCharArray();
KeyStore ks = KeyStore.getInstance("JKS");
ks.load(CommManager.class.getResourceAsStream("/path/to/the/keystore/inside/the/jar/file"), passwordKeystore);
TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance("PKIX");
trustManagerFactory.init(ks);
KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
keyManagerFactory.init(ks, passwordKeystore);
SSLContext sslContext = SSLContext.getInstance("TLSv1");
sslContext.init(keyManagerFactory.getKeyManagers(), trustManagerFactory.getTrustManagers(), new SecureRandom());
SSLContext.setDefault(sslContext);
sslSocketFactory = sslContext.getSocketFactory();I'm exchanging data exchanging serialized Objects through this SSLSocket. I've tried to "startHandshake()" in the client right after "connect()" (also in the server with the SSLSocket I get from "ssocket.accept()"), before getting the reference to the streams, but I've also tried to skip this step. Then I get first the ObjectOutputStream and then the ObjectInputStream in both sides.
Here is the problem:
This code works fine in a computer, but in another (both Linux, only different versions of Ubuntu, and always using the oracle JVM; this happens with both java6 and java7) there is a strange delay when I try to get the ObjectOutputStream, and I tried to exchange the order (first OOS in one side and OIS in the other, just to test) but the problem is still there. After 25/30 seconds the connection is finally established and everything works.
By enabling debug in the java.net stack (I don't remember the exact name of the property) I've seen both VM's loading the known certificates, but everything is paused when it's going to obtain the reference to the streams, and finally works after this 25/30 seconds delay (I can see the helloClient and helloServer steps, and the algorithm negotiation).
What might be going on here? Is it really using the certificate I created (self-signed), or this delay is related with some timeout because of not being using the proper key pair, which finally forces the connection to use a default key pair provided by the server, as long as client autenthication is not required?
Regards
Edited by: 847698 on 08-oct-2012 13:33Ok, here it goes the output with debug enabled.
Output in client side:
keyStore is :
keyStore type is : jks
keyStore provider is :
--------------- At some point here my SSL stuff is initialized, using the code of my first post
init keystore
init keymanager of type SunX509
trustStore is: /path/to/keystore
trustStore type is : jks
trustStore provider is :
init truststore
adding as trusted cert:
MY CERT ------------------------------
trigger seeding of SecureRandom
done seeding SecureRandom
Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false
--------------- Ok establishing the TCP connection
SSLSocket socket = (SSLSocket)sslSocketFactory.createSocket();
socket.connect(new InetSocketAddress("192.168.x.x", port));
--------------- Ok before calling getOutputStream()
ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
--------------- 25/30 SECONDS DELAY HERE (blocked in this method call / constructor)
%% No cached client session
*** ClientHello, TLSv1
RandomCookie: GMT: 1349860735 bytes = { 181, 153, 31, 19, 148, 94, 0, 4, 123, 73, 50, 89, 135, 12, 124, 102, 190, 129, 104, 241, 115, 235, 116, 107, 28, 130, 24, 194 }
Session ID: {}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
Compression Methods: { 0 }
Thread-0, WRITE: TLSv1 Handshake, length = 81
Thread-0, WRITE: SSLv2 client hello message, length = 110
Thread-0, READ: TLSv1 Handshake, length = 1008
*** ServerHello, TLSv1
RandomCookie: GMT: 1349860735 bytes = { 117, 97, 0, 132, 86, 132, 98, 105, 137, 207, 30, 190, 224, 236, 92, 225, 159, 242, 115, 138, 144, 160, 243, 209, 43, 175, 221, 23 }
Session ID: {80, 117, 61, 127, 222, 181, 192, 12, 239, 17, 207, 187, 229, 245, 12, 138, 24, 56, 91, 245, 142, 29, 26, 188, 233, 49, 50, 71, 61, 68, 149, 16}
Cipher Suite: SSL_RSA_WITH_RC4_128_MD5
Compression Method: 0
Extension renegotiation_info, renegotiated_connection: <empty>
%% Created: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
** SSL_RSA_WITH_RC4_128_MD5
*** Certificate chainOutput in server side:
keyStore is : /path/to/keystore
keyStore type is : jks
keyStore provider is :
init keystore
init keymanager of type SunX509
found key for : keyjnlp
chain [0] = [
MY CERT ------------------------------
Algorithm: [MD5withRSA]
Signature:
trustStore is: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/cacerts
trustStore type is : jks
trustStore provider is :
init truststore
adding as trusted cert:
Subject: CN=SwissSign Platinum CA - G2, O=SwissSign AG, C=CH
Issuer: CN=SwissSign Platinum CA - G2, O=SwissSign AG, C=CH
Algorithm: RSA; Serial number: 0x4eb200670c035d4f
Valid from Wed Oct 25 10:36:00 CEST 2006 until Sat Oct 25 10:36:00 CEST 2036
adding as trusted cert:
LOTS OF CERTS ---------------------
trigger seeding of SecureRandom
done seeding SecureRandom
------- ServerSocket created OK
------- Before ssocket.accept()
Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false
matching alias: keyjnlp
Thread-0, called closeSocket()
Allow unsafe renegotiation: false
Allow legacy hello messages: true
Is initial handshake: true
Is secure renegotiation: false
--------------- Now I have a SSLSocket from accept()
--------------- Ok before calling getOutputStream()
ObjectOutputStream oos = new ObjectOutputStream(socket.getOutputStream());
--------------- 25/30 SECONDS DELAY HERE (blocked in this method call / constructor)
Thread-1, READ: SSL v2, contentType = Handshake, translated length = 81
*** ClientHello, TLSv1
RandomCookie: GMT: 1349860735 bytes = { 181, 153, 31, 19, 148, 94, 0, 4, 123, 73, 50, 89, 135, 12, 124, 102, 190, 129, 104, 241, 115, 235, 116, 107, 28, 130, 24, 194 }
Session ID: {}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA, TLS_EMPTY_RENEGOTIATION_INFO_SCSV]
Compression Methods: { 0 }
%% Created: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
*** ServerHello, TLSv1
RandomCookie: GMT: 1349860735 bytes = { 117, 97, 0, 132, 86, 132, 98, 105, 137, 207, 30, 190, 224, 236, 92, 225, 159, 242, 115, 138, 144, 160, 243, 209, 43, 175, 221, 23 }
Session ID: {80, 117, 61, 127, 222, 181, 192, 12, 239, 17, 207, 187, 229, 245, 12, 138, 24, 56, 91, 245, 142, 29, 26, 188, 233, 49, 50, 71, 61, 68, 149, 16}
Cipher Suite: SSL_RSA_WITH_RC4_128_MD5
Compression Method: 0
Extension renegotiation_info, renegotiated_connection: <empty>
Cipher suite: SSL_RSA_WITH_RC4_128_MD5I hope that's enough
Regards
Edited by: 847698 on 11-oct-2012 18:47 -
Proxy user when connecting using ODBC
Oracle 11gR1 RHEL 5 46 bit
Hi all,
I have a developer that successfully connects to PowerDesigner using an ODBC connection. However, when he tries the connection as a proxy user, it fails. Is it even possible to connect using the proxy method?
jim/jimpasswd - succeeds
jim[OE]/jimpasswd - fails
Thanks all.Yes, see the below links
http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/dblgcfg008.htm
http://www.dba-oracle.com/t_proxy_connect_authentication.htm
Hope this helps.
Regards
Click here to [Create, Drop and Alter ASM DiskGroups|http://www.oracleracexpert.com/2009/10/create-drop-and-alter-asm-disk-groups.html]
Click here to [Migrate Non-ASM Database to ASM using RMAN|http://www.oracleracexpert.com/2009/10/migrate-database-to-asm-using-rman.html]
http://www.oracleracexpert.com -
When I launched itunes on my new computer, I plugged my phone into it and turned on imatch. So now my library on my new computer is filled with music files. I am pretty sure that these files are not permanent and that they are only there because of icloud and imatch. I want the files to be permanent so I thought it would be best to use the method described above to transfer files with an external hard drive.
Should I erase all the music files on my new computer's itunes before I get started? My new computer is operating with Windows 8.Hey sunrise5656,
Great question. The current configuration you have can potentially be permanent as you want. You simply have to download all of the iTunes Match songs to the computer using the cloud download icon:
iTunes 11 for Windows: Access all your music anytime, anywhere with iTunes Match
http://support.apple.com/kb/PH12492
You can play songs directly from iCloud, or you can download songs so you can play them when you’re not connected to the Internet.
If a song is available in iCloud, it has a Download button next to it.
Thanks,
Matt M. -
Type Casting? When to use this concept?
There is one question bothering me very very much.
When should I use type casting?
For example
ClassNameQ c = (ClassNameQ) ......displayable
How do I know which 'cast type' to use? Is there a suitable pattern
we need to follow so that we can know 'Ah this is the cast
we need to use'
Please can any one point out which 'Cast type' points needs to be
followed?
RegardsYou can Cast an object from any subclass to its superclass,
or from a superclass to the sublass, if the object is already
an object of the subclass.
I have a class named Name:
public class Name {
I have a subclass named LastName:
public class LastName extends Name { [/b]
And another named FirstName:
[b]public class FirstName extends Name { [/b]
I create an object like this:
[b]LastName ln = new LastName("Johnson");
Then pass it to a method that can work on all names:
capitalFirstLetter(ln);
capitalFirstLetter(Name n) {
Now n in CapitalFirstLetter can be used only as a Name
object. Anything specific to the LastName object can't be used.
So if I need to use things specific to LastName I have to cast
the object to LastName. There is a problem, however, since this
method can work on all Names, so I don't know if the Name is
a LastName or not. The object itself DOES know, however, and
we can test, so we would cast to a subclass as follows:
if (n instanceof LastName) {
LastName ln = (LastName)n;
ln.addToGeneology();
} else of (n instanceof FirstName) {
FirstName fn = (FirstName)n;
fn.addOccurance();
Steve -
Validations when we use GET method
Hi Team,
I am using GET method with the following URL(example)
http://IP:8080/ords/schema_name/office/users/{user_id}
URI template : office/users/{user_id}
method:get
source type : Feed
Source : select * from emp where empno = :user_id;
Using the above URL I am able to get all the specified user details in the browser.
I want to add the validations to the service now, and response should be user defined.
Ex : when user not in the database
then respond with the error code and error name in JSON format ex:
items:
error code : 404
message: "somthing wrong"
I am not sure how we can achieve this functionality when we use SQL query.
Please suggest any possible solutions for this.
thanks
Chandrangrant dba_users view to apex and change the sql like this:
select * from emp where empno = :user_id and exists (select 1 from dba_users where username=:user_id); -
How to use this method in JSTL?help me please!
I know I can use "<C:set >" like as
<c:set var="clabel3" value="${portalCustomizeBean.portalPage}"/> ,
but now I want to use one method of portalCustomizeBean object not a attribute of it !!!!!
who would tell me how to use?
this is wrong in my code:
<c:set var="clabel" value="${portalCustomizeBean.currentPageLabel}"/>
<c:set var="clabel3" value="${portalCustomizeBean.toEntitiesExceptSpaceEscape(clabel)}"/>
but how to use "toEntitiesExceptSpaceEscape" method in JSTL?????Why can't you just assign the method's return value to a variable and then print that? A bit of scriptlet code will do the trick. (As much as we all hate to use scriptlet code.)
I believe you'll be able to do what you want in the 1.1 standard JSTL, but for now this will suffice. - MOD -
I have macbook pro 2012 4gb ram. I 'm using netbeans 7.2 for using programming. It took about 700mb.
I'm runing out of memeory when I use other applicaiton such as safari with netbens and inactive memory not clearing when not enough memory for other application.Why is this happing? Does netbens application leak memory?
Maybe you are looking for
-
I know how to enter title text but i need to know how to get an image next to the title of the page please help??
-
I have several PDF's linked on my website and they all open, just recently when I tried to link another one it won't open. You can see the website has the correct link (because it shows it on the bottom left hand side of the screen) but it will just
-
Splash Screen & Logo & Keys Configuration
Hi, Os: Windows 7 64bit. Oracle Fusion Middle ware 11g. I am tring to custom splash screen and logo . So i try to change the formsweb.cfg parameter (Logo & SplashScren) and i put the path of the images in forms_path and i am tring to configure my app
-
Adzapper broken with latest version of perl [solved]
Hi all, I believe adzapper is broken because the latest version of perl with ArchLinux no longer includes flush.pl. This is the error I get when trying to run adzapper (this is also what I get when running squid with adzapper as the redirector): adz
-
Re:Upgrade from 4.6c - Ecc 6.0
Hello SAP Friends, I am involved in a project of Technical Upgrade from 4.6 to ECC 6.0.I am a functional Consultant and with the Help of ABAPers i have to complete this Technical Upgrade. We have identified some Standard objects through SPAU/SPDD whi