java.lang.RuntimeException: data-import for /my/up/jenkins/workspace/my-predev4-entities/target/checkout/target/entities.jar failed

Apereo Issues | Andrew Petro | 2 years ago
  1. 0

    Improve the entity import error handling to output directly to the console some useful information about what went wrong. UW-Madison e.g. build automation makes it very easy to get at the console log via Jenkins. {noformat} [java] Exception in thread "main" java.lang.RuntimeException: data-import for /my/up/jenkins/workspace/my-predev4-entities/target/checkout/target/entities.jar failed [java] at org.jasig.portal.shell.PortalShellBuildHelperImpl.dataImport(PortalShellBuildHelperImpl.java:303) [java] at org.jasig.portal.shell.PortalShellBuildHelper$dataImport.call(Unknown Source) [java] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) [java] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) [java] at upshell_677567135.run(upshell_677567135.groovy:3) [java] at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:257) [java] at groovy.lang.GroovyShell.run(GroovyShell.java:220) [java] at org.jasig.portal.shell.PortalShell.main(PortalShell.java:86) [java] Caused by: java.lang.RuntimeException: 1 <{https://source.jasig.org/schemas/uportal/io/portlet-definition}portlet-definition version="4.0"> entities failed to import. [java] [java] Per entity exception logs and a full report can be found in /my/up/admin/bin/target/data-import-reports [java] [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importData(JaxbPortalDataHandlerService.java:633) [java] at ... {noformat} Having full, extra, supplemental information available in an external log file is great. Wonderful. Keep that. But include the short, useful version directly in the console log so that the portal administrator doesn't have to go look in that other file and instead can directly understand the problem from the console log itself. In almost every case the administrator looking at "Per entity exception logs and a full report can be found in /my/up/admin/bin/target/data-import-reports" is going to desperately want to know what went wrong for the failed entities and will be going to look at that directory's files, so just go ahead and print out the information and save the administrator a smidgeon of hassle. Nuances the solution implemented in UP-3353.

    Apereo Issues | 2 years ago | Andrew Petro
    java.lang.RuntimeException: data-import for /my/up/jenkins/workspace/my-predev4-entities/target/checkout/target/entities.jar failed
  2. 0

    Improve the entity import error handling to output directly to the console some useful information about what went wrong. UW-Madison e.g. build automation makes it very easy to get at the console log via Jenkins. {noformat} [java] Exception in thread "main" java.lang.RuntimeException: data-import for /my/up/jenkins/workspace/my-predev4-entities/target/checkout/target/entities.jar failed [java] at org.jasig.portal.shell.PortalShellBuildHelperImpl.dataImport(PortalShellBuildHelperImpl.java:303) [java] at org.jasig.portal.shell.PortalShellBuildHelper$dataImport.call(Unknown Source) [java] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) [java] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) [java] at upshell_677567135.run(upshell_677567135.groovy:3) [java] at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:257) [java] at groovy.lang.GroovyShell.run(GroovyShell.java:220) [java] at org.jasig.portal.shell.PortalShell.main(PortalShell.java:86) [java] Caused by: java.lang.RuntimeException: 1 <{https://source.jasig.org/schemas/uportal/io/portlet-definition}portlet-definition version="4.0"> entities failed to import. [java] [java] Per entity exception logs and a full report can be found in /my/up/admin/bin/target/data-import-reports [java] [java] at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importData(JaxbPortalDataHandlerService.java:633) [java] at ... {noformat} Having full, extra, supplemental information available in an external log file is great. Wonderful. Keep that. But include the short, useful version directly in the console log so that the portal administrator doesn't have to go look in that other file and instead can directly understand the problem from the console log itself. In almost every case the administrator looking at "Per entity exception logs and a full report can be found in /my/up/admin/bin/target/data-import-reports" is going to desperately want to know what went wrong for the failed entities and will be going to look at that directory's files, so just go ahead and print out the information and save the administrator a smidgeon of hassle. Nuances the solution implemented in UP-3353.

    Apereo Issues | 2 years ago | Andrew Petro
    java.lang.RuntimeException: data-import for /my/up/jenkins/workspace/my-predev4-entities/target/checkout/target/entities.jar failed
  3. 0

    java.util.concurrent.ExecutionException: java.util.concurrent.TimeoutException: No response received after 60000

    tagwith.com | 12 months ago
    java.lang.RuntimeException: java.util.concurrent.ExecutionException: ... when i deploy my maven project on tomcat server it runs fine but when i deploy it through the tomcat configured in eclipse it gives following errors on runtime. I have configured my eclipse tomcat to ... I am getting this strange crash reports on Lollipop. My app is basically a browser so it makes heavy use of the WebView but I don't know that the issue is happening there. Anyways the crash report ... We're seeing a number of TimeoutExceptions in GcWatcher.finalize, BinderProxy.finalize, and PlainSocketImpl.finalize. 90+% of them happen on Android 4.3. We're getting reports of this from ... Has anyone ever met this kind of Exception before? I was trying deploying a App with Spring and RabbitMQ, however there is no idea to explain this exception thanks~ ... Hi i'm running concurrent users 200 over 200 seconds, when I execute same script after 2-3 sets I'm getting this error do i need to do some settings in gatling for example shareConnections in conf ... So I have a simple spark job where I'm trying to work out how to write bytes into a sequence file. It was working fine, then suddenly the job hangs seemingly at the end - in particular at this line: ... When i display image using com.jsos.image.ImageServlet then my glassfish 4.0 server fire this error please give me solution. this is working perfectly in java 6 and glassfish 3 My stacktrash is ... i am creating asynchtask on thread pool on an listview . i am handling those task through an listarray of asynchtask . i have to remove those task when fragments get destroy and have to again assign ... My problem is, I am getting the queue grows enormously while using ScheduledThreadPoolExecutor.submit() for the immediate tasks and causing GC more frequently. I am using ... I'm working on a script that parses a years worth of facebook posts, it runs jsut as fast as you'd expect it to (which isn't super fast). I have it triggered by a cron so timeouts shouldn't be an ... I have a dataset with a data that is formatted like this: Date | exec_time ------------+--------- Today | 99999 ms Yesterday | 1 ms Tomorrow  | 50000 ms Another Day | None Recorded ... I'm trying to parse arp.exe's output to get the MAC address for a computer. I'm able to parse ping.exe and obtain the IP address but for some reason arp.exe appears to never exit. If I remove the ... I am trying to create one application which checks battery status every one minute and update the UI with the battery Level. protected void onCreate(Bundle savedInstanceState) { ... I am having some CPU usage when my app is backgrounded and the only message I am receving at Logcat is coming from Adview with the typical: "Ad is not visible. Not refreshing add. Scheduling ad ... DEBUG LOG: E:\Projects\abb\Projects\WebApp\abb.web>karma start DEBUG [plugin]: Loading karma-* from E:\Projects\abb\Projects\WebApp\abb .web\node_modules DEBUG [plugin]: Loading plugin ... I need to delete the rows that: - Does not have the Word "Get" into Column A, example: if A1 is Configuration Get, I should not delete; but if it is nFormat or anything else, I should delete. - And ... I'm using Intellij 13.1.5 on Ubuntu 14.0.4 (amd64), Maven 3.0.5, Java Oracle 1.7.0_72 I noticed some irregularities with maven whilst using Intellij namely dependencies added and removed where not ... I want to append some textlines to a textarea in my program. Here's my method appendText: protected synchronized void appendText(final String i_text) { UI.access(new Runnable() { ... I have received a strange email related to a project where I use Rhino (no Java 8 so I cannot use Nashorn). Original post here. The guy receives a huge stacktrace and the relevant element (I think) is ... I'm trying for sharing files using asmack-2010.05.07.jar, i'm sending successfully but receiving 0kb file with ExecutionException,I tried lots of ways to fix it but i didn't get any solution, Can ... Many people read "Java Concurrency in Practice", but paste the code in here for convenience. 5.19 Final implementation of Memoizer: public class Memoizer<A, V> implements Computable<A, ... I wrote a code to send/receive sms via GSM Modem using SMSLib. On my 64-bit machine I set up 32-bit JDK as per solutions given in some links. Following is code in which I am getting exception ... I'm getting the following errors trying to run an existing project that uses Play 2.1.0. Any ideas? [error] application [/] - ! @6jfa870fl - Internal server error, for (GET) [/web/login] -> ... stacktrace0=java.util.concurrent.TimeoutException: android.media.MediaRecorder.finalize() timed out after 10 seconds
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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)
  6. 0

    XML parser doesn't work with all versions of Java

    GitHub | 7 months ago | larskotthoff
    java.lang.RuntimeException: Failed to load from XML file" (see below for the full log from the terminal). Note that it works with with Java 1.7, at least Open JDK version 1.7.0_101. What I can see the problem occurs for any data set, e.g. breast-cancer.arff, contact-lenses.arff (from the Weka distribution). When writing this I tested with just 1 minute timeLimit but it don't seems to matter. Also, I've tested both via the Auto-WEKA tab and selecting via the Classifier tab (classifiers.meta.AutoWEKAClassifier) with the same result. This problem was reported to the list by valerio jus in March 3 but I can't find any solution. My system: - Linux Ubuntu 14.04 LTS (64-bit, 32Gb RAM, CPU Intel i7-5820K) - Weka 1.8.0 (as mentioned above, it's the same error with the latest SVN version, 3.9.1-SNAPSHOT) - Oracle Java version 1.8.0_91 - Auto-Weka version 1.0.1. (I tested with the Git version of Auto-Weka with the same result.) I'm starting Weka like this (shell script): """ #!/bin/sh export CLASSPATH= export JAVA_HOME=/usr/lib/jvm/java-8-oracle/ export JAVA_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server $JAVA_HOME/bin/java -server -Xmx16g -Xms2G -Xss1G -jar /home/hakank/weka_cvs/svn/trunk/weka/dist/weka.jar weka.gui.GUIChooser """ Here's the more detailed output: """ 2016-05-07 20:53:40.357 [Thread-10] INFO AutoWEKAClassifier - Estimated mean quality of final incumbent config 5 (internal ID: 0x7566) on test set: 29.16666666666667, based on 1 run(s) on 1 test instance(s). May 07, 2016 8:53:40 PM com.sun.xml.internal.bind.v2.util.XmlFactory createParserFactory SEVERE: null org.xml.sax.SAXNotRecognizedException: http://javax.xml.XMLConstants/feature/secure-processing

    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.RuntimeException

      1 <{https://source.jasig.org/schemas/uportal/io/portlet-definition}portlet-definition version="4.0"> entities failed to import. Per entity exception logs and a full report can be found in /my/up/admin/bin/target/data-import-reports

      at org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importData()
    2. org.jasig.portal
      JaxbPortalDataHandlerService.importData
      1. org.jasig.portal.io.xml.JaxbPortalDataHandlerService.importData(JaxbPortalDataHandlerService.java:633)
      1 frame