error with configuration about server

54 views
Skip to first unread message

llaporta

unread,
Jul 15, 2014, 9:16:26 AM7/15/14
to improvemyc...@googlegroups.com
Hi i have this problem, and i want your help:

when i run the app into the mobile, it is start and login, but when the app try to refresh the data, the app it close, and i read the log and i see this error


07-14 17:41:08.739: E/AndroidRuntime(11612): FATAL EXCEPTION: AsyncTask #2
07-14 17:41:08.739: E/AndroidRuntime(11612): java.lang.RuntimeException: An error occured while executing doInBackground()
07-14 17:41:08.739: E/AndroidRuntime(11612):     at android.os.AsyncTask$3.done(AsyncTask.java:299)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at java.lang .Thread.run(Thread.java:856)
07-14 17:41:08.739: E/AndroidRuntime(11612): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
07-14 17:41:08.739: E/AndroidRuntime(11612):     at android.os.Handler.<init>(Handler.java:121)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at android.widget.Toast$TN.<init>(Toast.java:322)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at android.widget.Toast.<init>(Toast.java:91)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at android.widget.Toast.makeText(Toast.java:238)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at com.mk4droid.IMC_Services.Service_Data$DBRefreshActions.doInBackground(Service_Data.java:457)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at com.mk4droid.IMC_Services.Service_Data$DBRefreshActions.doInBackground(Service_Data.java:1)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at android.os.AsyncTask$2.call(AsyncTask.java:287)
07-14 17:41:08.739: E/AndroidRuntime(11612):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
07-14 17:41:08.739: E/AndroidRuntime(11612):     ... 5 more
07-14 17:41:09.050: D/dalvikvm(11612): GC_CONCURRENT freed 1459K, 17% free 13746K/16387K, paused 56ms+18ms, total 216ms
07-14 17:41:15.646: D/DTS response(11873):  ["1","2014-07-14 15:54:37","f4c202067f47277a65d8f2192a14b35d"]
07-14 17:41:15.666: E/SD PRODIALG(11873): ERROR
07-14 17:41:15.666: E/SD PRODIALG(11873): java.lang.NullPointerException
07-14 17:41:15.666: E/SD PRODIALG(11873):     at android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:148)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at android.app.AlertDialog.<init>(AlertDialog.java:104)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at android.app.ProgressDialog.<init>(ProgressDialog.java:77)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at android.app.ProgressDialog.show(ProgressDialog.java:110)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at android.app.ProgressDialog.show(ProgressDialog.java:99)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at com.mk4droid.IMC_Services.Service_Data$1.handleMessage(Service_Data.java:106)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at android.os.Handler.dispatchMessage(Handler.java:99)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at android.os.Looper.loop(Looper.java:137)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at android.app.ActivityThread.main(ActivityThread.java:4744)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at java.lang.reflect.Method.invokeNative(Native Method)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at java.lang.reflect.Method.invoke(Method.java:511)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-14 17:41:15.666: E/SD PRODIALG(11873):     at dalvik.system.NativeStart.main(Native Method)
07-14 17:41:15.666: D/ImproveMyCityDownData  DownTimeStamp(11873): CalledByStarter
07-14 17:41:16.087: D/DTS response(11873):  ["1","2014-07-14 15:54:37","f4c202067f47277a65d8f2192a14b35d"]
07-14 17:41:17.067: E/UPD(11873): Categs
07-14 17:41:17.518: D/skia(11873): --- SkImageDecoder::Factory returned null
07-14 17:41:17.528: E/ImproveMyCity(11873): Service_DATA: DBRefreshActions: Unable to perform all actions: DEBUG_FLAG:11
07-14 17:41:17.528: E/SD FAIL Reason:(11873): Unable to update categories table
07-14 17:41:17.528: W/dalvikvm(11873): threadid=12: thread exiting with uncaught exception (group=0x413ae318)
07-14 17:41:17.528: E/AndroidRuntime(11873): FATAL EXCEPTION: AsyncTask #1
07-14 17:41:17.528: E/AndroidRuntime(11873): java.lang.RuntimeException: An error occured while executing doInBackground()
07-14 17:41:17.528: E/AndroidRuntime(11873):     at android.os.AsyncTask$3.done(AsyncTask.java:299)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at java.util.concurrent.FutureTask.run(FutureTask.java:137)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at java.lang.Thread.run(Thread.java:856)
07-14 17:41:17.528: E/AndroidRuntime(11873): Caused by: java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
07-14 17:41:17.528: E/AndroidRuntime(11873):     at android.os.Handler.<init>(Handler.java:121)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at android.widget.Toast$TN.<init>(Toast.java:322)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at android.widget.Toast.<init>(Toast.java:91)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at android.widget.Toast.makeText(Toast.java:238)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at com.mk4droid.IMC_Services.Service_Data$DBRefreshActions.doInBackground(Service_Data.java:457)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at com.mk4droid.IMC_Services.Service_Data$DBRefreshActions.doInBackground(Service_Data.java:1)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at android.os.AsyncTask$2.call(AsyncTask.java:287)
07-14 17:41:17.528: E/AndroidRuntime(11873):     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
07-14 17:41:17.528: E/AndroidRuntime(11873):     ... 5 more
07-14 17:41:25.326: I/Process(11873): Sending signal. PID: 11873 SIG: 9


in SRC/IMCStore/CONSTANS_API:

 /** Server address. It can be a XXX.XXX.XXX.XXX address instead */
    public static String ServerSTR      =  "xxxxxxx/xxxxxx";
   
   
    /** Server path of application */
    public static String phpExec        = "/";
   
    /** Server path of issue images */
    public static String remoteImages   = "/images/improvemycity/";

it is right?

if not right, you can help with the configuration file and the error please?

please i need your help,


Dimitrios Ververidis

unread,
Jul 15, 2014, 10:36:56 AM7/15/14
to improvemyc...@googlegroups.com

As I see :

07-14 17:41:17.528: E/SD FAIL Reason:(11873): Unable to update categories table

there is a problem with the image of a category. 
- Ensure that you have small png icons for each category.
- Ensure that you have not unpublished a category.

BR,
Dimitrios

llaporta

unread,
Jul 15, 2014, 10:40:56 AM7/15/14
to improvemyc...@googlegroups.com
And i put and another name to my Data Base, because a use Cpanel and the name for default is e.g. "domain.improvemycity"

and i can´t replace the domain in cpanel, i´m already change the name in "Databasehandler.java" file, but when i run the app it will crash, and see this report.

llaporta

unread,
Jul 15, 2014, 10:49:17 AM7/15/14
to improvemyc...@googlegroups.com
Thanks for your atenttion,

well i will try to do this at this moment.

But a i have a question about to the DataBase, i put and another name to my Data Base, because a use Cpanel and the name for default is e.g. "domain.improvemycity"

Do i will have some problem if i change the name of the database?

Dimitrios Ververidis

unread,
Jul 15, 2014, 10:57:13 AM7/15/14
to improvemyc...@googlegroups.com
-Upon joomla is installed, you should not change the name of the database.
-The database name is not related to domain name. They are totally irrelevant.
- Change public static String remoteImages   = "/images/improvemycity/"   to "/"
- Use cpanel to make redirections to subdomains (if needed)
- Please write better English.




Regards,
Dimitrios

llaporta

unread,
Jul 15, 2014, 11:07:14 AM7/15/14
to improvemyc...@googlegroups.com
thanks, and apologize for this.

my database name is mycity.test, i'm not change the name, but when a i read the source for mobile version, into the "DataBaseHandler.java" file, i read this:

public class DatabaseHandler extends SQLiteOpenHelper {
   
    String TAG_Class = getClass().getName();
   
    /** Name of the local database */
    public static final String DATABASE_NAME = "improvemycity";

i don´t need to change this line for this?:

public class DatabaseHandler extends SQLiteOpenHelper {
   
    String TAG_Class = getClass().getName();
   
    /** Name of the local database */
    public static final String DATABASE_NAME = "mycity.test";

llaporta

unread,
Jul 15, 2014, 11:22:41 AM7/15/14
to improvemyc...@googlegroups.com
Ok, i tested the app without change, and IT's WORK.

my apologize for my english, and all that i was to do, was that you tell me:


" there is a problem with the image of a category.
- Ensure that you have small png icons for each category."

IT WORK!!! thanks


El martes, 15 de julio de 2014 10:57:13 UTC-4, Dimitrios Ververidis escribió:
Reply all
Reply to author
Forward
0 new messages