Verify() within HostnameVerifier is not called

My intension is when I try to connect to URL, I have to check for whether the url is https and the certifact name maps to the issuedTo name of the certifacte. So I have written the code to check for the certificate name validation in verify method of HostnameVerifier class. But I dont think this method is called. Because am not able to see any SOPs written inside the method. But it prints out the contents of the page only if the url is https. Pls advice how can i check for certificate name. Below is my code.
import java.io.*;
import java.net.*;
import java.util.*;
import java.lang.reflect.*;
import javax.net.ssl.*;
import javax.naming.directory.*;
import java.security.cert.X509Certificate;
* SOAPTester
* AJ
public class SOAPTester {
//private static final String URL_TO_CONNECT = "http://localhost:8080/testapp/HelloWorld";
private static final String URL_TO_CONNECT = "https://uat-www2.netxpro.inautix.com";
//private static final String URL_TO_CONNECT = "http://java.sun.com";
private static final String PROXY_HOST = "172.25.10.10";
private static final String PROXY_PORT = "8080";
private static final String DNS_HOST = "dns://172.19.110.217";
private static final String INPUT_FILE = "c:/data/sample.xml";
private static final String SOAP_ACTION = "";
private static String username = "IN\\ajayaprakash";
private static String password = "******";
private static boolean enableDNSLookup = false;
private static boolean enableHttpsProxy = false;
private static boolean enableProxyAuth = false;
private static URL my_new_url = null;
public SOAPTester(String args[]) throws Exception {
my_new_url = new URL(URL_TO_CONNECT);
readOptions(args);
public void execute() throws Exception {
if(enableHttpsProxy)
enableHttpsProxy();
if(enableDNSLookup)
initDNSLookup();
connectToUrl(my_new_url);
private void enableHttpsProxy() {
System.setProperty("https.proxySet","true");
System.setProperty("https.proxyHost",PROXY_HOST);
System.setProperty("https.proxyPort",PROXY_PORT);
System.setProperty("http.proxySet","true");
System.setProperty("http.proxyHost",PROXY_HOST);
System.setProperty("http.proxyPort",PROXY_PORT);
private void initDNSLookup() throws Exception {
String dns_host = DNS_HOST;
InitialDirContext dnsLookup = null;
printMessage("Initializing DNS Lookup...");
if(dnsLookup == null) {
try {
Hashtable env = new Hashtable();
env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");
env.put("java.naming.provider.url", dns_host);
dnsLookup = new InitialDirContext(env);
} catch(Exception exp) {
printError("Failed to init DNS lookups");
throw exp;
private void connectToUrl(URL mynewurl) throws Exception {
try {
printMessage("Connecting to "+mynewurl);
HttpURLConnection soapConn = (HttpURLConnection) mynewurl.openConnection();
if(soapConn instanceof HttpsURLConnection)
((HttpsURLConnection)soapConn).setHostnameVerifier(new MyHostNameVerifier(URL_TO_CONNECT));
// Set request method to POST
soapConn.setRequestMethod("POST");
// Prepare for both input and output on POST
soapConn.setDoOutput(true);
soapConn.setDoInput(true);
// Turn off caching
soapConn.setUseCaches(false);
// Work around a Netscape bug
soapConn.setRequestProperty("Content-Type", "text/xml; charset=\"utf-8\"");
soapConn.setRequestProperty("SOAPAction",SOAP_ACTION);
//Proxy authorization needed
if(enableProxyAuth) {
String encoded = new String
((new sun.misc.BASE64Encoder()).encode(new String(username+":"+password).getBytes()));
soapConn.setRequestProperty("Proxy-Authorization", "Basic " + encoded);
OutputStreamWriter out = out = new OutputStreamWriter(soapConn.getOutputStream (),"UTF8");
BufferedReader bread = new BufferedReader(new InputStreamReader(new FileInputStream(INPUT_FILE)));
String line = "";
while(bread.ready()) {
line = bread.readLine() ;
if (line == null) break;
out.write (line,0,line.length());
bread.close();
out.flush ();
out.close();
long responseCode = soapConn.getResponseCode(); // force a wait until the response is ready
printMessage("HTTP Response code received = "+responseCode);
printMessage("HTTP Response received from server :\n");
BufferedReader br = new BufferedReader(new InputStreamReader(soapConn.getInputStream()));
line = null;
System.out.println("===================================================================");
while ((line = br.readLine()) != null) {
System.out.println(line);
System.out.println("===================================================================");
br.close();
soapConn.disconnect();
} catch(Exception e) {
printError("Unable to complete connection to URL");
throw e;
public static void main(String args[]) throws Exception {
SOAPTester tester = new SOAPTester(args);
tester.execute();
* MyHostNameVerifier
class MyHostNameVerifier implements HostnameVerifier {
private String myHostName;
public boolean verify(String urlHostname, SSLSession session)
          System.out.println("***Inside verify api***");
try {
java.security.cert.Certificate certs[] = session.getPeerCertificates();
String dn = ((X509Certificate)certs[0]).getSubjectDN().getName();
               String proHostName = "uat-www2.netxpro.inautix.com";
               int val = dn.indexOf(proHostName);
               System.out.println("Domain Name is>>"+dn+"<<"+val);
return dn.indexOf(proHostName) != -1;
} catch(Exception e) {
printError("Error verifying the Trust URL ="+e.getStackTrace());
return false;
//return true;
MyHostNameVerifier(String hostname)
          System.out.println("***Inside MyHostNameVerifier***");
myHostName = hostname;
private void readOptions(String opts[]) {
if(opts.length < 1)
return;
for(int cnt=0;cnt<opts.length;cnt++) {
if(opts[cnt].equals("-h")) {
printUsage();
break;
if(opts[cnt].equals("-d"))
enableDNSLookup = true;
if(opts[cnt].equals("-p"))
enableHttpsProxy = true;
if(opts[cnt].equals("-a")) {
enableProxyAuth = true;
password = opts[cnt+1];
private void printUsage() {
System.out.println("\n[Usage] java SOAPTester -[h][d][p][a]\n");
System.out.println("h = Print usage. This message");
System.out.println("d = Enable DNS lookup (optional)");
System.out.println("p = Enable HTTP Proxy. Change code to modify proxy URL (optional)");
System.out.println("a <password>= Enable Proxy Authentication.Supply password. Change code to modify USERID (optional)");
System.exit(0);
public void printMessage(String message) {
StringBuffer buf = new StringBuffer();
buf.append("[INFO] [");
buf.append((new Date()).toString());
buf.append("] ");
buf.append(message);
System.out.println(buf.toString());
public void printError(String message) {
StringBuffer buf = new StringBuffer();
buf.append("[ERROR] [");
buf.append((new Date()).toString());
buf.append("] ");
buf.append(message);
System.out.println(buf.toString());
}

Verifying the main bundle should be sufficient.
I ran a simple test last night.
#1 - Create Bundle with an Install Directory Action. (Install_Dir_Bundle)
#2 - Create a Bundle which had an Install Action of "Install Bundle Action" for Install_Dir_Bundle followed by launching a program action for a file in that directory. (Chain_Bundle)
#3 - Installed and Ran "Chain_Bundle" which created and populated the directory as well as launched the application.
#4 - I then deleted the directory and verified "Chain_Bundle". The directory was re-created and re-populated and the application successfully launched again.
Originally Posted by djbrightman
Hi
We have a bundle (several in fact!) that calls another bundle as an install action, prior to doing it's own thing.
(We often do this for large installers, to copy the install source locally prior to running a customised install e.g. license key)
Is there a way to force verify the called bundle?
e.g. we think the called bundle hasn't actually done what it set out to do, but ZCM seems to think it has completed, so we want to force it to run again
I've been looking at "zac bv <display name>" but reading around it seems to only work with files that the agent *thinks it has installed (i.e. those associated). In that case this relates to previous thread https://forums.novell.com/showthread...associated-%29
Any ideas or experience?
Cheers
David

Similar Messages

  • Hi, i hav an Iphone 4S (ios 7.1) with me.. it is abnormally increasing its temperature due to no reason and i am really worried about that. The fully charged phone is getting empty within minutes. Not able to attend the calls due to its overheating. help

    Hi, i hav an Iphone 4S (ios 7.1) with me.. it is abnormally increasing its temperature due to no reason and i am really worried about that. The fully charged phone is getting empty within minutes. Not able to attend the calls due to its overheating. help me please..
    It shows a 'temperature rise, need to cool down your phone' message regularly.. It happens when i when i try to connect my fone to the internet using cellular data, and it happens more suddenly when my 3g is on.. help me to sort out this, please

    Make an appointment with the Apple genius bar for an evaluation.

  • LABVIEW.LIB was not called from a LabVIEW process

    Hi All,
    I've inherited LV code that calls a CIN node to access a motor controller.  I'd like to compile this code to a .NET DLL, but receive the following error when calling it from an external source:
    I've read the knowledgebase article explaining the problem from here, as well as the following support questions:
    http://forums.ni.com/t5/LabVIEW/Labview-lib-was-not-called-from-a-labview-process/m-p/232548
    http://forums.ni.com/t5/LabVIEW/Problem-with-lsb-LABVIEW-LIB-was-not-called-from-a-LabVIEW/m-p/48809...
    http://forums.ni.com/t5/LabVIEW/Labview-lib-was-not-calld-from-a-labview-process/m-p/718427
    http://forums.ni.com/t5/LabVIEW/Building-a-LabVIEW-DLL-with-VIs-that-use-CINs/m-p/632817
    The conclusion seems to be recompiling is the answer.  I've tried recompiling the original CIN vi within LV with no success.  Do they mean to recompile the original C code against the newer labview.lib (sorry, I'm not all that familiar with how the CIN nodes work)?  Any suggestions would be awesome.  Thanks.
    -Joe

    You can't make use of LabVIEW manager functions in non-LabVIEW based processes. Basically unless the C code is for a CIN or DLL that is to be called by LabVIEW (inside the development system or a LabVIEW built application), any function pulled in from labview.lib is not available. LabVIEW.lib is an import library that does not implement any functions but simply imports them from the LabVIEW kernel, either the LabVIEW development system or the LabVIEW runtime DLL. And no you can't just link in the LabVIEW runtime DLL into your .Net application. This DLL needs to be started up and initialized in very specific ways, that only LabVIEW itself knows about when building an application.
    Basically if you want to recompile the code (yes in C/C++) for use in a non-LabVIEW application, you also have to remove all the link libraries from the LAbVIEW cintools directory, and replace any use of functions now unavailable (link error: unavailable external reference) with other similar functionality from your C runtime library. Or implement those functions yourself using C runtime library calls.
    Another possibility could be to actually create a LabVIEW executable that exports the functionality as ActiveX Server. Or in LabVIEW 2010 you could also select to create a .Net Interop Assembly from inside the LabVIEW project.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • TS3367 I can call my friend threw her face time, but she can not call me.

    My face time is able to call all my friends threw their face time.
    But when it comes to one of my friends, she can not call me or message me threw face time, she can't call anyone threw face time.
    I can't seem to figure out how to get hers to be able to call me.
    This is threw our I touch.
    Can someone help?
    Kristina

    shania11lp wrote:
    it didn't give me an i touch option
    Probably because there is no such thing as "i touch".
    It is iPod touch and the troubleshooting does call it out.
    "If you encounter an issue making or receiving a FaceTime call, verify you have the following:
    iPhone 4 or later, iPad 2 or later, or iPod touch (4th generation), with the latest available version of iOS."

  • Fast fromula related to oracle payroll are not called from Formula result window

    Hi,
    Few of the fast fromula related to oracle payroll are not called from Formula result window , please let me know how these fast formulas are called.
    Example : PAY_GB_EDI_MOVDED6_FOOTER
    Thanks,
    Subbu.

    Hi Subbu,
    Some reports are handled by the PYUGEN engine as Magnetic reports.
    These are old fashion reports to generate Magnetic files, like BACS EDI files etc..
    select * from ff_formulas_f
    where formula_name like 'PAY_GB_EDI_MOVDED6%';
    If you see the above, there are 3 formulas defined for generating this report - Header, Body & Footer.
    All are called in a sequence by the PYUGEN process based on what you seed in pay_magnetic_blocks.
    All the logic is within these Fast formulas.
    But as they're seeded there's nothing much you can do.
    Cheers,
    Vignesh

  • Customer Communication Preferences - Do Not Call & Do Not Email

    Oracle leverages Siebel CRM to develop an effective solution to address the Do Not Call and Email Permissible Use requirements. The application uses the Contacts functionality to manage communication preferences, which when defined, centrally synchronizes all contact records that share the same phone number and email address. Additionally, the relevant information is masked so Oracle employees cannot accidentally reach out to the contact. Therefore, the solution ensures that we are compliant with regulations, enables us to respect individuals' communication preferences and provides an audit trail of changes to their preferences.
    I am working on R12.1.2 and my customer want this feature to be implemented on our Oracle Application.
    My customer asked to implement this my seeing a blog post on Oracle Blogs
    Here is the URL: http://blogs.oracle.com/crm/entry/crm_at_oracle_series_do_not_ca
    This is the only hit I found on internet.
    did you guys ever worked on this kind of requirement ??
    would you guys please help me on how to implement this requirement?
    Thanks,
    Versatile!

    railman wrote:
    What ever happened to the "Do not call lists"??
    I get calls continually from a 616 area code to "lower my credit card interest rate".  It is a scam trying to get credit card numbers.
      I block the numbers on my account but within a few day to a week there is another call from 616 area code with the same scam.  How do I get rid of these for good !??!
    If you asked to be removed they hang up, if you question what credit card they are calling about they hang up, if you question anything about their service other than being willing to submit your card number they hang up.
    BUT, within a few days they call back on a different number, always 616 area code and usually the same exchange and no matter what you do you can't get rid of them unless you block the current number.  HELP!!!
    You can report them at donotcall.gov but it probably won't help.  The people dom't seem to care about breaking the law.

  • ResultSet.next was not called

    I have this query ://Attempt The DB insert
    ResultSet rs = stmt.executeQuery("SELECT lhh_demo_id_seq.nextval from dual");
    String Demo_ID = rs.getString(1);
    while(rs.next()) {
    while (i < 2) {
    i++;
    rs.close();
    try
    Date date = dt.parse(birth);
    System.out.println("date " + date);
    stmt.executeUpdate( "insert into lhh_demo_reg values (" + Demo_ID + "," + RegNo + "," + Name + ",to_date('" + date+"','DD-Mon-YYYY')," + Center_ID + ")");
    catch(Exception e){}
    // Now Register a NULL Admission Record
    i = 0;
    rs = stmt.executeQuery("SELECT lhh_adm_id_seq.nextval from dual");
    String Adm_ID = rs.getString(1);
    while(rs.next()) {
    rs.close();
    stmt.executeUpdate("insert into lhh_adm_reg values (" + Adm_ID + "," + Center_ID +" , " + Demo_ID + ")");
    // Now Register a NULL Procedure Record
    i = 0;
    rs = stmt.executeQuery("SELECT lhh_proc_id_seq.nextval from dual");
    String Proc_ID = rs.getString(1);
    while(rs.next()) {
    while (i < 2) {
    i++;
    rs.close();
    stmt.executeUpdate("insert into lhh_proc_reg values (" + Proc_ID + "," + Center_ID + "," + Demo_ID + "," + Adm_ID +")");
    //Now Register a NULL Lesion Record
    i = 0;
    rs = stmt.executeQuery("SELECT lhh_les_id_seq.nextval from dual");
    String Les_ID = rs.getString(1);
    while(rs.next()) {
    while (i < 2) {
    i++;
    rs.close();
    but i keep getting ResultSet.next was not called...can anyone help please?

    I'm not sure what exactly you are trying to do ... but ...
    You seem to have several ResultSets in action. The first step is to find which of your "selects" is giving this exception. So, go ahead a enclose your statements within a try catch finally block. Use the finally block to close your result set (if not null).
    Once you narrow down the offending code, post back with the offending part of the code & the result you got with stack trace (if you still can't figure out what's happenning)
    HTH
    --Das                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Fatal error Labview.lib not called from a Labview process

    in teststand my vi works fine with adapter set for LV development
    when I configure the LV adapter for runtime, I get fatal error Labview.lib not called from a Labview process
    what is going on?
    how do I fix it?
    thanks.

    Howdy Stephen -
    Are you by chance calling a LabVIEW DLL within your LabVIEW VI which is being called from TestStand?  I know this error occurs when a LabVIEW DLL built in a different version of LabVIEW than the selected Run-time Engine.
    Here is a KnowledgeBase which references the issue:
    KnowledgeBase 203EA3XC: LabVIEW.LIB Error When Calling a LabVIEW DLL Built with VIs That Use Externa...
    If this is the case, you will need to open the LabVIEW DLL source VI in the LabVIEW version you are using and rebuild the DLL.
    Thanks and have a great day!
    Regards,
    Andrew W || Applications Engineer
    National Instruments

  • Ever a reason to not call notify()?

    within a sychronized block, is there ever a reason to not call notify(); just before exiting?
    specifically, i'm sharing a collection across multiple thread classes.
    (1) if i know that no thread will ever wait() on the collection, i never need to invoke notify().
    (2) yet, is there ever any downside to always invoking notify();
    in the future, it might happen that some object will wait() on the shared collection. and due to
    encapsulation of the source, the new developer will not see this, or do anything about it.
    so, just to be safe, shouldn't i always call notify(). ?
    other minor issue:
    (1) when possible shouldn't i use notify() instead of notifyAll() ?
    if all waiting threads awaken, then there must be some overhead involved for
    resolving which of the competing objects will get the lock?

    ropp wrote:
    in the future, it might happen that some object will wait() on the shared collection. and due to
    encapsulation of the source, the new developer will not see this, or do anything about it.
    so, just to be safe, shouldn't i always call notify(). ?Then you have a much bigger issue at hand. Specifically, you are creating a shared API where usage of that API is completely dependent on some unexposed internals of that API. I'd say you should instead design your shared points so this isn't an issue.

  • An exception occured within the external code called by a Call Library function Node

    Good Morning,
    I built a VI that contains Matlab nodes in Labview 8.0.  I made an executable and gave it to a colleage to use who is running Windows XP.  I see in the folder C:\Program Files\National Instruments\Shared\LabVIEW Run-Time that she has 7.1 and 8.0 run time engines installed.
    On Friday the executable ran great on her machine.  Today, when she tried running it I received the following error.  "LabVIEW:  An exception occured within the external code called by a Call Library Function Node.  This might have corrupted LabVIEW's memory.  Save any work to a new location and restart LabVIEW.  'my vi' was stopped at node 0x0 of subVI "NI_AALBase.lvlib:Real A x B.vi:1".  This error occured after part of the program ran properly.  More specifically, two of the matlab nodes ran perfectly.  I am unsure about the third because the program stopped too early.  I do have to multiply two matrices using the subvi Real A x B.  Is this causing the error?
    I also saw this error when I installed it on another computer.  However I do not see this error when I run the executable or the main vi on my machine  I know there are other discussions on this topic, however I do not know why it would affect some machines and not others.  Also, I do not know why it would work on Friday and not on Monday.  Should I have checked the box that said "Enable Debugging" under the advanced section when building the executable?
    If anyone could help, I would be very appreciative.
    Thanks,
    -Richard

    molecularvisions wrote:
    Good Morning,
    I built a VI that contains Matlab nodes in Labview 8.0.  I made an executable and gave it to a colleage to use who is running Windows XP.  I see in the folder C:\Program Files\National Instruments\Shared\LabVIEW Run-Time that she has 7.1 and 8.0 run time engines installed.
    On Friday the executable ran great on her machine.  Today, when she tried running it I received the following error.  "LabVIEW:  An exception occured within the external code called by a Call Library Function Node.  This might have corrupted LabVIEW's memory.  Save any work to a new location and restart LabVIEW.  'my vi' was stopped at node 0x0 of subVI "NI_AALBase.lvlib:Real A x B.vi:1".  This error occured after part of the program ran properly.  More specifically, two of the matlab nodes ran perfectly.  I am unsure about the third because the program stopped too early.  I do have to multiply two matrices using the subvi Real A x B.  Is this causing the error?
    This is most likely an error with the use of the Call Library Node, but not in the Real A x B.vi itself. This is a VI that comes with LabVIEW and has been tried and tested many times and unless your LabVIEW installation is messed up simply shouldn't fail in such a way on its own.
    However you do include Matlab code somewhere and that might be more likely to cause this. Are you using the built in MathScript node or some other way to communicate directly to a Matlab DLL or such?
    Are you using anywhere Call Library Nodes that you have created or that did at least not come standard with LabVIEW?
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Strange behavior: action method not called when button submitted

    Hello,
    My JSF app is diplaying a strange behavior: when the submit button is pressed the action method of my managed bean is not called.
    Here is my managed bean:
    package arcoiris;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    public class SearchManagedBean {
        //Collected from search form
        private String keyword;
        private String country;
        private int[] postcode;
        private boolean commentExists;
        private int rating;
        private boolean websiteExists;
        //Used to populate form
        private List<SelectItem> availableCountries;
        private List<SelectItem> availablePostcodes;
        private List<SelectItem> availableRatings;
        //Retrieved from ejb tier
        private List<EstablishmentLocal> retrievedEstablishments;
        //Service locator
        private arcoiris.ServiceLocator serviceLocator;
        //Constructor
        public SearchManagedBean() {
            System.out.println("within constructor SearchManagedBean");
            System.out.println("rating "+this.rating);
        //Getters and setters
        public String getKeyword() {
            return keyword;
        public void setKeyword(String keyword) {
            this.keyword = keyword;
        public String getCountry() {
            return country;
        public void setCountry(String country) {
            this.country = country;
        public boolean isCommentExists() {
            return commentExists;
        public void setCommentExists(boolean commentExists) {
            this.commentExists = commentExists;
        public int getRating() {
            return rating;
        public void setRating(int rating) {
            this.rating = rating;
        public boolean isWebsiteExists() {
            return websiteExists;
        public void setWebsiteExists(boolean websiteExists) {
            this.websiteExists = websiteExists;
        public List<SelectItem> getAvailableCountries() {
            List<SelectItem> countries = new ArrayList<SelectItem>();
            SelectItem si_1 = new SelectItem();
            SelectItem si_2 = new SelectItem();
            SelectItem si_3 = new SelectItem();
            si_1.setValue("2");
            si_1.setLabel("ecuador");
            si_2.setValue("1");
            si_2.setLabel("colombia");
            si_3.setValue("3");
            si_3.setLabel("peru");
            countries.add(si_1);
            countries.add(si_2);
            countries.add(si_3);
            return countries;
        public void setAvailableCountries(List<SelectItem> countries) {
            this.availableCountries = availableCountries;
        public List<SelectItem> getAvailablePostcodes() {
            List<SelectItem> postcodes = new ArrayList<SelectItem>();
            SelectItem si_1 = new SelectItem();
            SelectItem si_2 = new SelectItem();
            SelectItem si_3 = new SelectItem();
            si_1.setValue(75001);
            si_1.setLabel("75001");
            si_2.setValue(75002);
            si_2.setLabel("75002");
            si_3.setValue(75003);
            si_3.setLabel("75003");
            postcodes.add(si_1);
            postcodes.add(si_2);
            postcodes.add(si_3);
            return postcodes;
        public void setAvailablePostcodes(List<SelectItem> availablePostcodes) {
            this.availablePostcodes = availablePostcodes;
        public List<SelectItem> getAvailableRatings() {
            List<SelectItem> ratings = new ArrayList<SelectItem>();
            SelectItem si_1 = new SelectItem();
            SelectItem si_2 = new SelectItem();
            SelectItem si_3 = new SelectItem();
            si_1.setValue(1);
            si_1.setLabel("1");
            si_2.setValue(2);
            si_2.setLabel("2");
            si_3.setValue(3);
            si_3.setLabel("3");
            ratings.add(si_1);
            ratings.add(si_2);
            ratings.add(si_3);
            return ratings;
        public void setAvailableRatings(List<SelectItem> availableRatings) {
            this.availableRatings = availableRatings;
        public int[] getPostcode() {
            return postcode;
        public void setPostcode(int[] postcode) {
            this.postcode = postcode;
        public List<EstablishmentLocal> getRetrievedEstablishments() {
            return retrievedEstablishments;
        public void setRetrievedEstablishments(List<EstablishmentLocal> retrievedEstablishments) {
            this.retrievedEstablishments = retrievedEstablishments;
        //Business methods
        public String performSearch(){
            System.out.println("performSearchManagedBean begin");
            SearchRequestDTO searchRequestDto = new SearchRequestDTO(this.keyword,this.country,this.postcode,this.commentExists,this.rating, this.websiteExists);
            SearchSessionLocal searchSession = lookupSearchSessionBean();
            List<EstablishmentLocal> retrievedEstablishments = searchSession.performSearch(searchRequestDto);
            this.setRetrievedEstablishments(retrievedEstablishments);
            System.out.println("performSearchManagedBean end");
            return "success";
        private arcoiris.ServiceLocator getServiceLocator() {
            if (serviceLocator == null) {
                serviceLocator = new arcoiris.ServiceLocator();
            return serviceLocator;
        private arcoiris.SearchSessionLocal lookupSearchSessionBean() {
            try {
                return ((arcoiris.SearchSessionLocalHome) getServiceLocator().getLocalHome("java:comp/env/ejb/SearchSessionBean")).create();
            } catch(javax.naming.NamingException ne) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ne);
                throw new RuntimeException(ne);
            } catch(javax.ejb.CreateException ce) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ce);
                throw new RuntimeException(ce);
    }Here is my jsp page:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
             <html>
                 <head>
                     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                     <META HTTP-EQUIV="pragma" CONTENT="no-cache">
                     <title>JSP Page</title>
                 </head>
                 <body>
                     <f:view>
                         <h:panelGroup id="body">
                             <h:form id="searchForm">
                                 <h:panelGrid columns="2">
                                     <h:outputText id="keywordLabel" value="enter keyword"/>   
                                     <h:inputText id="keywordField" value="#{SearchManagedBean.keyword}"/>
                                     <h:outputText id="countryLabel" value="choose country"/>   
                                     <h:selectOneListbox id="countryField" value="#{SearchManagedBean.country}">
                                         <f:selectItems id="availableCountries" value="#{SearchManagedBean.availableCountries}"/>
                                     </h:selectOneListbox>
                                     <h:outputText id="postcodeLabel" value="choose postcode(s)"/>   
                                     <h:selectManyListbox id="postcodeField" value="#{SearchManagedBean.postcode}">
                                         <f:selectItems id="availablePostcodes" value="#{SearchManagedBean.availablePostcodes}"/>
                                     </h:selectManyListbox>
                                     <h:outputText id="commentExistsLabel" value="with comment"/>
                                     <h:selectBooleanCheckbox id="commentExistsField" value="#{SearchManagedBean.commentExists}" />
                                     <h:outputText id="ratingLabel" value="rating"/>
                                     <h:selectOneListbox id="ratingField" value="#{SearchManagedBean.rating}">
                                         <f:selectItems id="availableRatings" value="#{SearchManagedBean.availableRatings}"/>
                                     </h:selectOneListbox>
                                     <h:outputText id="websiteExistsLabel" value="with website"/>
                                     <h:selectBooleanCheckbox id="websiteExistsField" value="#{SearchManagedBean.websiteExists}" />
                                     <h:commandButton value="search" action="#{SearchManagedBean.performSearch}"/>
                                 </h:panelGrid>
                             </h:form>
                         </h:panelGroup>
                     </f:view>
                 </body>
             </html>
         here is my faces config file:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
        <managed-bean>
            <managed-bean-name>SearchManagedBean</managed-bean-name>
            <managed-bean-class>arcoiris.SearchManagedBean</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <navigation-rule>
           <description></description>
            <from-view-id>/welcomeJSF.jsp</from-view-id>
            <navigation-case>
            <from-outcome>success</from-outcome>
            <to-view-id>index.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
    </faces-config>The problem occurs when the field ratingField is left blank (which amounts to it being set at 0 since it is an int).
    Can anyone help please?
    Thanks in advance,
    Julien.

    Hello,
    Thanks for the suggestion. I added the tag and it now says:
    java.lang.IllegalArgumentException
    I got that from the log:
    2006-08-17 15:29:16,859 DEBUG [com.sun.faces.el.ValueBindingImpl] setValue Evaluation threw exception:
    java.lang.IllegalArgumentException
         at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:178)
         at com.sun.faces.el.impl.ArraySuffix.setValue(ArraySuffix.java:192)
         at com.sun.faces.el.impl.ComplexValue.setValue(ComplexValue.java:171)
         at com.sun.faces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:234)
         at javax.faces.component.UIInput.updateModel(UIInput.java:544)
         at javax.faces.component.UIInput.processUpdates(UIInput.java:442)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
         at javax.faces.component.UIForm.processUpdates(UIForm.java:196)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
         at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:363)
         at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:81)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         at java.lang.Thread.run(Thread.java:595)
    2006-08-17 15:29:16,875 DEBUG [com.sun.faces.context.FacesContextImpl] Adding Message[sourceId=searchForm:ratingField,summary=java.lang.IllegalArgumentException)Do you see where the problem comes from??
    Julien.

  • I have paid my sub and verified but I do not seem to to be able to use, every time I try it asks to suscribe again

    I have paid my sub and verified but I do not seem to to be able to use, every time I try it asks to suscribe again

    I paid via the window within Adobe Reader which took me to
    https://www.acrobat.com/en_gb/products/exportpdf/subscribe.html?trackingid=KLFWV&ttsrccat= IPMRDR11-ALL-ACOM-IPM201407ToolsRHP*Crtl-Control
    This is where I paid by credit card and was able to then sign in.
    They sent me the confirming email which I verified.  There was no ID or order number contained in the email.
    Rhonda Purcell
    [private information removed by moderator.]
    This message is for the named person's use only.  It may contain confidential, proprietary or legally privileged information.  No confidentiality or privilege is waived or lost by any mistransmission.  If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.  You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The Lake Munmorah Doctors' Surgery and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.
    If you ask us to transmit any document to you electronically, you agree to release us from any claim you may have as a result of any unauthorised copying, recording, reading or interference with the document after transmission, for any delay or non-delivery of any document and for any damage caused to your system or any files by a transmission (including a computer virus).

  • XAResource.stop not called on shutdown

    It seems that the stop method isn't called during an orderly shutdown of the J2EE 1.4 app server. I execute "Stop Default Domain". However, it is called when I stop it via Deploy Tool and als during redeploy.
    Is there something to configure?
    Problem is that SwiftMQ is started intraVM within the app server. It is started via XAResource.start and stopped in the stop method. If the latter isn't called, SwiftMQ is hard stopped and runs through the recovery procedure each time it starts up.
    -- Andreas

    I think, you mean resourceadapter.stop() and not
    XAResource.stop.Ooops. ;-) Of course, I meant ResourceAdapter...
    It is a bit tricky to do RA.stop when appserver gets
    shutdown. Typically RA.stop will be called only when
    the resource adapter is undeployed.
    It is tricky to call RA.stop while shutting down,
    since a RA might potentially hang at RA.stop and thus
    can fail the appserver shutdown.
    So, it is intentionally not called while appserver
    shuts down.
    What is your view?I would prefer to have an option to configure it. The default should be that stop is called. I guess the spec requires that or not?
    With SwiftMQ we have 2 different deployment options of our RA (and 2 different rar files with predefined properties). One option is to use an external SwiftMQ router. Here it is fine if you don't call the stop method because the RA is stateless and the SwiftMQ router is external. However, the other option is to run a SwiftMQ router intraVM, it is started during the RA.start method and is shut down during the RA.stop method. Since a SwiftMQ router writes a last check point on its tx log during an orderly shutdown, it is important that RA.stop is called otherwise this would be a hard crash for SwiftMQ and requires to run through the recovery procedure during startup.
    -- Andreas

  • Why can i not call out when in roaming but can recieve calls

    why can i not call out when roaming and my data shuts off but i can recieve calls

        rhondahuffman1,
    These are great question and we definitely want to help out! For starters, what model of device are we working with? Are you roaming outside of the country or is the device stating roaming within certain areas? What's your zip code? Happening in specific locations? Share some details, so that we may assist.
    AdamG_VZW
    Follow us on Twitter @VZWSupport

  • How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk

    How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk.i did try all the options but I can not find the phone number to call from Croatia,
    I can not change my Apple ID to the old mail (not possible!)
    The old mail don't accept the new password..
    I can not delete the Icloud all the time asking my the password of the old mail!
    I realy need help

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

Maybe you are looking for