From 03ea954ea36c8f3300bf63dc4ac31f584a671db6 Mon Sep 17 00:00:00 2001 From: Hantsy Bai Date: Mon, 12 Apr 2021 10:20:05 +0800 Subject: [PATCH] chore: clean Signed-off-by: Hantsy Bai --- .gitignore | 1 + .../cargo-tracker-database.mv.db | Bin 32768 -> 0 bytes .../cargo-tracker-database.trace.db | 27 ------------------ .../interfaces/booking/web/ListCargo.java | 2 -- 4 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 cargo-tracker-data/cargo-tracker-database.mv.db delete mode 100644 cargo-tracker-data/cargo-tracker-database.trace.db diff --git a/.gitignore b/.gitignore index d31960046..579b286d9 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ bin/ data .DS_Store cargo-tracker-test-data +cargo-tracker-data diff --git a/cargo-tracker-data/cargo-tracker-database.mv.db b/cargo-tracker-data/cargo-tracker-database.mv.db deleted file mode 100644 index 16b5835d9c9e4f2d068dce457f2e59363a3119b7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 32768 zcmeHQ3v3+6d0w74vc$ckMNy*O(()*Yl1x$iyxpS$$j7@q-twNj2gxhaTxy{ZDpXqs`WWKv`_1fh%APY|{uQb-{ zml{{6>a3{Lmn39}WV|ANfrqfRzURssBp#;VGVl z=#ih>eH69*L5h0EJVl|uq5?1MBJp5s_vrpH1ofC)_ODj2G$z-pwUx#s z3%M2aX=;?(L8?B<$!0`-Vrd7Ry4g$j z;(ju<_Hbjhc(uBEty*6PgO+PY$lJ@SON~b+dBre-F)J$Aa|N)OAto};xqR1Lv1@Lq zYi?Jq0Jtt%iCwi4yJ{tN)k^HDmDE)$sjF5}SFNP3T1g#R4U+b~zPhxQTDv&O9c_7R z*Fz+8$&@jd(1dnnt(LAn+)U>i`h+tD?_<^V>S02pmuOdMCNNZUz@M`I`My}E0+YxBZ?Wj<>l2pqTDad3qOfXlPPHEBLWH1`Z=QTB7NoVKP zw3;afPX)DD@bpmsY34-WXCkShnrDiU>6F^73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Q__o zy$y(_w*kpa=y&^nG~5n6Y2NP_jr;vdo7(}``~BpWiQ!+u^ff?k_P6>P00$HLZGO1g z@920SWL@nSZCCr7{tzTXvHE5l548BbkUITd2wcdf7Wh)=@Hik@YDqS=n*I<%hFW~D zYBjxb2&RVy!$E`6=?|f)P!FJmY}$GL5a8c4Y4Pyj`9o;)72x?p*uWnG?Eaq)eUaKv z5x*?U0qhK7(sZrR@+7uAg<75z`;)-7Jn=10EnI{aETC2Z`#9FeaXyas zae|K%eVpXuLOxFRaf*)%`?#u)tNFOPk6ZF_4Ij7M7wQxHq&`^heNUeMAT>s{I1SPv zHa&5)JP9pNMkNi(u$_rMR17ynGVwYx+4MTn`pDmhJuHC}A|vLE*nBS-&!Q1aMjSF? z*@zV*4jXaRh-*e%H{vBDZW!_Mb|PQUBUz6WJqqhlRgY?VRM(>=J!UU3F}Sdr@uGhMGOnRTr44J#d9 z66*#{bxBc7`Wjbj>QLjCSW{L_s989Oq6lYV7NkR5=iwjKq9K64x=;nJ^)zV2az+|7 z5*uc^UXxfO4H{YLaJ^nP-!CbwNe>zUS~|}fslAaFYJj?t7KJ)*+ZcOE4*?H>ts&5H z|K4_czWMLyg+rnk=Bm|ueucyOQbYR(p$erfJdWaA*E)=Ks$+f7{N_*7;u! O)xvyr`Q9I+2mT)_Pu)rY diff --git a/cargo-tracker-data/cargo-tracker-database.trace.db b/cargo-tracker-data/cargo-tracker-database.trace.db deleted file mode 100644 index 6c10c1e6a..000000000 --- a/cargo-tracker-data/cargo-tracker-database.trace.db +++ /dev/null @@ -1,27 +0,0 @@ -2021-04-12 10:15:23 jdbc[3]: exception -org.h2.jdbc.JdbcSQLNonTransientConnectionException: Database is already closed (to disable automatic closing at VM shutdown, add ";DB_CLOSE_ON_EXIT=FALSE" to the db URL) [90121-200] - at deployment.cargo-tracker.war//org.h2.message.DbException.getJdbcSQLException(DbException.java:622) - at deployment.cargo-tracker.war//org.h2.message.DbException.getJdbcSQLException(DbException.java:429) - at deployment.cargo-tracker.war//org.h2.message.DbException.get(DbException.java:205) - at deployment.cargo-tracker.war//org.h2.message.DbException.get(DbException.java:181) - at deployment.cargo-tracker.war//org.h2.message.DbException.get(DbException.java:170) - at deployment.cargo-tracker.war//org.h2.jdbc.JdbcConnection.checkClosed(JdbcConnection.java:1514) - at deployment.cargo-tracker.war//org.h2.jdbcx.JdbcXAConnection$PooledJdbcConnection.checkClosed(JdbcXAConnection.java:472) - at deployment.cargo-tracker.war//org.h2.jdbc.JdbcConnection.checkClosedForWrite(JdbcConnection.java:1500) - at deployment.cargo-tracker.war//org.h2.jdbc.JdbcConnection.rollback(JdbcConnection.java:556) - at deployment.cargo-tracker.war//org.h2.jdbcx.JdbcXAConnection$PooledJdbcConnection.close(JdbcXAConnection.java:452) - at org.jboss.ironjacamar.jdbcadapters@1.4.27.Final//org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.destroy(BaseWrapperManagedConnection.java:494) - at org.jboss.ironjacamar.jdbcadapters@1.4.27.Final//org.jboss.jca.adapters.jdbc.xa.XAManagedConnection.destroy(XAManagedConnection.java:229) - at org.jboss.ironjacamar.impl@1.4.27.Final//org.jboss.jca.core.connectionmanager.listener.AbstractConnectionListener.destroy(AbstractConnectionListener.java:637) - at org.jboss.ironjacamar.impl@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.shutdown(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1069) - at org.jboss.ironjacamar.impl@1.4.27.Final//org.jboss.jca.core.connectionmanager.pool.AbstractPool.shutdown(AbstractPool.java:945) - at org.jboss.ironjacamar.impl@1.4.27.Final//org.jboss.jca.core.connectionmanager.AbstractConnectionManager.shutdown(AbstractConnectionManager.java:321) - at org.jboss.as.connector@23.0.0.Final//org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService.stopService(AbstractDataSourceService.java:236) - at org.jboss.as.connector@23.0.0.Final//org.jboss.as.connector.subsystems.datasources.XaDataSourceService.stopService(XaDataSourceService.java:72) - at org.jboss.as.connector@23.0.0.Final//org.jboss.as.connector.subsystems.datasources.AbstractDataSourceService$1.run(AbstractDataSourceService.java:190) - at org.jboss.threads@2.4.0.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) - at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) - at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) - at org.jboss.threads@2.4.0.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) - at java.base/java.lang.Thread.run(Thread.java:834) - at org.jboss.threads@2.4.0.Final//org.jboss.threads.JBossThread.run(JBossThread.java:513) diff --git a/src/main/java/org/eclipse/cargotracker/interfaces/booking/web/ListCargo.java b/src/main/java/org/eclipse/cargotracker/interfaces/booking/web/ListCargo.java index 03964c30c..00b0ebd71 100644 --- a/src/main/java/org/eclipse/cargotracker/interfaces/booking/web/ListCargo.java +++ b/src/main/java/org/eclipse/cargotracker/interfaces/booking/web/ListCargo.java @@ -1,14 +1,12 @@ package org.eclipse.cargotracker.interfaces.booking.web; import static java.util.stream.Collectors.toList; -import static javax.transaction.Transactional.TxType.REQUIRED; import java.util.List; import javax.annotation.PostConstruct; import javax.enterprise.context.RequestScoped; import javax.inject.Inject; import javax.inject.Named; -import javax.transaction.Transactional; import org.eclipse.cargotracker.interfaces.booking.facade.BookingServiceFacade; import org.eclipse.cargotracker.interfaces.booking.facade.dto.CargoRoute;