Please find the vi named ""
I modified an application written in LabView 6.x. The message please find the vi named "" come up everytime I tried to open the main vi. I followed one of the solution to copy the block diagram, save it to a new vi and open this new vi. It did not work. Any idea?
Thanks,
Somehow, your vi thinks that there is a subvi in it somewhere named "". If you have subvi's in your block diagram, one of them could think it has another subvi in it named "". Sounds like a corrupted vi. Try copying just one section at a time to a new vi, save it, and open it again. This could point to where the problem lies. Then you would have to re-create the code from scratch for the section that is giving the problem.
- tbob
Inventor of the WORM Global
Similar Messages
-
Unable to find the Workbook named......
Helle All,
I am getting the following error when I call a Discoverer report from a URL link.
"Unable to find the Workbook named:ASSIGNEDPROJECTTEAMRPT
Select a valid Workbook from the list below."
When I get this error the worksheet called "ASSIGNEDPROJECTTEAMRPT" is in the list below. I am wondering why it says the worksheet doesn't exist then gives it to me a list?
Any ideas?
Thanks for any help,
BradleyWhoops that would be "Hello All"
Bradley -
Unable to find the Workbook named:REN_SUM1
Unable to find the Workbook named:REN_SUM1 Portal error
I am getting this error when i click the link in portal screen. The link should display a discoverer report. I am displaying the discoverer reports from portal.
Unable to find the Workbook named:REN_SUMMARY21
Select a valid Workbook from the list below.
However it provides a list of workbooks and from there i am able to select.Whoops that would be "Hello All"
Bradley -
Cannot find the XObject named Fm0003.
I am built a three page AOD report. When I run Test Presentment, the first two pages of the pdf display correctly on the screen, as I page down. When I page down to the third page I get the above message --"Cannot find the XObject named Fm0003". I click OK, and then get the following message --"Could not find font in resource library, using Helvetica instead". The font that I'm using throughout the report is a Times New Roman. The first two pages are in Times New Roman and the third page is in a different font. I welcome anyone who can educate me to what is happening in AOD. Thanks.
Questions:
* How do I find the XObject named Fm0003?
* How do I determine what font is missing from the resource library?Found this post when troubleshooting the error message "Could not find Xobject named '3'". If anyone else runs into the same issue when creating a PDF by importing from a scanner, my issue was a bad cmos battery that set the incorrect date. I changed the date and time to current and was importing PDFs again.
-
Problem Please open the Vi named popup
Hello
I have a problem opening a certain vi
when I open a vi lets say "Main.vi" labview popsup a "Please select the vi named: Main.vi"
this is a little strange for me. normaly you gets this message if a certain subvi or control cannot be findt in the location.
Normaly you can sellect the Vi mentioned but than I still cannot open the Main.vi
Ignore Vi also doesn't work the main.vi is not opened
I cannot open the Main.vi to look what was going wrong
Does someone have a sollution or surgestion to this problem
a day bevore I was doing some software changes in the Main.vi. But I don't know what I have done wrong.
greetings
Robert Nijhof (Silverbullet15)I will try to attach the Main.vi (I was looking for some extra info with google and it seems that NI knows this problem but do not have sollution
found message regarding my problem on
http://www.codecomments.com/archive273-2004-8-250624.html
Code is a litlle big ( I must reprogram it)
Attachments:
# Main Projectie XIGA2.vi 3710 KB -
Could not find the xobject named '3'.
i am using Adobe Acrobat 6.0 Professional, and HP scanjet 2400. but after scan display this error "could not find the xobject named '3'." not create pdf file. way.
Found this post when troubleshooting the error message "Could not find Xobject named '3'". If anyone else runs into the same issue when creating a PDF by importing from a scanner, my issue was a bad cmos battery that set the incorrect date. I changed the date and time to current and was importing PDFs again.
-
TOC - Receiving a "Cannot find the file named" error when pressing Ctrl+alt
When I generate a TOC, it comes out beautifully. However, when I press control + alt to check my links, I receive a "cannot find the file named" error message. This happens for the majority of the links. All of the files are present along with the graphics. Everything is in the same folder. They are saved on our network. However, I have packaged and copied the files to my desktop to see if that makes a difference. I am still receiving the same error message.
Has anyone seen this before? Any solutions in Adobe world? All help is appreciated.
Salome>>> ... avoid using & in your document titles.
>> By that do you mean in your file names?
> Yes. That's correct.
That's not at all surprising. & is commonly found on lists of random "characters to avoid in directory and file names".
A comprehensive list of such characters might be impossible to assemble. Even though FM only runs on Windows these days, it could be in a VM on another OS (with its own restrictions, e.g. Mac), using a CMS (with its own restrictions) and working with virtual directories actually located on completely different operating systems (with their own restrictions, e.g. Unix, Linux/Samba, random cloud).
And then there are naming issues in the FM app itself (and other Adobe apps that might need to process the files, like Distiller), which apparently is the case for the comma problem (it may only pop up during render to PDF). -
Hi
I have a new Labview 2009 suite set up for me by IT (I am a programmer new at Labview) and I have been given a Labview program (also in 2009) to modify for a project.
Unfortunately, the program keeps asking me to 'Find the VI Named "....vi"'. I have searched my PC and the other guy's directory (he is out of contact) and cannot find any of the .vi files requested.
So far I can only guess that:
1/ Labview wasn't set up with all the required modules (but which ones do I ask for? 'All of them' seems a bit unprofessional)
2/ the .vi files are inside .dlls or similar
3/ I need a patch or update for 2009 SP1
4/ The guy didn't give me everything (ie it's on his USB key or something)
If I hit 'ignore' for all the requests, the block diagram comes up with some greyed boxes with question marks in them. I have googled this question but I must be the only one too stupid to work this out myself...
Is there a master list of the NI .vi files so I can say something like 'I need the 'NI-Borg Assimilator' module', which contains the .vi I need?
Examples of .vi needed:
"kcm fund distort.vi"
"label to port bit number.vi"
"load select to port bits.vi"
"ULx Write (Digital 1D U8 NChan 1Samp).vi"
"ULx Write.vi"
"ULx Stop Task.vi"
"ULx Create Channel (D0-Digital Output).vi"
There are others, but hopefully this will twig for someone...
Thanks
BrendonI don't think you are missing any LabVIEW modules. But you might be missing some third party drivers.
Any chance you are using a Measurement Computing DAQ device?
The ones starting with UL... sound like ones in the MCC Universal Library. You can dowload and intall their driver from here http://www.mccdaq.com/software.aspx.
KCM fund distort sounds rather odd. I have no clue as to what that is supposed to mean.
The label and load might be a part of the MCC library, but I'm not sure.
Start by downloading and installing the MCC Universal Library, then try again. -
I can't find the plugin named 'China Online Banking Assistant'. How can I find it? thx
I can't find the plugin named 'China Online Banking Assistant' which friend recommend. How am I supposed to find it?
This?
*http://mozilla.com.cn/addon/182-coba/ -
I am getting following error in my application please find the sol...jax rs
15 Mar, 2013 1:09:49 PM com.sun.jersey.spi.container.ContainerRequest getEntity
SEVERE: A message body reader for Java class aero.omanair.flightStatus.vo.SearchCriteriaVO, and Java type class aero.omanair.flightStatus.vo.SearchCriteriaVO, and MIME media type application/octet-stream was not found.
The registered message body readers compatible with the MIME media type are:
application/octet-stream ->
com.sun.jersey.core.impl.provider.entity.ByteArrayProvider
com.sun.jersey.core.impl.provider.entity.FileProvider
com.sun.jersey.core.impl.provider.entity.InputStreamProvider
com.sun.jersey.core.impl.provider.entity.DataSourceProvider
com.sun.jersey.core.impl.provider.entity.RenderedImageProvider
*/* ->
com.sun.jersey.core.impl.provider.entity.FormProvider
com.sun.jersey.core.impl.provider.entity.MimeMultipartProvider
please solve the issue......
my pojo class is
package aero.omanair.flightStatus.vo;
import aero.omanair.flightStatus.util.FlightStatusUtils;
@Entity
@XmlRootElement
@Consumes({"MediaType.MULTIPART_FORM_DATA", "application/x-www-form-urlencoded"})
@Produces({"MediaType.MULTIPART_FORM_DATA", "application/x-www-form-urlencoded"})
@XStreamAlias("SearchCriteriaVO")
public class SearchCriteriaVO implements MessageBodyReader<JSONObject>, Serializable {
private static final long serialVersionUID = 1L;
static final Logger logger = Logger.getLogger(SearchCriteriaVO.class);
private static final DateFormat TIMESTAMP_FORMAT_DEFAULT = new SimpleDateFormat("yyyy-MM-dd");
private static final DateFormat DATE_FORMAT_DISPLAY = new SimpleDateFormat("dd-MMM-yyyy");
private String tripType;
private String fromStation;
private String toStation;
private String beginStationCode;
private String beginStationName;
private String destinationStationCode;
private String destinationStationName;
private String flightNumber;
private String flightDate;
private String flightDateDisp;
//private Date scheduledTimeDeparture;
private Timestamp scheduledTimeDep;
private int connectingTime;
private String searchResult;
private String searchdetails;
private String errorMessage;
private String infoMessage;
@XStreamImplicit
private Map<String,String> depDateList;
public SearchCriteriaVO(
String tripType,
String flightNumber,
String flightDate) {
this.tripType = tripType;
this.flightNumber = flightNumber;
this.flightDate = flightDate;
populateDateList();
public SearchCriteriaVO(
String tripType,
String beginStationCode,
String beginStationName,
String destinationStationCode,
String destinationStationName,
String flightDate) {
this.tripType = tripType;
this.beginStationCode = beginStationCode;
this.beginStationName = beginStationName;
this.destinationStationCode = destinationStationCode;
this.destinationStationName = destinationStationName;
this.flightDate = flightDate;
populateDateList();
public SearchCriteriaVO(){
String today="";
try {
Calendar cal = Calendar.getInstance();
today = TIMESTAMP_FORMAT_DEFAULT.format(cal.getTime());
} catch (Exception e) {
logger.error("Exception in SearchCriteriaVO: ", e);
this.setTripType("BRO");
this.setSearchResult("");
this.setFlightDate(today);
populateDateList();
@GET
private void populateDateList(){
try {
Calendar cal = Calendar.getInstance();
String today = TIMESTAMP_FORMAT_DEFAULT.format(cal.getTime());
String todayDisplay = DATE_FORMAT_DISPLAY.format(cal.getTime());
cal.add(Calendar.DATE, -1);
String yesterday = TIMESTAMP_FORMAT_DEFAULT.format(cal.getTime());
String yesterdayDisp = DATE_FORMAT_DISPLAY.format(cal.getTime());
cal.add(Calendar.DATE, +2);
String tomorrow = TIMESTAMP_FORMAT_DEFAULT.format(cal.getTime());
String tomorrowDisplay = DATE_FORMAT_DISPLAY.format(cal.getTime());
depDateList = new LinkedHashMap<String,String>();
depDateList.put(yesterday, yesterdayDisp);
depDateList.put(today, todayDisplay);
depDateList.put(tomorrow, tomorrowDisplay);
} catch (Exception e) {
logger.error("Exception in init: ", e);
@GET
public String toString() {
StringBuffer sb = new StringBuffer("SearchCriteria{");
sb.append("tripType :" + tripType);
sb.append(", beginStationCode :" + beginStationCode);
sb.append(", beginStationName :" + beginStationName);
sb.append(", destinationStationCode :" + destinationStationCode);
sb.append(", destinationStationName :" + destinationStationName);
sb.append("}");
return sb.toString();
@GET
public void setSearchInfoMsg(){
if(getTripType().equals("BRO")){
if(StringUtils.isNotBlank(getBeginStationName()) && StringUtils.isNotBlank(getDestinationStationName()) && StringUtils.isNotBlank(getFlightDateDisp())){
StringBuffer msg = new StringBuffer("Flight details for ");
msg.append(getBeginStationName());
msg.append(" - ");
msg.append(getDestinationStationName());
msg.append(" on : ");
msg.append(getFlightDateDisp());
setInfoMessage(msg.toString());
}else if(getTripType().equals("BFL")){
if(StringUtils.isNotBlank(getFlightNumber()) && StringUtils.isNotBlank(getFlightDateDisp())){
StringBuffer msg = new StringBuffer("Flight details for ");
msg.append("WY ");
msg.append(getFlightNumber());
msg.append(" on : ");
msg.append(getFlightDateDisp());
setInfoMessage(msg.toString());
@GET
public String getTripType() {
return tripType;
@GET
public void setTripType(String tripType) {
this.tripType = tripType;
@GET
public String getFromStation() {
return fromStation;
@GET
public void setFromStation(String fromStation) {
this.fromStation = fromStation;
@GET
public String getToStation() {
return toStation;
@GET
public void setToStation(String toStation) {
this.toStation = toStation;
@GET
public String getBeginStationCode() {
return beginStationCode;
@GET
public void setBeginStationCode(String beginStationCode) {
this.beginStationCode = beginStationCode;
@GET
public String getBeginStationName() {
return beginStationName;
@GET
public void setBeginStationName(String beginStationName) {
this.beginStationName = beginStationName;
@GET
public String getDestinationStationCode() {
return destinationStationCode;
@GET
public void setDestinationStationCode(String destinationStationCode) {
this.destinationStationCode = destinationStationCode;
@GET
public String getDestinationStationName() {
return destinationStationName;
@GET
public void setDestinationStationName(String destinationStationName) {
this.destinationStationName = destinationStationName;
@GET
public String getFlightNumber() {
return flightNumber;
public void setFlightNumber(String flightNumber) {
this.flightNumber = flightNumber;
@GET
public String getFlightDate() {
return flightDate;
@GET
public void setFlightDate(String flightDate) {
this.flightDate = flightDate;
* @return the depDateList
@GET
public Map<String, String> getDepDateList() {
return depDateList;
* @param depDateList the depDateList to set
@GET
public void setDepDateList(Map<String, String> depDateList) {
this.depDateList = depDateList;
@GET
public String getSearchResult() {
return searchResult;
@GET
public void setSearchResult(String searchResult) {
this.searchResult = searchResult;
@GET
public String getSearchdetails() {
return searchdetails;
@GET
public void setSearchdetails(String searchdetails) {
this.searchdetails = searchdetails;
/*public Date getScheduledTimeDeparture() {
return scheduledTimeDeparture;
public void setScheduledTimeDeparture(Date scheduledTimeDeparture) {
this.scheduledTimeDeparture = scheduledTimeDeparture;
* @return the scheduledTimeDep
@GET
public Timestamp getScheduledTimeDep() {
return scheduledTimeDep;
* @param scheduledTimeDep the scheduledTimeDep to set
@GET
public void setScheduledTimeDep(Timestamp scheduledTimeDep) {
this.scheduledTimeDep = scheduledTimeDep;
@GET
public int getConnectingTime() {
return connectingTime;
@GET
public void setConnectingTime(int connectingTime) {
this.connectingTime = connectingTime;
@GET
public String getErrorMessage() {
return errorMessage;
@GET
public void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
@GET
public String getInfoMessage() {
return infoMessage;
@GET
public void setInfoMessage(String infoMessage) {
this.infoMessage = infoMessage;
@GET
public String getFlightDateDisp() {
flightDateDisp = getFlightDate();
if(StringUtils.isNotBlank(flightDateDisp)){
flightDateDisp = FlightStatusUtils.getDisplayDate(flightDateDisp);
return flightDateDisp;
@GET
public void setFlightDateDisp(String flightDateDisp) {
this.flightDateDisp = flightDateDisp;
@GET
public boolean isReadable(Class<?> arg0, Type arg1, Annotation[] arg2,
MediaType arg3) {
// TODO Auto-generated method stub
return false;
//public Object readFrom(Class<Object> arg0, Type arg1, Annotation[] arg2,
// MediaType arg3, MultivaluedMap<String, String> arg4,
// InputStream arg5) throws IOException, WebApplicationException {
// TODO Auto-generated method stub
//return null;
@GET
public JSONObject readFrom(Class<JSONObject> arg0, Type arg1,
Annotation[] arg2, MediaType arg3,
MultivaluedMap<String, String> arg4, InputStream arg5)
throws IOException, WebApplicationException {
// TODO Auto-generated method stub
return null;
and my service class is
package aero.omanair.flightStatus.service.impl;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.MultivaluedMap;
import javax.ws.rs.ext.MessageBodyReader;
import javax.ws.rs.ext.MessageBodyWriter;
import javax.ws.rs.ext.Provider;
import javax.ws.rs.Produces;
import javax.ws.rs.Consumes;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
@Path("hello")
@Singleton
@Provider public class FlightStatusManagerImpl implements FlightStatusManager,Constants,MessageBodyReader<SearchCriteriaVO> {
private static final Object FlightStatusVO = null;
private FlightStatusDAO flightStatusDAO;
private SectorDAO sectorDAO;
private Object FloghtStatusVO;
private FlightStatusVO FlightStatus;
public FlightStatusManagerImpl()
SearchCriteriaVO cv=new SearchCriteriaVO();
cv.setFromStation("HYD");
cv.setToStation("BGL");
/*Method that returns the list of FlightStatusVO based on the searchCriteria*/
@GET
@Produces({"application/xml", "application/octet-stream"})
@Consumes({"application/xml", "application/octet-stream"})
public List<FlightStatusVO> searchAndExport(SearchCriteriaVO searchCriteria)throws OperationFailedException{
try{
// SearchCriteriaVO searchCriteria = buildSearchCriteriaObj(searchParametersVO);
List<FlightStatusVO> flightStatusVO = new ArrayList<FlightStatusVO>();
List<FlightStatusVO> flightStatusListVO = new ArrayList<FlightStatusVO>();
boolean connectionFlightChk= true;
//obCriteria = buildSearchCriteriaObj(request);
String tripType = searchCriteria.getTripType();
String fromStationCode = searchCriteria.getBeginStationCode();
String fromStationDesc = searchCriteria.getBeginStationName();
String toStationCode = searchCriteria.getDestinationStationCode();
String toStationDesc = searchCriteria.getDestinationStationName();
String fromStation = StringUtils.isNotBlank(fromStationCode) ? fromStationCode : "";
fromStation = fromStation + (StringUtils.isNotBlank(fromStationDesc) ? "("+fromStationDesc+")" : "");
String toStation = StringUtils.isNotBlank(toStationCode) ? toStationCode : "";
toStation = toStation + (StringUtils.isNotBlank(toStationDesc) ? "("+toStationDesc+")" : "");
searchCriteria.setFromStation(fromStation);
searchCriteria.setToStation(toStation);
flightStatusVO = flightStatusDAO.getDirectFlights(searchCriteria);
flightStatusDAO.setReplacementFlight(flightStatusVO, toStationCode, toStationDesc, false);
if(StringUtils.isNotBlank(tripType) && tripType.equals("BRO")){
if((StringUtils.isNotBlank(toStationCode) && toStationCode.contains(BASE_STATION_NAME))
|| (StringUtils.isNotBlank(toStationDesc) && toStationDesc.contains(BASE_STATION_NAME))
|| (StringUtils.isNotBlank(fromStationCode) && fromStationCode.contains(BASE_STATION_CODE))
|| (StringUtils.isNotBlank(fromStationDesc) && fromStationDesc.contains(BASE_STATION_NAME))){
connectionFlightChk = false;
if(connectionFlightChk){
searchCriteria.setConnectingTime(11);
List<FlightStatusVO> connectionFlights = flightStatusDAO.getCircularFlights(searchCriteria, BASE_STATION_CODE);
if(!connectionFlights.isEmpty()){
flightStatusVO.addAll(connectionFlights);
if((StringUtils.isNotBlank(fromStationCode) && fromStationCode.contains(BASE_STATION_CODE)) || (StringUtils.isNotBlank(fromStationDesc) && fromStationDesc.contains(BASE_STATION_NAME))) {
String sectorPattern = StringUtils.isNotBlank(toStationCode) ? "-"+toStationCode : "";
List<String> toSectors = null;
if(StringUtils.isNotBlank(sectorPattern)){
toSectors = sectorDAO.searchSectors(sectorPattern);
List<String> connectingSectors = new ArrayList<String>();
Iterator<String> it = toSectors.iterator();
while (it.hasNext()) {
String toSector = (String) it.next();
String connectingStation = toSector.split("-")[0];
connectingSectors.add(BASE_STATION_CODE+"-"+connectingStation);
if(connectingSectors.size() > 0){
List<String> validSectors = new ArrayList<String>();
validSectors = sectorDAO.checkSectorExist(connectingSectors);
Iterator<String> itr = validSectors.iterator();
while (itr.hasNext()) {
String sector = itr.next();
String stopOver = StringUtils.isNotBlank(sector) ? sector.split("-")[1] : null;
searchCriteria.setConnectingTime(9);
List<FlightStatusVO> circularFlights = flightStatusDAO.getCircularFlights(searchCriteria, stopOver);
if(!circularFlights.isEmpty()){
flightStatusVO.addAll(circularFlights);
} else if((StringUtils.isNotBlank(toStationCode) && toStationCode.contains(BASE_STATION_CODE)) || (StringUtils.isNotBlank(toStationDesc) && toStationDesc.contains(BASE_STATION_NAME))){
String sectorPattern = StringUtils.isNotBlank(fromStationCode) ? fromStationCode+"-" : "";
List<String> fromSectors = null;
if(StringUtils.isNotBlank(sectorPattern)){
fromSectors = sectorDAO.searchSectors(sectorPattern);
List<String> connectingFSectors = new ArrayList<String>();
Iterator<String> it = fromSectors.iterator();
while (it.hasNext()) {
String toSector = (String) it.next();
String connectingFStation = toSector.split("-")[1];
connectingFSectors.add(connectingFStation+"-"+BASE_STATION_CODE);
if(connectingFSectors.size()!=0){
List<String> validFSectors = new ArrayList<String>();
validFSectors = sectorDAO.checkSectorExist(connectingFSectors);
Iterator<String> itr= validFSectors.iterator();
while (itr.hasNext()) {
String sector = itr.next();
String stopOver = StringUtils.isNotBlank(sector) ? sector.split("-")[0] : null;
searchCriteria.setConnectingTime(9);
List<FlightStatusVO> circularFlights = flightStatusDAO.getCircularFlights(searchCriteria, stopOver);
if(!circularFlights.isEmpty()){
flightStatusVO.addAll(circularFlights);
flightStatusDAO.setReplacementFlight(flightStatusVO, toStationCode, toStationDesc, true);
searchCriteria.setBeginStationName(searchCriteria.getFromStation());
searchCriteria.setDestinationStationName(searchCriteria.getToStation());
//searchCriteria.setSearchResult("Flight Not Available");
//searchCriteria.setSearchdetails("Flight details for ");
//request.setAttribute("flightStatusList", flightStatusVO);
//request.setAttribute("searchCriteriaVO", obCriteria);
flightStatusVO = statusCalculation(flightStatusVO);
return flightStatusVO;
} catch (Exception e) {
/*SearchCriteriaVO searchCriteriaVO = new SearchCriteriaVO();
searchCriteriaVO.setErrorMessage(e.getMessage());
String tripType = StringUtils.isNotBlank(request.getParameter("tripType")) ? request.getParameter("tripType").trim() : null;
flightDate = request.getParameter("flightDate");
if(StringUtils.isNotBlank(tripType) && tripType.equals("BRO")){
fromStationName = StringUtils.isNotBlank(request.getParameter("fmCode_visible")) ? request.getParameter("fmCode_visible").trim() : null;
toStationName = StringUtils.isNotBlank(request.getParameter("toCode_visible")) ? request.getParameter("toCode_visible").trim() : null;
searchCriteriaVO.setTripType(tripType);
searchCriteriaVO.setFlightDate(flightDate);
searchCriteriaVO.setBeginStationName(fromStationName);
searchCriteriaVO.setDestinationStationName(toStationName);
} else if(StringUtils.isNotBlank(tripType) && tripType.equals("BFL")){
flightNumber = StringUtils.isNotBlank(request.getParameter("flightNumber")) ? request.getParameter("flightNumber").trim() : null;
searchCriteriaVO.setTripType(tripType);
searchCriteriaVO.setFlightDate(flightDate);
searchCriteriaVO.setFlightNumber(flightNumber);
request.setAttribute("searchCriteriaVO", searchCriteriaVO);*/
throw new OperationFailedException(e.getMessage());
public SearchCriteriaVO buildSearchCriteriaObj(SearchParametersVO searchParamenterVO) throws OperationFailedException{
String fromStationCode = null;
String fromStationDesc = null;
String toStationCode = null;
String toStationDesc = null;
String fromStation = searchParamenterVO.getFromStationName();
String toStation = searchParamenterVO.getToStationName();
if(StringUtils.isNotBlank(searchParamenterVO.getTripType()) && searchParamenterVO.getTripType().equals("BRO")) {
if(StringUtils.isNotBlank(fromStation)){
int length = (fromStation).length();
if(length > 3){
if(fromStation.contains("(") && fromStation.contains(")")){
int beginIndex = fromStation.indexOf("(");
int endIndex = fromStation.indexOf(")");
fromStationCode = fromStation.substring(0, beginIndex);
fromStationDesc = fromStation.substring(beginIndex+1, endIndex);
} else if(fromStation.contains("(")){
int beginIndex = fromStation.indexOf("(");
int endIndex = length;
fromStationCode = fromStation.substring(0, beginIndex);
fromStationDesc = fromStation.substring(beginIndex+1, endIndex);
} else if(fromStation.contains(")")){
int beginIndex = 0;
int endIndex = fromStation.indexOf(")");
fromStationCode = null;
fromStationDesc = fromStation.substring(beginIndex, endIndex);
} else{
fromStationCode = null;
fromStationDesc = fromStation;
} else if(length == 3 && !fromStation.contains("(") && !fromStation.contains(")")) {
fromStationCode = fromStation;
fromStationDesc = null;
} else{
//request.setAttribute("message", "Please enter a valid From Station");
throw new OperationFailedException("Please enter a valid From Station");
fromStationCode = flightStatusDAO.isValidFromStationCode(fromStationCode) ? fromStationCode : null;
fromStationDesc = flightStatusDAO.isValidFromStationDesc(fromStationDesc) ? fromStationDesc : null;
if(StringUtils.isBlank(fromStationCode) && StringUtils.isBlank(fromStationDesc)){
//request.setAttribute("message", "Please enter a valid From Station");
throw new OperationFailedException("Please enter a valid From Station");
if(StringUtils.isNotBlank(toStation)){
int length = toStation.length();
if(length > 3){
if(toStation.contains("(") && toStation.contains(")")){
int beginIndex = toStation.indexOf("(");
int endIndex = toStation.indexOf(")");
toStationCode = toStation.substring(0, beginIndex);
toStationDesc = toStation.substring(beginIndex+1, endIndex);
} else if(toStation.contains("(")){
int beginIndex = toStation.indexOf("(");
int endIndex = length;
toStationCode = toStation.substring(0, beginIndex);
toStationDesc = toStation.substring(beginIndex+1, endIndex);
} else if(toStation.contains(")")){
int beginIndex = 0;
int endIndex = toStation.indexOf(")");
toStationCode = null;
toStationDesc = toStation.substring(beginIndex, endIndex);
} else{
toStationCode = null;
toStationDesc = toStation;
} else if(length == 3 && !toStation.contains("(") && !toStation.contains(")")) {
toStationCode = toStation;
toStationDesc = null;
} else{
//request.setAttribute("message", "Please enter a valid To Station");
throw new OperationFailedException("Please enter a valid To Station");
toStationCode = flightStatusDAO.isValidToStationCode(toStationCode) ? toStationCode : null;
toStationDesc = flightStatusDAO.isValidToStationDesc(toStationDesc) ? toStationDesc : null;
if(StringUtils.isBlank(toStationCode) && StringUtils.isBlank(toStationDesc)){
//request.setAttribute("message", "Please enter a valid To Station");
throw new OperationFailedException("Please enter a valid To Station");
if(StringUtils.isNotBlank(fromStationCode) && StringUtils.isNotBlank(toStationCode) && fromStationCode.equalsIgnoreCase(toStationCode)){
//request.setAttribute("message", "From and To Stations cannot be the same");
throw new OperationFailedException("From and To Stations cannot be the same");
if(StringUtils.isNotBlank(fromStationDesc) && StringUtils.isNotBlank(toStationDesc) && fromStationDesc.equalsIgnoreCase(toStationDesc)){
//request.setAttribute("message", "From and To Stations cannot be the same");
throw new OperationFailedException("From and To Stations cannot be the same");
SearchCriteriaVO searchCriteriaVO = new SearchCriteriaVO(searchParamenterVO.getTripType(), fromStationCode, fromStationDesc, toStationCode, toStationDesc, searchParamenterVO.getFlightDate());
//session.putValue("searchCriteriaVO", searchCriteriaVO);
return searchCriteriaVO;
} else if(StringUtils.isNotBlank(searchParamenterVO.getTripType()) && searchParamenterVO.getTripType().equals("BFL")){
String flightNumber=StringUtils.isNotBlank(searchParamenterVO.getFlightNumber()) ? searchParamenterVO.getFlightNumber().trim() : null;
searchParamenterVO.setFlightNumber(flightNumber) ;
if(StringUtils.isBlank(searchParamenterVO.getFlightNumber())){
//request.setAttribute("message", "Please enter valid Flight Number");
throw new OperationFailedException("Please enter valid Flight Number");
SearchCriteriaVO searchCriteriaVO = new SearchCriteriaVO(searchParamenterVO.getTripType(), flightNumber, searchParamenterVO.getFlightDate());
//session.putValue("searchCriteriaVO", searchCriteriaVO);
return searchCriteriaVO;
} else{
//request.setAttribute("message", "Please select a valid Trip Type");
throw new OperationFailedException("Please select a valid Trip Type");
/*This method is written for displaying Flight Status: written on 28/1/2013*/
public List<FlightStatusVO> statusCalculation(List<FlightStatusVO> flightStatusListVO)
List<FlightStatusVO> flightStatus = new ArrayList<FlightStatusVO>();
//String flightStatusDescription;
//String statusDisplay;
if(flightStatusListVO.size()>0){
for(int i=0;i<flightStatusListVO.size();i++){
FlightStatusVO flightStatusVO =new FlightStatusVO();
flightStatusVO=flightStatusListVO.get(i);
if(flightStatusVO.getFlightStatus() =="CNLD" || flightStatusVO.getFlightStatus() =="RTND")
flightStatusVO.setStatusDisplay(flightStatusVO.getFlightStatusDesc());
else if(flightStatusVO.getActualTimeArv() != null)
flightStatusVO.setStatusDisplay("ARRIVED");
}else if(flightStatusVO.getActualTimeDep() != null)
flightStatusVO.setStatusDisplay("IN FLIGHT");
}else
flightStatusVO.setStatusDisplay("NOT YET DEPARTED");
flightStatus.add(flightStatusVO);
return flightStatus;
/*Method for displaying flight status ends here*/
public FlightStatusDAO getFlightStatusDAO() {
return flightStatusDAO;
public void setFlightStatusDAO(FlightStatusDAO flightStatusDAO) {
this.flightStatusDAO = flightStatusDAO;
public SectorDAO getSectorDAO() {
return sectorDAO;
public void setSectorDAO(SectorDAO sectorDAO) {
this.sectorDAO = sectorDAO;
public long getSize(Object arg0, Class arg1, Type arg2, Annotation[] arg3,
MediaType arg4) {
// TODO Auto-generated method stub
return 0;
public boolean isWriteable(Class arg0, Type arg1, Annotation[] arg2,
MediaType arg3) {
// TODO Auto-generated method stub
return false;
public void writeTo(Object arg0, Class arg1, Type arg2, Annotation[] arg3,
MediaType arg4, MultivaluedMap arg5, OutputStream arg6)
throws IOException, WebApplicationException {
// TODO Auto-generated method stub
public boolean isReadable(Class<?> arg0, Type arg1, Annotation[] arg2,
MediaType arg3) {
// TODO Auto-generated method stub
return false;
public SearchCriteriaVO readFrom(Class<SearchCriteriaVO> arg0, Type arg1,
Annotation[] arg2, MediaType arg3,
MultivaluedMap<String, String> arg4, InputStream arg5)
throws IOException, WebApplicationException {
// TODO Auto-generated method stub
return null;
plz find the solution...
thanks in advance
Edited by: 992108 on Mar 15, 2013 12:54 AMI think I remember hearing that if you quit iTunes with your device still connected, then open iTunes up again, it should work.
EDIT: Here, this might help: http://support.apple.com/kb/ts1567 -
Please find the sound driver for pavilion dv4 1365dx
I just downgrade vista from XP. However I cannot find any sound driver from my laptop...: (
I ve been tring all the drivers in realtek driver supports, but it did not work : (
Please help me
Message Edited by acaiself on 07-23-2009 09:01 PM
Message Edited by acaiself on 07-23-2009 09:02 PMHave you check XP downgrade guide here
Your sound chip is IDT
Pavilion DV2922TX, XP-SP3 32bit, Intel T5750 2.0Ghz, Nvidia Geforce 8400M GS with 128MB, 4GB 667 DDR2, 250GB HDD -
Help please, find the IP of my PC!!!
Hi!...
I want to find my IP address, and a was using:
String serverIP=InetAddress.getLocalHost().getHostAddress();
and I obtain :: 127.0.0.1
but I my IP machine for example is 172.30.50.20
I obtain always the local loopback address...
How I obtain my IPAdress?
Is there any other class that find my IP?
I'm under linux and using jdk1.3..
Thanks in advance
xxddI don understand, it doesn work with me, I obtain the
loopback address! And not my IP, are you sure that
there isn't other way to do it? beacause for me it
doesn't work :(
Could you please help me?
Thanks in advance
xxddMaybe it is not the case here, but in my /etc/hosts file I have the following records about local host:
127.0.0.1 localhost
111.222.333.444 machinename.domain.com machinename
When I 'ping localhost', I get 127.0.0.1 and when I 'ping machinename', I get 111.222.333.444 -
Please Find the error in this code
Hi , I am new to ajax.My problem is that i cannot insert a value in to a textfield which is fetched from a database(MySql). I have two jsp pages.Definition1.jsp and definition.jsp. I am giving the code below.[b]But it does not work[/b]. I don't know where is the problem. I am using Mozilla Firefox.. [b]Definition1.jsp[/b] <html> <%@ page language="java"%> <%@page contentType="text/html" %> <script language="Javascript" type="text/javascript"> function createRequestObject() { var tmpXmlHttpObject; if (window.XMLHttpRequest) { tmpXmlHttpObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { tmpXmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP"); } return tmpXmlHttpObject; } //call the above function to create the XMLHttpRequest object var http = createRequestObject(); function makeGetRequest(wordId) { //make a connection to the server ... specifying that you intend to make a GET request //to the server. Specifiy the page name and the URL parameters to send http.open('get','definition.jsp?id='+wordId); //assign a handler for the response http.onreadystatechange = processResponse; //actually send the request to the server http.send(null); } function processResponse() { //check if the response has been received from the server if(http.readyState == 4){ //read and assign the response from the server var result2 = http.responseText; var result = http.responseXML.documentElement; //do additional parsing of the response, if needed //in this case simply assign the response to the contents of the <div> on the page. document.getElementById('description').innerHTML = result2;//[b]this works correctly[/b] alert(result.getElementByTagName('p')[0].childNodes[0].nodeValue);//nothing happends here document.getElementById('name').value=result.getElementsByTagName('p')[0].childNodes[0].nodeValue; [u][b]//above code does not works and this is my problem[/b][/b[/u]] } } </script> <body> <form> <input type="text" id="name" size=10 value=" "></input> </form> <h1>Have you heard these terms before?</h1> Ceraunophobia More about Ceraunophobia<br> Astraphobia More about Astraphobia<br> <div id="description"> </div> </body> </html> [b]Definition.jsp[/b] <%@ page language="java"%><%@ page import="java.sql.*,java.io.*,java.util.*,javax.servlet.*"%> <?xml version="1.0" encoding="UTF-8"?> <% response.setContentType("text/xml"); response.setHeader("Cache-Control", "no-cache"); response.setHeader("pragma","no-cache"); Class.forName("com.mysql.jdbc.Driver").newInstance(); Connection con=DriverManager.getConnection("jdbc:mysql://itserver:3306/manzor?user=root&password="); Statement st= con.createStatement(); Statement st1= con.createStatement(); ResultSet rs,rs1; String id=request.getParameter("id"); rs=st.executeQuery("select * from user where USERTYPE='"+id+"'"); if(rs.next()){ %> // p tag is here , can't display it //<p> <p> <%=rs.getString(1)%></p> //<p> <% } %>[code] [/code] please help
Message was edited by:
manu_am
Message was edited by:
manu_amI'm not an AWT expert, but here's my best guess to the problem...
I'm not sure that the ActionListener is the correct event listener to use here.
I don't think the straight TextArea throws action events, I could be wrong here I mainly have experience with swing.
What event are you trying to react to here? Also is there any reason for not using Swing? Then you can use the JTextArea.
Hope I'm of some help :) -
Unable to find the User Named Account Name@Domain Name while Configuring Workflow Manager
Hi,
I have installed Work Flow Manager,Service Bus and its Cumulative Updates.
While Configuring Workflow Manger using Workflow Manager configuration wizard i am getting the error while creating a Service Bus Namespace.
I have provided the Service Accounts for both Workflow Manager and Service Bus as Domain\Account instead of
Account@Domain.
While looking in to the Power Shell scripts that are poupulated by the GUI i have identified that
Account@Domain is appended to the ManageUsers switch while creating a Service Bus Namespace and the GUI configuration is failing.
New-SBNamespace -Name 'WorkflowDefaultNamespace' -AddressingScheme 'Path' -ManageUsers 'Domain\Account','Account@Domain' -Verbose;
So i need to modify the Powershell script as below and need to run the Powershell scripts for configuring Workflow Manager.
Is this a bug in GUI Workflow Configuration Wizard or am i doing something wrong.
Please help.
New-SBNamespace -Name 'WorkflowDefaultNamespace' -AddressingScheme 'Path' -ManageUsers 'Domain\Account' -Verbose;
Scripts Populated from GUI modified for Making it working:
# To be run in Workflow Manager PowerShell console that has both Workflow Manager and Service Bus installed.
# Create new SB Farm
$SBCertificateAutoGenerationKey = ConvertTo-SecureString -AsPlainText -Force -String 'Run As Password' -Verbose;
New-SBFarm -SBFarmDBConnectionString 'Data Source=Server Name;Initial Catalog=SbManagementDB;Integrated Security=True;Encrypt=False' -InternalPortRangeStart 9000 -TcpPort 9354 -MessageBrokerPort 9356 -RunAsAccount 'Domain\Account' -AdminGroup 'Domain\Domain
Group' -GatewayDBConnectionString 'Data Source=Server Name;Initial Catalog=SbGatewayDatabase;Integrated Security=True;Encrypt=False' -CertificateAutoGenerationKey $SBCertificateAutoGenerationKey -MessageContainerDBConnectionString 'Data Source=Server Name;Initial
Catalog=SBMessageContainer01;Integrated Security=True;Encrypt=False' -Verbose;
# To be run in Workflow Manager PowerShell console that has both Workflow Manager and Service Bus installed.
# Create new WF Farm
$WFCertAutoGenerationKey = ConvertTo-SecureString -AsPlainText -Force -String 'Run As Password' -Verbose;
New-WFFarm -WFFarmDBConnectionString 'Data Source=Server Name;Initial Catalog=WFManagementDB;Integrated Security=True;Encrypt=False' -RunAsAccount 'Domain\Account' -AdminGroup 'Domain\Domain Group' -HttpsPort 12290 -HttpPort 12291 -InstanceDBConnectionString
'Data Source=Server Name;Initial Catalog=WFInstanceManagementDB;Integrated Security=True;Encrypt=False' -ResourceDBConnectionString 'Data Source=Server Name;Initial Catalog=WFResourceManagementDB;Integrated Security=True;Encrypt=False' -CertificateAutoGenerationKey
$WFCertAutoGenerationKey -Verbose;
# Add SB Host
$SBRunAsPassword = ConvertTo-SecureString -AsPlainText -Force -String 'Run As Password' -Verbose;
Add-SBHost -SBFarmDBConnectionString 'Data Source=Server Name;Initial Catalog=SbManagementDB;Integrated Security=True;Encrypt=False' -RunAsPassword $SBRunAsPassword -EnableFirewallRules $true -CertificateAutoGenerationKey $SBCertificateAutoGenerationKey -Verbose;
Try
# Create new SB Namespace
New-SBNamespace -Name 'WorkflowDefaultNamespace' -AddressingScheme 'Path' -ManageUsers 'Domain\Account' -Verbose;
Start-Sleep -s 90
Catch [system.InvalidOperationException]
# Get SB Client Configuration
$SBClientConfiguration = Get-SBClientConfiguration -Namespaces 'WorkflowDefaultNamespace' -Verbose;
# Add WF Host
$WFRunAsPassword = ConvertTo-SecureString -AsPlainText -Force -String 'Run As Password' -Verbose;
Add-WFHost -WFFarmDBConnectionString 'Data Source=Server Name;Initial Catalog=WFManagementDB;Integrated Security=True;Encrypt=False' -RunAsPassword $WFRunAsPassword -EnableFirewallRules $true -SBClientConfiguration $SBClientConfiguration -EnableHttpPort
-CertificateAutoGenerationKey $WFCertAutoGenerationKey -Verbose;
Thanks, Vijay ArockiasamyHi Vijay
uninstall this and install the one labeled Refresh 1
Kind Regards,
John Naguib
Senior Consultant
John Naguib Blog
John Naguib Twitter
Please remember to mark this as answered if it helped you -
Please find the reason of error
class Equal_1 {
private String name;
Equal_1 eq1 = new Equal_1("raaga");
String eq1_name = eq1.name;
public Equal_1 getInstance() {
return eq1;
public Equal_1(String name) {
this.name = name;
public boolean equals(Equal_1 o) {
if(o.name .equals(this.name) ) {
return true;
else
return false;
public class check_Equal {
public static void main(String[] args) {
int i_1 = 12;
int i_2 = 12;
Equal_1 eq2 = new Equal_1("get_ins");
System.out.println("res : "+eq2.getInstance());
Exception in thread "main" java.lang.StackOverflowError
at Equal_1.<init>(check_Equal.java:6)
at Equal_1.<init>(check_Equal.java:6)The reason is infinite recursion in the constructor.
Is this what you want perhaps?
Equal_1 eq1;
String eq1_name;
public Equal_1 getInstance() {
eq1 = new Equal_1("raaga");
eq1_name = eq1.name;
return eq1;
}
Maybe you are looking for
-
Hello all, I am facing problem in restarting the java webconsole service. After disabling the java webconsole through "*smcwebserver stop*" command, I am unable to start the java webconsole. root@imola2> smcwebserver start Starting Sun Java(TM) Web C
-
Windows Deployment Services Unable to PXE boot clients PXE-E53: No Boot Filename Received
Hi I'm trying to configure WDS/MDT to deploy Windows 8.1. I've captured an image and I'm ready to deploy the image to a workstation, as per the above title when I attempt to PXE boot a test workstation it just times out with the following error messa
-
till 2 days back I was able to use facetime but now I can call through facetime and ring is also there but the thing is while connecting it is showing FACETIME FAILED..plz tell me a solution for this
-
Application does not show up in the manager console -- Java Web Start
Hi... I have downloaded the jnlp file so many times but still the aplcation is not displayed in the JWS manager console. This my jnlp file : - <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://2m6:8100/jws/" href="ChatApplicat
-
P_COMMENT definition in FC
Hello, friends! If anyone know the real purpose of P_COMMENT in package data entry table? How it should be used in FC and why category scenario prohibit it when i try to load it? Thanks!