could you please write here the query that's generating that error?
I'm trying to understanding your issue: if your endeca server weblogic domain runs in production mode everything is ok, but when you change the setting of the domain to 'development environment' the same query in the same metrics bar returns an error. That's right?
I second Samuele's request, not a lot to go on here.
Generally, if you have a query that returns data on one instance and not another, the indexes probably contain different data. The other cause could be that your data source contains a filter that is filtering out the relevant data (and the component is bound to different data sources in different environments).