├── BusReservation ├── HELP.md ├── Readme.md ├── mvnw ├── mvnw.cmd ├── pom.xml ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── BusReservation │ │ │ │ ├── BusReservationApplication.java │ │ │ │ ├── model │ │ │ │ ├── Bus.java │ │ │ │ ├── Invoice.java │ │ │ │ ├── Search.java │ │ │ │ ├── Ticket.java │ │ │ │ └── User.java │ │ │ │ ├── repository │ │ │ │ ├── BusRepository.java │ │ │ │ ├── TicketRepository.java │ │ │ │ └── UserRepository.java │ │ │ │ ├── rest │ │ │ │ └── RestApi.java │ │ │ │ └── service │ │ │ │ ├── HelperBean.java │ │ │ │ └── TicketGeneration.java │ │ └── resources │ │ │ ├── application.properties │ │ │ ├── data.sql │ │ │ └── schema-h2.sql │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── BusReservation │ │ └── BusReservationApplicationTests.java └── target │ ├── classes │ ├── application.properties │ ├── com │ │ └── example │ │ │ └── BusReservation │ │ │ ├── BusReservationApplication.class │ │ │ ├── model │ │ │ ├── Bus.class │ │ │ ├── Invoice.class │ │ │ ├── Search.class │ │ │ ├── Ticket.class │ │ │ └── User.class │ │ │ ├── repository │ │ │ ├── BusRepository.class │ │ │ ├── TicketRepository.class │ │ │ └── UserRepository.class │ │ │ ├── rest │ │ │ └── RestApi.class │ │ │ └── service │ │ │ ├── HelperBean.class │ │ │ └── TicketGeneration.class │ ├── data.sql │ └── schema-h2.sql │ └── test-classes │ └── com │ └── example │ └── BusReservation │ └── BusReservationApplicationTests.class ├── OnScreenTabletKeyboardInvocation.java ├── README.md └── TaxiSystem ├── Readme.md ├── bin └── taxi │ ├── data │ ├── Display.class │ ├── JourneyData.class │ ├── Logger.class │ └── VehicleInfo.class │ ├── main │ ├── Booking.class │ ├── Cancellation.class │ ├── Main.class │ └── TaxiReservation.class │ └── util │ ├── Bookcab.class │ ├── ReservationUtil.class │ └── Reservationlist.class ├── data ├── VehicleInfo.txt └── config.txt ├── hs_err_pid10184.log ├── hs_err_pid10792.log ├── hs_err_pid12516.log ├── hs_err_pid13516.log ├── hs_err_pid14448.log ├── hs_err_pid14868.log ├── hs_err_pid14932.log ├── hs_err_pid15300.log ├── hs_err_pid7108.log ├── replay_pid10184.log ├── replay_pid10792.log ├── replay_pid12516.log ├── replay_pid13516.log ├── replay_pid14448.log ├── replay_pid14868.log ├── replay_pid14932.log ├── replay_pid15300.log ├── replay_pid7108.log └── src └── taxi ├── data ├── Display.java ├── JourneyData.java ├── Logger.java └── VehicleInfo.java ├── main ├── Booking.java ├── Cancellation.java ├── Main.java └── TaxiReservation.java └── util ├── Bookcab.java ├── ReservationUtil.java └── Reservationlist.java /BusReservation/HELP.md: -------------------------------------------------------------------------------- 1 | # Getting Started 2 | 3 | ### Reference Documentation 4 | For further reference, please consider the following sections: 5 | 6 | * [Official Apache Maven documentation](https://maven.apache.org/guides/index.html) 7 | * [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/maven-plugin/reference/html/) 8 | * [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/maven-plugin/reference/html/#build-image) 9 | * [Spring Web](https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/htmlsingle/#boot-features-developing-web-applications) 10 | * [Spring Boot Actuator](https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/htmlsingle/#production-ready) 11 | 12 | ### Guides 13 | The following guides illustrate how to use some features concretely: 14 | 15 | * [Building a RESTful Web Service](https://spring.io/guides/gs/rest-service/) 16 | * [Serving Web Content with Spring MVC](https://spring.io/guides/gs/serving-web-content/) 17 | * [Building REST services with Spring](https://spring.io/guides/tutorials/bookmarks/) 18 | * [Building a RESTful Web Service with Spring Boot Actuator](https://spring.io/guides/gs/actuator-service/) 19 | 20 | -------------------------------------------------------------------------------- /BusReservation/Readme.md: -------------------------------------------------------------------------------- 1 | # Bus Reservation Java REST API 2 | REST APIs for Bus Reservations Developed using Java 3 | 4 | This was done during 2020 as a part of my interview with Paypal. The project was approved and was selected for next round with Paypal. 5 | 6 | 7 | The below are the API details with the URL, parameters and sample responses. 8 | 9 | #### Search REST API 10 | --------------- 11 | URL 12 | POST request 13 | http://localhost:8081/api/search 14 | 15 | PARAMETERS 16 | ```json 17 | { 18 | "busName": "Bus01", 19 | "departureDate": "2020-07-02T04:30:00.176+00:00", 20 | "returnDate": "2020-07-03T04:30:00.176+00:00", 21 | "sourceCity": "S1", 22 | "destinationCity": "D1" 23 | } 24 | ``` 25 | returnDate is optional. 26 | 27 | Will return the List of Buses. 28 | First Set is "To Destination" Bus list, 29 | Then if return date is avaiable, 30 | Second Set is "From Destination" Bus List 31 | 32 | #### Bus Details REST API 33 | -------------------- 34 | URL 35 | GET request 36 | http://localhost:8081/api/bus/{busName} 37 | 38 | PARAMETERS 39 | busName=Bus01 40 | 41 | returns the list of Bus all the details like 42 | busName,duration,availableSeats,bookedSeats,sourceCity,destinationCity,departureDate,arrivalDate 43 | 44 | availableSeats- can be used to display the seats in green in UI and booked Seats in red. 45 | 46 | #### Book REST API 47 | -------------------- 48 | URL 49 | POST request 50 | http://localhost:8081/api/bookBus?seatNumber={seatNumber}&busName={busName}&userName={userName} 51 | 52 | PARAMETERS 53 | seatNumber=d5 54 | busName=Bus01 55 | userName=user2 56 | 57 | return the Invoice details and also updates the Bus avaiable and booked seats. 58 | Invoice will have busName,operator,departureDate,sourceCity,destinationCity,duration,price,userName,email 59 | 60 | 61 | 62 | Vist for more info: [leo.ka](https://leoka1993.wixsite.com/leoka) 63 | 64 | #### Social Media Links 65 | - Mail: leo.ka1993@gmail.com 66 | - Linkden : [Leo KA](http://linkedin.com/in/leoka037) 67 | - Instagram : [Leo__037](https://instagram.com/leo____037) 68 | - Facebook : [Leo KA](http://www.facebook.com/LEO.K.A.037) 69 | - Pinterest : [Leo KA](www.in.pinterest.com/leoka1993/) 70 | -------------------------------------------------------------------------------- /BusReservation/mvnw: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # ---------------------------------------------------------------------------- 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # https://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | # ---------------------------------------------------------------------------- 20 | 21 | # ---------------------------------------------------------------------------- 22 | # Maven Start Up Batch script 23 | # 24 | # Required ENV vars: 25 | # ------------------ 26 | # JAVA_HOME - location of a JDK home dir 27 | # 28 | # Optional ENV vars 29 | # ----------------- 30 | # M2_HOME - location of maven2's installed home dir 31 | # MAVEN_OPTS - parameters passed to the Java VM when running Maven 32 | # e.g. to debug Maven itself, use 33 | # set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 34 | # MAVEN_SKIP_RC - flag to disable loading of mavenrc files 35 | # ---------------------------------------------------------------------------- 36 | 37 | if [ -z "$MAVEN_SKIP_RC" ] ; then 38 | 39 | if [ -f /etc/mavenrc ] ; then 40 | . /etc/mavenrc 41 | fi 42 | 43 | if [ -f "$HOME/.mavenrc" ] ; then 44 | . "$HOME/.mavenrc" 45 | fi 46 | 47 | fi 48 | 49 | # OS specific support. $var _must_ be set to either true or false. 50 | cygwin=false; 51 | darwin=false; 52 | mingw=false 53 | case "`uname`" in 54 | CYGWIN*) cygwin=true ;; 55 | MINGW*) mingw=true;; 56 | Darwin*) darwin=true 57 | # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home 58 | # See https://developer.apple.com/library/mac/qa/qa1170/_index.html 59 | if [ -z "$JAVA_HOME" ]; then 60 | if [ -x "/usr/libexec/java_home" ]; then 61 | export JAVA_HOME="`/usr/libexec/java_home`" 62 | else 63 | export JAVA_HOME="/Library/Java/Home" 64 | fi 65 | fi 66 | ;; 67 | esac 68 | 69 | if [ -z "$JAVA_HOME" ] ; then 70 | if [ -r /etc/gentoo-release ] ; then 71 | JAVA_HOME=`java-config --jre-home` 72 | fi 73 | fi 74 | 75 | if [ -z "$M2_HOME" ] ; then 76 | ## resolve links - $0 may be a link to maven's home 77 | PRG="$0" 78 | 79 | # need this for relative symlinks 80 | while [ -h "$PRG" ] ; do 81 | ls=`ls -ld "$PRG"` 82 | link=`expr "$ls" : '.*-> \(.*\)$'` 83 | if expr "$link" : '/.*' > /dev/null; then 84 | PRG="$link" 85 | else 86 | PRG="`dirname "$PRG"`/$link" 87 | fi 88 | done 89 | 90 | saveddir=`pwd` 91 | 92 | M2_HOME=`dirname "$PRG"`/.. 93 | 94 | # make it fully qualified 95 | M2_HOME=`cd "$M2_HOME" && pwd` 96 | 97 | cd "$saveddir" 98 | # echo Using m2 at $M2_HOME 99 | fi 100 | 101 | # For Cygwin, ensure paths are in UNIX format before anything is touched 102 | if $cygwin ; then 103 | [ -n "$M2_HOME" ] && 104 | M2_HOME=`cygpath --unix "$M2_HOME"` 105 | [ -n "$JAVA_HOME" ] && 106 | JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 107 | [ -n "$CLASSPATH" ] && 108 | CLASSPATH=`cygpath --path --unix "$CLASSPATH"` 109 | fi 110 | 111 | # For Mingw, ensure paths are in UNIX format before anything is touched 112 | if $mingw ; then 113 | [ -n "$M2_HOME" ] && 114 | M2_HOME="`(cd "$M2_HOME"; pwd)`" 115 | [ -n "$JAVA_HOME" ] && 116 | JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" 117 | fi 118 | 119 | if [ -z "$JAVA_HOME" ]; then 120 | javaExecutable="`which javac`" 121 | if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then 122 | # readlink(1) is not available as standard on Solaris 10. 123 | readLink=`which readlink` 124 | if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then 125 | if $darwin ; then 126 | javaHome="`dirname \"$javaExecutable\"`" 127 | javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" 128 | else 129 | javaExecutable="`readlink -f \"$javaExecutable\"`" 130 | fi 131 | javaHome="`dirname \"$javaExecutable\"`" 132 | javaHome=`expr "$javaHome" : '\(.*\)/bin'` 133 | JAVA_HOME="$javaHome" 134 | export JAVA_HOME 135 | fi 136 | fi 137 | fi 138 | 139 | if [ -z "$JAVACMD" ] ; then 140 | if [ -n "$JAVA_HOME" ] ; then 141 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 142 | # IBM's JDK on AIX uses strange locations for the executables 143 | JAVACMD="$JAVA_HOME/jre/sh/java" 144 | else 145 | JAVACMD="$JAVA_HOME/bin/java" 146 | fi 147 | else 148 | JAVACMD="`which java`" 149 | fi 150 | fi 151 | 152 | if [ ! -x "$JAVACMD" ] ; then 153 | echo "Error: JAVA_HOME is not defined correctly." >&2 154 | echo " We cannot execute $JAVACMD" >&2 155 | exit 1 156 | fi 157 | 158 | if [ -z "$JAVA_HOME" ] ; then 159 | echo "Warning: JAVA_HOME environment variable is not set." 160 | fi 161 | 162 | CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher 163 | 164 | # traverses directory structure from process work directory to filesystem root 165 | # first directory with .mvn subdirectory is considered project base directory 166 | find_maven_basedir() { 167 | 168 | if [ -z "$1" ] 169 | then 170 | echo "Path not specified to find_maven_basedir" 171 | return 1 172 | fi 173 | 174 | basedir="$1" 175 | wdir="$1" 176 | while [ "$wdir" != '/' ] ; do 177 | if [ -d "$wdir"/.mvn ] ; then 178 | basedir=$wdir 179 | break 180 | fi 181 | # workaround for JBEAP-8937 (on Solaris 10/Sparc) 182 | if [ -d "${wdir}" ]; then 183 | wdir=`cd "$wdir/.."; pwd` 184 | fi 185 | # end of workaround 186 | done 187 | echo "${basedir}" 188 | } 189 | 190 | # concatenates all lines of a file 191 | concat_lines() { 192 | if [ -f "$1" ]; then 193 | echo "$(tr -s '\n' ' ' < "$1")" 194 | fi 195 | } 196 | 197 | BASE_DIR=`find_maven_basedir "$(pwd)"` 198 | if [ -z "$BASE_DIR" ]; then 199 | exit 1; 200 | fi 201 | 202 | ########################################################################################## 203 | # Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 204 | # This allows using the maven wrapper in projects that prohibit checking in binary data. 205 | ########################################################################################## 206 | if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then 207 | if [ "$MVNW_VERBOSE" = true ]; then 208 | echo "Found .mvn/wrapper/maven-wrapper.jar" 209 | fi 210 | else 211 | if [ "$MVNW_VERBOSE" = true ]; then 212 | echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..." 213 | fi 214 | if [ -n "$MVNW_REPOURL" ]; then 215 | jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 216 | else 217 | jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 218 | fi 219 | while IFS="=" read key value; do 220 | case "$key" in (wrapperUrl) jarUrl="$value"; break ;; 221 | esac 222 | done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties" 223 | if [ "$MVNW_VERBOSE" = true ]; then 224 | echo "Downloading from: $jarUrl" 225 | fi 226 | wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" 227 | if $cygwin; then 228 | wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"` 229 | fi 230 | 231 | if command -v wget > /dev/null; then 232 | if [ "$MVNW_VERBOSE" = true ]; then 233 | echo "Found wget ... using wget" 234 | fi 235 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 236 | wget "$jarUrl" -O "$wrapperJarPath" 237 | else 238 | wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath" 239 | fi 240 | elif command -v curl > /dev/null; then 241 | if [ "$MVNW_VERBOSE" = true ]; then 242 | echo "Found curl ... using curl" 243 | fi 244 | if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then 245 | curl -o "$wrapperJarPath" "$jarUrl" -f 246 | else 247 | curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f 248 | fi 249 | 250 | else 251 | if [ "$MVNW_VERBOSE" = true ]; then 252 | echo "Falling back to using Java to download" 253 | fi 254 | javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" 255 | # For Cygwin, switch paths to Windows format before running javac 256 | if $cygwin; then 257 | javaClass=`cygpath --path --windows "$javaClass"` 258 | fi 259 | if [ -e "$javaClass" ]; then 260 | if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 261 | if [ "$MVNW_VERBOSE" = true ]; then 262 | echo " - Compiling MavenWrapperDownloader.java ..." 263 | fi 264 | # Compiling the Java class 265 | ("$JAVA_HOME/bin/javac" "$javaClass") 266 | fi 267 | if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then 268 | # Running the downloader 269 | if [ "$MVNW_VERBOSE" = true ]; then 270 | echo " - Running MavenWrapperDownloader.java ..." 271 | fi 272 | ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR") 273 | fi 274 | fi 275 | fi 276 | fi 277 | ########################################################################################## 278 | # End of extension 279 | ########################################################################################## 280 | 281 | export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} 282 | if [ "$MVNW_VERBOSE" = true ]; then 283 | echo $MAVEN_PROJECTBASEDIR 284 | fi 285 | MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" 286 | 287 | # For Cygwin, switch paths to Windows format before running java 288 | if $cygwin; then 289 | [ -n "$M2_HOME" ] && 290 | M2_HOME=`cygpath --path --windows "$M2_HOME"` 291 | [ -n "$JAVA_HOME" ] && 292 | JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` 293 | [ -n "$CLASSPATH" ] && 294 | CLASSPATH=`cygpath --path --windows "$CLASSPATH"` 295 | [ -n "$MAVEN_PROJECTBASEDIR" ] && 296 | MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` 297 | fi 298 | 299 | # Provide a "standardized" way to retrieve the CLI args that will 300 | # work with both Windows and non-Windows executions. 301 | MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" 302 | export MAVEN_CMD_LINE_ARGS 303 | 304 | WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 305 | 306 | exec "$JAVACMD" \ 307 | $MAVEN_OPTS \ 308 | -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ 309 | "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ 310 | ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" 311 | -------------------------------------------------------------------------------- /BusReservation/mvnw.cmd: -------------------------------------------------------------------------------- 1 | @REM ---------------------------------------------------------------------------- 2 | @REM Licensed to the Apache Software Foundation (ASF) under one 3 | @REM or more contributor license agreements. See the NOTICE file 4 | @REM distributed with this work for additional information 5 | @REM regarding copyright ownership. The ASF licenses this file 6 | @REM to you under the Apache License, Version 2.0 (the 7 | @REM "License"); you may not use this file except in compliance 8 | @REM with the License. You may obtain a copy of the License at 9 | @REM 10 | @REM https://www.apache.org/licenses/LICENSE-2.0 11 | @REM 12 | @REM Unless required by applicable law or agreed to in writing, 13 | @REM software distributed under the License is distributed on an 14 | @REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | @REM KIND, either express or implied. See the License for the 16 | @REM specific language governing permissions and limitations 17 | @REM under the License. 18 | @REM ---------------------------------------------------------------------------- 19 | 20 | @REM ---------------------------------------------------------------------------- 21 | @REM Maven Start Up Batch script 22 | @REM 23 | @REM Required ENV vars: 24 | @REM JAVA_HOME - location of a JDK home dir 25 | @REM 26 | @REM Optional ENV vars 27 | @REM M2_HOME - location of maven2's installed home dir 28 | @REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands 29 | @REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending 30 | @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven 31 | @REM e.g. to debug Maven itself, use 32 | @REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 33 | @REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files 34 | @REM ---------------------------------------------------------------------------- 35 | 36 | @REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' 37 | @echo off 38 | @REM set title of command window 39 | title %0 40 | @REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' 41 | @if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% 42 | 43 | @REM set %HOME% to equivalent of $HOME 44 | if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") 45 | 46 | @REM Execute a user defined script before this one 47 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre 48 | @REM check for pre script, once with legacy .bat ending and once with .cmd ending 49 | if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" 50 | if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" 51 | :skipRcPre 52 | 53 | @setlocal 54 | 55 | set ERROR_CODE=0 56 | 57 | @REM To isolate internal variables from possible post scripts, we use another setlocal 58 | @setlocal 59 | 60 | @REM ==== START VALIDATION ==== 61 | if not "%JAVA_HOME%" == "" goto OkJHome 62 | 63 | echo. 64 | echo Error: JAVA_HOME not found in your environment. >&2 65 | echo Please set the JAVA_HOME variable in your environment to match the >&2 66 | echo location of your Java installation. >&2 67 | echo. 68 | goto error 69 | 70 | :OkJHome 71 | if exist "%JAVA_HOME%\bin\java.exe" goto init 72 | 73 | echo. 74 | echo Error: JAVA_HOME is set to an invalid directory. >&2 75 | echo JAVA_HOME = "%JAVA_HOME%" >&2 76 | echo Please set the JAVA_HOME variable in your environment to match the >&2 77 | echo location of your Java installation. >&2 78 | echo. 79 | goto error 80 | 81 | @REM ==== END VALIDATION ==== 82 | 83 | :init 84 | 85 | @REM Find the project base dir, i.e. the directory that contains the folder ".mvn". 86 | @REM Fallback to current working directory if not found. 87 | 88 | set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% 89 | IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir 90 | 91 | set EXEC_DIR=%CD% 92 | set WDIR=%EXEC_DIR% 93 | :findBaseDir 94 | IF EXIST "%WDIR%"\.mvn goto baseDirFound 95 | cd .. 96 | IF "%WDIR%"=="%CD%" goto baseDirNotFound 97 | set WDIR=%CD% 98 | goto findBaseDir 99 | 100 | :baseDirFound 101 | set MAVEN_PROJECTBASEDIR=%WDIR% 102 | cd "%EXEC_DIR%" 103 | goto endDetectBaseDir 104 | 105 | :baseDirNotFound 106 | set MAVEN_PROJECTBASEDIR=%EXEC_DIR% 107 | cd "%EXEC_DIR%" 108 | 109 | :endDetectBaseDir 110 | 111 | IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig 112 | 113 | @setlocal EnableExtensions EnableDelayedExpansion 114 | for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a 115 | @endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% 116 | 117 | :endReadAdditionalConfig 118 | 119 | SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" 120 | set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" 121 | set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain 122 | 123 | set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 124 | 125 | FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO ( 126 | IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B 127 | ) 128 | 129 | @REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central 130 | @REM This allows using the maven wrapper in projects that prohibit checking in binary data. 131 | if exist %WRAPPER_JAR% ( 132 | if "%MVNW_VERBOSE%" == "true" ( 133 | echo Found %WRAPPER_JAR% 134 | ) 135 | ) else ( 136 | if not "%MVNW_REPOURL%" == "" ( 137 | SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar" 138 | ) 139 | if "%MVNW_VERBOSE%" == "true" ( 140 | echo Couldn't find %WRAPPER_JAR%, downloading it ... 141 | echo Downloading from: %DOWNLOAD_URL% 142 | ) 143 | 144 | powershell -Command "&{"^ 145 | "$webclient = new-object System.Net.WebClient;"^ 146 | "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^ 147 | "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^ 148 | "}"^ 149 | "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^ 150 | "}" 151 | if "%MVNW_VERBOSE%" == "true" ( 152 | echo Finished downloading %WRAPPER_JAR% 153 | ) 154 | ) 155 | @REM End of extension 156 | 157 | @REM Provide a "standardized" way to retrieve the CLI args that will 158 | @REM work with both Windows and non-Windows executions. 159 | set MAVEN_CMD_LINE_ARGS=%* 160 | 161 | %MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* 162 | if ERRORLEVEL 1 goto error 163 | goto end 164 | 165 | :error 166 | set ERROR_CODE=1 167 | 168 | :end 169 | @endlocal & set ERROR_CODE=%ERROR_CODE% 170 | 171 | if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost 172 | @REM check for post script, once with legacy .bat ending and once with .cmd ending 173 | if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" 174 | if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" 175 | :skipRcPost 176 | 177 | @REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' 178 | if "%MAVEN_BATCH_PAUSE%" == "on" pause 179 | 180 | if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% 181 | 182 | exit /B %ERROR_CODE% 183 | -------------------------------------------------------------------------------- /BusReservation/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 4.0.0 5 | 6 | org.springframework.boot 7 | spring-boot-starter-parent 8 | 2.3.1.RELEASE 9 | 10 | 11 | com.example 12 | BusReservation 13 | 0.0.1-SNAPSHOT 14 | BusReservation 15 | BusReservation 16 | 17 | 18 | 1.8 19 | 20 | 21 | 22 | 23 | org.springframework.boot 24 | spring-boot-starter-actuator 25 | 26 | 27 | org.springframework.boot 28 | spring-boot-starter-web 29 | 30 | 31 | 32 | org.springframework.boot 33 | spring-boot-starter-data-jpa 34 | 35 | 36 | 37 | 38 | org.springframework.boot 39 | spring-boot-devtools 40 | 41 | 42 | 43 | 44 | com.h2database 45 | h2 46 | runtime 47 | 48 | 49 | org.springframework.boot 50 | spring-boot-starter-test 51 | test 52 | 53 | 54 | org.junit.vintage 55 | junit-vintage-engine 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | org.springframework.boot 65 | spring-boot-maven-plugin 66 | 67 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/BusReservationApplication.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class BusReservationApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(BusReservationApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/model/Bus.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.model; 2 | 3 | import java.util.Date; 4 | import java.util.Set; 5 | 6 | import javax.persistence.CascadeType; 7 | import javax.persistence.Column; 8 | import javax.persistence.Entity; 9 | import javax.persistence.GeneratedValue; 10 | import javax.persistence.GenerationType; 11 | import javax.persistence.Id; 12 | import javax.persistence.JoinColumn; 13 | import javax.persistence.OneToMany; 14 | import javax.persistence.Table; 15 | 16 | import com.fasterxml.jackson.annotation.JsonFormat; 17 | 18 | @Entity 19 | @Table(name = "BUS_DETAILS") 20 | public class Bus { 21 | 22 | @Id 23 | @Column(name = "busId") 24 | @GeneratedValue(strategy = GenerationType.AUTO) 25 | private long busId; 26 | 27 | @Column(name = "busName", nullable = false) 28 | private String busName; 29 | 30 | @Column(name = "operator", nullable = false) 31 | private String operator; 32 | 33 | @Column(name = "duration", nullable = false) 34 | private Integer duration; 35 | 36 | @Column(name = "price", nullable = false) 37 | private Integer price; 38 | 39 | @Column(name = "availableSeats", nullable = false) 40 | private String availableSeats; 41 | 42 | @Column(name = "bookedSeats", nullable = false) 43 | private String bookedSeats; 44 | 45 | @Column(name = "sourceCity", nullable = false) 46 | private String sourceCity; 47 | 48 | @Column(name = "destinationCity", nullable = false) 49 | private String destinationCity; 50 | 51 | @Column(name = "departureDate", nullable = false) 52 | @JsonFormat(pattern="yyyy-MM-dd HH:mm") 53 | private Date departureDate; 54 | 55 | @Column(name = "arrivalDate", nullable = false) 56 | @JsonFormat(pattern="yyyy-MM-dd HH:mm") 57 | private Date arrivalDate; 58 | 59 | @OneToMany(cascade=CascadeType.ALL) 60 | @JoinColumn(name="BUS_ID") 61 | private Set tickets; 62 | 63 | public Bus() {} 64 | 65 | public Date getArrivalDate() { 66 | return arrivalDate; 67 | } 68 | 69 | public String getBusName() { 70 | return busName; 71 | } 72 | 73 | public Integer getDuration() { 74 | return duration; 75 | } 76 | 77 | public void setDuration(Integer duration) { 78 | this.duration = duration; 79 | } 80 | 81 | public String getAvailableSeats() { 82 | return availableSeats; 83 | } 84 | 85 | public void setAvailableSeats(String availableSeats) { 86 | this.availableSeats = availableSeats; 87 | } 88 | 89 | public String getBookedSeats() { 90 | return bookedSeats; 91 | } 92 | 93 | public void setBookedSeats(String bookedSeats) { 94 | this.bookedSeats = bookedSeats; 95 | } 96 | 97 | public Date getDepartureDate() { 98 | return departureDate; 99 | } 100 | 101 | public String getDestinationCity() { 102 | return destinationCity; 103 | } 104 | 105 | public String getSourceCity() { 106 | return sourceCity; 107 | } 108 | 109 | public void setArrivalDate(Date arrivalDate) { 110 | this.arrivalDate = arrivalDate; 111 | } 112 | 113 | public void setBusName(String busName) { 114 | this.busName = busName; 115 | } 116 | 117 | public void setDepartureDate(Date departureDate) { 118 | this.departureDate = departureDate; 119 | } 120 | 121 | public void setDestinationCity(String destinationCity) { 122 | this.destinationCity = destinationCity; 123 | } 124 | public void setSourceCity(String sourceCity) { 125 | this.sourceCity = sourceCity; 126 | } 127 | 128 | public String getOperator() { 129 | return operator; 130 | } 131 | 132 | public void setOperator(String operator) { 133 | this.operator = operator; 134 | } 135 | 136 | public Integer getPrice() { 137 | return price; 138 | } 139 | 140 | public void setPrice(Integer price) { 141 | this.price = price; 142 | } 143 | 144 | } 145 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/model/Invoice.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.model; 2 | 3 | import java.util.Date; 4 | 5 | public class Invoice { 6 | 7 | public Invoice() { 8 | // TODO Auto-generated constructor stub 9 | } 10 | 11 | private String busName; 12 | private String operator; 13 | private Date departureDate; 14 | private String sourceCity; 15 | private String destinationCity; 16 | private Integer duration; 17 | private Integer price; 18 | private String userName; 19 | private String email; 20 | public String getBusName() { 21 | return busName; 22 | } 23 | public void setBusName(String busName) { 24 | this.busName = busName; 25 | } 26 | public String getOperator() { 27 | return operator; 28 | } 29 | public void setOperator(String operator) { 30 | this.operator = operator; 31 | } 32 | public Date getDepartureDate() { 33 | return departureDate; 34 | } 35 | public void setDepartureDate(Date departureDate) { 36 | this.departureDate = departureDate; 37 | } 38 | public String getSourceCity() { 39 | return sourceCity; 40 | } 41 | public void setSourceCity(String sourceCity) { 42 | this.sourceCity = sourceCity; 43 | } 44 | public String getDestinationCity() { 45 | return destinationCity; 46 | } 47 | public void setDestinationCity(String destinationCity) { 48 | this.destinationCity = destinationCity; 49 | } 50 | public Integer getDuration() { 51 | return duration; 52 | } 53 | public void setDuration(Integer duration) { 54 | this.duration = duration; 55 | } 56 | public Integer getPrice() { 57 | return price; 58 | } 59 | public void setPrice(Integer price) { 60 | this.price = price; 61 | } 62 | public String getUserName() { 63 | return userName; 64 | } 65 | public void setUserName(String userName) { 66 | this.userName = userName; 67 | } 68 | public String getEmail() { 69 | return email; 70 | } 71 | public void setEmail(String email) { 72 | this.email = email; 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/model/Search.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.model; 2 | 3 | import java.util.Date; 4 | 5 | public class Search { 6 | 7 | public Search() { 8 | } 9 | String busName; 10 | Date departureDate; 11 | Date returnDate; 12 | String sourceCity; 13 | String destinationCity; 14 | public String getBusName() { 15 | return busName; 16 | } 17 | public void setBusName(String busName) { 18 | this.busName = busName; 19 | } 20 | public Date getDepartureDate() { 21 | return departureDate; 22 | } 23 | public void setDepartureDate(Date departureDate) { 24 | this.departureDate = departureDate; 25 | } 26 | public Date getReturnDate() { 27 | return returnDate; 28 | } 29 | public void setReturnDate(Date returnDate) { 30 | this.returnDate = returnDate; 31 | } 32 | public String getSourceCity() { 33 | return sourceCity; 34 | } 35 | public void setSourceCity(String sourceCity) { 36 | this.sourceCity = sourceCity; 37 | } 38 | public String getDestinationCity() { 39 | return destinationCity; 40 | } 41 | public void setDestinationCity(String destinationCity) { 42 | this.destinationCity = destinationCity; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/model/Ticket.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.model; 2 | 3 | import java.util.Date; 4 | 5 | import javax.persistence.Column; 6 | import javax.persistence.Entity; 7 | import javax.persistence.GeneratedValue; 8 | import javax.persistence.GenerationType; 9 | import javax.persistence.Id; 10 | import javax.persistence.JoinColumn; 11 | import javax.persistence.ManyToOne; 12 | import javax.persistence.Table; 13 | 14 | import com.fasterxml.jackson.annotation.JsonFormat; 15 | 16 | @Entity 17 | @Table(name = "TICKET_DETAILS") 18 | public class Ticket { 19 | 20 | @ManyToOne 21 | @JoinColumn( 22 | name = "BUS_ID", 23 | referencedColumnName = "busId" 24 | ) 25 | private Bus bus; 26 | 27 | @Id 28 | @GeneratedValue(strategy = GenerationType.AUTO) 29 | private Long id; 30 | 31 | @Column(name = "reservationDate", nullable = false) 32 | @JsonFormat(pattern="yyyy-MM-dd HH:mm") 33 | private Date reservationDate; 34 | 35 | @Column(name = "seatNumber", nullable = false) 36 | private String seatNumber; 37 | 38 | @Column(name = "ticketNumber", nullable = false) 39 | private String ticketNumber; 40 | 41 | @ManyToOne 42 | @JoinColumn( 43 | name = "USER_ID", 44 | referencedColumnName = "userId" 45 | ) 46 | private User user; 47 | 48 | public Ticket() { 49 | 50 | } 51 | 52 | public Bus getBus() { 53 | return bus; 54 | } 55 | 56 | public Date getReservationDate() { 57 | return reservationDate; 58 | } 59 | 60 | public String getSeatNumber() { 61 | return seatNumber; 62 | } 63 | 64 | public String getTicketNumber() { 65 | return ticketNumber; 66 | } 67 | 68 | public User getUser() { 69 | return user; 70 | } 71 | 72 | public void setBus(Bus bus) { 73 | this.bus = bus; 74 | } 75 | 76 | public void setReservationDate(Date reservationDate) { 77 | this.reservationDate = reservationDate; 78 | } 79 | 80 | public void setSeatNumber(String seatNumber) { 81 | this.seatNumber = seatNumber; 82 | } 83 | 84 | public void setTicketNumber(String ticketNumber) { 85 | this.ticketNumber = ticketNumber; 86 | } 87 | 88 | public void setUser(User user) { 89 | this.user = user; 90 | } 91 | 92 | } 93 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/model/User.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.model; 2 | 3 | import java.util.Set; 4 | 5 | import javax.persistence.CascadeType; 6 | import javax.persistence.Column; 7 | import javax.persistence.Entity; 8 | import javax.persistence.GeneratedValue; 9 | import javax.persistence.GenerationType; 10 | import javax.persistence.Id; 11 | import javax.persistence.JoinColumn; 12 | import javax.persistence.OneToMany; 13 | import javax.persistence.Table; 14 | 15 | @Entity 16 | @Table(name = "USER_DETAILS") 17 | public class User { 18 | 19 | @Column(name = "email",nullable = false, unique = true) 20 | private String email; 21 | 22 | @Column(name = "password", nullable = false) 23 | private String password; 24 | 25 | 26 | @OneToMany(cascade=CascadeType.ALL) 27 | @JoinColumn(name="USER_ID") 28 | private Set tickets; 29 | 30 | 31 | @Id 32 | @Column(name = "userId", nullable = false) 33 | @GeneratedValue(strategy = GenerationType.AUTO) 34 | private long userId; 35 | 36 | @Column(name = "userName", nullable = false, unique = true) 37 | private String userName; 38 | 39 | 40 | public User() { 41 | } 42 | 43 | 44 | public String getEmail() { 45 | return email; 46 | } 47 | 48 | 49 | public String getPassword() { 50 | return password; 51 | } 52 | 53 | public String getUserName() { 54 | return userName; 55 | } 56 | 57 | public void setEmail(String email) { 58 | this.email = email; 59 | } 60 | 61 | public void setPassword(String password) { 62 | this.password = password; 63 | } 64 | 65 | 66 | public void setUserName(String userName) { 67 | this.userName = userName; 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/repository/BusRepository.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.repository; 2 | 3 | import org.springframework.stereotype.Repository; 4 | import com.example.BusReservation.model.Bus; 5 | import java.util.Date; 6 | import java.util.List; 7 | import org.springframework.data.jpa.repository.Query; 8 | import org.springframework.data.repository.CrudRepository; 9 | 10 | @Repository 11 | public interface BusRepository extends CrudRepository{ 12 | 13 | @Query("SELECT b FROM Bus b WHERE b.departureDate = ?1 " 14 | + "and b.sourceCity = ?2 " 15 | + "and b.destinationCity = ?3" 16 | ) 17 | List findBySearchParameters(Date departureDate, 18 | String sourceCity, 19 | String destinationCity 20 | ); 21 | 22 | Bus findByBusName(String busName); 23 | } 24 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/repository/TicketRepository.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.repository; 2 | 3 | import org.springframework.stereotype.Repository; 4 | import com.example.BusReservation.model.Ticket; 5 | 6 | //import org.springframework.data.jpa.repository.JpaRepository; 7 | import org.springframework.data.repository.CrudRepository; 8 | 9 | @Repository 10 | public interface TicketRepository extends CrudRepository{ 11 | 12 | } 13 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/repository/UserRepository.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.repository; 2 | 3 | import org.springframework.stereotype.Repository; 4 | 5 | import com.example.BusReservation.model.User; 6 | 7 | import org.springframework.data.repository.CrudRepository; 8 | 9 | @Repository 10 | public interface UserRepository extends CrudRepository{ 11 | 12 | User findByUserName(String userName); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/rest/RestApi.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.rest; 2 | 3 | import java.text.DateFormat; 4 | import java.text.ParseException; 5 | import java.text.SimpleDateFormat; 6 | import java.util.Date; 7 | import java.util.LinkedList; 8 | import java.util.List; 9 | 10 | import org.springframework.beans.factory.annotation.Autowired; 11 | import org.springframework.web.bind.annotation.GetMapping; 12 | import org.springframework.web.bind.annotation.PathVariable; 13 | import org.springframework.web.bind.annotation.PostMapping; 14 | import org.springframework.web.bind.annotation.RequestBody; 15 | import org.springframework.web.bind.annotation.RequestMapping; 16 | import org.springframework.web.bind.annotation.RequestParam; 17 | import org.springframework.web.bind.annotation.RestController; 18 | 19 | import com.example.BusReservation.model.Bus; 20 | import com.example.BusReservation.model.Invoice; 21 | import com.example.BusReservation.model.Search; 22 | import com.example.BusReservation.model.Ticket; 23 | import com.example.BusReservation.model.User; 24 | import com.example.BusReservation.repository.BusRepository; 25 | import com.example.BusReservation.repository.TicketRepository; 26 | import com.example.BusReservation.repository.UserRepository; 27 | 28 | @RestController 29 | @RequestMapping("/api") 30 | public class RestApi { 31 | 32 | @Autowired 33 | private BusRepository busRepository; 34 | 35 | @Autowired 36 | private UserRepository userRepository; 37 | 38 | @Autowired 39 | private TicketRepository ticketRepository; 40 | 41 | public RestApi() { 42 | 43 | } 44 | 45 | @PostMapping("/bus") 46 | public Bus createEmployee(@RequestBody Bus bus) { 47 | return busRepository.save(bus); 48 | } 49 | 50 | @GetMapping("/bus") 51 | public List getAllBusDetails() { 52 | 53 | return (List) busRepository.findAll(); 54 | } 55 | 56 | @GetMapping("/searchBus") 57 | public List findBySearchParameters() throws ParseException { 58 | 59 | String departureDate = "2020-07-02 10:00"; 60 | Date date1=new SimpleDateFormat("yyyy-MM-dd HH:mm").parse(departureDate); 61 | return (List) busRepository.findBySearchParameters(date1, 62 | "S1", "D1"); 63 | } 64 | 65 | @GetMapping("/user") 66 | public List getAllUserDetails() { 67 | return (List) userRepository.findAll(); 68 | } 69 | 70 | @GetMapping("/tickets") 71 | public List getAllTicketDetails() { 72 | return (List) ticketRepository.findAll(); 73 | } 74 | 75 | /* 76 | * http://localhost:8081/api/bus/Bus01 77 | */ 78 | @GetMapping("/bus/{busName}") 79 | public Bus findByBusName(@PathVariable String busName) { 80 | return busRepository.findByBusName(busName); 81 | } 82 | 83 | @PostMapping("/bookBus") 84 | public Invoice bookTicket(@RequestParam(required = true) String busName, 85 | @RequestParam(required = false) String seatNumber, 86 | @RequestParam(required = true) String userName) throws ParseException { 87 | 88 | Invoice invoice = new Invoice(); 89 | 90 | Date reservationDate = new Date(); 91 | DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm"); 92 | String strDate = dateFormat.format(reservationDate); 93 | Date reservationDateFormatted =new SimpleDateFormat("yyyy-MM-dd HH:mm").parse(strDate); 94 | 95 | String ticketNumber = "Ticket"+strDate+seatNumber; 96 | 97 | Bus bus = busRepository.findByBusName(busName); 98 | User user = userRepository.findByUserName(userName); 99 | 100 | String avaiableSeats = bus.getAvailableSeats().replace(","+seatNumber, ""); 101 | String bookedSeats = bus.getBookedSeats()+","+seatNumber; 102 | 103 | bus.setBookedSeats(bookedSeats); 104 | bus.setAvailableSeats(avaiableSeats); 105 | 106 | busRepository.save(bus); 107 | 108 | Ticket ticket = new Ticket(); 109 | 110 | ticket.setBus(bus); 111 | ticket.setUser(user); 112 | ticket.setReservationDate(reservationDateFormatted); 113 | ticket.setSeatNumber(seatNumber); 114 | ticket.setTicketNumber(ticketNumber); 115 | 116 | ticketRepository.save(ticket); 117 | 118 | invoice.setBusName(busName); 119 | invoice.setDepartureDate(bus.getDepartureDate()); 120 | invoice.setDestinationCity(bus.getDestinationCity()); 121 | invoice.setDuration(bus.getDuration()); 122 | invoice.setEmail(user.getEmail()); 123 | invoice.setOperator(bus.getOperator()); 124 | invoice.setPrice(bus.getPrice()); 125 | invoice.setSourceCity(bus.getSourceCity()); 126 | invoice.setUserName(userName); 127 | 128 | return invoice; 129 | } 130 | 131 | /* 132 | * [ 133 | { 134 | "busName": "Bus01", 135 | "duration": 5, 136 | "availableSeats": "d1,d2,d3,d4,d5", 137 | "bookedSeats": "d6", 138 | "sourceCity": "S1", 139 | "destinationCity": "D1", 140 | "departureDate": "2020-07-02 04:30", 141 | "arrivalDate": "2020-07-01 04:30" 142 | } 143 | ] 144 | */ 145 | 146 | @PostMapping("/api/employees") 147 | public Ticket saveTicket(@RequestBody Search search) { 148 | Ticket ticket = new Ticket(); 149 | return null; 150 | } 151 | 152 | 153 | @PostMapping("/search") 154 | public List saveEmployee(@RequestBody Search search) throws ParseException{ 155 | System.out.println(search.getBusName()+" "+search.getDestinationCity() 156 | +" "+search.getSourceCity() 157 | +" "+search.getDepartureDate() 158 | +" "+search.getReturnDate()); 159 | 160 | 161 | System.out.println(search.getDepartureDate().toString()); 162 | DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm"); 163 | String strDate = dateFormat.format(search.getDepartureDate()); 164 | Date date1=new SimpleDateFormat("yyyy-MM-dd HH:mm").parse(strDate); 165 | System.out.println(date1); 166 | 167 | //"departureDate": "2020-07-02T04:30:00.176+00:00", 168 | //--> Thu Jul 02 10:00:00 IST 2020 -- "2020-07-02 10:00" 169 | 170 | List searchResult = new LinkedList(); 171 | 172 | searchResult = (List) busRepository.findBySearchParameters(date1, 173 | search.getSourceCity(), search.getDestinationCity()); 174 | 175 | if(!(search.getReturnDate() == null || search.getReturnDate().toString().isEmpty())) { 176 | 177 | strDate = dateFormat.format(search.getReturnDate()); 178 | date1=new SimpleDateFormat("yyyy-MM-dd HH:mm").parse(strDate); 179 | 180 | searchResult.addAll((List) busRepository.findBySearchParameters(date1, 181 | search.getDestinationCity(),search.getSourceCity())); 182 | } 183 | 184 | return searchResult; 185 | } 186 | 187 | 188 | 189 | } 190 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/service/HelperBean.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.service; 2 | 3 | public class HelperBean { 4 | 5 | public HelperBean() { 6 | // TODO Auto-generated constructor stub 7 | } 8 | 9 | public static void main(String[] args) { 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /BusReservation/src/main/java/com/example/BusReservation/service/TicketGeneration.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation.service; 2 | 3 | import org.springframework.stereotype.Service; 4 | 5 | @Service 6 | public class TicketGeneration { 7 | 8 | public TicketGeneration() { 9 | // TODO Auto-generated constructor stub 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /BusReservation/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8081 2 | 3 | spring.datasource.url=jdbc:h2:mem:testdb 4 | spring.datasource.driverClassName=org.h2.Driver 5 | spring.datasource.username=sa 6 | spring.datasource.password=password 7 | spring.jpa.database-platform=org.hibernate.dialect.H2Dialect 8 | spring.h2.console.enabled=true 9 | 10 | logging.level.org.hibernate.sql=info -------------------------------------------------------------------------------- /BusReservation/src/main/resources/data.sql: -------------------------------------------------------------------------------- 1 | insert into BUS_DETAILS 2 | (BUS_ID,ARRIVAL_DATE,AVAILABLE_SEATS,BOOKED_SEATS,BUS_NAME,operator,duration,price,DEPARTURE_DATE,DESTINATION_CITY,SOURCE_CITY) 3 | values(101,'2020-07-01 10:00','d1,d2,d3,d4,d5','d6','Bus01','Bus01operator',5,100,'2020-07-02 10:00','D1','S1'); 4 | 5 | insert into BUS_DETAILS 6 | (BUS_ID,ARRIVAL_DATE,AVAILABLE_SEATS,BOOKED_SEATS,BUS_NAME,operator,duration,price,DEPARTURE_DATE,DESTINATION_CITY,SOURCE_CITY) 7 | values(102,'2020-07-01 10:00','d1,d2,d3,d4,d5','d6','Bus02','Bus02operator',5,100,'2020-07-02 10:00','D2','S2'); 8 | 9 | insert into BUS_DETAILS 10 | (BUS_ID,ARRIVAL_DATE,AVAILABLE_SEATS,BOOKED_SEATS,BUS_NAME,operator,duration,price,DEPARTURE_DATE,DESTINATION_CITY,SOURCE_CITY) 11 | values(103,'2020-07-04 10:00','d1,d2,d3,d4,d5','d6,d7','Bus03','Bus03operator',5,100,'2020-07-03 10:00','S1','D1'); 12 | 13 | insert into BUS_DETAILS 14 | (BUS_ID,ARRIVAL_DATE,AVAILABLE_SEATS,BOOKED_SEATS,BUS_NAME,operator,duration,price,DEPARTURE_DATE,DESTINATION_CITY,SOURCE_CITY) 15 | values(104,'2020-07-01 10:00','d1,d2,d3,d4,d5','d6','Bus04','Bus04operator',5,100,'2020-07-02 10:00','D1','S1'); 16 | 17 | insert into USER_DETAILS 18 | (USER_ID,EMAIL,PASSWORD,USER_NAME) 19 | values(101,'email1@sample','password','user1'); 20 | 21 | insert into USER_DETAILS 22 | (USER_ID,EMAIL,PASSWORD,USER_NAME) 23 | values(102,'email2@sample','password','user2'); 24 | 25 | insert into TICKET_DETAILS 26 | (ID,BUS_ID,seat_Number,ticket_Number,RESERVATION_DATE,USER_ID) 27 | values(103,101,'d1','Tckt01','2020-06-01 10:00',101); 28 | 29 | insert into TICKET_DETAILS 30 | (ID,BUS_ID,seat_Number,ticket_Number,RESERVATION_DATE,USER_ID) 31 | values(104,102,'d2','Tckt02','2020-06-01 10:00',102); 32 | 33 | -------------------------------------------------------------------------------- /BusReservation/src/main/resources/schema-h2.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE BUS_DETAILS ( 2 | busId INTEGER PRIMARY KEY, 3 | busName VARCHAR(64) NOT NULL, 4 | capacity INTEGER NOT NULL); -------------------------------------------------------------------------------- /BusReservation/src/test/java/com/example/BusReservation/BusReservationApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.example.BusReservation; 2 | 3 | import org.junit.jupiter.api.Test; 4 | import org.springframework.boot.test.context.SpringBootTest; 5 | 6 | @SpringBootTest 7 | class BusReservationApplicationTests { 8 | 9 | @Test 10 | void contextLoads() { 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /BusReservation/target/classes/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8081 2 | 3 | spring.datasource.url=jdbc:h2:mem:testdb 4 | spring.datasource.driverClassName=org.h2.Driver 5 | spring.datasource.username=sa 6 | spring.datasource.password=password 7 | spring.jpa.database-platform=org.hibernate.dialect.H2Dialect 8 | spring.h2.console.enabled=true 9 | 10 | logging.level.org.hibernate.sql=info -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/BusReservationApplication.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/BusReservationApplication.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/model/Bus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/model/Bus.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/model/Invoice.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/model/Invoice.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/model/Search.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/model/Search.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/model/Ticket.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/model/Ticket.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/model/User.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/model/User.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/repository/BusRepository.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/repository/BusRepository.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/repository/TicketRepository.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/repository/TicketRepository.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/repository/UserRepository.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/repository/UserRepository.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/rest/RestApi.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/rest/RestApi.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/service/HelperBean.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/service/HelperBean.class -------------------------------------------------------------------------------- /BusReservation/target/classes/com/example/BusReservation/service/TicketGeneration.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/classes/com/example/BusReservation/service/TicketGeneration.class -------------------------------------------------------------------------------- /BusReservation/target/classes/data.sql: -------------------------------------------------------------------------------- 1 | insert into BUS_DETAILS 2 | (BUS_ID,ARRIVAL_DATE,AVAILABLE_SEATS,BOOKED_SEATS,BUS_NAME,operator,duration,price,DEPARTURE_DATE,DESTINATION_CITY,SOURCE_CITY) 3 | values(101,'2020-07-01 10:00','d1,d2,d3,d4,d5','d6','Bus01','Bus01operator',5,100,'2020-07-02 10:00','D1','S1'); 4 | 5 | insert into BUS_DETAILS 6 | (BUS_ID,ARRIVAL_DATE,AVAILABLE_SEATS,BOOKED_SEATS,BUS_NAME,operator,duration,price,DEPARTURE_DATE,DESTINATION_CITY,SOURCE_CITY) 7 | values(102,'2020-07-01 10:00','d1,d2,d3,d4,d5','d6','Bus02','Bus02operator',5,100,'2020-07-02 10:00','D2','S2'); 8 | 9 | insert into BUS_DETAILS 10 | (BUS_ID,ARRIVAL_DATE,AVAILABLE_SEATS,BOOKED_SEATS,BUS_NAME,operator,duration,price,DEPARTURE_DATE,DESTINATION_CITY,SOURCE_CITY) 11 | values(103,'2020-07-04 10:00','d1,d2,d3,d4,d5','d6,d7','Bus03','Bus03operator',5,100,'2020-07-03 10:00','S1','D1'); 12 | 13 | insert into BUS_DETAILS 14 | (BUS_ID,ARRIVAL_DATE,AVAILABLE_SEATS,BOOKED_SEATS,BUS_NAME,operator,duration,price,DEPARTURE_DATE,DESTINATION_CITY,SOURCE_CITY) 15 | values(104,'2020-07-01 10:00','d1,d2,d3,d4,d5','d6','Bus04','Bus04operator',5,100,'2020-07-02 10:00','D1','S1'); 16 | 17 | insert into USER_DETAILS 18 | (USER_ID,EMAIL,PASSWORD,USER_NAME) 19 | values(101,'email1@sample','password','user1'); 20 | 21 | insert into USER_DETAILS 22 | (USER_ID,EMAIL,PASSWORD,USER_NAME) 23 | values(102,'email2@sample','password','user2'); 24 | 25 | insert into TICKET_DETAILS 26 | (ID,BUS_ID,seat_Number,ticket_Number,RESERVATION_DATE,USER_ID) 27 | values(103,101,'d1','Tckt01','2020-06-01 10:00',101); 28 | 29 | insert into TICKET_DETAILS 30 | (ID,BUS_ID,seat_Number,ticket_Number,RESERVATION_DATE,USER_ID) 31 | values(104,102,'d2','Tckt02','2020-06-01 10:00',102); 32 | 33 | -------------------------------------------------------------------------------- /BusReservation/target/classes/schema-h2.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE BUS_DETAILS ( 2 | busId INTEGER PRIMARY KEY, 3 | busName VARCHAR(64) NOT NULL, 4 | capacity INTEGER NOT NULL); -------------------------------------------------------------------------------- /BusReservation/target/test-classes/com/example/BusReservation/BusReservationApplicationTests.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/BusReservation/target/test-classes/com/example/BusReservation/BusReservationApplicationTests.class -------------------------------------------------------------------------------- /OnScreenTabletKeyboardInvocation.java: -------------------------------------------------------------------------------- 1 | import java.io.IOException; 2 | import java.util.HashMap; 3 | import java.util.Map; 4 | import java.util.logging.Logger; 5 | 6 | public class OnScreenTabletKeyboardInvocation { 7 | 8 | public static final int REG_SUCCESS = 0; 9 | public static final String SOFTWARE_MICROSOFT_TABLET_TIP_1_7 = "SOFTWARE\\Microsoft\\TabletTip\\1.7"; 10 | public static final String IMMERSIVE_SHELL = "HKCU\\Software\\Microsoft\\windows\\CurrentVersion\\ImmersiveShell"; 11 | public static final String ENABLE_DESKTOP_MODE_AUTO_INVOKE = "EnableDesktopModeAutoInvoke"; 12 | public static final String DISABLE_NEW_KEYBOARD_EXPERIENCE = "DisableNewKeyboardExperience"; 13 | public static final String TABLET_MODE = "TabletMode"; 14 | public static final String REG_VALUE = "1"; 15 | public static final String VALUE_CREATED = "value created"; 16 | public static final String ERROR_COULD_NOT_CREATE_THE_VALUE = "Error: could not create the value"; 17 | 18 | public static final Logger logger = Logger.getAnonymousLogger(); 19 | 20 | public static void main(String... args) { 21 | 22 | OnScreenTabletKeyboardInvocation reg = new OnScreenTabletKeyboardInvocation(); 23 | 24 | try { 25 | addRegistryValuesForTabTip(reg); 26 | invokeTabTip(); 27 | } catch (InterruptedException | IOException e) { 28 | logger.warning("An error occurred. " + e.getMessage()); 29 | } 30 | } 31 | 32 | private static void invokeTabTip() throws IOException { 33 | ProcessBuilder builder = new ProcessBuilder( 34 | "cmd.exe", "/c", "start \"\" \"C:\\Program Files\\Common Files\\microsoft shared\\ink\\TabTip.exe\""); 35 | builder.redirectErrorStream(true); 36 | Process p = builder.start(); 37 | logger.info(String.valueOf(p.pid())); 38 | } 39 | 40 | private static void addRegistryValuesForTabTip(OnScreenTabletKeyboardInvocation reg) throws IOException, InterruptedException { 41 | 42 | //Adding the required Registry entries for enabling Tablet keyboard invocation value TabTip 43 | Map dWordMap = new HashMap<>(); 44 | dWordMap.put(SOFTWARE_MICROSOFT_TABLET_TIP_1_7, ENABLE_DESKTOP_MODE_AUTO_INVOKE); 45 | dWordMap.put(SOFTWARE_MICROSOFT_TABLET_TIP_1_7, DISABLE_NEW_KEYBOARD_EXPERIENCE); 46 | dWordMap.put(IMMERSIVE_SHELL, TABLET_MODE); 47 | 48 | for (Map.Entry entry : dWordMap.entrySet()) { 49 | if (reg.addValue(WRKey.HKCU, entry.getKey(), entry.getValue(), REG_VALUE.getBytes(), WRType.REG_DWORD)) { 50 | logger.info(VALUE_CREATED); 51 | } else { 52 | logger.warning(ERROR_COULD_NOT_CREATE_THE_VALUE); 53 | } 54 | } 55 | } 56 | 57 | public String createRegString(WRKey hkey, String key, String valueName, byte[] data, WRType type, boolean force) { 58 | String keyString = " " + hkey + "\\" + key; 59 | String valueString = valueName != null ? " /v " + valueName : ""; 60 | String dataString = data != null ? (" " + (data.length > 0 ? " /d " + new String(data) : "")) : ""; 61 | String typeString = type != null ? " /t " + type : ""; 62 | return keyString + valueString + dataString + typeString + (force ? " /f" : ""); 63 | } 64 | 65 | public boolean addValue(WRKey hkey, String key, String valueName, byte[] data, WRType type) throws IOException, InterruptedException { 66 | String regString = createRegString(hkey, key, valueName, data, type, true); 67 | Process proc = Runtime.getRuntime().exec("REG ADD " + regString); 68 | proc.waitFor(); 69 | return proc.exitValue() == REG_SUCCESS; 70 | } 71 | 72 | private enum WRKey { 73 | HKLM, HKCU, HKCR, HKU, HKCC 74 | } 75 | 76 | private enum WRType { 77 | REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ, 78 | REG_DWORD, REG_QWORD, REG_BINARY, REG_NONE 79 | } 80 | 81 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This repo contains all the projects done by me durning my career for various training projects and interviews 2 | 3 | Projects: 4 | 1. [Bus Reservation](https://github.com/LEOKA037/Java-Projects/tree/main/BusReservation) 5 | 2. [Taxi System](https://github.com/LEOKA037/Java-Projects/tree/main/TaxiSystem) 6 | 3. [Fire Station System](https://github.com/LEOKA037/codingtask-bookiply-cm) 7 | 8 | ## :phone: Connect 9 | 10 | Website 11 | 12 | > [![portfolio](https://img.shields.io/badge/Portfolio-5340ff?style=for-the-badge&logo=Google-chrome&logoColor=white)](https://leoka1993.wixsite.com/leoka) 13 | [![gmail](https://img.shields.io/badge/Gmail-D14836?style=for-the-badge&logo=Gmail&logoColor=white)](mailto:leo.ka1993@gmail.com) 14 | [![linked-in](https://img.shields.io/badge/Linked_In-0077B5?style=for-the-badge&logo=LinkedIn&logoColor=white)](http://linkedin.com/in/leoka037) 15 | 16 | >[![github](https://img.shields.io/badge/GitHub-000000?style=for-the-badge&logo=GitHub&logoColor=white)](https://github.com/LEOKA037) 17 | [![hackerrank](https://img.shields.io/badge/hackerrank-006400?style=for-the-badge&logo=hackerrank&logoColor=white)](https://www.hackerrank.com/leo_ka1993) 18 | [![blogspot](https://img.shields.io/badge/blogger-FFA500?style=for-the-badge&logo=blogger&logoColor=white)](http://sharetechknowledgebyleo.blogspot.com/) 19 | 20 | >[![Facebook](https://img.shields.io/badge/Facebook-0077B5?style=for-the-badge&logo=Facebook&logoColor=white)](https://www.facebook.com/LEO.K.A.037) 21 | [![instagram](https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge&logo=instagram&logoColor=white)](https://instagram.com/leo____037) 22 | [![pinterest](https://img.shields.io/badge/Pinterest-E4405F?style=for-the-badge&logo=pinterest&logoColor=white)](https://in.pinterest.com/leoka1993/) 23 | 24 | ### © Leo K A All Rights Reserved 25 | -------------------------------------------------------------------------------- /TaxiSystem/Readme.md: -------------------------------------------------------------------------------- 1 | # Taxi Reservation Java 2 | 3 | 4 | This was done during 2017 as a part of my training program with Oracle India 5 | -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/data/Display.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/data/Display.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/data/JourneyData.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/data/JourneyData.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/data/Logger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/data/Logger.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/data/VehicleInfo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/data/VehicleInfo.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/main/Booking.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/main/Booking.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/main/Cancellation.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/main/Cancellation.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/main/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/main/Main.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/main/TaxiReservation.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/main/TaxiReservation.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/util/Bookcab.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/util/Bookcab.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/util/ReservationUtil.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/util/ReservationUtil.class -------------------------------------------------------------------------------- /TaxiSystem/bin/taxi/util/Reservationlist.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/bin/taxi/util/Reservationlist.class -------------------------------------------------------------------------------- /TaxiSystem/data/VehicleInfo.txt: -------------------------------------------------------------------------------- 1 | SEDAN:KL01AA1000:01012017:31122020:1000:1830 2 | Luxury:KL07ZD7258:01012017:31122020:1000:1830 3 | Hatchback:KL08ZD7258:01012017:31122020:1000:1830 4 | Innova:KL09ZL6448:01012017:31122020:1000:1830 5 | Tavera:KL10ZN7258:01012017:31122020:1000:1830 6 | SEDAN:KL01AA1234:01012017:31122020:1000:1830 7 | Luxury:KL07ZD5678:01012017:31122020:1000:1830 8 | Hatchback:KL08ZD9874:01012017:31122020:1000:1830 9 | Innova:KL09ZL9632:01012017:31122020:1000:1830 10 | Tavera:KL10ZN7452:01012017:31122020:1000:1830 -------------------------------------------------------------------------------- /TaxiSystem/data/config.txt: -------------------------------------------------------------------------------- 1 | VehicleInfo 2 | ApplicationLog -------------------------------------------------------------------------------- /TaxiSystem/hs_err_pid10792.log: -------------------------------------------------------------------------------- 1 | # 2 | # There is insufficient memory for the Java Runtime Environment to continue. 3 | # Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate 4 | # Possible reasons: 5 | # The system is out of physical RAM or swap space 6 | # In 32 bit mode, the process size limit was hit 7 | # Possible solutions: 8 | # Reduce memory load on the system 9 | # Increase physical memory or swap space 10 | # Check if swap backing store is full 11 | # Use 64 bit Java on a 64 bit OS 12 | # Decrease Java heap size (-Xmx/-Xms) 13 | # Decrease number of Java threads 14 | # Decrease Java thread stack sizes (-Xss) 15 | # Set larger code cache with -XX:ReservedCodeCacheSize= 16 | # This output file may be truncated or incomplete. 17 | # 18 | # Out of Memory Error (allocation.cpp:273), pid=10792, tid=0x0000000000000dd8 19 | # 20 | # JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) 21 | # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops) 22 | # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 23 | # 24 | 25 | --------------- T H R E A D --------------- 26 | 27 | Current thread (0x00000000153bc800): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=3544, stack(0x0000000016b00000,0x0000000016c00000)] 28 | 29 | Stack: [0x0000000016b00000,0x0000000016c00000] 30 | [error occurred during error reporting (printing stack bounds), id 0xc0000005] 31 | 32 | Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) 33 | 34 | 35 | Current CompileTask: 36 | C2:1144568 179 4 java.util.regex.Pattern::bitsOrSingle (104 bytes) 37 | 38 | 39 | --------------- P R O C E S S --------------- 40 | 41 | Java Threads: ( => current thread ) 42 | 0x0000000016d32800 JavaThread "Service Thread" daemon [_thread_blocked, id=7188, stack(0x0000000017100000,0x0000000017200000)] 43 | 0x00000000153cf800 JavaThread "C1 CompilerThread2" daemon [_thread_blocked, id=8364, stack(0x0000000016c00000,0x0000000016d00000)] 44 | =>0x00000000153bc800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=3544, stack(0x0000000016b00000,0x0000000016c00000)] 45 | 0x00000000153ba000 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=13296, stack(0x0000000016a00000,0x0000000016b00000)] 46 | 0x00000000153b8800 JavaThread "Attach Listener" daemon [_thread_blocked, id=13844, stack(0x0000000016900000,0x0000000016a00000)] 47 | 0x00000000153c4000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12224, stack(0x0000000016800000,0x0000000016900000)] 48 | 0x0000000002daa800 JavaThread "Finalizer" daemon [_thread_blocked, id=12724, stack(0x0000000016620000,0x0000000016720000)] 49 | 0x0000000015389000 JavaThread "Reference Handler" daemon [_thread_blocked, id=10112, stack(0x0000000016520000,0x0000000016620000)] 50 | 0x0000000002cb0800 JavaThread "main" [_thread_in_Java, id=13124, stack(0x0000000002bb0000,0x0000000002cb0000)] 51 | 52 | Other Threads: 53 | 0x0000000015387800 VMThread [stack: 0x0000000016420000,0x0000000016520000] [id=9272] 54 | 0x0000000016d38800 WatcherThread [stack: 0x0000000017200000,0x0000000017300000] [id=12184] 55 | 56 | VM state:not at safepoint (normal execution) 57 | 58 | VM Mutex/Monitor currently owned by a thread: None 59 | 60 | Heap: 61 | PSYoungGen total 18944K, used 6945K [0x00000000eb180000, 0x00000000ec680000, 0x0000000100000000) 62 | eden space 16384K, 52% used [0x00000000eb180000,0x00000000eb9e4e10,0x00000000ec180000) 63 | from space 2560K, 0% used [0x00000000ec400000,0x00000000ec400000,0x00000000ec680000) 64 | to space 2560K, 0% used [0x00000000ec180000,0x00000000ec180000,0x00000000ec400000) 65 | ParOldGen total 44032K, used 0K [0x00000000c1400000, 0x00000000c3f00000, 0x00000000eb180000) 66 | object space 44032K, 0% used [0x00000000c1400000,0x00000000c1400000,0x00000000c3f00000) 67 | Metaspace used 3766K, capacity 4606K, committed 4864K, reserved 1056768K 68 | class space used 428K, capacity 430K, committed 512K, reserved 1048576K 69 | 70 | Card table byte_map: [0x0000000012170000,0x0000000012370000] byte_map_base: 0x0000000011b66000 71 | 72 | Marking Bits: (ParMarkBitMap*) 0x000000005196b6d0 73 | Begin Bits: [0x00000000128c0000, 0x0000000013870000) 74 | End Bits: [0x0000000013870000, 0x0000000014820000) 75 | 76 | Polling page: 0x0000000001260000 77 | 78 | CodeCache: size=245760Kb used=1567Kb max_used=1567Kb free=244192Kb 79 | bounds [0x0000000002db0000, 0x0000000003020000, 0x0000000011db0000] 80 | total_blobs=459 nmethods=199 adapters=173 81 | compilation: enabled 82 | 83 | Compilation events (10 events): 84 | Event: 1139.551 Thread 0x00000000153cf800 nmethod 175 0x0000000002f2d150 code [0x0000000002f2d2a0, 0x0000000002f2d430] 85 | Event: 1139.552 Thread 0x00000000153cf800 176 3 java.nio.CharBuffer:: (22 bytes) 86 | Event: 1139.552 Thread 0x00000000153cf800 nmethod 176 0x0000000002f2cd50 code [0x0000000002f2cec0, 0x0000000002f2d088] 87 | Event: 1139.553 Thread 0x00000000153ba000 177 4 java.util.regex.Pattern::range (279 bytes) 88 | Event: 1139.554 Thread 0x00000000153cf800 178 3 java.lang.AbstractStringBuilder::setLength (45 bytes) 89 | Event: 1139.555 Thread 0x00000000153cf800 nmethod 178 0x0000000002f29a50 code [0x0000000002f29c20, 0x0000000002f2a3b8] 90 | Event: 1139.555 Thread 0x00000000153bc800 179 4 java.util.regex.Pattern::bitsOrSingle (104 bytes) 91 | Event: 1139.556 Thread 0x00000000153cf800 180 1 java.nio.charset.CharsetDecoder::charset (5 bytes) 92 | Event: 1139.556 Thread 0x00000000153cf800 nmethod 180 0x0000000002f2ca90 code [0x0000000002f2cbe0, 0x0000000002f2ccf0] 93 | Event: 1139.557 Thread 0x00000000153cf800 181 3 sun.nio.cs.SingleByte$Encoder::encodeArrayLoop (236 bytes) 94 | 95 | GC Heap History (0 events): 96 | No events 97 | 98 | Deoptimization events (0 events): 99 | No events 100 | 101 | Internal exceptions (10 events): 102 | Event: 1139.555 Thread 0x0000000002cb0800 Exception (0x00000000eb571ae8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 103 | Event: 1139.555 Thread 0x0000000002cb0800 Exception (0x00000000eb571f30) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 104 | Event: 1139.556 Thread 0x0000000002cb0800 Exception (0x00000000eb575608) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 105 | Event: 1139.556 Thread 0x0000000002cb0800 Exception (0x00000000eb575a50) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 106 | Event: 1139.556 Thread 0x0000000002cb0800 Exception (0x00000000eb5831e0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 107 | Event: 1139.557 Thread 0x0000000002cb0800 Exception (0x00000000eb583628) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 108 | Event: 1139.557 Thread 0x0000000002cb0800 Exception (0x00000000eb586d00) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 109 | Event: 1139.557 Thread 0x0000000002cb0800 Exception (0x00000000eb587148) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 110 | Event: 1139.557 Thread 0x0000000002cb0800 Exception (0x00000000eb58a820) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 111 | Event: 1139.557 Thread 0x0000000002cb0800 Exception (0x00000000eb58ac68) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 112 | 113 | Events (10 events): 114 | Event: 8.068 loading class java/util/Date 115 | Event: 8.068 loading class java/util/Date done 116 | Event: 8.069 loading class java/text/DontCareFieldPosition 117 | Event: 8.069 loading class java/text/DontCareFieldPosition done 118 | Event: 8.069 loading class java/text/DontCareFieldPosition$1 119 | Event: 8.069 loading class java/text/Format$FieldDelegate 120 | Event: 8.069 loading class java/text/Format$FieldDelegate done 121 | Event: 8.069 loading class java/text/DontCareFieldPosition$1 done 122 | Event: 1138.695 loading class java/io/InterruptedIOException 123 | Event: 1139.279 loading class java/io/InterruptedIOException done 124 | 125 | 126 | Dynamic libraries: 127 | 0x00007ff749d70000 - 0x00007ff749da7000 C:\Program Files\Java\jre1.8.0_121\bin\javaw.exe 128 | 0x00007ff9dcff0000 - 0x00007ff9dd1b1000 C:\windows\SYSTEM32\ntdll.dll 129 | 0x00007ff9da910000 - 0x00007ff9da9bd000 C:\windows\system32\KERNEL32.DLL 130 | 0x00007ff9da030000 - 0x00007ff9da218000 C:\windows\system32\KERNELBASE.dll 131 | 0x00007ff9dc980000 - 0x00007ff9dca27000 C:\windows\system32\ADVAPI32.dll 132 | 0x00007ff9dc550000 - 0x00007ff9dc5ed000 C:\windows\system32\msvcrt.dll 133 | 0x00007ff9dc5f0000 - 0x00007ff9dc64b000 C:\windows\system32\sechost.dll 134 | 0x00007ff9da3f0000 - 0x00007ff9da50c000 C:\windows\system32\RPCRT4.dll 135 | 0x00007ff9da7b0000 - 0x00007ff9da906000 C:\windows\system32\USER32.dll 136 | 0x00007ff9da9c0000 - 0x00007ff9dab46000 C:\windows\system32\GDI32.dll 137 | 0x00007ff9d4530000 - 0x00007ff9d47a4000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.839_none_a2ddba30a539a2ae\COMCTL32.dll 138 | 0x00007ff9dc650000 - 0x00007ff9dc8cd000 C:\windows\system32\combase.dll 139 | 0x00007ff9d9730000 - 0x00007ff9d979a000 C:\windows\system32\bcryptPrimitives.dll 140 | 0x00007ff9dca30000 - 0x00007ff9dca6b000 C:\windows\system32\IMM32.DLL 141 | 0x0000000051ad0000 - 0x0000000051ba2000 C:\Program Files\Java\jre1.8.0_121\bin\msvcr100.dll 142 | 0x0000000051150000 - 0x00000000519eb000 C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll 143 | 0x00007ff9dcfe0000 - 0x00007ff9dcfe8000 C:\windows\system32\PSAPI.DLL 144 | 0x00007ff9d42e0000 - 0x00007ff9d42e9000 C:\windows\SYSTEM32\WSOCK32.dll 145 | 0x00007ff9d4a20000 - 0x00007ff9d4a2a000 C:\windows\SYSTEM32\VERSION.dll 146 | 0x00007ff9d7910000 - 0x00007ff9d7933000 C:\windows\SYSTEM32\WINMM.dll 147 | 0x00007ff9dc4e0000 - 0x00007ff9dc54b000 C:\windows\system32\WS2_32.dll 148 | 0x00007ff9d6e00000 - 0x00007ff9d6e2c000 C:\windows\SYSTEM32\WINMMBASE.dll 149 | 0x00007ff9d97a0000 - 0x00007ff9d97e3000 C:\windows\system32\cfgmgr32.dll 150 | 0x0000000051060000 - 0x000000005106f000 C:\Program Files\Java\jre1.8.0_121\bin\verify.dll 151 | 0x0000000051030000 - 0x0000000051059000 C:\Program Files\Java\jre1.8.0_121\bin\java.dll 152 | 0x0000000051010000 - 0x0000000051026000 C:\Program Files\Java\jre1.8.0_121\bin\zip.dll 153 | 0x00007ff9dab50000 - 0x00007ff9dc0ac000 C:\windows\system32\SHELL32.dll 154 | 0x00007ff9d99c0000 - 0x00007ff9da005000 C:\windows\system32\windows.storage.dll 155 | 0x00007ff9da750000 - 0x00007ff9da7a2000 C:\windows\system32\shlwapi.dll 156 | 0x00007ff9d9660000 - 0x00007ff9d966f000 C:\windows\system32\kernel.appcore.dll 157 | 0x00007ff9d98a0000 - 0x00007ff9d9955000 C:\windows\system32\shcore.dll 158 | 0x00007ff9d9610000 - 0x00007ff9d965b000 C:\windows\system32\powrprof.dll 159 | 0x00007ff9d9670000 - 0x00007ff9d9684000 C:\windows\system32\profapi.dll 160 | 161 | VM Arguments: 162 | jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Program Files\Java\jre1.8.0_121\lib\resources.jar;C:\Program Files\Java\jre1.8.0_121\lib\rt.jar;C:\Program Files\Java\jre1.8.0_121\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_121\lib\jce.jar;C:\Program Files\Java\jre1.8.0_121\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_121\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_121\lib\extensionIO_v1.07.jar;C:\Program Files\Java\jre1.8.0_121\lib\cldc-1.1.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl-2.6.jar 163 | java_command: main 164 | java_class_path (initial): C:\Users\hp\workspace\TaxiReservationSystem\bin 165 | Launcher Type: SUN_STANDARD 166 | 167 | Environment Variables: 168 | PATH=C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Users\hp\Downloads\eclipse-jee-neon-2-win32-x86_64\eclipse; 169 | USERNAME=Anu 170 | OS=Windows_NT 171 | PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel 172 | 173 | 174 | 175 | --------------- S Y S T E M --------------- 176 | 177 | OS: Windows 10.0 , 64 bit Build 10586 (10.0.10586.589) 178 | 179 | CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx 180 | 181 | Memory: 4k page, physical 4107660k(1146864k free), swap 16690572k(3514896k free) 182 | 183 | vm_info: Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for windows-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 18:21:36 by "java_re" with MS VC++ 10.0 (VS2010) 184 | 185 | time: Tue Apr 11 15:54:44 2017 186 | elapsed time: 1149 seconds (0d 0h 19m 9s) 187 | 188 | -------------------------------------------------------------------------------- /TaxiSystem/hs_err_pid12516.log: -------------------------------------------------------------------------------- 1 | # 2 | # There is insufficient memory for the Java Runtime Environment to continue. 3 | # Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate 4 | # Possible reasons: 5 | # The system is out of physical RAM or swap space 6 | # In 32 bit mode, the process size limit was hit 7 | # Possible solutions: 8 | # Reduce memory load on the system 9 | # Increase physical memory or swap space 10 | # Check if swap backing store is full 11 | # Use 64 bit Java on a 64 bit OS 12 | # Decrease Java heap size (-Xmx/-Xms) 13 | # Decrease number of Java threads 14 | # Decrease Java thread stack sizes (-Xss) 15 | # Set larger code cache with -XX:ReservedCodeCacheSize= 16 | # This output file may be truncated or incomplete. 17 | # 18 | # Out of Memory Error (allocation.cpp:273), pid=12516, tid=0x0000000000003754 19 | # 20 | # JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) 21 | # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops) 22 | # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 23 | # 24 | 25 | --------------- T H R E A D --------------- 26 | 27 | Current thread (0x0000000015699000): JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=14164, stack(0x0000000016ed0000,0x0000000016fd0000)] 28 | 29 | Stack: [0x0000000016ed0000,0x0000000016fd0000] 30 | [error occurred during error reporting (printing stack bounds), id 0xc0000005] 31 | 32 | Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) 33 | 34 | 35 | Current CompileTask: 36 | C1:7085958 90 3 java.util.regex.Pattern::range (279 bytes) 37 | 38 | 39 | --------------- P R O C E S S --------------- 40 | 41 | Java Threads: ( => current thread ) 42 | 0x0000000002f80800 JavaThread "DestroyJavaVM" [_thread_blocked, id=13600, stack(0x0000000002e80000,0x0000000002f80000)] 43 | 0x0000000017000800 JavaThread "Service Thread" daemon [_thread_blocked, id=6040, stack(0x00000000173d0000,0x00000000174d0000)] 44 | =>0x0000000015699000 JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=14164, stack(0x0000000016ed0000,0x0000000016fd0000)] 45 | 0x000000001568d000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=13840, stack(0x0000000016dd0000,0x0000000016ed0000)] 46 | 0x000000001568a000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=4852, stack(0x0000000016cd0000,0x0000000016dd0000)] 47 | 0x0000000015688800 JavaThread "Attach Listener" daemon [_thread_blocked, id=11460, stack(0x0000000016bd0000,0x0000000016cd0000)] 48 | 0x0000000015694000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7888, stack(0x0000000016ad0000,0x0000000016bd0000)] 49 | 0x000000000307a800 JavaThread "Finalizer" daemon [_thread_blocked, id=13828, stack(0x00000000168e0000,0x00000000169e0000)] 50 | 0x0000000015659000 JavaThread "Reference Handler" daemon [_thread_blocked, id=13988, stack(0x00000000167e0000,0x00000000168e0000)] 51 | 52 | Other Threads: 53 | 0x0000000015657800 VMThread [stack: 0x00000000166e0000,0x00000000167e0000] [id=14056] 54 | 0x000000001701b800 WatcherThread [stack: 0x00000000174d0000,0x00000000175d0000] [id=12720] 55 | 56 | VM state:not at safepoint (normal execution) 57 | 58 | VM Mutex/Monitor currently owned by a thread: None 59 | 60 | Heap: 61 | PSYoungGen total 18944K, used 1966K [0x00000000eb180000, 0x00000000ec680000, 0x0000000100000000) 62 | eden space 16384K, 12% used [0x00000000eb180000,0x00000000eb36ba98,0x00000000ec180000) 63 | from space 2560K, 0% used [0x00000000ec400000,0x00000000ec400000,0x00000000ec680000) 64 | to space 2560K, 0% used [0x00000000ec180000,0x00000000ec180000,0x00000000ec400000) 65 | ParOldGen total 44032K, used 0K [0x00000000c1400000, 0x00000000c3f00000, 0x00000000eb180000) 66 | object space 44032K, 0% used [0x00000000c1400000,0x00000000c1400000,0x00000000c3f00000) 67 | Metaspace used 3474K, capacity 4608K, committed 4864K, reserved 1056768K 68 | class space used 411K, capacity 432K, committed 512K, reserved 1048576K 69 | 70 | Card table byte_map: [0x0000000012440000,0x0000000012640000] byte_map_base: 0x0000000011e36000 71 | 72 | Marking Bits: (ParMarkBitMap*) 0x000000005196b6d0 73 | Begin Bits: [0x0000000012b90000, 0x0000000013b40000) 74 | End Bits: [0x0000000013b40000, 0x0000000014af0000) 75 | 76 | Polling page: 0x00000000016c0000 77 | 78 | CodeCache: size=245760Kb used=1213Kb max_used=1213Kb free=244546Kb 79 | bounds [0x0000000003080000, 0x00000000032f0000, 0x0000000012080000] 80 | total_blobs=333 nmethods=89 adapters=157 81 | compilation: enabled 82 | 83 | Compilation events (10 events): 84 | Event: 3.653 Thread 0x0000000015699000 nmethod 85 0x00000000031ad950 code [0x00000000031adaa0, 0x00000000031adbb0] 85 | Event: 3.656 Thread 0x0000000015699000 86 1 java.net.URL::getFile (5 bytes) 86 | Event: 3.656 Thread 0x0000000015699000 nmethod 86 0x00000000031adc10 code [0x00000000031add60, 0x00000000031ade70] 87 | Event: 3.656 Thread 0x0000000015699000 87 1 java.lang.ref.Reference::get (5 bytes) 88 | Event: 3.656 Thread 0x0000000015699000 nmethod 87 0x00000000031aded0 code [0x00000000031ae020, 0x00000000031ae130] 89 | Event: 3.657 Thread 0x0000000015699000 88 3 java.lang.Math::max (11 bytes) 90 | Event: 3.657 Thread 0x0000000015699000 nmethod 88 0x00000000031ae190 code [0x00000000031ae2e0, 0x00000000031ae470] 91 | Event: 7079.284 Thread 0x0000000015699000 89 3 java.util.concurrent.ConcurrentHashMap::get (162 bytes) 92 | Event: 7079.290 Thread 0x0000000015699000 nmethod 89 0x00000000031ae4d0 code [0x00000000031ae6e0, 0x00000000031af258] 93 | Event: 7079.863 Thread 0x0000000015699000 90 3 java.util.regex.Pattern::range (279 bytes) 94 | 95 | GC Heap History (0 events): 96 | No events 97 | 98 | Deoptimization events (0 events): 99 | No events 100 | 101 | Internal exceptions (7 events): 102 | Event: 0.059 Thread 0x0000000002f80800 Exception (0x00000000eb187ca8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\ 103 | Event: 0.059 Thread 0x0000000002f80800 Exception (0x00000000eb187f90) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims 104 | Event: 7079.858 Thread 0x0000000002f80800 Exception (0x00000000eb2d7700) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 105 | Event: 7079.860 Thread 0x0000000002f80800 Exception (0x00000000eb2d79e0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 106 | Event: 7079.861 Thread 0x0000000002f80800 Exception (0x00000000eb2daf50) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 107 | Event: 7079.861 Thread 0x0000000002f80800 Exception (0x00000000eb2db1b0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 108 | Event: 7079.867 Thread 0x0000000002f80800 Exception (0x00000000eb2e5518) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 109 | 110 | Events (10 events): 111 | Event: 7079.270 loading class java/util/NoSuchElementException done 112 | Event: 7079.859 loading class java/io/InterruptedIOException 113 | Event: 7079.860 loading class java/io/InterruptedIOException done 114 | Event: 7079.864 loading class java/lang/NumberFormatException 115 | Event: 7079.865 loading class java/lang/NumberFormatException done 116 | Event: 7079.867 loading class java/lang/Throwable$WrappedPrintStream 117 | Event: 7079.868 loading class java/lang/Throwable$PrintStreamOrWriter 118 | Event: 7079.868 loading class java/lang/Throwable$PrintStreamOrWriter done 119 | Event: 7079.868 loading class java/lang/Throwable$WrappedPrintStream done 120 | Event: 7079.868 loading class java/util/IdentityHashMap 121 | 122 | 123 | Dynamic libraries: 124 | 0x00007ff749d70000 - 0x00007ff749da7000 C:\Program Files\Java\jre1.8.0_121\bin\javaw.exe 125 | 0x00007ff9dcff0000 - 0x00007ff9dd1b1000 C:\windows\SYSTEM32\ntdll.dll 126 | 0x00007ff9da910000 - 0x00007ff9da9bd000 C:\windows\system32\KERNEL32.DLL 127 | 0x00007ff9da030000 - 0x00007ff9da218000 C:\windows\system32\KERNELBASE.dll 128 | 0x00007ff9dc980000 - 0x00007ff9dca27000 C:\windows\system32\ADVAPI32.dll 129 | 0x00007ff9dc550000 - 0x00007ff9dc5ed000 C:\windows\system32\msvcrt.dll 130 | 0x00007ff9dc5f0000 - 0x00007ff9dc64b000 C:\windows\system32\sechost.dll 131 | 0x00007ff9da3f0000 - 0x00007ff9da50c000 C:\windows\system32\RPCRT4.dll 132 | 0x00007ff9da7b0000 - 0x00007ff9da906000 C:\windows\system32\USER32.dll 133 | 0x00007ff9da9c0000 - 0x00007ff9dab46000 C:\windows\system32\GDI32.dll 134 | 0x00007ff9d4530000 - 0x00007ff9d47a4000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.839_none_a2ddba30a539a2ae\COMCTL32.dll 135 | 0x00007ff9dc650000 - 0x00007ff9dc8cd000 C:\windows\system32\combase.dll 136 | 0x00007ff9d9730000 - 0x00007ff9d979a000 C:\windows\system32\bcryptPrimitives.dll 137 | 0x00007ff9dca30000 - 0x00007ff9dca6b000 C:\windows\system32\IMM32.DLL 138 | 0x0000000051ad0000 - 0x0000000051ba2000 C:\Program Files\Java\jre1.8.0_121\bin\msvcr100.dll 139 | 0x0000000051150000 - 0x00000000519eb000 C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll 140 | 0x00007ff9dcfe0000 - 0x00007ff9dcfe8000 C:\windows\system32\PSAPI.DLL 141 | 0x00007ff9d42e0000 - 0x00007ff9d42e9000 C:\windows\SYSTEM32\WSOCK32.dll 142 | 0x00007ff9dc4e0000 - 0x00007ff9dc54b000 C:\windows\system32\WS2_32.dll 143 | 0x00007ff9d7910000 - 0x00007ff9d7933000 C:\windows\SYSTEM32\WINMM.dll 144 | 0x00007ff9d4a20000 - 0x00007ff9d4a2a000 C:\windows\SYSTEM32\VERSION.dll 145 | 0x00007ff9d6e00000 - 0x00007ff9d6e2c000 C:\windows\SYSTEM32\WINMMBASE.dll 146 | 0x00007ff9d97a0000 - 0x00007ff9d97e3000 C:\windows\system32\cfgmgr32.dll 147 | 0x0000000051060000 - 0x000000005106f000 C:\Program Files\Java\jre1.8.0_121\bin\verify.dll 148 | 0x0000000051030000 - 0x0000000051059000 C:\Program Files\Java\jre1.8.0_121\bin\java.dll 149 | 0x0000000051010000 - 0x0000000051026000 C:\Program Files\Java\jre1.8.0_121\bin\zip.dll 150 | 0x00007ff9dab50000 - 0x00007ff9dc0ac000 C:\windows\system32\SHELL32.dll 151 | 0x00007ff9d99c0000 - 0x00007ff9da005000 C:\windows\system32\windows.storage.dll 152 | 0x00007ff9da750000 - 0x00007ff9da7a2000 C:\windows\system32\shlwapi.dll 153 | 0x00007ff9d9660000 - 0x00007ff9d966f000 C:\windows\system32\kernel.appcore.dll 154 | 0x00007ff9d98a0000 - 0x00007ff9d9955000 C:\windows\system32\shcore.dll 155 | 0x00007ff9d9610000 - 0x00007ff9d965b000 C:\windows\system32\powrprof.dll 156 | 0x00007ff9d9670000 - 0x00007ff9d9684000 C:\windows\system32\profapi.dll 157 | 158 | VM Arguments: 159 | jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Program Files\Java\jre1.8.0_121\lib\resources.jar;C:\Program Files\Java\jre1.8.0_121\lib\rt.jar;C:\Program Files\Java\jre1.8.0_121\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_121\lib\jce.jar;C:\Program Files\Java\jre1.8.0_121\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_121\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_121\lib\extensionIO_v1.07.jar;C:\Program Files\Java\jre1.8.0_121\lib\cldc-1.1.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl-2.6.jar 160 | java_command: main 161 | java_class_path (initial): C:\Users\hp\workspace\TaxiReservationSystem\bin 162 | Launcher Type: SUN_STANDARD 163 | 164 | Environment Variables: 165 | PATH=C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Users\hp\Downloads\eclipse-jee-neon-2-win32-x86_64\eclipse; 166 | USERNAME=Anu 167 | OS=Windows_NT 168 | PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel 169 | 170 | 171 | 172 | --------------- S Y S T E M --------------- 173 | 174 | OS: Windows 10.0 , 64 bit Build 10586 (10.0.10586.589) 175 | 176 | CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx 177 | 178 | Memory: 4k page, physical 4107660k(838376k free), swap 16690572k(1814424k free) 179 | 180 | vm_info: Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for windows-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 18:21:36 by "java_re" with MS VC++ 10.0 (VS2010) 181 | 182 | time: Tue Apr 11 15:54:39 2017 183 | elapsed time: 7083 seconds (0d 1h 58m 3s) 184 | 185 | -------------------------------------------------------------------------------- /TaxiSystem/hs_err_pid13516.log: -------------------------------------------------------------------------------- 1 | # 2 | # There is insufficient memory for the Java Runtime Environment to continue. 3 | # Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate 4 | # Possible reasons: 5 | # The system is out of physical RAM or swap space 6 | # In 32 bit mode, the process size limit was hit 7 | # Possible solutions: 8 | # Reduce memory load on the system 9 | # Increase physical memory or swap space 10 | # Check if swap backing store is full 11 | # Use 64 bit Java on a 64 bit OS 12 | # Decrease Java heap size (-Xmx/-Xms) 13 | # Decrease number of Java threads 14 | # Decrease Java thread stack sizes (-Xss) 15 | # Set larger code cache with -XX:ReservedCodeCacheSize= 16 | # This output file may be truncated or incomplete. 17 | # 18 | # Out of Memory Error (allocation.cpp:273), pid=13516, tid=0x00000000000029b8 19 | # 20 | # JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) 21 | # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops) 22 | # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 23 | # 24 | 25 | --------------- T H R E A D --------------- 26 | 27 | Current thread (0x000000001539a000): JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=10680, stack(0x0000000016bc0000,0x0000000016cc0000)] 28 | 29 | Stack: [0x0000000016bc0000,0x0000000016cc0000] 30 | [error occurred during error reporting (printing stack bounds), id 0xc0000005] 31 | 32 | Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) 33 | 34 | 35 | Current CompileTask: 36 | C1:7673953 89 3 java.util.regex.Pattern::range (279 bytes) 37 | 38 | 39 | --------------- P R O C E S S --------------- 40 | 41 | Java Threads: ( => current thread ) 42 | 0x0000000002c20800 JavaThread "DestroyJavaVM" [_thread_blocked, id=11972, stack(0x0000000002ad0000,0x0000000002bd0000)] 43 | 0x0000000016ce8800 JavaThread "Service Thread" daemon [_thread_blocked, id=11736, stack(0x00000000170c0000,0x00000000171c0000)] 44 | =>0x000000001539a000 JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=10680, stack(0x0000000016bc0000,0x0000000016cc0000)] 45 | 0x000000001538e000 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=9236, stack(0x0000000016ac0000,0x0000000016bc0000)] 46 | 0x000000001538a000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=11248, stack(0x00000000169c0000,0x0000000016ac0000)] 47 | 0x0000000015395800 JavaThread "Attach Listener" daemon [_thread_blocked, id=11204, stack(0x00000000168c0000,0x00000000169c0000)] 48 | 0x0000000015394000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12460, stack(0x00000000167c0000,0x00000000168c0000)] 49 | 0x0000000002d1a800 JavaThread "Finalizer" daemon [_thread_blocked, id=13064, stack(0x00000000165e0000,0x00000000166e0000)] 50 | 0x0000000015359000 JavaThread "Reference Handler" daemon [_thread_blocked, id=12208, stack(0x00000000164e0000,0x00000000165e0000)] 51 | 52 | Other Threads: 53 | 0x0000000015357800 VMThread [stack: 0x00000000163e0000,0x00000000164e0000] [id=12420] 54 | 0x0000000016cea800 WatcherThread [stack: 0x00000000171c0000,0x00000000172c0000] [id=13568] 55 | 56 | VM state:not at safepoint (normal execution) 57 | 58 | VM Mutex/Monitor currently owned by a thread: None 59 | 60 | Heap: 61 | PSYoungGen total 18944K, used 1966K [0x00000000eb180000, 0x00000000ec680000, 0x0000000100000000) 62 | eden space 16384K, 12% used [0x00000000eb180000,0x00000000eb36ba80,0x00000000ec180000) 63 | from space 2560K, 0% used [0x00000000ec400000,0x00000000ec400000,0x00000000ec680000) 64 | to space 2560K, 0% used [0x00000000ec180000,0x00000000ec180000,0x00000000ec400000) 65 | ParOldGen total 44032K, used 0K [0x00000000c1400000, 0x00000000c3f00000, 0x00000000eb180000) 66 | object space 44032K, 0% used [0x00000000c1400000,0x00000000c1400000,0x00000000c3f00000) 67 | Metaspace used 3473K, capacity 4608K, committed 4864K, reserved 1056768K 68 | class space used 411K, capacity 432K, committed 512K, reserved 1048576K 69 | 70 | Card table byte_map: [0x0000000012140000,0x0000000012340000] byte_map_base: 0x0000000011b36000 71 | 72 | Marking Bits: (ParMarkBitMap*) 0x000000005196b6d0 73 | Begin Bits: [0x0000000012890000, 0x0000000013840000) 74 | End Bits: [0x0000000013840000, 0x00000000147f0000) 75 | 76 | Polling page: 0x0000000001520000 77 | 78 | CodeCache: size=245760Kb used=1212Kb max_used=1212Kb free=244547Kb 79 | bounds [0x0000000002d80000, 0x0000000002ff0000, 0x0000000011d80000] 80 | total_blobs=332 nmethods=88 adapters=157 81 | compilation: enabled 82 | 83 | Compilation events (10 events): 84 | Event: 8.207 Thread 0x000000001539a000 nmethod 84 0x0000000002ead410 code [0x0000000002ead560, 0x0000000002ead670] 85 | Event: 8.209 Thread 0x000000001539a000 85 1 java.net.URL::getFile (5 bytes) 86 | Event: 8.209 Thread 0x000000001539a000 nmethod 85 0x0000000002ead6d0 code [0x0000000002ead820, 0x0000000002ead930] 87 | Event: 8.209 Thread 0x000000001539a000 86 1 java.lang.ref.Reference::get (5 bytes) 88 | Event: 8.209 Thread 0x000000001539a000 nmethod 86 0x0000000002ead990 code [0x0000000002eadae0, 0x0000000002eadbf0] 89 | Event: 8.209 Thread 0x000000001539a000 87 3 java.lang.Math::max (11 bytes) 90 | Event: 8.209 Thread 0x000000001539a000 nmethod 87 0x0000000002eadc50 code [0x0000000002eadda0, 0x0000000002eadf30] 91 | Event: 7667.921 Thread 0x000000001539a000 88 3 java.util.concurrent.ConcurrentHashMap::get (162 bytes) 92 | Event: 7667.925 Thread 0x000000001539a000 nmethod 88 0x0000000002eadf90 code [0x0000000002eae1a0, 0x0000000002eaed18] 93 | Event: 7668.646 Thread 0x000000001539a000 89 3 java.util.regex.Pattern::range (279 bytes) 94 | 95 | GC Heap History (0 events): 96 | No events 97 | 98 | Deoptimization events (0 events): 99 | No events 100 | 101 | Internal exceptions (7 events): 102 | Event: 0.041 Thread 0x0000000002c20800 Exception (0x00000000eb187ca8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\ 103 | Event: 0.041 Thread 0x0000000002c20800 Exception (0x00000000eb187f90) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims 104 | Event: 7668.642 Thread 0x0000000002c20800 Exception (0x00000000eb2d7568) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 105 | Event: 7668.644 Thread 0x0000000002c20800 Exception (0x00000000eb2d7848) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 106 | Event: 7668.644 Thread 0x0000000002c20800 Exception (0x00000000eb2dadb8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 107 | Event: 7668.644 Thread 0x0000000002c20800 Exception (0x00000000eb2db018) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 108 | Event: 7668.652 Thread 0x0000000002c20800 Exception (0x00000000eb2e5380) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 109 | 110 | Events (10 events): 111 | Event: 7667.913 loading class java/util/NoSuchElementException done 112 | Event: 7668.643 loading class java/io/InterruptedIOException 113 | Event: 7668.643 loading class java/io/InterruptedIOException done 114 | Event: 7668.649 loading class java/lang/NumberFormatException 115 | Event: 7668.650 loading class java/lang/NumberFormatException done 116 | Event: 7668.652 loading class java/lang/Throwable$WrappedPrintStream 117 | Event: 7668.653 loading class java/lang/Throwable$PrintStreamOrWriter 118 | Event: 7668.653 loading class java/lang/Throwable$PrintStreamOrWriter done 119 | Event: 7668.653 loading class java/lang/Throwable$WrappedPrintStream done 120 | Event: 7668.653 loading class java/util/IdentityHashMap 121 | 122 | 123 | Dynamic libraries: 124 | 0x00007ff749d70000 - 0x00007ff749da7000 C:\Program Files\Java\jre1.8.0_121\bin\javaw.exe 125 | 0x00007ff9dcff0000 - 0x00007ff9dd1b1000 C:\windows\SYSTEM32\ntdll.dll 126 | 0x00007ff9da910000 - 0x00007ff9da9bd000 C:\windows\system32\KERNEL32.DLL 127 | 0x00007ff9da030000 - 0x00007ff9da218000 C:\windows\system32\KERNELBASE.dll 128 | 0x00007ff9dc980000 - 0x00007ff9dca27000 C:\windows\system32\ADVAPI32.dll 129 | 0x00007ff9dc550000 - 0x00007ff9dc5ed000 C:\windows\system32\msvcrt.dll 130 | 0x00007ff9dc5f0000 - 0x00007ff9dc64b000 C:\windows\system32\sechost.dll 131 | 0x00007ff9da3f0000 - 0x00007ff9da50c000 C:\windows\system32\RPCRT4.dll 132 | 0x00007ff9da7b0000 - 0x00007ff9da906000 C:\windows\system32\USER32.dll 133 | 0x00007ff9da9c0000 - 0x00007ff9dab46000 C:\windows\system32\GDI32.dll 134 | 0x00007ff9d4530000 - 0x00007ff9d47a4000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.839_none_a2ddba30a539a2ae\COMCTL32.dll 135 | 0x00007ff9dc650000 - 0x00007ff9dc8cd000 C:\windows\system32\combase.dll 136 | 0x00007ff9d9730000 - 0x00007ff9d979a000 C:\windows\system32\bcryptPrimitives.dll 137 | 0x00007ff9dca30000 - 0x00007ff9dca6b000 C:\windows\system32\IMM32.DLL 138 | 0x0000000051ad0000 - 0x0000000051ba2000 C:\Program Files\Java\jre1.8.0_121\bin\msvcr100.dll 139 | 0x0000000051150000 - 0x00000000519eb000 C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll 140 | 0x00007ff9dcfe0000 - 0x00007ff9dcfe8000 C:\windows\system32\PSAPI.DLL 141 | 0x00007ff9d4a20000 - 0x00007ff9d4a2a000 C:\windows\SYSTEM32\VERSION.dll 142 | 0x00007ff9d7910000 - 0x00007ff9d7933000 C:\windows\SYSTEM32\WINMM.dll 143 | 0x00007ff9d42e0000 - 0x00007ff9d42e9000 C:\windows\SYSTEM32\WSOCK32.dll 144 | 0x00007ff9dc4e0000 - 0x00007ff9dc54b000 C:\windows\system32\WS2_32.dll 145 | 0x00007ff9d6e00000 - 0x00007ff9d6e2c000 C:\windows\SYSTEM32\WINMMBASE.dll 146 | 0x00007ff9d97a0000 - 0x00007ff9d97e3000 C:\windows\system32\cfgmgr32.dll 147 | 0x0000000051060000 - 0x000000005106f000 C:\Program Files\Java\jre1.8.0_121\bin\verify.dll 148 | 0x0000000051030000 - 0x0000000051059000 C:\Program Files\Java\jre1.8.0_121\bin\java.dll 149 | 0x0000000051010000 - 0x0000000051026000 C:\Program Files\Java\jre1.8.0_121\bin\zip.dll 150 | 0x00007ff9dab50000 - 0x00007ff9dc0ac000 C:\windows\system32\SHELL32.dll 151 | 0x00007ff9d99c0000 - 0x00007ff9da005000 C:\windows\system32\windows.storage.dll 152 | 0x00007ff9da750000 - 0x00007ff9da7a2000 C:\windows\system32\shlwapi.dll 153 | 0x00007ff9d9660000 - 0x00007ff9d966f000 C:\windows\system32\kernel.appcore.dll 154 | 0x00007ff9d98a0000 - 0x00007ff9d9955000 C:\windows\system32\shcore.dll 155 | 0x00007ff9d9610000 - 0x00007ff9d965b000 C:\windows\system32\powrprof.dll 156 | 0x00007ff9d9670000 - 0x00007ff9d9684000 C:\windows\system32\profapi.dll 157 | 158 | VM Arguments: 159 | jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Program Files\Java\jre1.8.0_121\lib\resources.jar;C:\Program Files\Java\jre1.8.0_121\lib\rt.jar;C:\Program Files\Java\jre1.8.0_121\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_121\lib\jce.jar;C:\Program Files\Java\jre1.8.0_121\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_121\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_121\lib\extensionIO_v1.07.jar;C:\Program Files\Java\jre1.8.0_121\lib\cldc-1.1.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl-2.6.jar 160 | java_command: main 161 | java_class_path (initial): C:\Users\hp\workspace\TaxiReservationSystem\bin 162 | Launcher Type: SUN_STANDARD 163 | 164 | Environment Variables: 165 | PATH=C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Users\hp\Downloads\eclipse-jee-neon-2-win32-x86_64\eclipse; 166 | USERNAME=Anu 167 | OS=Windows_NT 168 | PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel 169 | 170 | 171 | 172 | --------------- S Y S T E M --------------- 173 | 174 | OS: Windows 10.0 , 64 bit Build 10586 (10.0.10586.589) 175 | 176 | CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx 177 | 178 | Memory: 4k page, physical 4107660k(286704k free), swap 16690572k(25584k free) 179 | 180 | vm_info: Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for windows-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 18:21:36 by "java_re" with MS VC++ 10.0 (VS2010) 181 | 182 | time: Tue Apr 11 15:54:38 2017 183 | elapsed time: 7671 seconds (0d 2h 7m 51s) 184 | 185 | -------------------------------------------------------------------------------- /TaxiSystem/hs_err_pid14448.log: -------------------------------------------------------------------------------- 1 | # 2 | # There is insufficient memory for the Java Runtime Environment to continue. 3 | # Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate 4 | # Possible reasons: 5 | # The system is out of physical RAM or swap space 6 | # In 32 bit mode, the process size limit was hit 7 | # Possible solutions: 8 | # Reduce memory load on the system 9 | # Increase physical memory or swap space 10 | # Check if swap backing store is full 11 | # Use 64 bit Java on a 64 bit OS 12 | # Decrease Java heap size (-Xmx/-Xms) 13 | # Decrease number of Java threads 14 | # Decrease Java thread stack sizes (-Xss) 15 | # Set larger code cache with -XX:ReservedCodeCacheSize= 16 | # This output file may be truncated or incomplete. 17 | # 18 | # Out of Memory Error (allocation.cpp:273), pid=14448, tid=0x00000000000038c4 19 | # 20 | # JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) 21 | # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops) 22 | # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 23 | # 24 | 25 | --------------- T H R E A D --------------- 26 | 27 | Current thread (0x0000000015569000): JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=14532, stack(0x0000000016da0000,0x0000000016ea0000)] 28 | 29 | Stack: [0x0000000016da0000,0x0000000016ea0000] 30 | [error occurred during error reporting (printing stack bounds), id 0xc0000005] 31 | 32 | Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) 33 | 34 | 35 | Current CompileTask: 36 | C1: 413460 187 3 java.text.DecimalFormat::applyPattern (1591 bytes) 37 | 38 | 39 | --------------- P R O C E S S --------------- 40 | 41 | Java Threads: ( => current thread ) 42 | 0x00000000155bc000 JavaThread "Service Thread" daemon [_thread_blocked, id=14536, stack(0x00000000172a0000,0x00000000173a0000)] 43 | =>0x0000000015569000 JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=14532, stack(0x0000000016da0000,0x0000000016ea0000)] 44 | 0x0000000015560000 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=14528, stack(0x0000000016ca0000,0x0000000016da0000)] 45 | 0x000000001555d000 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=14524, stack(0x0000000016ba0000,0x0000000016ca0000)] 46 | 0x000000001555b000 JavaThread "Attach Listener" daemon [_thread_blocked, id=14520, stack(0x0000000016aa0000,0x0000000016ba0000)] 47 | 0x0000000015559800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=14516, stack(0x00000000169a0000,0x0000000016aa0000)] 48 | 0x0000000002f2a800 JavaThread "Finalizer" daemon [_thread_blocked, id=14512, stack(0x00000000167b0000,0x00000000168b0000)] 49 | 0x0000000015529000 JavaThread "Reference Handler" daemon [_thread_blocked, id=14508, stack(0x00000000166b0000,0x00000000167b0000)] 50 | 0x0000000002e30800 JavaThread "main" [_thread_in_native, id=14484, stack(0x00000000015f0000,0x00000000016f0000)] 51 | 52 | Other Threads: 53 | 0x0000000015527800 VMThread [stack: 0x00000000165b0000,0x00000000166b0000] [id=14504] 54 | 0x0000000016ec9000 WatcherThread [stack: 0x00000000173a0000,0x00000000174a0000] [id=14540] 55 | 56 | VM state:not at safepoint (normal execution) 57 | 58 | VM Mutex/Monitor currently owned by a thread: None 59 | 60 | Heap: 61 | PSYoungGen total 18944K, used 8267K [0x00000000eb180000, 0x00000000ec680000, 0x0000000100000000) 62 | eden space 16384K, 50% used [0x00000000eb180000,0x00000000eb992f60,0x00000000ec180000) 63 | from space 2560K, 0% used [0x00000000ec400000,0x00000000ec400000,0x00000000ec680000) 64 | to space 2560K, 0% used [0x00000000ec180000,0x00000000ec180000,0x00000000ec400000) 65 | ParOldGen total 44032K, used 0K [0x00000000c1400000, 0x00000000c3f00000, 0x00000000eb180000) 66 | object space 44032K, 0% used [0x00000000c1400000,0x00000000c1400000,0x00000000c3f00000) 67 | Metaspace used 3770K, capacity 4606K, committed 4864K, reserved 1056768K 68 | class space used 428K, capacity 430K, committed 512K, reserved 1048576K 69 | 70 | Card table byte_map: [0x00000000122f0000,0x00000000124f0000] byte_map_base: 0x0000000011ce6000 71 | 72 | Marking Bits: (ParMarkBitMap*) 0x000000005196b6d0 73 | Begin Bits: [0x0000000012a40000, 0x00000000139f0000) 74 | End Bits: [0x00000000139f0000, 0x00000000149a0000) 75 | 76 | Polling page: 0x0000000001190000 77 | 78 | CodeCache: size=245760Kb used=1561Kb max_used=1569Kb free=244199Kb 79 | bounds [0x0000000002f30000, 0x00000000031a0000, 0x0000000011f30000] 80 | total_blobs=446 nmethods=186 adapters=173 81 | compilation: enabled 82 | 83 | Compilation events (10 events): 84 | Event: 411.115 Thread 0x000000001555d000 nmethod 178 0x00000000030b2850 code [0x00000000030b29c0, 0x00000000030b2d48] 85 | Event: 411.121 Thread 0x0000000015569000 183 3 java.nio.charset.Charset::lookup (44 bytes) 86 | Event: 411.121 Thread 0x0000000015569000 nmethod 183 0x00000000030b1fd0 code [0x00000000030b2180, 0x00000000030b2668] 87 | Event: 411.122 Thread 0x0000000015560000 184 4 java.util.regex.ASCII::isDigit (18 bytes) 88 | Event: 411.122 Thread 0x0000000015560000 nmethod 184 0x0000000003091810 code [0x0000000003091940, 0x0000000003091998] 89 | Event: 411.123 Thread 0x0000000015569000 185 1 java.nio.Buffer::capacity (5 bytes) 90 | Event: 411.123 Thread 0x0000000015569000 nmethod 185 0x00000000030a93d0 code [0x00000000030a9520, 0x00000000030a9630] 91 | Event: 411.125 Thread 0x0000000015569000 186 3 java.io.Reader:: (27 bytes) 92 | Event: 411.126 Thread 0x0000000015569000 nmethod 186 0x00000000030b1a10 code [0x00000000030b1b80, 0x00000000030b1e48] 93 | Event: 411.126 Thread 0x0000000015569000 187 3 java.text.DecimalFormat::applyPattern (1591 bytes) 94 | 95 | GC Heap History (0 events): 96 | No events 97 | 98 | Deoptimization events (0 events): 99 | No events 100 | 101 | Internal exceptions (10 events): 102 | Event: 411.125 Thread 0x0000000002e30800 Exception (0x00000000eb60d450) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 103 | Event: 411.125 Thread 0x0000000002e30800 Exception (0x00000000eb60d898) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 104 | Event: 411.125 Thread 0x0000000002e30800 Exception (0x00000000eb610f70) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 105 | Event: 411.125 Thread 0x0000000002e30800 Exception (0x00000000eb6113b8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 106 | Event: 411.136 Thread 0x0000000002e30800 Exception (0x00000000eb61eb48) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 107 | Event: 411.136 Thread 0x0000000002e30800 Exception (0x00000000eb61ef90) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 108 | Event: 411.137 Thread 0x0000000002e30800 Exception (0x00000000eb622668) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 109 | Event: 411.137 Thread 0x0000000002e30800 Exception (0x00000000eb622ab0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 110 | Event: 411.137 Thread 0x0000000002e30800 Exception (0x00000000eb626188) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 111 | Event: 411.138 Thread 0x0000000002e30800 Exception (0x00000000eb6265d0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 112 | 113 | Events (10 events): 114 | Event: 10.833 loading class java/util/Date 115 | Event: 10.833 loading class java/util/Date done 116 | Event: 10.834 loading class java/text/DontCareFieldPosition 117 | Event: 10.834 loading class java/text/DontCareFieldPosition done 118 | Event: 10.834 loading class java/text/DontCareFieldPosition$1 119 | Event: 10.834 loading class java/text/Format$FieldDelegate 120 | Event: 10.834 loading class java/text/Format$FieldDelegate done 121 | Event: 10.834 loading class java/text/DontCareFieldPosition$1 done 122 | Event: 410.314 loading class java/io/InterruptedIOException 123 | Event: 410.838 loading class java/io/InterruptedIOException done 124 | 125 | 126 | Dynamic libraries: 127 | 0x00007ff749d70000 - 0x00007ff749da7000 C:\Program Files\Java\jre1.8.0_121\bin\javaw.exe 128 | 0x00007ff9dcff0000 - 0x00007ff9dd1b1000 C:\windows\SYSTEM32\ntdll.dll 129 | 0x00007ff9da910000 - 0x00007ff9da9bd000 C:\windows\system32\KERNEL32.DLL 130 | 0x00007ff9da030000 - 0x00007ff9da218000 C:\windows\system32\KERNELBASE.dll 131 | 0x00007ff9dc980000 - 0x00007ff9dca27000 C:\windows\system32\ADVAPI32.dll 132 | 0x00007ff9dc550000 - 0x00007ff9dc5ed000 C:\windows\system32\msvcrt.dll 133 | 0x00007ff9dc5f0000 - 0x00007ff9dc64b000 C:\windows\system32\sechost.dll 134 | 0x00007ff9da3f0000 - 0x00007ff9da50c000 C:\windows\system32\RPCRT4.dll 135 | 0x00007ff9da7b0000 - 0x00007ff9da906000 C:\windows\system32\USER32.dll 136 | 0x00007ff9da9c0000 - 0x00007ff9dab46000 C:\windows\system32\GDI32.dll 137 | 0x00007ff9d4530000 - 0x00007ff9d47a4000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.839_none_a2ddba30a539a2ae\COMCTL32.dll 138 | 0x00007ff9dc650000 - 0x00007ff9dc8cd000 C:\windows\system32\combase.dll 139 | 0x00007ff9d9730000 - 0x00007ff9d979a000 C:\windows\system32\bcryptPrimitives.dll 140 | 0x00007ff9dca30000 - 0x00007ff9dca6b000 C:\windows\system32\IMM32.DLL 141 | 0x0000000051ad0000 - 0x0000000051ba2000 C:\Program Files\Java\jre1.8.0_121\bin\msvcr100.dll 142 | 0x0000000051150000 - 0x00000000519eb000 C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll 143 | 0x00007ff9dcfe0000 - 0x00007ff9dcfe8000 C:\windows\system32\PSAPI.DLL 144 | 0x00007ff9d7910000 - 0x00007ff9d7933000 C:\windows\SYSTEM32\WINMM.dll 145 | 0x00007ff9d4a20000 - 0x00007ff9d4a2a000 C:\windows\SYSTEM32\VERSION.dll 146 | 0x00007ff9d42e0000 - 0x00007ff9d42e9000 C:\windows\SYSTEM32\WSOCK32.dll 147 | 0x00007ff9dc4e0000 - 0x00007ff9dc54b000 C:\windows\system32\WS2_32.dll 148 | 0x00000000015b0000 - 0x00000000015dc000 C:\windows\SYSTEM32\WINMMBASE.dll 149 | 0x00007ff9d97a0000 - 0x00007ff9d97e3000 C:\windows\system32\cfgmgr32.dll 150 | 0x0000000051060000 - 0x000000005106f000 C:\Program Files\Java\jre1.8.0_121\bin\verify.dll 151 | 0x0000000051030000 - 0x0000000051059000 C:\Program Files\Java\jre1.8.0_121\bin\java.dll 152 | 0x0000000051010000 - 0x0000000051026000 C:\Program Files\Java\jre1.8.0_121\bin\zip.dll 153 | 0x00007ff9dab50000 - 0x00007ff9dc0ac000 C:\windows\system32\SHELL32.dll 154 | 0x00007ff9d99c0000 - 0x00007ff9da005000 C:\windows\system32\windows.storage.dll 155 | 0x00007ff9da750000 - 0x00007ff9da7a2000 C:\windows\system32\shlwapi.dll 156 | 0x00007ff9d9660000 - 0x00007ff9d966f000 C:\windows\system32\kernel.appcore.dll 157 | 0x00007ff9d98a0000 - 0x00007ff9d9955000 C:\windows\system32\shcore.dll 158 | 0x00007ff9d9610000 - 0x00007ff9d965b000 C:\windows\system32\powrprof.dll 159 | 0x00007ff9d9670000 - 0x00007ff9d9684000 C:\windows\system32\profapi.dll 160 | 161 | VM Arguments: 162 | jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Program Files\Java\jre1.8.0_121\lib\resources.jar;C:\Program Files\Java\jre1.8.0_121\lib\rt.jar;C:\Program Files\Java\jre1.8.0_121\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_121\lib\jce.jar;C:\Program Files\Java\jre1.8.0_121\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_121\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_121\lib\extensionIO_v1.07.jar;C:\Program Files\Java\jre1.8.0_121\lib\cldc-1.1.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl-2.6.jar 163 | java_command: main 164 | java_class_path (initial): C:\Users\hp\workspace\TaxiReservationSystem\bin 165 | Launcher Type: SUN_STANDARD 166 | 167 | Environment Variables: 168 | PATH=C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Users\hp\Downloads\eclipse-jee-neon-2-win32-x86_64\eclipse; 169 | USERNAME=Anu 170 | OS=Windows_NT 171 | PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel 172 | 173 | 174 | 175 | --------------- S Y S T E M --------------- 176 | 177 | OS: Windows 10.0 , 64 bit Build 10586 (10.0.10586.589) 178 | 179 | CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx 180 | 181 | Memory: 4k page, physical 4107660k(289940k free), swap 16690572k(24612k free) 182 | 183 | vm_info: Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for windows-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 18:21:36 by "java_re" with MS VC++ 10.0 (VS2010) 184 | 185 | time: Tue Apr 11 15:54:38 2017 186 | elapsed time: 415 seconds (0d 0h 6m 55s) 187 | 188 | -------------------------------------------------------------------------------- /TaxiSystem/hs_err_pid14868.log: -------------------------------------------------------------------------------- 1 | # 2 | # There is insufficient memory for the Java Runtime Environment to continue. 3 | # Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate 4 | # Possible reasons: 5 | # The system is out of physical RAM or swap space 6 | # In 32 bit mode, the process size limit was hit 7 | # Possible solutions: 8 | # Reduce memory load on the system 9 | # Increase physical memory or swap space 10 | # Check if swap backing store is full 11 | # Use 64 bit Java on a 64 bit OS 12 | # Decrease Java heap size (-Xmx/-Xms) 13 | # Decrease number of Java threads 14 | # Decrease Java thread stack sizes (-Xss) 15 | # Set larger code cache with -XX:ReservedCodeCacheSize= 16 | # This output file may be truncated or incomplete. 17 | # 18 | # Out of Memory Error (allocation.cpp:273), pid=14868, tid=0x0000000000003a3c 19 | # 20 | # JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) 21 | # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops) 22 | # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 23 | # 24 | 25 | --------------- T H R E A D --------------- 26 | 27 | Current thread (0x0000000015729000): JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=14908, stack(0x0000000016f50000,0x0000000017050000)] 28 | 29 | Stack: [0x0000000016f50000,0x0000000017050000] 30 | [error occurred during error reporting (printing stack bounds), id 0xc0000005] 31 | 32 | Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) 33 | 34 | 35 | Current CompileTask: 36 | C1: 160121 188 3 java.text.DecimalFormat::applyPattern (1591 bytes) 37 | 38 | 39 | --------------- P R O C E S S --------------- 40 | 41 | Java Threads: ( => current thread ) 42 | 0x0000000017077000 JavaThread "Service Thread" daemon [_thread_blocked, id=14792, stack(0x0000000017450000,0x0000000017550000)] 43 | =>0x0000000015729000 JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=14908, stack(0x0000000016f50000,0x0000000017050000)] 44 | 0x000000001571d000 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=10480, stack(0x0000000016e50000,0x0000000016f50000)] 45 | 0x000000001571a000 JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=7624, stack(0x0000000016d50000,0x0000000016e50000)] 46 | 0x0000000015718800 JavaThread "Attach Listener" daemon [_thread_blocked, id=14912, stack(0x0000000016c50000,0x0000000016d50000)] 47 | 0x0000000015724000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12036, stack(0x0000000016b50000,0x0000000016c50000)] 48 | 0x00000000030aa800 JavaThread "Finalizer" daemon [_thread_blocked, id=12360, stack(0x0000000016970000,0x0000000016a70000)] 49 | 0x00000000156e9000 JavaThread "Reference Handler" daemon [_thread_blocked, id=13620, stack(0x0000000016870000,0x0000000016970000)] 50 | 0x0000000002fb0800 JavaThread "main" [_thread_in_native, id=13308, stack(0x0000000002e70000,0x0000000002f70000)] 51 | 52 | Other Threads: 53 | 0x00000000156e7800 VMThread [stack: 0x0000000016770000,0x0000000016870000] [id=10272] 54 | 0x000000001707a000 WatcherThread [stack: 0x0000000017550000,0x0000000017650000] [id=14796] 55 | 56 | VM state:not at safepoint (normal execution) 57 | 58 | VM Mutex/Monitor currently owned by a thread: None 59 | 60 | Heap: 61 | PSYoungGen total 18944K, used 6947K [0x00000000eb180000, 0x00000000ec680000, 0x0000000100000000) 62 | eden space 16384K, 42% used [0x00000000eb180000,0x00000000eb848d70,0x00000000ec180000) 63 | from space 2560K, 0% used [0x00000000ec400000,0x00000000ec400000,0x00000000ec680000) 64 | to space 2560K, 0% used [0x00000000ec180000,0x00000000ec180000,0x00000000ec400000) 65 | ParOldGen total 44032K, used 0K [0x00000000c1400000, 0x00000000c3f00000, 0x00000000eb180000) 66 | object space 44032K, 0% used [0x00000000c1400000,0x00000000c1400000,0x00000000c3f00000) 67 | Metaspace used 3770K, capacity 4606K, committed 4864K, reserved 1056768K 68 | class space used 428K, capacity 430K, committed 512K, reserved 1048576K 69 | 70 | Card table byte_map: [0x00000000124d0000,0x00000000126d0000] byte_map_base: 0x0000000011ec6000 71 | 72 | Marking Bits: (ParMarkBitMap*) 0x000000005196b6d0 73 | Begin Bits: [0x0000000012c20000, 0x0000000013bd0000) 74 | End Bits: [0x0000000013bd0000, 0x0000000014b80000) 75 | 76 | Polling page: 0x0000000001710000 77 | 78 | CodeCache: size=245760Kb used=1564Kb max_used=1575Kb free=244196Kb 79 | bounds [0x0000000003110000, 0x0000000003380000, 0x0000000012110000] 80 | total_blobs=449 nmethods=189 adapters=173 81 | compilation: enabled 82 | 83 | Compilation events (10 events): 84 | Event: 158.808 Thread 0x0000000015729000 nmethod 184 0x000000000328ff90 code [0x00000000032900e0, 0x00000000032901f0] 85 | Event: 158.846 Thread 0x0000000015729000 185 3 java.nio.Buffer::hasRemaining (17 bytes) 86 | Event: 158.846 Thread 0x0000000015729000 nmethod 185 0x0000000003292a10 code [0x0000000003292b60, 0x0000000003292d10] 87 | Event: 158.846 Thread 0x0000000015729000 186 3 java.io.BufferedOutputStream::flushBuffer (29 bytes) 88 | Event: 158.846 Thread 0x0000000015729000 nmethod 186 0x0000000003292550 code [0x00000000032926c0, 0x0000000003292948] 89 | Event: 158.846 Thread 0x0000000015729000 187 3 java.io.Reader:: (27 bytes) 90 | Event: 158.847 Thread 0x0000000015729000 nmethod 187 0x0000000003292010 code [0x0000000003292180, 0x0000000003292448] 91 | Event: 158.847 Thread 0x0000000015729000 188 3 java.text.DecimalFormat::applyPattern (1591 bytes) 92 | Event: 158.847 Thread 0x000000001571a000 190 4 java.util.regex.Pattern::nextEscaped (19 bytes) 93 | Event: 158.848 Thread 0x000000001571a000 nmethod 190 0x0000000003293350 code [0x0000000003293480, 0x0000000003293518] 94 | 95 | GC Heap History (0 events): 96 | No events 97 | 98 | Deoptimization events (0 events): 99 | No events 100 | 101 | Internal exceptions (10 events): 102 | Event: 158.856 Thread 0x0000000002fb0800 Exception (0x00000000eb68b4c8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 103 | Event: 158.856 Thread 0x0000000002fb0800 Exception (0x00000000eb68b910) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 104 | Event: 158.856 Thread 0x0000000002fb0800 Exception (0x00000000eb68efe8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 105 | Event: 158.857 Thread 0x0000000002fb0800 Exception (0x00000000eb68f430) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 106 | Event: 158.857 Thread 0x0000000002fb0800 Exception (0x00000000eb69cbc0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 107 | Event: 158.857 Thread 0x0000000002fb0800 Exception (0x00000000eb69d008) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 108 | Event: 158.857 Thread 0x0000000002fb0800 Exception (0x00000000eb6a06e0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 109 | Event: 158.857 Thread 0x0000000002fb0800 Exception (0x00000000eb6a0b28) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 110 | Event: 158.858 Thread 0x0000000002fb0800 Exception (0x00000000eb6a4200) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 111 | Event: 158.858 Thread 0x0000000002fb0800 Exception (0x00000000eb6a4648) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 112 | 113 | Events (10 events): 114 | Event: 13.977 loading class java/util/Date 115 | Event: 13.977 loading class java/util/Date done 116 | Event: 13.978 loading class java/text/DontCareFieldPosition 117 | Event: 13.978 loading class java/text/DontCareFieldPosition done 118 | Event: 13.978 loading class java/text/DontCareFieldPosition$1 119 | Event: 13.978 loading class java/text/Format$FieldDelegate 120 | Event: 13.978 loading class java/text/Format$FieldDelegate done 121 | Event: 13.978 loading class java/text/DontCareFieldPosition$1 done 122 | Event: 157.908 loading class java/io/InterruptedIOException 123 | Event: 158.389 loading class java/io/InterruptedIOException done 124 | 125 | 126 | Dynamic libraries: 127 | 0x00007ff749d70000 - 0x00007ff749da7000 C:\Program Files\Java\jre1.8.0_121\bin\javaw.exe 128 | 0x00007ff9dcff0000 - 0x00007ff9dd1b1000 C:\windows\SYSTEM32\ntdll.dll 129 | 0x00007ff9da910000 - 0x00007ff9da9bd000 C:\windows\system32\KERNEL32.DLL 130 | 0x00007ff9da030000 - 0x00007ff9da218000 C:\windows\system32\KERNELBASE.dll 131 | 0x00007ff9dc980000 - 0x00007ff9dca27000 C:\windows\system32\ADVAPI32.dll 132 | 0x00007ff9dc550000 - 0x00007ff9dc5ed000 C:\windows\system32\msvcrt.dll 133 | 0x00007ff9dc5f0000 - 0x00007ff9dc64b000 C:\windows\system32\sechost.dll 134 | 0x00007ff9da3f0000 - 0x00007ff9da50c000 C:\windows\system32\RPCRT4.dll 135 | 0x00007ff9da7b0000 - 0x00007ff9da906000 C:\windows\system32\USER32.dll 136 | 0x00007ff9da9c0000 - 0x00007ff9dab46000 C:\windows\system32\GDI32.dll 137 | 0x00007ff9d4530000 - 0x00007ff9d47a4000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.839_none_a2ddba30a539a2ae\COMCTL32.dll 138 | 0x00007ff9dc650000 - 0x00007ff9dc8cd000 C:\windows\system32\combase.dll 139 | 0x00007ff9d9730000 - 0x00007ff9d979a000 C:\windows\system32\bcryptPrimitives.dll 140 | 0x00007ff9dca30000 - 0x00007ff9dca6b000 C:\windows\system32\IMM32.DLL 141 | 0x0000000051ad0000 - 0x0000000051ba2000 C:\Program Files\Java\jre1.8.0_121\bin\msvcr100.dll 142 | 0x0000000051150000 - 0x00000000519eb000 C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll 143 | 0x00007ff9dcfe0000 - 0x00007ff9dcfe8000 C:\windows\system32\PSAPI.DLL 144 | 0x00007ff9d7910000 - 0x00007ff9d7933000 C:\windows\SYSTEM32\WINMM.dll 145 | 0x00007ff9d4a20000 - 0x00007ff9d4a2a000 C:\windows\SYSTEM32\VERSION.dll 146 | 0x00007ff9d42e0000 - 0x00007ff9d42e9000 C:\windows\SYSTEM32\WSOCK32.dll 147 | 0x00007ff9dc4e0000 - 0x00007ff9dc54b000 C:\windows\system32\WS2_32.dll 148 | 0x00000000016c0000 - 0x00000000016ec000 C:\windows\SYSTEM32\WINMMBASE.dll 149 | 0x00007ff9d97a0000 - 0x00007ff9d97e3000 C:\windows\system32\cfgmgr32.dll 150 | 0x0000000051060000 - 0x000000005106f000 C:\Program Files\Java\jre1.8.0_121\bin\verify.dll 151 | 0x0000000051030000 - 0x0000000051059000 C:\Program Files\Java\jre1.8.0_121\bin\java.dll 152 | 0x0000000051010000 - 0x0000000051026000 C:\Program Files\Java\jre1.8.0_121\bin\zip.dll 153 | 0x00007ff9dab50000 - 0x00007ff9dc0ac000 C:\windows\system32\SHELL32.dll 154 | 0x00007ff9d99c0000 - 0x00007ff9da005000 C:\windows\system32\windows.storage.dll 155 | 0x00007ff9da750000 - 0x00007ff9da7a2000 C:\windows\system32\shlwapi.dll 156 | 0x00007ff9d9660000 - 0x00007ff9d966f000 C:\windows\system32\kernel.appcore.dll 157 | 0x00007ff9d98a0000 - 0x00007ff9d9955000 C:\windows\system32\shcore.dll 158 | 0x00007ff9d9610000 - 0x00007ff9d965b000 C:\windows\system32\powrprof.dll 159 | 0x00007ff9d9670000 - 0x00007ff9d9684000 C:\windows\system32\profapi.dll 160 | 161 | VM Arguments: 162 | jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Program Files\Java\jre1.8.0_121\lib\resources.jar;C:\Program Files\Java\jre1.8.0_121\lib\rt.jar;C:\Program Files\Java\jre1.8.0_121\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_121\lib\jce.jar;C:\Program Files\Java\jre1.8.0_121\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_121\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_121\lib\extensionIO_v1.07.jar;C:\Program Files\Java\jre1.8.0_121\lib\cldc-1.1.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl-2.6.jar 163 | java_command: main 164 | java_class_path (initial): C:\Users\hp\workspace\TaxiReservationSystem\bin 165 | Launcher Type: SUN_STANDARD 166 | 167 | Environment Variables: 168 | PATH=C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Users\hp\Downloads\eclipse-jee-neon-2-win32-x86_64\eclipse; 169 | USERNAME=Anu 170 | OS=Windows_NT 171 | PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel 172 | 173 | 174 | 175 | --------------- S Y S T E M --------------- 176 | 177 | OS: Windows 10.0 , 64 bit Build 10586 (10.0.10586.589) 178 | 179 | CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx 180 | 181 | Memory: 4k page, physical 4107660k(289952k free), swap 16690572k(24612k free) 182 | 183 | vm_info: Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for windows-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 18:21:36 by "java_re" with MS VC++ 10.0 (VS2010) 184 | 185 | time: Tue Apr 11 15:54:38 2017 186 | elapsed time: 162 seconds (0d 0h 2m 42s) 187 | 188 | -------------------------------------------------------------------------------- /TaxiSystem/hs_err_pid15300.log: -------------------------------------------------------------------------------- 1 | # 2 | # There is insufficient memory for the Java Runtime Environment to continue. 3 | # Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate 4 | # Possible reasons: 5 | # The system is out of physical RAM or swap space 6 | # In 32 bit mode, the process size limit was hit 7 | # Possible solutions: 8 | # Reduce memory load on the system 9 | # Increase physical memory or swap space 10 | # Check if swap backing store is full 11 | # Use 64 bit Java on a 64 bit OS 12 | # Decrease Java heap size (-Xmx/-Xms) 13 | # Decrease number of Java threads 14 | # Decrease Java thread stack sizes (-Xss) 15 | # Set larger code cache with -XX:ReservedCodeCacheSize= 16 | # This output file may be truncated or incomplete. 17 | # 18 | # Out of Memory Error (allocation.cpp:273), pid=15300, tid=0x0000000000003848 19 | # 20 | # JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) 21 | # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops) 22 | # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 23 | # 24 | 25 | --------------- T H R E A D --------------- 26 | 27 | Current thread (0x0000000014c8a000): JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=14408, stack(0x00000000164d0000,0x00000000165d0000)] 28 | 29 | Stack: [0x00000000164d0000,0x00000000165d0000] 30 | [error occurred during error reporting (printing stack bounds), id 0xc0000005] 31 | 32 | Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) 33 | 34 | 35 | Current CompileTask: 36 | C1: 45427 187 3 java.text.DecimalFormat::applyPattern (1591 bytes) 37 | 38 | 39 | --------------- P R O C E S S --------------- 40 | 41 | Java Threads: ( => current thread ) 42 | 0x00000000165f8800 JavaThread "Service Thread" daemon [_thread_blocked, id=14432, stack(0x00000000169d0000,0x0000000016ad0000)] 43 | =>0x0000000014c8a000 JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=14408, stack(0x00000000164d0000,0x00000000165d0000)] 44 | 0x0000000014c7e800 JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=11428, stack(0x00000000163d0000,0x00000000164d0000)] 45 | 0x0000000014c7c000 JavaThread "C2 CompilerThread0" daemon [_thread_in_vm, id=14404, stack(0x00000000162d0000,0x00000000163d0000)] 46 | 0x0000000014c78800 JavaThread "Attach Listener" daemon [_thread_blocked, id=15196, stack(0x00000000161d0000,0x00000000162d0000)] 47 | 0x0000000014c84000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=15192, stack(0x00000000160d0000,0x00000000161d0000)] 48 | 0x000000000266a800 JavaThread "Finalizer" daemon [_thread_blocked, id=14364, stack(0x0000000015ef0000,0x0000000015ff0000)] 49 | 0x0000000014c49000 JavaThread "Reference Handler" daemon [_thread_blocked, id=15236, stack(0x0000000015df0000,0x0000000015ef0000)] 50 | 0x0000000002570800 JavaThread "main" [_thread_in_native, id=15076, stack(0x0000000002470000,0x0000000002570000)] 51 | 52 | Other Threads: 53 | 0x0000000014c47800 VMThread [stack: 0x0000000015cf0000,0x0000000015df0000] [id=15240] 54 | 0x0000000016619800 WatcherThread [stack: 0x0000000016ad0000,0x0000000016bd0000] [id=11236] 55 | 56 | VM state:synchronizing (normal execution) 57 | 58 | VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) 59 | [0x000000000244c8a0] Threads_lock - owner thread: 0x0000000014c47800 60 | 61 | Heap: 62 | PSYoungGen total 18944K, used 7294K [0x00000000eb180000, 0x00000000ec680000, 0x0000000100000000) 63 | eden space 16384K, 44% used [0x00000000eb180000,0x00000000eb89fae0,0x00000000ec180000) 64 | from space 2560K, 0% used [0x00000000ec400000,0x00000000ec400000,0x00000000ec680000) 65 | to space 2560K, 0% used [0x00000000ec180000,0x00000000ec180000,0x00000000ec400000) 66 | ParOldGen total 44032K, used 0K [0x00000000c1400000, 0x00000000c3f00000, 0x00000000eb180000) 67 | object space 44032K, 0% used [0x00000000c1400000,0x00000000c1400000,0x00000000c3f00000) 68 | Metaspace used 3802K, capacity 4640K, committed 4864K, reserved 1056768K 69 | class space used 433K, capacity 464K, committed 512K, reserved 1048576K 70 | 71 | Card table byte_map: [0x0000000011a30000,0x0000000011c30000] byte_map_base: 0x0000000011426000 72 | 73 | Marking Bits: (ParMarkBitMap*) 0x000000005196b6d0 74 | Begin Bits: [0x0000000012180000, 0x0000000013130000) 75 | End Bits: [0x0000000013130000, 0x00000000140e0000) 76 | 77 | Polling page: 0x0000000000b20000 78 | 79 | CodeCache: size=245760Kb used=1585Kb max_used=1597Kb free=244174Kb 80 | bounds [0x0000000002670000, 0x00000000028e0000, 0x0000000011670000] 81 | total_blobs=447 nmethods=187 adapters=173 82 | compilation: enabled 83 | 84 | Compilation events (10 events): 85 | Event: 42.821 Thread 0x0000000014c7e800 nmethod 183 0x00000000027e0690 code [0x00000000027e07c0, 0x00000000027e0818] 86 | Event: 42.821 Thread 0x0000000014c8a000 184 3 java.util.regex.Matcher::getTextLength (10 bytes) 87 | Event: 42.822 Thread 0x0000000014c8a000 nmethod 184 0x00000000027ff490 code [0x00000000027ff600, 0x00000000027ff828] 88 | Event: 42.822 Thread 0x0000000014c8a000 185 1 java.nio.Buffer::capacity (5 bytes) 89 | Event: 42.822 Thread 0x0000000014c8a000 nmethod 185 0x00000000027ff1d0 code [0x00000000027ff320, 0x00000000027ff430] 90 | Event: 42.824 Thread 0x0000000014c8a000 186 3 java.io.Reader:: (27 bytes) 91 | Event: 42.825 Thread 0x0000000014c8a000 nmethod 186 0x00000000027fec90 code [0x00000000027fee00, 0x00000000027ff0c8] 92 | Event: 42.825 Thread 0x0000000014c8a000 187 3 java.text.DecimalFormat::applyPattern (1591 bytes) 93 | Event: 42.826 Thread 0x0000000014c7c000 191 4 java.util.regex.Pattern$TreeInfo::reset (21 bytes) 94 | Event: 42.826 Thread 0x0000000014c7c000 nmethod 191 0x00000000027fea90 code [0x00000000027febc0, 0x00000000027fec38] 95 | 96 | GC Heap History (0 events): 97 | No events 98 | 99 | Deoptimization events (0 events): 100 | No events 101 | 102 | Internal exceptions (10 events): 103 | Event: 42.835 Thread 0x0000000002570800 Exception (0x00000000eb66f938) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 104 | Event: 42.835 Thread 0x0000000002570800 Exception (0x00000000eb66fd80) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 105 | Event: 42.836 Thread 0x0000000002570800 Exception (0x00000000eb673458) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 106 | Event: 42.836 Thread 0x0000000002570800 Exception (0x00000000eb6738a0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 107 | Event: 42.836 Thread 0x0000000002570800 Exception (0x00000000eb676f78) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 108 | Event: 42.836 Thread 0x0000000002570800 Exception (0x00000000eb6773c0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 109 | Event: 42.837 Thread 0x0000000002570800 Exception (0x00000000eb684b50) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 110 | Event: 42.837 Thread 0x0000000002570800 Exception (0x00000000eb684f98) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 111 | Event: 42.837 Thread 0x0000000002570800 Exception (0x00000000eb688670) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 112 | Event: 42.837 Thread 0x0000000002570800 Exception (0x00000000eb688ab8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 113 | 114 | Events (10 events): 115 | Event: 9.021 loading class java/util/regex/Pattern$Dot 116 | Event: 9.022 loading class java/util/regex/Pattern$Dot done 117 | Event: 9.022 loading class java/util/regex/Pattern$5 118 | Event: 9.022 loading class java/util/regex/Pattern$5 done 119 | Event: 9.022 loading class java/util/regex/Pattern$Dollar 120 | Event: 9.022 loading class java/util/regex/Pattern$Dollar done 121 | Event: 41.924 loading class java/io/InterruptedIOException 122 | Event: 42.403 loading class java/io/InterruptedIOException done 123 | Event: 42.403 Executing VM operation: Deoptimize 124 | Event: 42.403 Executing VM operation: Deoptimize done 125 | 126 | 127 | Dynamic libraries: 128 | 0x00007ff749d70000 - 0x00007ff749da7000 C:\Program Files\Java\jre1.8.0_121\bin\javaw.exe 129 | 0x00007ff9dcff0000 - 0x00007ff9dd1b1000 C:\windows\SYSTEM32\ntdll.dll 130 | 0x00007ff9da910000 - 0x00007ff9da9bd000 C:\windows\system32\KERNEL32.DLL 131 | 0x00007ff9da030000 - 0x00007ff9da218000 C:\windows\system32\KERNELBASE.dll 132 | 0x00007ff9dc980000 - 0x00007ff9dca27000 C:\windows\system32\ADVAPI32.dll 133 | 0x00007ff9dc550000 - 0x00007ff9dc5ed000 C:\windows\system32\msvcrt.dll 134 | 0x00007ff9dc5f0000 - 0x00007ff9dc64b000 C:\windows\system32\sechost.dll 135 | 0x00007ff9da3f0000 - 0x00007ff9da50c000 C:\windows\system32\RPCRT4.dll 136 | 0x00007ff9da7b0000 - 0x00007ff9da906000 C:\windows\system32\USER32.dll 137 | 0x00007ff9da9c0000 - 0x00007ff9dab46000 C:\windows\system32\GDI32.dll 138 | 0x00007ff9d4530000 - 0x00007ff9d47a4000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.839_none_a2ddba30a539a2ae\COMCTL32.dll 139 | 0x00007ff9dc650000 - 0x00007ff9dc8cd000 C:\windows\system32\combase.dll 140 | 0x00007ff9d9730000 - 0x00007ff9d979a000 C:\windows\system32\bcryptPrimitives.dll 141 | 0x00007ff9dca30000 - 0x00007ff9dca6b000 C:\windows\system32\IMM32.DLL 142 | 0x0000000051ad0000 - 0x0000000051ba2000 C:\Program Files\Java\jre1.8.0_121\bin\msvcr100.dll 143 | 0x0000000051150000 - 0x00000000519eb000 C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll 144 | 0x00007ff9dcfe0000 - 0x00007ff9dcfe8000 C:\windows\system32\PSAPI.DLL 145 | 0x00007ff9d7910000 - 0x00007ff9d7933000 C:\windows\SYSTEM32\WINMM.dll 146 | 0x00007ff9d4a20000 - 0x00007ff9d4a2a000 C:\windows\SYSTEM32\VERSION.dll 147 | 0x00007ff9d42e0000 - 0x00007ff9d42e9000 C:\windows\SYSTEM32\WSOCK32.dll 148 | 0x00007ff9dc4e0000 - 0x00007ff9dc54b000 C:\windows\system32\WS2_32.dll 149 | 0x0000000000b50000 - 0x0000000000b7c000 C:\windows\SYSTEM32\WINMMBASE.dll 150 | 0x00007ff9d97a0000 - 0x00007ff9d97e3000 C:\windows\system32\cfgmgr32.dll 151 | 0x0000000051060000 - 0x000000005106f000 C:\Program Files\Java\jre1.8.0_121\bin\verify.dll 152 | 0x0000000051030000 - 0x0000000051059000 C:\Program Files\Java\jre1.8.0_121\bin\java.dll 153 | 0x0000000051010000 - 0x0000000051026000 C:\Program Files\Java\jre1.8.0_121\bin\zip.dll 154 | 0x00007ff9dab50000 - 0x00007ff9dc0ac000 C:\windows\system32\SHELL32.dll 155 | 0x00007ff9d99c0000 - 0x00007ff9da005000 C:\windows\system32\windows.storage.dll 156 | 0x00007ff9da750000 - 0x00007ff9da7a2000 C:\windows\system32\shlwapi.dll 157 | 0x00007ff9d9660000 - 0x00007ff9d966f000 C:\windows\system32\kernel.appcore.dll 158 | 0x00007ff9d98a0000 - 0x00007ff9d9955000 C:\windows\system32\shcore.dll 159 | 0x00007ff9d9610000 - 0x00007ff9d965b000 C:\windows\system32\powrprof.dll 160 | 0x00007ff9d9670000 - 0x00007ff9d9684000 C:\windows\system32\profapi.dll 161 | 162 | VM Arguments: 163 | jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Program Files\Java\jre1.8.0_121\lib\resources.jar;C:\Program Files\Java\jre1.8.0_121\lib\rt.jar;C:\Program Files\Java\jre1.8.0_121\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_121\lib\jce.jar;C:\Program Files\Java\jre1.8.0_121\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_121\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_121\lib\extensionIO_v1.07.jar;C:\Program Files\Java\jre1.8.0_121\lib\cldc-1.1.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl-2.6.jar 164 | java_command: main 165 | java_class_path (initial): C:\Users\hp\workspace\TaxiReservationSystem\bin 166 | Launcher Type: SUN_STANDARD 167 | 168 | Environment Variables: 169 | PATH=C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Users\hp\Downloads\eclipse-jee-neon-2-win32-x86_64\eclipse; 170 | USERNAME=Anu 171 | OS=Windows_NT 172 | PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel 173 | 174 | 175 | 176 | --------------- S Y S T E M --------------- 177 | 178 | OS: Windows 10.0 , 64 bit Build 10586 (10.0.10586.589) 179 | 180 | CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx 181 | 182 | Memory: 4k page, physical 4107660k(289952k free), swap 16690572k(24612k free) 183 | 184 | vm_info: Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for windows-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 18:21:36 by "java_re" with MS VC++ 10.0 (VS2010) 185 | 186 | time: Tue Apr 11 15:54:38 2017 187 | elapsed time: 46 seconds (0d 0h 0m 46s) 188 | 189 | -------------------------------------------------------------------------------- /TaxiSystem/hs_err_pid7108.log: -------------------------------------------------------------------------------- 1 | # 2 | # There is insufficient memory for the Java Runtime Environment to continue. 3 | # Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate 4 | # Possible reasons: 5 | # The system is out of physical RAM or swap space 6 | # In 32 bit mode, the process size limit was hit 7 | # Possible solutions: 8 | # Reduce memory load on the system 9 | # Increase physical memory or swap space 10 | # Check if swap backing store is full 11 | # Use 64 bit Java on a 64 bit OS 12 | # Decrease Java heap size (-Xmx/-Xms) 13 | # Decrease number of Java threads 14 | # Decrease Java thread stack sizes (-Xss) 15 | # Set larger code cache with -XX:ReservedCodeCacheSize= 16 | # This output file may be truncated or incomplete. 17 | # 18 | # Out of Memory Error (allocation.cpp:273), pid=7108, tid=0x0000000000001dd4 19 | # 20 | # JRE version: Java(TM) SE Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13) 21 | # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode windows-amd64 compressed oops) 22 | # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 23 | # 24 | 25 | --------------- T H R E A D --------------- 26 | 27 | Current thread (0x000000001547c800): JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=7636, stack(0x0000000016cb0000,0x0000000016db0000)] 28 | 29 | Stack: [0x0000000016cb0000,0x0000000016db0000] 30 | [error occurred during error reporting (printing stack bounds), id 0xc0000005] 31 | 32 | Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) 33 | 34 | 35 | Current CompileTask: 36 | C1: 562623 186 3 java.text.DecimalFormat::applyPattern (1591 bytes) 37 | 38 | 39 | --------------- P R O C E S S --------------- 40 | 41 | Java Threads: ( => current thread ) 42 | 0x00000000154ce000 JavaThread "Service Thread" daemon [_thread_blocked, id=6756, stack(0x00000000171b0000,0x00000000172b0000)] 43 | =>0x000000001547c800 JavaThread "C1 CompilerThread2" daemon [_thread_in_native, id=7636, stack(0x0000000016cb0000,0x0000000016db0000)] 44 | 0x0000000015472000 JavaThread "C2 CompilerThread1" daemon [_thread_in_vm, id=8408, stack(0x0000000016bb0000,0x0000000016cb0000)] 45 | 0x000000001546d000 JavaThread "C2 CompilerThread0" daemon [_thread_in_vm, id=5840, stack(0x0000000016ab0000,0x0000000016bb0000)] 46 | 0x000000001546b000 JavaThread "Attach Listener" daemon [_thread_blocked, id=12084, stack(0x00000000169b0000,0x0000000016ab0000)] 47 | 0x0000000015469800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10284, stack(0x00000000168b0000,0x00000000169b0000)] 48 | 0x0000000002e5a800 JavaThread "Finalizer" daemon [_thread_blocked, id=2024, stack(0x00000000166d0000,0x00000000167d0000)] 49 | 0x0000000015439000 JavaThread "Reference Handler" daemon [_thread_blocked, id=11088, stack(0x00000000165d0000,0x00000000166d0000)] 50 | 0x0000000002d60800 JavaThread "main" [_thread_in_native, id=9940, stack(0x0000000002c60000,0x0000000002d60000)] 51 | 52 | Other Threads: 53 | 0x0000000015437800 VMThread [stack: 0x00000000164d0000,0x00000000165d0000] [id=11952] 54 | 0x0000000016df3000 WatcherThread [stack: 0x00000000172b0000,0x00000000173b0000] [id=6740] 55 | 56 | VM state:synchronizing (normal execution) 57 | 58 | VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event]) 59 | [0x0000000002b2ca20] Threads_lock - owner thread: 0x0000000015437800 60 | 61 | Heap: 62 | PSYoungGen total 18944K, used 10588K [0x00000000eb180000, 0x00000000ec680000, 0x0000000100000000) 63 | eden space 16384K, 64% used [0x00000000eb180000,0x00000000ebbd7258,0x00000000ec180000) 64 | from space 2560K, 0% used [0x00000000ec400000,0x00000000ec400000,0x00000000ec680000) 65 | to space 2560K, 0% used [0x00000000ec180000,0x00000000ec180000,0x00000000ec400000) 66 | ParOldGen total 44032K, used 0K [0x00000000c1400000, 0x00000000c3f00000, 0x00000000eb180000) 67 | object space 44032K, 0% used [0x00000000c1400000,0x00000000c1400000,0x00000000c3f00000) 68 | Metaspace used 3780K, capacity 4606K, committed 4864K, reserved 1056768K 69 | class space used 428K, capacity 430K, committed 512K, reserved 1048576K 70 | 71 | Card table byte_map: [0x0000000012220000,0x0000000012420000] byte_map_base: 0x0000000011c16000 72 | 73 | Marking Bits: (ParMarkBitMap*) 0x000000005196b6d0 74 | Begin Bits: [0x0000000012970000, 0x0000000013920000) 75 | End Bits: [0x0000000013920000, 0x00000000148d0000) 76 | 77 | Polling page: 0x0000000002ae0000 78 | 79 | CodeCache: size=245760Kb used=1560Kb max_used=1569Kb free=244199Kb 80 | bounds [0x0000000002e60000, 0x00000000030d0000, 0x0000000011e60000] 81 | total_blobs=445 nmethods=185 adapters=173 82 | compilation: enabled 83 | 84 | Compilation events (10 events): 85 | Event: 560.358 Thread 0x000000001546d000 nmethod 178 0x0000000002fe8710 code [0x0000000002fe8880, 0x0000000002fe8c08] 86 | Event: 560.361 Thread 0x000000001547c800 182 3 java.nio.charset.Charset::lookup (44 bytes) 87 | Event: 560.361 Thread 0x0000000015472000 183 4 java.util.regex.ASCII::isDigit (18 bytes) 88 | Event: 560.361 Thread 0x000000001547c800 nmethod 182 0x0000000002fe3410 code [0x0000000002fe35c0, 0x0000000002fe3aa8] 89 | Event: 560.362 Thread 0x0000000015472000 nmethod 183 0x0000000002fdff50 code [0x0000000002fe0080, 0x0000000002fe00d8] 90 | Event: 560.363 Thread 0x000000001547c800 184 1 java.nio.Buffer::capacity (5 bytes) 91 | Event: 560.363 Thread 0x000000001547c800 nmethod 184 0x0000000002fdfc90 code [0x0000000002fdfde0, 0x0000000002fdfef0] 92 | Event: 560.365 Thread 0x000000001547c800 185 3 java.io.Reader:: (27 bytes) 93 | Event: 560.366 Thread 0x000000001547c800 nmethod 185 0x0000000002fdf750 code [0x0000000002fdf8c0, 0x0000000002fdfb88] 94 | Event: 560.366 Thread 0x000000001547c800 186 3 java.text.DecimalFormat::applyPattern (1591 bytes) 95 | 96 | GC Heap History (0 events): 97 | No events 98 | 99 | Deoptimization events (0 events): 100 | No events 101 | 102 | Internal exceptions (10 events): 103 | Event: 560.373 Thread 0x0000000002d60800 Exception (0x00000000eb68c1c0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 104 | Event: 560.373 Thread 0x0000000002d60800 Exception (0x00000000eb68c608) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 105 | Event: 560.373 Thread 0x0000000002d60800 Exception (0x00000000eb68fce0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 106 | Event: 560.374 Thread 0x0000000002d60800 Exception (0x00000000eb690128) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 107 | Event: 560.374 Thread 0x0000000002d60800 Exception (0x00000000eb69d8b8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 108 | Event: 560.374 Thread 0x0000000002d60800 Exception (0x00000000eb69dd00) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 109 | Event: 560.374 Thread 0x0000000002d60800 Exception (0x00000000eb6a13d8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 110 | Event: 560.374 Thread 0x0000000002d60800 Exception (0x00000000eb6a1820) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 111 | Event: 560.375 Thread 0x0000000002d60800 Exception (0x00000000eb6a4ef8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 112 | Event: 560.375 Thread 0x0000000002d60800 Exception (0x00000000eb6a5340) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u121\8372\hotspot\src\share\vm\prims\jni.cpp, line 709] 113 | 114 | Events (10 events): 115 | Event: 14.379 loading class java/util/Date 116 | Event: 14.379 loading class java/util/Date done 117 | Event: 14.379 loading class java/text/DontCareFieldPosition 118 | Event: 14.379 loading class java/text/DontCareFieldPosition done 119 | Event: 14.379 loading class java/text/DontCareFieldPosition$1 120 | Event: 14.379 loading class java/text/Format$FieldDelegate 121 | Event: 14.379 loading class java/text/Format$FieldDelegate done 122 | Event: 14.379 loading class java/text/DontCareFieldPosition$1 done 123 | Event: 559.430 loading class java/io/InterruptedIOException 124 | Event: 559.907 loading class java/io/InterruptedIOException done 125 | 126 | 127 | Dynamic libraries: 128 | 0x00007ff749d70000 - 0x00007ff749da7000 C:\Program Files\Java\jre1.8.0_121\bin\javaw.exe 129 | 0x00007ff9dcff0000 - 0x00007ff9dd1b1000 C:\windows\SYSTEM32\ntdll.dll 130 | 0x00007ff9da910000 - 0x00007ff9da9bd000 C:\windows\system32\KERNEL32.DLL 131 | 0x00007ff9da030000 - 0x00007ff9da218000 C:\windows\system32\KERNELBASE.dll 132 | 0x00007ff9dc980000 - 0x00007ff9dca27000 C:\windows\system32\ADVAPI32.dll 133 | 0x00007ff9dc550000 - 0x00007ff9dc5ed000 C:\windows\system32\msvcrt.dll 134 | 0x00007ff9dc5f0000 - 0x00007ff9dc64b000 C:\windows\system32\sechost.dll 135 | 0x00007ff9da3f0000 - 0x00007ff9da50c000 C:\windows\system32\RPCRT4.dll 136 | 0x00007ff9da7b0000 - 0x00007ff9da906000 C:\windows\system32\USER32.dll 137 | 0x00007ff9da9c0000 - 0x00007ff9dab46000 C:\windows\system32\GDI32.dll 138 | 0x00007ff9d4530000 - 0x00007ff9d47a4000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.839_none_a2ddba30a539a2ae\COMCTL32.dll 139 | 0x00007ff9dc650000 - 0x00007ff9dc8cd000 C:\windows\system32\combase.dll 140 | 0x00007ff9d9730000 - 0x00007ff9d979a000 C:\windows\system32\bcryptPrimitives.dll 141 | 0x00007ff9dca30000 - 0x00007ff9dca6b000 C:\windows\system32\IMM32.DLL 142 | 0x0000000051ad0000 - 0x0000000051ba2000 C:\Program Files\Java\jre1.8.0_121\bin\msvcr100.dll 143 | 0x0000000051150000 - 0x00000000519eb000 C:\Program Files\Java\jre1.8.0_121\bin\server\jvm.dll 144 | 0x00007ff9dcfe0000 - 0x00007ff9dcfe8000 C:\windows\system32\PSAPI.DLL 145 | 0x00007ff9d7910000 - 0x00007ff9d7933000 C:\windows\SYSTEM32\WINMM.dll 146 | 0x00007ff9d42e0000 - 0x00007ff9d42e9000 C:\windows\SYSTEM32\WSOCK32.dll 147 | 0x00007ff9d4a20000 - 0x00007ff9d4a2a000 C:\windows\SYSTEM32\VERSION.dll 148 | 0x00007ff9dc4e0000 - 0x00007ff9dc54b000 C:\windows\system32\WS2_32.dll 149 | 0x00007ff9d6e00000 - 0x00007ff9d6e2c000 C:\windows\SYSTEM32\WINMMBASE.dll 150 | 0x00007ff9d97a0000 - 0x00007ff9d97e3000 C:\windows\system32\cfgmgr32.dll 151 | 0x0000000051060000 - 0x000000005106f000 C:\Program Files\Java\jre1.8.0_121\bin\verify.dll 152 | 0x0000000051030000 - 0x0000000051059000 C:\Program Files\Java\jre1.8.0_121\bin\java.dll 153 | 0x0000000051010000 - 0x0000000051026000 C:\Program Files\Java\jre1.8.0_121\bin\zip.dll 154 | 0x00007ff9dab50000 - 0x00007ff9dc0ac000 C:\windows\system32\SHELL32.dll 155 | 0x00007ff9d99c0000 - 0x00007ff9da005000 C:\windows\system32\windows.storage.dll 156 | 0x00007ff9da750000 - 0x00007ff9da7a2000 C:\windows\system32\shlwapi.dll 157 | 0x00007ff9d9660000 - 0x00007ff9d966f000 C:\windows\system32\kernel.appcore.dll 158 | 0x00007ff9d98a0000 - 0x00007ff9d9955000 C:\windows\system32\shcore.dll 159 | 0x00007ff9d9610000 - 0x00007ff9d965b000 C:\windows\system32\powrprof.dll 160 | 0x00007ff9d9670000 - 0x00007ff9d9684000 C:\windows\system32\profapi.dll 161 | 162 | VM Arguments: 163 | jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Program Files\Java\jre1.8.0_121\lib\resources.jar;C:\Program Files\Java\jre1.8.0_121\lib\rt.jar;C:\Program Files\Java\jre1.8.0_121\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_121\lib\jce.jar;C:\Program Files\Java\jre1.8.0_121\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_121\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_121\lib\extensionIO_v1.07.jar;C:\Program Files\Java\jre1.8.0_121\lib\cldc-1.1.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl.jar;C:\Program Files\Java\jre1.8.0_121\lib\jxl-2.6.jar 164 | java_command: main 165 | java_class_path (initial): C:\Users\hp\workspace\TaxiReservationSystem\bin 166 | Launcher Type: SUN_STANDARD 167 | 168 | Environment Variables: 169 | PATH=C:/Program Files/Java/jre1.8.0_121/bin/server;C:/Program Files/Java/jre1.8.0_121/bin;C:/Program Files/Java/jre1.8.0_121/lib/amd64;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Skype\Phone\;C:\Users\hp\Downloads\eclipse-jee-neon-2-win32-x86_64\eclipse; 170 | USERNAME=Anu 171 | OS=Windows_NT 172 | PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel 173 | 174 | 175 | 176 | --------------- S Y S T E M --------------- 177 | 178 | OS: Windows 10.0 , 64 bit Build 10586 (10.0.10586.589) 179 | 180 | CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx 181 | 182 | Memory: 4k page, physical 4107660k(289988k free), swap 16690572k(24612k free) 183 | 184 | vm_info: Java HotSpot(TM) 64-Bit Server VM (25.121-b13) for windows-amd64 JRE (1.8.0_121-b13), built on Dec 12 2016 18:21:36 by "java_re" with MS VC++ 10.0 (VS2010) 185 | 186 | time: Tue Apr 11 15:54:38 2017 187 | elapsed time: 564 seconds (0d 0h 9m 24s) 188 | 189 | -------------------------------------------------------------------------------- /TaxiSystem/replay_pid10184.log: -------------------------------------------------------------------------------- 1 | JvmtiExport can_access_local_variables 0 2 | JvmtiExport can_hotswap_or_post_breakpoint 0 3 | JvmtiExport can_post_on_exceptions 0 4 | # 178 ciObject found 5 | ciMethod java/lang/Object ()V 4097 1 15939 0 -1 6 | ciMethod java/lang/String ([CII)V 2609 1 2949 0 -1 7 | ciMethod java/lang/String length ()I 4097 1 6456 0 -1 8 | ciMethod java/lang/String charAt (I)C 4097 1 6161 0 -1 9 | ciMethod java/lang/String equals (Ljava/lang/Object;)Z 3433 12281 2552 0 -1 10 | ciMethod java/lang/String regionMatches (ILjava/lang/String;II)Z 1009 1 126 0 -1 11 | ciMethod java/lang/System arraycopy (Ljava/lang/Object;ILjava/lang/Object;II)V 5121 1 640 0 -1 12 | ciMethod java/lang/StringBuffer ()V 2177 1 617 0 -1 13 | ciMethod java/lang/StringBuffer append (Ljava/lang/String;)Ljava/lang/StringBuffer; 1513 1 219 0 -1 14 | ciMethod java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 3513 1 1921 0 -1 15 | ciMethod java/lang/StringBuffer toString ()Ljava/lang/String; 281 1 1101 0 -1 16 | ciMethod java/lang/AbstractStringBuilder (I)V 625 1 2079 0 -1 17 | ciMethod java/lang/AbstractStringBuilder ensureCapacityInternal (I)V 2729 1 8142 0 -1 18 | ciMethod java/lang/AbstractStringBuilder newCapacity (I)I 841 1 927 0 -1 19 | ciMethod java/lang/AbstractStringBuilder append (Ljava/lang/String;)Ljava/lang/AbstractStringBuilder; 969 1 3736 0 -1 20 | ciMethod java/lang/AbstractStringBuilder append (C)Ljava/lang/AbstractStringBuilder; 2353 1 3890 0 -1 21 | ciMethod java/lang/StringBuilder ()V 617 1 1113 0 -1 22 | ciMethod java/lang/StringBuilder append (Ljava/lang/String;)Ljava/lang/StringBuilder; 969 1 3518 0 -1 23 | ciMethod java/lang/StringBuilder append (C)Ljava/lang/StringBuilder; 2673 1 1970 0 -1 24 | ciMethod java/lang/StringBuilder toString ()Ljava/lang/String; 617 1 1403 0 -1 25 | ciMethod java/lang/Math min (II)I 3961 1 8336 0 -1 26 | ciMethod java/util/Arrays copyOf ([CI)[C 1097 1 1003 0 -1 27 | ciMethodData java/lang/Object ()V 2 15939 orig 264 72 50 115 81 0 0 0 0 104 4 13 20 0 0 0 0 32 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 25 226 1 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 1 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0 28 | ciMethod java/lang/IllegalArgumentException (Ljava/lang/String;)V 0 0 1 0 -1 29 | ciMethodData java/lang/String charAt (I)C 2 6161 orig 264 72 50 115 81 0 0 0 0 240 59 13 20 0 0 0 0 120 1 0 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 137 176 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 8 0 2 0 0 0 80 0 0 0 255 255 255 255 7 0 1 0 0 0 0 0 data 10 0x10007 0x0 0x40 0x1611 0xa0007 0x1611 0x30 0x0 0x120002 0x0 oops 0 30 | ciMethodData java/lang/String ([CII)V 2 2949 orig 264 72 50 115 81 0 0 0 0 120 48 13 20 0 0 0 0 80 2 0 0 208 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 70 1 0 0 249 81 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 14 0 2 0 0 0 240 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 30 0x10002 0xa3f 0x50007 0xa3f 0x30 0x0 0xd0002 0x0 0x120007 0xa30 0x70 0xf 0x160007 0xf 0x30 0x0 0x1e0002 0x0 0x250007 0x0 0x20 0xf 0x370007 0xa30 0x30 0x0 0x410002 0x0 0x4b0002 0xa30 oops 0 31 | ciMethodData java/lang/StringBuilder ()V 2 1113 orig 264 72 50 115 81 0 0 0 0 0 50 20 20 0 0 0 0 48 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 0 0 0 97 32 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 2 0 0 0 16 0 0 0 255 255 255 255 2 0 3 0 0 0 0 0 data 2 0x30002 0x40c oops 0 32 | ciMethodData java/lang/AbstractStringBuilder (I)V 2 2079 orig 264 72 50 115 81 0 0 0 0 128 247 19 20 0 0 0 0 56 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 78 0 0 0 137 62 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 2 0 0 0 16 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 2 0x10002 0x7d1 oops 0 33 | ciMethodData java/lang/StringBuilder append (Ljava/lang/String;)Ljava/lang/StringBuilder; 2 3518 orig 264 72 50 115 81 0 0 0 0 248 52 20 20 0 0 0 0 56 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 121 0 0 0 41 106 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 2 0 0 0 16 0 0 0 255 255 255 255 2 0 2 0 0 0 0 0 data 2 0x20002 0xd45 oops 0 34 | ciMethodData java/lang/AbstractStringBuilder append (Ljava/lang/String;)Ljava/lang/AbstractStringBuilder; 2 3736 orig 264 72 50 115 81 0 0 0 0 200 2 20 20 0 0 0 0 240 1 0 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 121 0 0 0 249 112 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 14 0 2 0 0 0 160 0 0 0 255 255 255 255 7 0 1 0 0 0 0 0 data 20 0x10007 0xe1f 0x30 0x0 0x50002 0x0 0xa0005 0x95 0x23496e0 0xd8a 0x0 0x0 0x150002 0xe1f 0x230005 0x95 0x23496e0 0xd8a 0x0 0x0 oops 2 -------------------------------------------------------------------------------- /TaxiSystem/replay_pid14932.log: -------------------------------------------------------------------------------- 1 | JvmtiExport can_access_local_variables 0 2 | JvmtiExport can_hotswap_or_post_breakpoint 0 3 | JvmtiExport can_post_on_exceptions 0 4 | # 125 ciObject found 5 | ciMethod java/lang/Character toLowerCase (I)I 4097 1 2858 0 -1 6 | ciMethod java/lang/Character toUpperCase (I)I 3185 1 426 0 -1 7 | ciMethod java/util/regex/Pattern flags ()I 1481 1 185 0 0 8 | ciMethod java/util/regex/Pattern has (I)Z 4097 1 57662 0 64 9 | ciMethod java/util/regex/Pattern bitsOrSingle (Ljava/util/regex/Pattern$BitClass;I)Ljava/util/regex/Pattern$CharProperty; 4097 1 5664 0 -1 10 | ciMethod java/util/regex/Pattern newSingle (I)Ljava/util/regex/Pattern$CharProperty; 97 1 124 0 -1 11 | ciMethod java/util/regex/Pattern$BitClass add (II)Ljava/util/regex/Pattern$BitClass; 4097 1 5735 0 0 12 | ciMethod java/util/regex/ASCII isAscii (I)Z 3233 1 9388 0 64 13 | ciMethod java/util/regex/ASCII isLower (I)Z 4097 1 5580 0 0 14 | ciMethod java/util/regex/ASCII isUpper (I)Z 4097 1 5580 0 0 15 | ciMethod java/util/regex/ASCII toLower (I)I 4097 1 5580 0 0 16 | ciMethod java/util/regex/ASCII toUpper (I)I 4097 1 5580 0 0 17 | ciMethodData java/util/regex/Pattern has (I)Z 2 57662 orig 264 72 50 115 81 0 0 0 0 80 103 206 20 0 0 0 0 96 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 241 249 6 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 6 0 2 0 0 0 56 0 0 0 255 255 255 255 7 0 6 0 0 0 0 0 data 7 0x60007 0xc99a 0x38 0x15a4 0xa0003 0x15a4 0x18 oops 0 18 | ciMethodData java/util/regex/ASCII isAscii (I)Z 2 9388 orig 264 72 50 115 81 0 0 0 0 232 58 216 20 0 0 0 0 88 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 148 1 0 0 193 24 1 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 6 0 2 0 0 0 56 0 0 0 255 255 255 255 7 0 4 0 0 0 0 0 data 7 0x40007 0x0 0x38 0x2318 0x80003 0x2318 0x18 oops 0 19 | ciMethodData java/util/regex/Pattern bitsOrSingle (Ljava/util/regex/Pattern$BitClass;I)Ljava/util/regex/Pattern$CharProperty; 2 5710 orig 264 72 50 115 81 0 0 0 0 128 130 206 20 0 0 0 0 136 3 0 0 240 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 73 162 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 39 0 2 0 0 0 48 2 0 0 255 255 255 255 7 0 4 0 0 0 0 0 data 70 0x40007 0x0 0x220 0x1449 0x90002 0x1449 0xc0007 0x8c 0x190 0x13bd 0x120002 0x13bd 0x150007 0x13bd 0x160 0x0 0x1c0007 0x0 0x1a0 0x0 0x230007 0x0 0x180 0x0 0x290007 0x0 0x160 0x0 0x2f0007 0x0 0x140 0x0 0x350007 0x0 0x120 0x0 0x3b0007 0x0 0x100 0x0 0x410007 0x0 0xe0 0x0 0x470007 0x0 0xc0 0x0 0x4e0007 0x0 0xa0 0x0 0x550007 0x0 0x80 0x0 0x5b0005 0x2b 0x16e55810 0x141e 0x0 0x0 0x5e0005 0x2b 0x16e55a40 0x141e 0x0 0x0 0x640002 0x0 oops 2 -------------------------------------------------------------------------------- /TaxiSystem/replay_pid15300.log: -------------------------------------------------------------------------------- 1 | JvmtiExport can_access_local_variables 0 2 | JvmtiExport can_hotswap_or_post_breakpoint 0 3 | JvmtiExport can_post_on_exceptions 0 4 | # 178 ciObject found 5 | ciMethod java/lang/Object ()V 4097 1 15805 0 -1 6 | ciMethod java/lang/String ([CII)V 2609 1 2976 0 -1 7 | ciMethod java/lang/String length ()I 4097 1 6632 0 -1 8 | ciMethod java/lang/String charAt (I)C 4097 1 6313 0 -1 9 | ciMethod java/lang/String equals (Ljava/lang/Object;)Z 3457 12281 2548 0 -1 10 | ciMethod java/lang/String regionMatches (ILjava/lang/String;II)Z 1017 1 127 0 -1 11 | ciMethod java/lang/System arraycopy (Ljava/lang/Object;ILjava/lang/Object;II)V 5121 1 640 0 -1 12 | ciMethod java/lang/StringBuffer ()V 3137 1 627 0 -1 13 | ciMethod java/lang/StringBuffer append (Ljava/lang/String;)Ljava/lang/StringBuffer; 1385 1 236 0 -1 14 | ciMethod java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 3513 1 1923 0 -1 15 | ciMethod java/lang/StringBuffer toString ()Ljava/lang/String; 281 1 1122 0 -1 16 | ciMethod java/lang/AbstractStringBuilder (I)V 625 1 2117 0 -1 17 | ciMethod java/lang/AbstractStringBuilder ensureCapacityInternal (I)V 2729 1 8189 0 -1 18 | ciMethod java/lang/AbstractStringBuilder newCapacity (I)I 841 1 947 0 -1 19 | ciMethod java/lang/AbstractStringBuilder append (Ljava/lang/String;)Ljava/lang/AbstractStringBuilder; 969 1 3794 0 -1 20 | ciMethod java/lang/AbstractStringBuilder append (C)Ljava/lang/AbstractStringBuilder; 2353 1 3890 0 -1 21 | ciMethod java/lang/StringBuilder ()V 617 1 1128 0 -1 22 | ciMethod java/lang/StringBuilder append (Ljava/lang/String;)Ljava/lang/StringBuilder; 969 1 3561 0 -1 23 | ciMethod java/lang/StringBuilder append (C)Ljava/lang/StringBuilder; 2257 1 1973 0 -1 24 | ciMethod java/lang/StringBuilder toString ()Ljava/lang/String; 617 1 1420 0 -1 25 | ciMethod java/lang/Math min (II)I 3961 1 8464 0 -1 26 | ciMethod java/util/Arrays copyOf ([CI)[C 1097 1 1038 0 -1 27 | ciMethodData java/lang/Object ()V 2 15807 orig 264 72 50 115 81 0 0 0 0 104 4 46 20 0 0 0 0 32 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 249 221 1 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 1 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0 28 | ciMethod java/lang/IllegalArgumentException (Ljava/lang/String;)V 0 0 1 0 -1 29 | ciMethodData java/lang/String charAt (I)C 2 6313 orig 264 72 50 115 81 0 0 0 0 240 59 46 20 0 0 0 0 120 1 0 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 73 181 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 8 0 2 0 0 0 80 0 0 0 255 255 255 255 7 0 1 0 0 0 0 0 data 10 0x10007 0x0 0x40 0x16a9 0xa0007 0x16a9 0x30 0x0 0x120002 0x0 oops 0 30 | ciMethodData java/lang/String ([CII)V 2 2976 orig 264 72 50 115 81 0 0 0 0 120 48 46 20 0 0 0 0 80 2 0 0 208 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 70 1 0 0 209 82 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 14 0 2 0 0 0 240 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 30 0x10002 0xa5a 0x50007 0xa5a 0x30 0x0 0xd0002 0x0 0x120007 0xa4b 0x70 0xf 0x160007 0xf 0x30 0x0 0x1e0002 0x0 0x250007 0x0 0x20 0xf 0x370007 0xa4b 0x30 0x0 0x410002 0x0 0x4b0002 0xa4b oops 0 31 | ciMethodData java/lang/StringBuilder ()V 2 1128 orig 264 72 50 115 81 0 0 0 0 0 50 53 20 0 0 0 0 48 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 0 0 0 217 32 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 2 0 0 0 16 0 0 0 255 255 255 255 2 0 3 0 0 0 0 0 data 2 0x30002 0x41b oops 0 32 | ciMethodData java/lang/AbstractStringBuilder (I)V 2 2117 orig 264 72 50 115 81 0 0 0 0 128 247 52 20 0 0 0 0 56 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 78 0 0 0 185 63 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 2 0 0 0 16 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 2 0x10002 0x7f7 oops 0 33 | ciMethodData java/lang/StringBuilder append (Ljava/lang/String;)Ljava/lang/StringBuilder; 2 3561 orig 264 72 50 115 81 0 0 0 0 248 52 53 20 0 0 0 0 56 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 121 0 0 0 129 107 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 2 0 0 0 16 0 0 0 255 255 255 255 2 0 2 0 0 0 0 0 data 2 0x20002 0xd70 oops 0 34 | ciMethodData java/lang/AbstractStringBuilder append (Ljava/lang/String;)Ljava/lang/AbstractStringBuilder; 2 3794 orig 264 72 50 115 81 0 0 0 0 200 2 53 20 0 0 0 0 240 1 0 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 121 0 0 0 201 114 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 14 0 2 0 0 0 160 0 0 0 255 255 255 255 7 0 1 0 0 0 0 0 data 20 0x10007 0xe59 0x30 0x0 0x50002 0x0 0xa0005 0x98 0x25796e0 0xdc1 0x0 0x0 0x150002 0xe59 0x230005 0x98 0x25796e0 0xdc1 0x0 0x0 oops 2 -------------------------------------------------------------------------------- /TaxiSystem/replay_pid7108.log: -------------------------------------------------------------------------------- 1 | JvmtiExport can_access_local_variables 0 2 | JvmtiExport can_hotswap_or_post_breakpoint 0 3 | JvmtiExport can_post_on_exceptions 0 4 | # 178 ciObject found 5 | ciMethod java/lang/Object ()V 4097 1 15797 0 -1 6 | ciMethod java/lang/String ([CII)V 2609 1 2952 0 -1 7 | ciMethod java/lang/String length ()I 4097 1 6575 0 -1 8 | ciMethod java/lang/String charAt (I)C 4097 1 6195 0 -1 9 | ciMethod java/lang/String equals (Ljava/lang/Object;)Z 3313 12281 2560 0 -1 10 | ciMethod java/lang/String regionMatches (ILjava/lang/String;II)Z 1009 1 126 0 -1 11 | ciMethod java/lang/System arraycopy (Ljava/lang/Object;ILjava/lang/Object;II)V 5121 1 640 0 -1 12 | ciMethod java/lang/StringBuffer ()V 3177 1 619 0 -1 13 | ciMethod java/lang/StringBuffer append (Ljava/lang/String;)Ljava/lang/StringBuffer; 1257 1 220 0 -1 14 | ciMethod java/lang/StringBuffer append (C)Ljava/lang/StringBuffer; 4097 1 1921 0 -1 15 | ciMethod java/lang/StringBuffer toString ()Ljava/lang/String; 281 1 1109 0 -1 16 | ciMethod java/lang/AbstractStringBuilder (I)V 625 1 2085 0 -1 17 | ciMethod java/lang/AbstractStringBuilder ensureCapacityInternal (I)V 2729 1 8131 0 -1 18 | ciMethod java/lang/AbstractStringBuilder newCapacity (I)I 841 1 929 0 -1 19 | ciMethod java/lang/AbstractStringBuilder append (Ljava/lang/String;)Ljava/lang/AbstractStringBuilder; 969 1 3738 0 -1 20 | ciMethod java/lang/AbstractStringBuilder append (C)Ljava/lang/AbstractStringBuilder; 3185 1 3886 0 -1 21 | ciMethod java/lang/StringBuilder ()V 617 1 1114 0 -1 22 | ciMethod java/lang/StringBuilder append (Ljava/lang/String;)Ljava/lang/StringBuilder; 969 1 3521 0 -1 23 | ciMethod java/lang/StringBuilder append (C)Ljava/lang/StringBuilder; 3129 1 1970 0 -1 24 | ciMethod java/lang/StringBuilder toString ()Ljava/lang/String; 617 1 1404 0 -1 25 | ciMethod java/lang/Math min (II)I 3961 1 8185 0 -1 26 | ciMethod java/util/Arrays copyOf ([CI)[C 1097 1 1005 0 -1 27 | ciMethodData java/lang/Object ()V 2 15798 orig 264 72 50 115 81 0 0 0 0 104 4 173 20 0 0 0 0 32 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 177 221 1 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 1 0 0 0 0 0 0 0 255 255 255 255 0 0 0 0 0 0 0 0 data 0 oops 0 28 | ciMethod java/lang/IllegalArgumentException (Ljava/lang/String;)V 0 0 1 0 -1 29 | ciMethodData java/lang/String charAt (I)C 2 6195 orig 264 72 50 115 81 0 0 0 0 240 59 173 20 0 0 0 0 120 1 0 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 153 177 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 8 0 2 0 0 0 80 0 0 0 255 255 255 255 7 0 1 0 0 0 0 0 data 10 0x10007 0x0 0x40 0x1633 0xa0007 0x1633 0x30 0x0 0x120002 0x0 oops 0 30 | ciMethodData java/lang/String ([CII)V 2 2952 orig 264 72 50 115 81 0 0 0 0 120 48 173 20 0 0 0 0 80 2 0 0 208 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 70 1 0 0 17 82 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 14 0 2 0 0 0 240 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 30 0x10002 0xa42 0x50007 0xa42 0x30 0x0 0xd0002 0x0 0x120007 0xa33 0x70 0xf 0x160007 0xf 0x30 0x0 0x1e0002 0x0 0x250007 0x0 0x20 0xf 0x370007 0xa33 0x30 0x0 0x410002 0x0 0x4b0002 0xa33 oops 0 31 | ciMethodData java/lang/StringBuilder ()V 2 1114 orig 264 72 50 115 81 0 0 0 0 0 50 180 20 0 0 0 0 48 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 0 0 0 105 32 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 2 0 0 0 16 0 0 0 255 255 255 255 2 0 3 0 0 0 0 0 data 2 0x30002 0x40d oops 0 32 | ciMethodData java/lang/AbstractStringBuilder (I)V 2 2085 orig 264 72 50 115 81 0 0 0 0 128 247 179 20 0 0 0 0 56 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 78 0 0 0 185 62 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 2 0 0 0 16 0 0 0 255 255 255 255 2 0 1 0 0 0 0 0 data 2 0x10002 0x7d7 oops 0 33 | ciMethodData java/lang/StringBuilder append (Ljava/lang/String;)Ljava/lang/StringBuilder; 2 3521 orig 264 72 50 115 81 0 0 0 0 248 52 180 20 0 0 0 0 56 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 121 0 0 0 65 106 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 3 0 2 0 0 0 16 0 0 0 255 255 255 255 2 0 2 0 0 0 0 0 data 2 0x20002 0xd48 oops 0 34 | ciMethodData java/lang/AbstractStringBuilder append (Ljava/lang/String;)Ljava/lang/AbstractStringBuilder; 2 3738 orig 264 72 50 115 81 0 0 0 0 200 2 180 20 0 0 0 0 240 1 0 0 32 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 77 68 79 32 101 120 116 114 97 32 100 97 116 97 32 108 111 99 107 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 121 0 0 0 9 113 0 0 1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 14 0 2 0 0 0 160 0 0 0 255 255 255 255 7 0 1 0 0 0 0 0 data 20 0x10007 0xe21 0x30 0x0 0x50002 0x0 0xa0005 0x9b 0x2d696e0 0xd86 0x0 0x0 0x150002 0xe21 0x230005 0x9b 0x2d696e0 0xd86 0x0 0x0 oops 2 -------------------------------------------------------------------------------- /TaxiSystem/src/taxi/data/Display.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LEOKA037/Java-Projects/059e8da5363af6cfe05a33bdaed9a1c34606494c/TaxiSystem/src/taxi/data/Display.java -------------------------------------------------------------------------------- /TaxiSystem/src/taxi/data/JourneyData.java: -------------------------------------------------------------------------------- 1 | package taxi.data; 2 | 3 | import java.util.Scanner; 4 | 5 | import taxi.main.TaxiReservation; 6 | 7 | public class JourneyData { 8 | public static Scanner scanner; 9 | 10 | public JourneyData() { 11 | 12 | } 13 | 14 | public static String[] main(byte choice) throws Throwable { 15 | 16 | scanner = new Scanner(System.in); 17 | TaxiReservation Main= new TaxiReservation(); 18 | 19 | String details[] = new String[5]; 20 | String Date = null; 21 | String Time = null; 22 | String ToTime = null; 23 | String FromTime = null; 24 | int error=0; 25 | 26 | int checkTime = 0,checkToTime = 0,checkFromTime = 0,checkDate = 0; 27 | 28 | if(error==0) 29 | { 30 | // get date 31 | taxi.data.Display.main(0); 32 | taxi.data.Display.main(9); 33 | try 34 | { 35 | Date = scanner.nextLine(); 36 | checkDate=Main.isValidDate(Date); 37 | } 38 | catch (Exception e) 39 | { 40 | error++; 41 | taxi.data.Display.main(11); 42 | 43 | } 44 | } 45 | // get Time 46 | if(error==0) 47 | { 48 | taxi.data.Display.main(10); 49 | try 50 | { 51 | Time = scanner.nextLine(); 52 | checkTime=Main.isValidTime(Time); 53 | } 54 | catch (Exception e) 55 | { 56 | error++; 57 | taxi.data.Display.main(11); 58 | } 59 | } 60 | 61 | // get FromTime 62 | if(error==0) 63 | { 64 | taxi.data.Display.main(12); 65 | try 66 | { 67 | FromTime = scanner.nextLine(); 68 | checkFromTime=Main.isValidTime(FromTime); 69 | } 70 | catch (Exception e) 71 | { 72 | error++; 73 | taxi.data.Display.main(11); 74 | 75 | } 76 | 77 | } 78 | // get ToTime 79 | if(error==0) 80 | { 81 | taxi.data.Display.main(13); 82 | try 83 | { 84 | ToTime = scanner.nextLine(); 85 | checkToTime=Main.isValidTime(ToTime); 86 | } 87 | catch (Exception e) 88 | { 89 | error++; 90 | taxi.data.Display.main(11); 91 | } 92 | } 93 | 94 | details[1]=Date; 95 | details[2]=Time; 96 | details[3]=FromTime; 97 | details[4]=ToTime; 98 | 99 | int sum=checkTime+checkToTime+checkFromTime+checkDate; 100 | 101 | if(sum==4) 102 | { 103 | return details; 104 | } 105 | 106 | else 107 | { 108 | return null; 109 | } 110 | 111 | } 112 | 113 | } 114 | -------------------------------------------------------------------------------- /TaxiSystem/src/taxi/data/Logger.java: -------------------------------------------------------------------------------- 1 | package taxi.data; 2 | import java.io.BufferedWriter; 3 | import java.io.FileWriter; 4 | import java.io.IOException; 5 | import java.text.DateFormat; 6 | import java.text.SimpleDateFormat; 7 | import java.util.Date; 8 | import java.util.LinkedList; 9 | 10 | import taxi.main.TaxiReservation; 11 | import taxi.util.Reservationlist; 12 | 13 | public class Logger { 14 | 15 | public static void main(String[] args) 16 | { 17 | TaxiReservation Main= new TaxiReservation(); 18 | LinkedList l1=Main.getConfigFile(null); 19 | 20 | LinkedList reservedlist = Reservationlist.getreserved(); 21 | LinkedList cancelledlist = Reservationlist.getcancelled(); 22 | 23 | DateFormat df = new SimpleDateFormat("dd/MM/yyyy, hh:mm"); 24 | DateFormat df1 = new SimpleDateFormat("ddMMyyyyhhmm"); 25 | Date currentDate = new Date(); 26 | String today = df.format(currentDate); 27 | String today1= df1.format(currentDate); 28 | 29 | BufferedWriter bw = null; 30 | FileWriter fw = null; 31 | 32 | //log file path 33 | String FILENAME = l1.get(1)+today1+".txt"; 34 | 35 | // Log Header 36 | try { 37 | 38 | String content ="\t Application Log \r\nDate and Time: "+today+"\r\n"; 39 | fw = new FileWriter(FILENAME,true); 40 | bw = new BufferedWriter(fw); 41 | bw.write(content); 42 | 43 | 44 | } 45 | catch (IOException e) { 46 | 47 | e.printStackTrace(); 48 | 49 | } finally { 50 | 51 | try { 52 | 53 | if (bw != null) 54 | bw.close(); 55 | 56 | if (fw != null) 57 | fw.close(); 58 | 59 | } catch (IOException ex) { 60 | 61 | ex.printStackTrace(); 62 | 63 | } 64 | } 65 | 66 | //Reservation Log 67 | 68 | int Rsize =reservedlist.size(); 69 | 70 | for(int i=0;i main(String[] ags) 12 | { 13 | 14 | TaxiReservation Main= new TaxiReservation(); 15 | LinkedList l1=Main.getConfigFile(null); 16 | 17 | LinkedList ll = new LinkedList(); 18 | 19 | //Path of the Information File 20 | String FILENAME = l1.get(0)+".txt"; 21 | 22 | try (BufferedReader br = new BufferedReader(new FileReader(FILENAME))) 23 | { 24 | 25 | String sCurrentLine; 26 | 27 | while ((sCurrentLine = br.readLine()) != null) 28 | { 29 | ll.add(sCurrentLine); 30 | } 31 | 32 | 33 | } catch (IOException e) { 34 | e.printStackTrace(); 35 | } 36 | 37 | return ll; 38 | 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /TaxiSystem/src/taxi/main/Booking.java: -------------------------------------------------------------------------------- 1 | package taxi.main; 2 | 3 | import java.util.Scanner; 4 | 5 | public class Booking extends TaxiReservation{ 6 | 7 | byte choice; 8 | 9 | public void main(String[] args) throws Throwable 10 | { 11 | TaxiReservation MainMenu= new TaxiReservation(); 12 | scanner = new Scanner(System.in); 13 | 14 | taxi.data.Display.main(0); 15 | taxi.data.Display.main(2); 16 | taxi.data.Display.main(7); 17 | 18 | try { 19 | choice=scanner.nextByte(); 20 | } 21 | catch (Exception e) 22 | { 23 | 24 | } 25 | 26 | 27 | if (choice==9) 28 | { 29 | MainMenu.main(null); 30 | } 31 | 32 | else if (choice<1||choice>6) 33 | { 34 | taxi.data.Display.main(0); 35 | taxi.data.Display.main(5); 36 | taxi.data.Display.main(6); 37 | } 38 | else if (choice==6) 39 | { 40 | taxi.data.Display.main(0); 41 | taxi.data.Display.main(4); 42 | taxi.data.Display.main(6); 43 | } 44 | else 45 | { 46 | taxi.util.Bookcab.main(choice); 47 | } 48 | } 49 | 50 | 51 | } 52 | -------------------------------------------------------------------------------- /TaxiSystem/src/taxi/main/Cancellation.java: -------------------------------------------------------------------------------- 1 | package taxi.main; 2 | 3 | import java.util.LinkedList; 4 | import java.util.Scanner; 5 | import java.util.regex.Matcher; 6 | import java.util.regex.Pattern; 7 | import taxi.util.Reservationlist; 8 | 9 | public class Cancellation { 10 | public static Scanner scanner; 11 | 12 | //method to check reservation number in reserved list 13 | String reservationnumbercheck(String ReservationNumber1) 14 | { 15 | LinkedList reservedlist = Reservationlist.getreserved(); 16 | 17 | String ReservationNumber = null ; 18 | String Reserveddetail="CAR"; 19 | int counter=0; 20 | int size =reservedlist.size(); 21 | 22 | for(int i=1;i availablelist= new LinkedList(); 15 | 16 | //method to check the validity of the date 17 | public int isValidDate(String DateTime) { 18 | 19 | SimpleDateFormat format = new java.text.SimpleDateFormat("YYYY-MM-DD"); 20 | int Month = Integer.parseInt(DateTime.substring(5,7)); 21 | int Date = Integer.parseInt(DateTime.substring(8,10)); 22 | 23 | try 24 | { 25 | format.parse(DateTime); 26 | 27 | if(Month>12||Date>31) 28 | { 29 | return 0; 30 | } 31 | else{ 32 | return 1; 33 | } 34 | 35 | 36 | } 37 | catch (ParseException e) { 38 | 39 | return 0; 40 | } 41 | } 42 | 43 | //method to check the validity of the time 44 | public int isValidTime(String Time) 45 | { 46 | 47 | SimpleDateFormat format = new java.text.SimpleDateFormat("HH-mm-ss"); 48 | String Timestamp=Time; 49 | int Hour = Integer.parseInt(Time.substring(0,2)); 50 | int Minute = Integer.parseInt(Time.substring(3,5)); 51 | int Seconds = Integer.parseInt(Time.substring(6,7)); 52 | 53 | try{ 54 | format.parse(Timestamp); 55 | if(Hour<=24 && Minute<=60 && Seconds <=60) 56 | { 57 | return 1; 58 | } 59 | else 60 | { 61 | return 0; 62 | } 63 | } 64 | catch(ParseException e) 65 | { 66 | return 0; 67 | } 68 | } 69 | 70 | //method to externalise the string constants 71 | public LinkedList getConfigFile(String[] ags) 72 | { 73 | //Path of the Information File 74 | String workingDir = System.getProperty("user.dir"); 75 | String FILENAME = workingDir+"\\data\\config.txt"; 76 | 77 | LinkedList ll = new LinkedList(); 78 | 79 | try (BufferedReader br = new BufferedReader(new FileReader(FILENAME))) 80 | { 81 | 82 | String sCurrentLine; 83 | 84 | while ((sCurrentLine = br.readLine()) != null) 85 | { 86 | //get the path 87 | ll.add(workingDir+"\\data\\"+sCurrentLine); 88 | } 89 | 90 | 91 | } catch (IOException e) { 92 | e.printStackTrace(); 93 | } 94 | 95 | return ll; 96 | 97 | } 98 | 99 | public void main(String[] args) throws Throwable 100 | { 101 | Cancellation Cancel = new Cancellation(); 102 | Booking Book = new Booking(); 103 | 104 | availablelist= taxi.data.VehicleInfo.main(null); 105 | 106 | scanner = new Scanner(System.in); 107 | 108 | byte choice=0; 109 | 110 | //Main Menu 111 | taxi.data.Display.main(0); 112 | taxi.data.Display.main(1); 113 | 114 | try { 115 | //accepts the choice from user 116 | choice=scanner.nextByte(); 117 | } catch (Exception e) 118 | { 119 | taxi.data.Display.main(0); 120 | taxi.data.Display.main(5); 121 | taxi.data.Display.main(6); 122 | } 123 | 124 | switch (choice) 125 | { 126 | case 1 : 127 | { 128 | Book.main(null); 129 | break; 130 | } 131 | 132 | case 2 : 133 | { 134 | Cancel.main(null); 135 | break; 136 | } 137 | 138 | case 3 : 139 | { 140 | taxi.data.Display.main(0); 141 | taxi.data.Display.main(4); 142 | taxi.data.Display.main(6); 143 | break; 144 | } 145 | default: 146 | { 147 | taxi.data.Display.main(0); 148 | taxi.data.Display.main(5); 149 | taxi.data.Display.main(6); 150 | break; 151 | } 152 | } 153 | 154 | } 155 | 156 | } 157 | -------------------------------------------------------------------------------- /TaxiSystem/src/taxi/util/Bookcab.java: -------------------------------------------------------------------------------- 1 | package taxi.util; 2 | import java.text.DateFormat; 3 | import java.text.SimpleDateFormat; 4 | import java.util.Calendar; 5 | import java.util.Date; 6 | import taxi.main.Booking; 7 | 8 | public class Bookcab extends Booking { 9 | 10 | //method to get car type 11 | String getcabtype(byte choice) { 12 | String Type="CAR"; 13 | 14 | if(choice==1) 15 | { 16 | Type="Hatchback"; 17 | } 18 | 19 | else if(choice==2) 20 | { 21 | Type="SEDAN"; 22 | } 23 | else if(choice==3) 24 | { 25 | Type="Luxury"; 26 | } 27 | else if(choice==4) 28 | { 29 | Type="Innova"; 30 | } 31 | else if(choice==5) 32 | { 33 | Type="Tavera"; 34 | } 35 | return Type; 36 | } 37 | 38 | //method to get minimum journey date 39 | String getjourneydate(String[] args) { 40 | 41 | DateFormat dateFormat = new SimpleDateFormat("YYYY-MM-DD"); 42 | 43 | Date currentDate = new Date(); 44 | 45 | Calendar c = Calendar.getInstance(); 46 | c.setTime(currentDate); 47 | 48 | c.add(Calendar.DATE, 7); 49 | 50 | Date currentDatePlusOne = c.getTime(); 51 | String reportDate = dateFormat.format(currentDatePlusOne); 52 | 53 | return reportDate; 54 | } 55 | 56 | public static void main(byte choice) throws Throwable 57 | { 58 | Bookcab bookcab= new Bookcab(); 59 | String Type=bookcab.getcabtype(choice); 60 | 61 | 62 | String[] details = taxi.data.JourneyData.main(choice); 63 | 64 | if(details!=null) 65 | { 66 | 67 | String date=details[1]; 68 | String mindate1 = bookcab.getjourneydate(null); 69 | 70 | if((date.compareTo(mindate1))>=1) 71 | { 72 | taxi.util.ReservationUtil.main(details, Type); 73 | } 74 | else 75 | { 76 | taxi.data.Display.main(19); 77 | } 78 | } 79 | else 80 | { 81 | taxi.data.Display.main(11); 82 | } 83 | 84 | } 85 | 86 | } 87 | -------------------------------------------------------------------------------- /TaxiSystem/src/taxi/util/ReservationUtil.java: -------------------------------------------------------------------------------- 1 | package taxi.util; 2 | import java.util.LinkedList; 3 | 4 | public class ReservationUtil extends Bookcab { 5 | 6 | //method to compare date 7 | int comparedate(String AvailableFrom,String AvailableTo,String Date) 8 | { 9 | if(AvailableFrom.compareTo(Date) <=0 && AvailableTo.compareTo(Date) >=0) 10 | { 11 | return 1; 12 | } 13 | else 14 | return 0; 15 | } 16 | 17 | //method to compare time 18 | int comparetime(String Time1,String Time2) 19 | { 20 | //greater will return 1 Time1 greater than Time 2 21 | String Time01 = Time1.replace("-", ""); 22 | String Time02 = Time2.replace("-", ""); 23 | 24 | int Hour1 = Integer.parseInt(Time01.substring(0,2)); 25 | int Minute1 = Integer.parseInt(Time01.substring(2,4)); 26 | int Hour2 = Integer.parseInt(Time02.substring(0,2)); 27 | int Minute2 = Integer.parseInt(Time02.substring(2,4)); 28 | 29 | if(Hour1>Hour2) 30 | { 31 | return 1 ; 32 | } 33 | else if (Hour1==Hour2) 34 | { 35 | if(Minute1>=Minute2) 36 | { 37 | return 1; 38 | } 39 | else if(Minute1==Minute2) 40 | { 41 | return 0; 42 | } 43 | else 44 | return 0; 45 | } 46 | else 47 | return 0; 48 | 49 | 50 | } 51 | 52 | //method to get the cab code 53 | String getCabtypecode(String Type) 54 | { 55 | String Type1="CAR"; 56 | 57 | if(Type=="Hatchback") 58 | { 59 | Type1="HB"; 60 | } 61 | 62 | else if(Type=="SEDAN") 63 | { 64 | Type1="SD"; 65 | } 66 | else if(Type=="Luxury") 67 | { 68 | Type1="LX"; 69 | } 70 | else if(Type=="Innova") 71 | { 72 | Type1="IN"; 73 | } 74 | else if(Type=="Tavera") 75 | { 76 | Type1="TV"; 77 | } 78 | 79 | return Type1; 80 | } 81 | 82 | //method to check the reserved list 83 | int checkreservedlist(String CabNumber,String Date) 84 | { 85 | LinkedList reservedlist = Reservationlist.getreserved(); 86 | 87 | int size =reservedlist.size(); 88 | int c=0; 89 | 90 | for(int i=1;i reservedlist = Reservationlist.getreservedlist(); 122 | 123 | int size =reservedlist.size(); 124 | int c=0; 125 | 126 | for(int i=0;i reservedlist = Reservationlist.getreserved(); 222 | 223 | String reserveddetails[] = new String[8]; 224 | reserveddetails[1]=null; 225 | reserveddetails[2]=null; 226 | reserveddetails[3]=null; 227 | reserveddetails[4]=null; 228 | reserveddetails[5]=null; 229 | reserveddetails[6]=null; 230 | reserveddetails[7]=null; 231 | 232 | String Type=checkcab.getCabtypecode(Type1); 233 | 234 | int size =availablelist.size(); 235 | 236 | for(int i=0;iFromTime return 1 256 | int check04 = checkcab.comparetime(DailyToTime,ToTime); // DailyToTime>ToTime return 1 257 | int check05 = checkcab.comparetime(FromTime,ToTime); // FromTime < ToTime return 0 258 | int check06 = checkcab.comparedate(AvailableFrom, AvailableTo, Date); // return 1 259 | int check07 = CarType.compareTo(Type1); 260 | int check08 = checkcab.checkreservedlist(VehicleNumber,Date); 261 | int check = 1; 262 | 263 | if(DailyFromTime.compareTo((FromTime.replace("-", "")).substring(0,4))==0) 264 | { 265 | check01=0; 266 | } 267 | 268 | if(check01==0 && check02==0 && check03==1 && check04==1 && check05==0 && check06==1 && check07==0) 269 | { 270 | if (check08!=0) 271 | { 272 | reserveddetails[1]=VehicleNumber; 273 | reserveddetails[2]=Type; 274 | reserveddetails[3]=Date; 275 | reserveddetails[4]=Time; 276 | reserveddetails[6]=FromTime; 277 | reserveddetails[7]=ToTime; 278 | 279 | check=checkcab.checkavailableslots(reserveddetails); 280 | } 281 | } 282 | if(check==0){ 283 | check08=0; 284 | } 285 | 286 | 287 | //Reservering the Available Cab 288 | if((check01==0) && (check02==0) && (check03==1) && (check04==1) && check05==0 && check06==1 && check07==0 && check08==0) 289 | { 290 | //reservation details 291 | reserveddetails[1]=VehicleNumber; 292 | reserveddetails[2]=Type; 293 | reserveddetails[3]=Date; 294 | reserveddetails[4]=Time; 295 | reserveddetails[6]=FromTime; 296 | reserveddetails[7]=ToTime; 297 | 298 | // adding the reserved details to reservedlist 299 | Reservationlist.setreserved(reserveddetails); 300 | Reservationlist.setreservedlist(reserveddetails); 301 | 302 | String Reservation=(String) reservedlist.get(reservedlist.size()-1); 303 | 304 | reserveddetails[5]=Reservation.substring(0,23); //Reservation number 305 | 306 | 307 | // taxi.data.print the details of confirmed cab 308 | taxi.data.Display.main(15,reserveddetails); 309 | counter++; 310 | break; 311 | } 312 | else 313 | { 314 | continue; 315 | } 316 | } 317 | if(counter==0) 318 | { 319 | reserveddetails[2]=Type; 320 | reserveddetails[3]=Date; 321 | reserveddetails[4]=Time; 322 | taxi.data.Display.main(16,reserveddetails); 323 | } 324 | } 325 | } -------------------------------------------------------------------------------- /TaxiSystem/src/taxi/util/Reservationlist.java: -------------------------------------------------------------------------------- 1 | package taxi.util; 2 | 3 | import java.util.LinkedList; 4 | 5 | public class Reservationlist { 6 | 7 | private static LinkedList reserved = new LinkedList(); 8 | private static LinkedList reservedlist = new LinkedList(); 9 | private static LinkedList cancelled = new LinkedList(); 10 | 11 | public Reservationlist() { 12 | } 13 | 14 | public static void main(String[] args) 15 | { 16 | reserved.add("\tReservation Details \n"); 17 | cancelled.add("\r\n\tCancellation Details \n"); 18 | } 19 | 20 | public static LinkedList getreserved() { 21 | return reserved; 22 | } 23 | 24 | public static void setreserved(String[] reserveddetails) 25 | { 26 | int Seq=reserved.size()+1000001; 27 | String Sequence = Integer.toString(Seq); 28 | 29 | String VehicleNumber=reserveddetails[1]; 30 | String Type=reserveddetails[2]; 31 | String Date=reserveddetails[3].replace("-", ""); 32 | String Time=reserveddetails[6].replace("-", ""); 33 | 34 | //ReservationNumber 35 | String ReservationNumber = Sequence+Type+Date+Time+":"+VehicleNumber; 36 | 37 | reserved.add(ReservationNumber); 38 | } 39 | 40 | 41 | public static LinkedList getreservedlist() { 42 | return reservedlist; 43 | } 44 | 45 | public static void setreservedlist(String[] reserveddetails) 46 | { 47 | String VehicleNumber=reserveddetails[1]; 48 | String Date=reserveddetails[3].replace("-", ""); 49 | String FromTime=reserveddetails[6].replace("-", ""); 50 | String ToTime=reserveddetails[7].replace("-", ""); 51 | 52 | //ReservationNumber 53 | String details = VehicleNumber+Date+FromTime+ToTime; 54 | 55 | reservedlist.add(details); 56 | } 57 | 58 | 59 | public static LinkedList getcancelled() { 60 | return cancelled; 61 | } 62 | 63 | public static void setcancelled(String cancelleddetails) { 64 | cancelled.add(cancelleddetails); 65 | } 66 | 67 | } 68 | --------------------------------------------------------------------------------