java.lang.RuntimeException: Unable to start activity ComponentInfo{net.deviac.retrofitsample/net.deviac.retrofitsample.RetrofitActivity}: java.lang.IllegalArgumentException: URL query string "q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22({lat},{lon})%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" must not have replace block. For dynamic query parameters use @Query. for method YahooWeatherClient.getWeatherData

Stack Overflow | Simon | 3 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Retrofit how to pass paramiters inside the GET string

    Stack Overflow | 3 months ago | Simon
    java.lang.RuntimeException: Unable to start activity ComponentInfo{net.deviac.retrofitsample/net.deviac.retrofitsample.RetrofitActivity}: java.lang.IllegalArgumentException: URL query string "q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22({lat},{lon})%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" must not have replace block. For dynamic query parameters use @Query. for method YahooWeatherClient.getWeatherData
  2. 0

    Android App working on Emulator but crashes at launch on device

    Stack Overflow | 5 years ago | Mutaaf Aziz
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.maziz.POS/com.maziz.POS.Login}: java.lang.NullPointerException 1at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647) 2at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) 3at android.app.ActivityThread.access$1500(ActivityThread.java:117) 4at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) 5at android.os.Handler.dispatchMessage(Handler.java:99) 6at android.os.Looper.loop(Looper.java:130) 7at android.app.ActivityThread.main(ActivityThread.java:3683) 8at java.lang.reflect.Method.invokeNative(Native Method) 9at java.lang.reflect.Method.invoke(Method.java:507) 10at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 11at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 12at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NullPointerException 13at com.maziz.POS.POSContext.getAirportCodes(POSContext.java:178) 14at com.maziz.POS.Login.onCreate(Login.java:29) 15at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) 16at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611) 17... 11 more </code></pre> <p>FirstActivity: Login.java</p> <pre><code> package com.maziz.POS; import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.view.WindowManager; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import com.bugsense.trace.BugSenseHandler; public class Login extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Creates instance of all Global Vars // GlobalVars gv = (GlobalVars) getApplicationContext(); BugSenseHandler.setup(this, "00728e23"); GlobalVars gv = (GlobalVars) getApplicationContext(); Cursor cc = gv.db.getAirportCodes(); while(cc.moveToNext()) { for (int i = 0; i &lt; cc.getColumnCount(); i++) { gv.Airport_Codes.add(cc.getString(i)); } } final EditText txtUserID = (EditText) findViewById(R.id.txtUserID); final EditText txtPassword = (EditText) findViewById(R.id.txtPassword); Button btnLogin = (Button) findViewById(R.id.btnLogin); btnLogin.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub String userID = txtUserID.getText().toString(); String password = txtPassword.getText().toString(); if (checkLogin(userID, password)) { Toast.makeText(getApplicationContext(), "Logging in...", Toast.LENGTH_SHORT).show(); Intent intent = new Intent(v.getContext(), FASelection.class); startActivity(intent); } else { AlertDialog.Builder ad = new AlertDialog.Builder(Login.this); ad.setMessage("Login Not Successful"); ad.setNeutralButton("OK", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO Auto-generated method stub Toast.makeText(getApplicationContext(), "Re-Enter Your Info...", Toast.LENGTH_SHORT).show(); } }); ad.show(); } } }); } public boolean checkLogin(String u, String p) { GlobalVars gv = (GlobalVars) getApplicationContext(); Cursor c = gv.db.getUser(u); User temp = new User(); temp.setUserID(c.getString(c.getColumnIndex("Employee_ID"))); temp.setPassword(c.getString(c.getColumnIndex("Password"))); boolean exists = false; if(c == null) return false; if (temp.UserID.equalsIgnoreCase(u)) { if (temp.Password.equals(p)) { gv.user = temp; gv.PK_Login_Log = (int) gv.db.insertLoginLogInfo(u, 1000); return true; } else exists = false; } return exists; } } </code></pre> <p>Then This is my POSContext(DB Context Class):</p> <pre><code> package com.maziz.POS; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class POSContext extends SQLiteOpenHelper{ //The Android's default system path of your application database. private static String DB_PATH = "/data/data/com.maziz.POS/databases/"; private static String DB_NAME = "AndroidPOS.sqlite"; private SQLiteDatabase myDataBase; private final Context myContext; /** * Constructor * Takes and keeps a reference of the passed context in order to access to the application assets and resources. * @param context */ public POSContext(Context context) { super(context, DB_NAME, null, 1); this.myContext = context; } /** * Creates a empty database on the system and rewrites it with your own database. * */ public void createDataBase() throws IOException{ boolean dbExist = checkDataBase(); if(dbExist){ //do nothing - database already exist }else{ //By calling this method and empty database will be created into the default system path //of your application so we are gonna be able to overwrite that database with our database. this.getReadableDatabase(); try { copyDataBase(); } catch (IOException e) { throw new Error("Error copying database"); } } } /** * Check if the database already exist to avoid re-copying the file each time you open the application. * @return true if it exists, false if it doesn't */ private boolean checkDataBase(){ File dbFile = new File(DB_PATH + DB_NAME); return dbFile.exists(); </code></pre> <p>/* SQLiteDatabase checkDB = null;</p> <pre><code> try{ String myPath = DB_PATH + DB_NAME; checkDB = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READONLY); }catch(SQLiteException e){ //database does't exist yet. } if(checkDB != null){ checkDB.close(); } return checkDB != null ? true : false;*/ } /** * Copies your database from your local assets-folder to the just created empty database in the * system folder, from where it can be accessed and handled. * This is done by transfering bytestream. * */ private void copyDataBase() throws IOException{ //Open your local db as the input stream InputStream myInput = myContext.getAssets().open(DB_NAME); // Path to the just created empty db String outFileName = DB_PATH + DB_NAME; //Open the empty db as the output stream OutputStream myOutput = new FileOutputStream(outFileName); //transfer bytes from the inputfile to the outputfile byte[] buffer = new byte[2048]; int length; while ((length = myInput.read(buffer))&gt;0){ myOutput.write(buffer, 0, length); } //Close the streams myOutput.flush(); myOutput.close(); myInput.close(); } public void openDataBase() throws SQLException{ //Open the database String myPath = DB_PATH + DB_NAME; myDataBase = SQLiteDatabase.openDatabase(myPath, null, SQLiteDatabase.OPEN_READWRITE); } @Override public synchronized void close() { if(myDataBase != null) myDataBase.close(); super.close(); } @Override public void onCreate(SQLiteDatabase db) { } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { } // Add your public helper methods to access and get content from the database. // You could return cursors by doing "return myDataBase.query(....)" so it'd be easy // to you to create adapters for your views. public Cursor getUser(String uID) { Cursor mCursor = myDataBase.query(true, "FA_Login", new String[] { "PK_FA_Login", "Airline_ID", "Employee_ID", "Password"}, "Employee_ID = '" + uID + "'", null, null, null, null, null); if (mCursor != null) { mCursor.moveToFirst(); } return mCursor; } public Cursor getAirportCodes() { Cursor mCursor = myDataBase.query("Airport_Codes", new String[] { "Airport_Code" }, null, null, null, null, "Airport_Code"); return mCursor; } public Cursor getFlightByOriginDestination(String origin, String dest) { Cursor mCursor = myDataBase.query("Inventory_Flight_Schedule", new String[] { "PK_Inventory_Flight_Schedule", "Flight_Number", "AC_Type", "Time", "Origin", "Destination" }, "Origin = '" + origin + "' AND Destination = '" + dest + "'", null, null, null, null); return mCursor; } public Cursor getFlightByFlightNumber(String fn) { if(fn.equals("")) fn = "0"; Cursor mCursor = myDataBase.query("Inventory_Flight_Schedule", new String[] { "PK_Inventory_Flight_Schedule", "Flight_Number", "AC_Type", "Time", "Origin", "Destination" }, "Flight_Number = " + fn, null, null, null, null); return mCursor; } public Cursor getProductsOnFlight(int pk) { Cursor mCursor = myDataBase.query("Inventory_Scheduled", new String[] { "PK_Product_ID", "Quantity" }, "PK_Inventory_Flight_Schedule = " + pk, null, null, null, null); return mCursor; } public String getProductCategory(int pk) { String c = ""; Cursor mCursor = myDataBase.query("Product_Category_Assigned", new String[] { "PK_Product_ID", "PK_Category_ID" }, "PK_Product_ID = " + pk, null, null, null, null); while (mCursor.moveToNext()) { c = c + " " + mCursor.getString(mCursor.getColumnIndex("Category_Name")); } return c; } public Cursor getProductDetailsByProductID(int pID) { Cursor mCursor = myDataBase.query("Products", new String[] { "Product_Description", "Product_Name", "Price", "ImageUri" }, "PK_Product_ID = " + pID, null, null, null, null); return mCursor; } public ArrayList&lt;Product&gt; getProductSalesDetail(int pkss) { ArrayList&lt;Product&gt; productSales = new ArrayList&lt;Product&gt;(); Product temp; Cursor p = myDataBase.query("Sales_Details", new String[] { "PK_Product_ID", "Quantity" }, "PK_Sales_Summary = " + pkss, null, null, null, null); while(p.moveToNext()) { int pkproduct = Integer.parseInt(p.getString(p.getColumnIndex("PK_Product_ID"))); Cursor product = getProductDetailsByProductID(pkproduct); product.moveToFirst(); temp = new Product(); temp.PK_Product_ID = pkproduct; temp.QuantityInCart = Integer.parseInt(p.getString(p.getColumnIndex("Quantity"))); temp.Product_Name = product.getString(product.getColumnIndex("Product_Name")); temp.Price = product.getDouble(product.getColumnIndex("Price")); temp.ImageUri = product.getString(product.getColumnIndex("ImageUri")); productSales.add(temp); } return productSales; } public ArrayList&lt;Product&gt; getProductSales(ArrayList&lt;Integer&gt; pkss) { ArrayList&lt;Product&gt; productSales = new ArrayList&lt;Product&gt;(); for(int pk: pkss) { Cursor p = myDataBase.query("Sales_Details", new String[] { "PK_Product_ID", "Quantity" }, "PK_Sales_Summary = " + pk, null, null, null, null); while(p.moveToNext()) { int pkproduct = Integer.parseInt(p.getString(p.getColumnIndex("PK_Product_ID"))); Cursor product = getProductDetailsByProductID(pkproduct); product.moveToFirst(); Product temp; if(productSales.isEmpty()) { temp = new Product(); temp.PK_Product_ID = pkproduct; temp.Quantity = Integer.parseInt(p.getString(p.getColumnIndex("Quantity"))); temp.Product_Name = product.getString(product.getColumnIndex("Product_Name")); temp.Price = product.getDouble(product.getColumnIndex("Price")); temp.ImageUri = product.getString(product.getColumnIndex("ImageUri")); productSales.add(temp); } else //if product list is not empty { temp = new Product(); boolean inList = false; for(Product pp: productSales) { if(pp.PK_Product_ID == pkproduct) { inList = true; temp.Quantity = temp.Quantity + Integer.parseInt(p.getString(p.getColumnIndex("Quantity"))); break; } } if(!inList) { temp.PK_Product_ID = pkproduct; temp.Quantity = Integer.parseInt(p.getString(p.getColumnIndex("Quantity"))); temp.Product_Name = product.getString(product.getColumnIndex("Product_Name")); temp.Price = product.getDouble(product.getColumnIndex("Price")); temp.ImageUri = product.getString(product.getColumnIndex("ImageUri")); productSales.add(temp); } else { for(int i = 0; i &lt; productSales.size(); i++) { Product pp = productSales.get(i); if(pp.PK_Product_ID == pkproduct) { productSales.get(i).Quantity = productSales.get(i).Quantity + Integer.parseInt(p.getString(p.getColumnIndex("Quantity"))); } } } } } } return productSales; } public ArrayList&lt;SalesTransaction&gt; getSalesData(int FlightNumber, String currentDate) { Cursor salesData; ArrayList&lt;Integer&gt; pkflights = new ArrayList&lt;Integer&gt;(); ArrayList&lt;SalesTransaction&gt; st = new ArrayList&lt;SalesTransaction&gt;(); currentDate = currentDate.trim(); String select = "Select PK_Flight_Selected From Flight_Selected Where Flight_Number = '" + FlightNumber + "'"; Cursor mCursor = myDataBase.rawQuery(select, null); /*myDataBase.query("Flight_Selected", new String[] { "PK_Flight_Selected" }, "Flight_Number = " + FlightNumber + " AND Flight_Date = '" + currentDate + "'", null, null, null, null); */ while (mCursor.moveToNext()) { pkflights.add(Integer.parseInt(mCursor.getString(mCursor.getColumnIndex("PK_Flight_Selected")))); } for(int i: pkflights) { salesData = myDataBase.query("Sales_Summary", new String[] { "PK_Sales_Summary", "PK_Flight_Selected", "Employee_ID", "Total_Items", "Total_Amount" }, "PK_Flight_Selected = " + i , null, null, null, null); while(salesData.moveToNext()) { SalesTransaction temp = new SalesTransaction(); temp.PK_Sales_Summary = Integer.parseInt(salesData.getString(salesData.getColumnIndex("PK_Sales_Summary"))); temp.PK_Flight_Selected = Integer.parseInt(salesData.getString(salesData.getColumnIndex("PK_Flight_Selected"))); temp.EmployeeID = salesData.getString(salesData.getColumnIndex("Employee_ID")); temp.items = Integer.parseInt(salesData.getString(salesData.getColumnIndex("Total_Items"))); temp.amount = Double.parseDouble(salesData.getString(salesData.getColumnIndex("Total_Amount"))); Cursor salest = myDataBase.query("Sales_Transactions", new String[] { "PK_Sales_Transaction", "CC_Name" }, "PK_Sales_Summary = " + temp.PK_Sales_Summary, null, null, null, null); while(salest.moveToNext()) { temp.PK_Sales_Transaction = Integer.parseInt(salest.getString(salest.getColumnIndex("PK_Sales_Transaction"))); temp.CC_Name = salest.getString(salest.getColumnIndex("CC_Name")); } st.add(temp); } } return st; } public long insertFlightSelectedRecord(int airline_ID, int flight_Number, String o, String d, String fd, String ac) { ContentValues cv = new ContentValues(); cv.put("Airline_ID", airline_ID); cv.put("Flight_Number", flight_Number); cv.put("Origin", o); cv.put("Dest", d); cv.put("Flight_Date", fd.toString()); cv.put("AC_Type", ac); return myDataBase.insert("Flight_Selected", null, cv); } public long insertLoginLogInfo(String e, int device) { Date date = new Date(); ContentValues cv = new ContentValues(); cv.put("Employee_ID", e); cv.put("Login_TimeStamp", date.toString()); cv.put("Device_ID", device); return myDataBase.insert("FA_Login_Log", null, cv); } public long insertSalesSummary(int pk_flight, String EmployeeID, double total_items, double Amount) { ContentValues cv = new ContentValues(); cv.put("PK_Flight_Selected", pk_flight); cv.put("Employee_ID", EmployeeID); cv.put("Total_Items", total_items); cv.put("Total_Amount", Amount); return myDataBase.insert("Sales_Summary", null, cv); } public long insertSalesDetails(int pk_salessummary, int pID, int q) { ContentValues cv = new ContentValues(); cv.put("PK_Sales_Summary", pk_salessummary); cv.put("PK_Product_ID", pID); cv.put("Quantity", q); return myDataBase.insert("Sales_Details", null, cv); } public long insertSalesTransaction(int pkss, double amount, String cctype, String ccnumber, int cccode, String ccName) { ContentValues cv = new ContentValues(); cv.put("PK_Sales_Summary", pkss); cv.put("Amount", amount); cv.put("CC_Type", cctype); cv.put("CC_Number", ccnumber); cv.put("CC_Code", cccode); cv.put("CC_Name", ccName); return myDataBase.insert("Sales_Transactions", null, cv); } public boolean updateLoginLog(int pk, int pkflight) { ContentValues cv = new ContentValues(); cv.put("PK_Flight_Selected", pkflight); return myDataBase.update("FA_Login_Log", cv, "PK_FA_Login_Log = " + pk, null) &gt; 0; } } </code></pre> <p>The error seems to be occurring in the getAirportCode method in POSContext.</p> <p>Any help would be GREATLY appreciated. Thanks!</p> <p>EDIT:</p> <p>after further debugging I installed Catlog and this is the error in real time:</p> <pre><code> 03-23 12:34:12.468 I/ActivityManager(1296): Start proc com.maziz.POS for activity com.maziz.POS/.Login: pid=6250 uid=10051 gids={3003} 03-23 12:34:12.546 I/Database(6250): sqlite returned: error code = 0, msg = Recovered 3 frames from WAL file /data/data/com.maziz.POS/databases/AndroidPOS.sqlite-wal 03-23 12:34:12.546 E/Database(6250): sqlite_prepare_v2(handle, "pragma journal_mode=WAL;") failed for "/data/data/com.maziz.POS/databases/AndroidPOS.sqlite" 03-23 12:34:12.554 E/Database(6250): at com.maziz.POS.POSContext.openDataBase(POSContext.java:135) 03-23 12:34:12.554 E/Database(6250): at com.maziz.POS.GlobalVars.onCreate(GlobalVars.java:32)
  3. 0

    android.database.sqlite.SQLiteException: no such column: locationlocation_setting (code 1):

    Stack Overflow | 2 years ago
    android.database.sqlite.SQLiteException: no such column: locationlocation_setting (code 1): , while compiling: SELECT weather._id, date, short_desc, max, min, location_setting, weather_id, coord_lat, coord_long FROM weather INNER JOIN location ON weatherlocation_id = location._id WHERE (locationlocation_setting = ? AND date >= ? ) ORDER BY date ASC
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IllegalArgumentException: No view found for id 0x7f07003c for fragment

    programask.com | 2 years ago
    android.app.Fragment$InstantiationException: Unable to instantiate fragment ${packageName}.${activityClass}$GeneralPreferenceFragment The xml layout not working: ... So, I'm trying to work with animations, and so far, it's been a pretty big headache. What I'm trying to do here is also a little different than what I've normally seen. The scenario is I inflate a ... A have a fragment (Fragment A) which gets a selected photo from a user. Once the user selects the photo in Fragment A I want to go to Fragment B and take the selected photo with me. I am also using ... I am working on fragment transition. When I replace the first fragment with the second fragment, it is appearing below the first fragment. I want it to move on top of first fragment. How can I do ... So i have an Activity(lets call it A) with a view pager and 3 fragments, one of these fragments(lets call it fragment A) loads a list. The onclickitem list of this list will trigger a callback to the ... I use the following to select which fragment to display within my activity.... public class SectionsPagerAdapter extends FragmentPagerAdapter { public SectionsPagerAdapter(FragmentManager ... I have Tabs + ViewPager in my Android app. From the main activity, I want to send some data to these fragments. How do I get these fragments in the first place? I suppose I need to use ... This is setContentView() setContentView(R.layout.game_activity); // "mainactivity" layout This is in game_activity layout: <FrameLayout android:id="@+id/containerFrame" ... I am building an app that has a game and communicates game information to a second device for wireless multiplayer via Bluetooth. Right now I am trying to put the Bluetooth and game classes in a ... I have developed a android application. I have an UI where I need a Fragment to be displayed in tabbed manner. For compatibility I am using "TabHelper" from CompatTab classes provided by android ... In my small Android app, I have a ViewPager with 3 pages, each page contains one fragment, that's all working fine with a FragmentStatePagerAdapter (see earlier question). Now for larger screens, I ... I am trying to show a FragmentDialog ( created and shown as a dialog NOT added as content in a view hierarchy) where there is a ViewPager whose content is given by a FragmentPagerAdapter (provides ... I am creating an application. I have two kinds of view. ThumbView & GridView. For these views I am using two different FragmentStatePagerAdapters for ViewPager. With in the main layout, I have ... I am using Otto Event bus to subscribe to certain events in a ListFragment. The bus instance is stored and created in an subclass of Application, in other words, it bus should work as a singleton. It ... When I inflate GoogleMaps in a fragment I get this error. The error line is this in MapsFragment: View rootView = inflater.inflate(R.layout.map_fragment,container, false); MainActivity: public ... I use Otto bus to communicate events from activity to the fragments. The problem is, the fragments are managed by the ViewPager and the fragment can be recreated without ever executing its onPause() ... I have an Android app that I'd like to test using the Android testing framework. I setup everything correctly and when I run the tests I get: E/AndroidRuntime(16003): Caused by: ... I'm trying make an app that I'm building take a search term from the main activity, return results, and then have the results be clickable such that a detail could be viewed from each results. I'm ... I'm trying to add a google mapview to an existing fragment. Following the instructions from the developer docs, I've included the following xml in my fragment: <fragment android:id="@+id/map" ... I'm using SWTBot 2.1.1 in Eclipse 4.2.2 Juno on Mac OS X 10.8.4. There are some tutorials (1, 2) online, but no matter how many times I tried, I always encounter !ENTRY org.eclipse.core.net 1 0 ... App State: In one of scenario I created an Video Fragment(with one button over video view) which is launching from existing full screen fragment. Behaviour Issue: after get lauch VideoFragment blink ... i am using Fragment Pager Adapter and PagerView to create swipe tab. But facing some problem. Here is my:-ViewPagerAdapter Its showing first fragment and also showing second fragment dialog ... I've been seeing some strange behavior with my ViewPager along with my own FragmentStatePagerAdapter. My View hierarchy goes like this: -> (1) Fragment root view (RelativeLayout) -> (2) ... I'm having a really weird problem. I have a common fragment that is added in almost every activity of my app. This fragment shows a small version of the player bar. So it listens some broadcasts to ... I have one FragmentActivity and a Fragment, well, now I want to add this fragment to the Activity programmatically, and I also want to update value of one TextView. but I keep getting ... i've given all three matrices (Model, View, Projection) in Fragment Shader. Now i like to calculate the view angle per fragment. camera has a perspective of e.g. 45°. how can i do it? with this i like ... I need to update a fragment with a different views. As I figured out, to force Fragment::onCreateView() method call (to show my updates to the user) I can only use FragmentTransaction's method ... When creating a Fragment that holds a view programmatically, must one always extend the fragment class and override the OnCreateView method. Is there another simpler way to do this (like creating a ... Ok first question on here bare with me. I'm new to the Android Compatibility Library with Fragments and the ViewPager (android.support.v4) I'm having loads of fun with no JavaDocs in Eclipse I was ... My view pager has 4 fragments. mAdapter = new Adapter_viewPager(getActivity().getSupportFragmentManager()); mPager = (ViewPager) view.findViewById(R.id.pager); mPager.setAdapter(mAdapter); ... I am developing an application using 3-pane view layout (a classic “master-detail” flow), following a 2-pane example created by mobile tuts . The 3-pane layout looks as follows: <LinearLayout ... Firstly, I know these subjects have been created a lot of time on stackoverflow, but I don't have found the solution to my problems. Secondly, I'm french, so my english is not perfect, sorry per ... I'm trying to draw on an ImageViewTouch, a library which enables pinch zooming. I'm able to draw over the image using Canvas, but when I zoom the image, the drawing disappears. For this, I'm trying ... I am getting the following Exception in my code... IllegalArgumentException: View not attached to window manager
  6. 0

    FAIL: Yahoo Weather URL in Demo.Items. Need help with HTTP Binding - Beginners - openHAB Community

    openhab.org | 7 months ago
    java.lang.IllegalArgumentException: Invalid uri 'https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid=3534 and u='C'': Invalid query
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    URL query string "q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22({lat},{lon})%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys" must not have replace block. For dynamic query parameters use @Query. for method YahooWeatherClient.getWeatherData

    at retrofit2.ServiceMethod$Builder.methodError()
  2. retrofit2
    Retrofit$1.invoke
    1. retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:720)
    2. retrofit2.ServiceMethod$Builder.methodError(ServiceMethod.java:711)
    3. retrofit2.ServiceMethod$Builder.parseHttpMethodAndPath(ServiceMethod.java:297)
    4. retrofit2.ServiceMethod$Builder.parseMethodAnnotation(ServiceMethod.java:242)
    5. retrofit2.ServiceMethod$Builder.build(ServiceMethod.java:170)
    6. retrofit2.Retrofit.loadServiceMethod(Retrofit.java:166)
    7. retrofit2.Retrofit$1.invoke(Retrofit.java:145)
    7 frames
  3. Java RT
    Proxy.invoke
    1. java.lang.reflect.Proxy.invoke(Proxy.java:397)
    1 frame
  4. Unknown
    $Proxy0.getWeatherData
    1. $Proxy0.getWeatherData(Unknown Source)
    1 frame
  5. net.deviac.retrofitsample
    RetrofitActivity.onCreate
    1. net.deviac.retrofitsample.RetrofitActivity.getWeatherData(RetrofitActivity.java:45)
    2. net.deviac.retrofitsample.RetrofitActivity.onCreate(RetrofitActivity.java:30)
    2 frames
  6. Android Platform
    ActivityThread.main
    1. android.app.Activity.performCreate(Activity.java:5990)
    2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
    3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
    4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
    5. android.app.ActivityThread.access$800(ActivityThread.java:151)
    6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
    7. android.os.Handler.dispatchMessage(Handler.java:102)
    8. android.os.Looper.loop(Looper.java:135)
    9. android.app.ActivityThread.main(ActivityThread.java:5254)
    9 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    2 frames