Java searchBirdseyeInFlight Problem was passed Null

any help is thankful,examples ,implementatiosn or any thing in java i need longitud and latitud in time

SearchBirdseyeInFlightRequest serch=new SearchBirdseyeInFlightRequest();
serch.setQuery(“{range lat 36.897669 40.897669} {range lon -79.03655 -75.03655}”);
System.out.println(serch.getQuery());
FlightXML2Soap df2 = locator.getFlightXML2Soap();
InFlightStruct struct1;
struct1= df2.searchBirdseyeInFlight(serch).getSearchBirdseyeInFlightResult();
System.out.println(struct1.getAircraft());

Exception in thread “main” java.lang.IllegalArgumentException: faultCode argument for createFault was passed NULL

Have you tried any other FlightXML functions first to ensure you are able to invoke other simpler functions without problems?

y try this

for(int i=0;1<3;i++){
i–;
try{
ArrayOfTrackExStruct flight9= df4.searchBirdseyePositions(req0).getSearchBirdseyePositionsResult();

for (TrackExStruct flight11 : flight9.getData()) {
    // print the ident; EnrouteFlightStruct offers many more method
        System.out.println(flight11.getAltitude()+" : "+flight11.getLatitude()+" : "+flight11.getLongitude()+" : "+flight11.getTimestamp()+" : "+flight11.getFaFlightID());

}
}catch (Exception e) {
 System.out.println("no  Data");
}
}  

and the result is

run:
no Data
no Data
no Data
no Data
183 : 41.28583 : -105.29889 : 1436993975 : N991BE-1436988991-476-0
10 : 35.84972 : -78.75195 : 1436993971 : N591CA-1436988193-44-2
390 : 36.2375 : -93.81472 : 1436993971 : SWA852-1436811900-schedule-0031
225 : 37.715 : -106.96889 : 1436993975 : RPA4874-1436775357-airline-0012
73 : 32.40417 : -88.43861 : 1436993971 : N80KY-1436985328-76-0
no Data
no Data
no Data
no Data
no Data
no Data

the data pf wlightware its in real time ?

The equivalent of that query can be done using JSON/REST, which appears to be working for me right now:

flightxml.flightaware.com/json/ … ght?query={range%20lat%2036.897669%2040.897669}%20{range%20lon%20-79.03655%20-75.03655}

Is it possible that there were no matching aircraft at the time you ran the query but there are some now?

Have you tried other queries using SearchBirdseyeInFlight from Java that were successful?

Data is realtime from sources that are not delayed (FAA Radar data is delayed 5 minutes, for example). Our API represents data from the aggregation of all available data sources at the time you make the query.