Incluir consulta con LETF JOIN

This commit is contained in:
Isidoro Nevares Martín 2025-11-28 13:36:49 +01:00
parent 8f0db0690f
commit 2894f9e3a8
2 changed files with 274 additions and 1 deletions

264
hs_err_pid13520.log Normal file
View File

@ -0,0 +1,264 @@
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 264241152 bytes. Error detail: G1 virtual space
# Possible reasons:
# The system is out of physical RAM or swap space
# This process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# JVM is running with Zero Based Compressed Oops mode in which the Java heap is
# placed in the first 32GB address space. The Java Heap base address is the
# maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
# to set the Java Heap base and to place the Java Heap above 32GB virtual address.
# This output file may be truncated or incomplete.
#
# Out of Memory Error (os_windows.cpp:3554), pid=13520, tid=12492
#
# JRE version: (25.0+37) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25+37-LTS-3491, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
--------------- S U M M A R Y ------------
Command Line: -Dfile.encoding=UTF-8 -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8 -XX:+ShowCodeDetailsInExceptionMessages eu.esa.gemis.AplicacionAgenciaESA
Host: Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz, 8 cores, 15G, Windows 11 , 64 bit Build 26100 (10.0.26100.7019)
Time: Fri Nov 28 13:27:58 2025 Hora estándar romance elapsed time: 0.014071 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x0000021afb1a1b30): JavaThread "Unknown thread" [_thread_in_vm, id=12492, stack(0x000000b85d900000,0x000000b85da00000) (1024K)]
Stack: [0x000000b85d900000,0x000000b85da00000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x7a6a39] (no source info available)
V [jvm.dll+0x7727ed] (no source info available)
V [jvm.dll+0x965f33] (no source info available)
V [jvm.dll+0x968531] (no source info available)
V [jvm.dll+0x968c33] (no source info available)
V [jvm.dll+0x2fc756] (no source info available)
V [jvm.dll+0x7a2c65] (no source info available)
V [jvm.dll+0x796077] (no source info available)
V [jvm.dll+0x3f4698] (no source info available)
V [jvm.dll+0x3fc5b6] (no source info available)
V [jvm.dll+0x3e8c8e] (no source info available)
V [jvm.dll+0x3e8f48] (no source info available)
V [jvm.dll+0x3c0045] (no source info available)
V [jvm.dll+0x3c0cce] (no source info available)
V [jvm.dll+0x92c647] (no source info available)
V [jvm.dll+0x458b62] (no source info available)
V [jvm.dll+0x90fff2] (no source info available)
V [jvm.dll+0x4f9001] (no source info available)
V [jvm.dll+0x4fa891] (no source info available)
C [jli.dll+0x543e] (no source info available)
C [ucrtbase.dll+0x37b0] (no source info available)
C [KERNEL32.DLL+0x2e8d7] (no source info available)
C [ntdll.dll+0x8c53c] (no source info available)
Lock stack of current Java thread (top to bottom):
--------------- P R O C E S S ---------------
Threads class SMR info:
_java_thread_list=0x00007ff9875a5308, length=0, elements={
}
Java Threads: ( => current thread )
Total: 0
Other Threads:
0x0000021afb7b6250 WorkerThread "GC Thread#0" [id=956, stack(0x000000b85da00000,0x000000b85db00000) (1024K)]
0x0000021afb80e7c0 ConcurrentGCThread "G1 Main Marker" [id=5516, stack(0x000000b85db00000,0x000000b85dc00000) (1024K)]
0x0000021afe9d0480 WorkerThread "G1 Conc#0" [id=12128, stack(0x000000b85dc00000,0x000000b85dd00000) (1024K)]
[error occurred during error reporting (printing all threads), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff986c84c2a]
VM state: not at safepoint (not fully initialized)
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x00007ff987629628] Heap_lock - owner thread: 0x0000021afb1a1b30
Heap address: 0x0000000705200000, size: 4014 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
CDS archive(s) mapped at: [0x0000000000000000-0x0000000000000000-0x0000000000000000), size 0, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 1.
UseCompressedClassPointers 1, UseCompactObjectHeaders 0
Narrow klass pointer bits 32, Max shift 3
Narrow klass base: 0xffffffffffffffff, Narrow klass shift: -1
Encoding Range: [0xffffffffffffffff - 0x000000007fffffff), (2147483648 bytes)
Klass Range: [0x0000000000000000 - 0x0000000000000000), (0 bytes)
Klass ID Range: [4294967295 - 0) (1)
No protection zone.
GC Precious Log:
CardTable entry size: 512
Card Set container configuration: InlinePtr #cards 4 size 8 Array Of Cards #cards 16 size 48 Howl #buckets 8 coarsen threshold 3686 Howl Bitmap #cards 512 size 80 coarsen threshold 460 Card regions per heap region 1 cards per card region 4096
Heap:
garbage-first heap total reserved 4110336K, committed 0K, used 0K [0x0000000705200000, 0x0000000800000000)
region size 2048K, 0 young (0K), 0 survivors (0K)
Heap Regions: E=young(eden), S=young(survivor), O=old, HS=humongous(starts), HC=humongous(continues), CS=collection set, F=free, TAMS=top-at-mark-start, PB=parsable bottom
Card table byte_map: [0x0000021afe160000,0x0000021afe940000] _byte_map_base: 0x0000021afa937000
Marking Bits: (CMBitMap*) 0x0000021afb7b69e0
Bits: [0x0000021a977c0000, 0x0000021a9b678000)
GC Heap Usage History (0 events):
No events
Metaspace Usage History (0 events):
No events
Dll operation events (1 events):
Event: 0.009 Loaded shared library C:\Program Files\Java\jdk-25\bin\java.dll
Deoptimization events (0 events):
No events
Classes loaded (0 events):
No events
Classes unloaded (0 events):
No events
Classes redefined (0 events):
No events
Internal exceptions (0 events):
No events
VM Operations (0 events):
No events
Memory protections (0 events):
No events
Nmethod flushes (0 events):
No events
Events (0 events):
No events
Dynamic libraries:
0x00007ff6b5900000 - 0x00007ff6b5910000 C:\Program Files\Java\jdk-25\bin\javaw.exe
0x00007ff9ee100000 - 0x00007ff9ee368000 C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ff9ed1d0000 - 0x00007ff9ed299000 C:\WINDOWS\System32\KERNEL32.DLL
0x00007ff9eb3a0000 - 0x00007ff9eb798000 C:\WINDOWS\System32\KERNELBASE.dll
0x00007ff9eb250000 - 0x00007ff9eb39b000 C:\WINDOWS\System32\ucrtbase.dll
0x00007ff9df900000 - 0x00007ff9df917000 C:\Program Files\Java\jdk-25\bin\jli.dll
0x00007ff9d6e20000 - 0x00007ff9d6e3e000 C:\Program Files\Java\jdk-25\bin\VCRUNTIME140.dll
0x00007ff9ed320000 - 0x00007ff9ed4e7000 C:\WINDOWS\System32\USER32.dll
0x00007ff9eb960000 - 0x00007ff9eb987000 C:\WINDOWS\System32\win32u.dll
0x00007ff9d1ee0000 - 0x00007ff9d2174000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.26100.7019_none_3e06ffa0e335b8a8\COMCTL32.dll
0x00007ff9ece60000 - 0x00007ff9ece8b000 C:\WINDOWS\System32\GDI32.dll
0x00007ff9ec650000 - 0x00007ff9ec6f9000 C:\WINDOWS\System32\msvcrt.dll
0x00007ff9eb830000 - 0x00007ff9eb95c000 C:\WINDOWS\System32\gdi32full.dll
0x00007ff9eb990000 - 0x00007ff9eba33000 C:\WINDOWS\System32\msvcp_win.dll
0x00007ff9ec600000 - 0x00007ff9ec631000 C:\WINDOWS\System32\IMM32.DLL
0x00007ff9e3130000 - 0x00007ff9e313c000 C:\Program Files\Java\jdk-25\bin\vcruntime140_1.dll
0x00007ff9c2fe0000 - 0x00007ff9c306d000 C:\Program Files\Java\jdk-25\bin\msvcp140.dll
0x00007ff9868b0000 - 0x00007ff98770f000 C:\Program Files\Java\jdk-25\bin\server\jvm.dll
0x00007ff9edec0000 - 0x00007ff9edf74000 C:\WINDOWS\System32\ADVAPI32.dll
0x00007ff9ed120000 - 0x00007ff9ed1c6000 C:\WINDOWS\System32\sechost.dll
0x00007ff9edd90000 - 0x00007ff9edea8000 C:\WINDOWS\System32\RPCRT4.dll
0x00007ff9edf80000 - 0x00007ff9edff4000 C:\WINDOWS\System32\WS2_32.dll
0x00007ff9eb0b0000 - 0x00007ff9eb10e000 C:\WINDOWS\SYSTEM32\POWRPROF.dll
0x00007ff9df820000 - 0x00007ff9df855000 C:\WINDOWS\SYSTEM32\WINMM.dll
0x00007ff9d9f10000 - 0x00007ff9d9f1b000 C:\WINDOWS\SYSTEM32\VERSION.dll
0x00007ff9eb090000 - 0x00007ff9eb0a4000 C:\WINDOWS\SYSTEM32\UMPDC.dll
0x00007ff9ea010000 - 0x00007ff9ea02b000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
0x00007ff9e2be0000 - 0x00007ff9e2bea000 C:\Program Files\Java\jdk-25\bin\jimage.dll
0x00007ff9e8a00000 - 0x00007ff9e8c42000 C:\WINDOWS\SYSTEM32\DBGHELP.DLL
0x00007ff9ebf20000 - 0x00007ff9ec2ab000 C:\WINDOWS\System32\combase.dll
0x00007ff9ed040000 - 0x00007ff9ed117000 C:\WINDOWS\System32\OLEAUT32.dll
0x00007ff9d4fa0000 - 0x00007ff9d4fdc000 C:\WINDOWS\SYSTEM32\dbgcore.DLL
0x00007ff9ebbc0000 - 0x00007ff9ebc65000 C:\WINDOWS\System32\bcryptPrimitives.dll
0x00007ff9d3ec0000 - 0x00007ff9d3edf000 C:\Program Files\Java\jdk-25\bin\java.dll
0x00007ff9ece90000 - 0x00007ff9ed027000 C:\WINDOWS\System32\ole32.dll
0x00007ff9ec700000 - 0x00007ff9ece4f000 C:\WINDOWS\System32\SHELL32.dll
0x00007ff9ebc70000 - 0x00007ff9ebddb000 C:\WINDOWS\System32\wintypes.dll
JVMTI agents: none
dbghelp: loaded successfully - version: 4.0.5 - missing functions: none
symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;C:\Program Files\Java\jdk-25\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.26100.7019_none_3e06ffa0e335b8a8;C:\Program Files\Java\jdk-25\bin\server
VM Arguments:
jvm_args: -Dfile.encoding=UTF-8 -Dstdout.encoding=UTF-8 -Dstderr.encoding=UTF-8 -XX:+ShowCodeDetailsInExceptionMessages
java_command: eu.esa.gemis.AplicacionAgenciaESA
java_class_path (initial): C:\Users\ineva\INM\Personal\Trabajo\00-Educación - CM\10-Curso 2025-2026\02-Acceso de datos -DAM2\workspace\AgenciaESA\target\classes;C:\Users\ineva\.m2\repository\com\mysql\mysql-connector-j\9.5.0\mysql-connector-j-9.5.0.jar;C:\Users\ineva\.m2\repository\com\google\protobuf\protobuf-java\4.31.1\protobuf-java-4.31.1.jar;C:\Users\ineva\.m2\repository\tools\jackson\dataformat\jackson-dataformat-xml\3.0.1\jackson-dataformat-xml-3.0.1.jar;C:\Users\ineva\.m2\repository\tools\jackson\core\jackson-core\3.0.1\jackson-core-3.0.1.jar;C:\Users\ineva\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.20\jackson-annotations-2.20.jar;C:\Users\ineva\.m2\repository\tools\jackson\core\jackson-databind\3.0.1\jackson-databind-3.0.1.jar;C:\Users\ineva\.m2\repository\org\codehaus\woodstox\stax2-api\4.2.2\stax2-api-4.2.2.jar;C:\Users\ineva\.m2\repository\com\fasterxml\woodstox\woodstox-core\7.1.1\woodstox-core-7.1.1.jar
Launcher Type: SUN_STANDARD
[Global flags]
intx CICompilerCount = 4 {product} {ergonomic}
uint ConcGCThreads = 2 {product} {ergonomic}
uint G1ConcRefinementThreads = 8 {product} {ergonomic}
size_t G1HeapRegionSize = 2097152 {product} {ergonomic}
size_t InitialHeapSize = 264241152 {product} {ergonomic}
size_t MarkStackSize = 4194304 {product} {ergonomic}
size_t MarkStackSizeMax = 536870912 {product} {ergonomic}
size_t MaxHeapSize = 4208984064 {product} {ergonomic}
size_t MinHeapDeltaBytes = 2097152 {product} {ergonomic}
size_t MinHeapSize = 8388608 {product} {ergonomic}
uintx NonNMethodCodeHeapSize = 5832704 {pd product} {ergonomic}
uintx NonProfiledCodeHeapSize = 122945536 {pd product} {ergonomic}
uintx ProfiledCodeHeapSize = 122880000 {pd product} {ergonomic}
uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic}
bool SegmentedCodeCache = true {product} {ergonomic}
bool ShowCodeDetailsInExceptionMessages = true {manageable} {command line}
size_t SoftMaxHeapSize = 4208984064 {manageable} {ergonomic}
bool UseCompressedOops = true {product lp64_product} {ergonomic}
bool UseG1GC = true {product} {ergonomic}
bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic}
Logging:
Log output configuration:
#0: stdout all=warning uptime,level,tags foldmultilines=false
#1: stderr all=off uptime,level,tags foldmultilines=false
Release file:
<release file has not been read>
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk-17.0.1
PATH=C:\Program Files\Python313\Scripts\;C:\Program Files\Python313\;C:\Program Files\Python311\Scripts\;C:\Program Files\Python311\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Program Files\Autofirma\Autofirma;C:\Users\ineva\AppData\Local\Microsoft\WindowsApps;C:\Users\ineva\AppData\Local\Programs\Microsoft VS Code\bin; C:\xampp\php;C:\Program Files\MongoDB\Server\5.0\bin;C:\Program Files\PostgreSQL\13\bin;C:\Tech\Gradle\gradle-7.2\bin;C:\Program Files\Java\jdk-17.0.1\bin;C:\Program Files\JetBrains\PyCharm Community Edition 2022.3.3\bin;;C:\msys64\clang64\bin;C:\Users\ineva\AppData\Local\Programs\oh-my-posh\bin;C:\Users\ineva\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg.Essentials_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.1.1-essentials_build/bin;C:\Users\ineva\AppData\Roaming\npm;C:\Users\ineva\AppData\Local\Programs\Antigravity\bin
USERNAME=ineva
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 126 Stepping 5, GenuineIntel
TMP=C:\Users\ineva\AppData\Local\Temp
TEMP=C:\Users\ineva\AppData\Local\Temp
Compilation memory statistics disabled.
Periodic native trim disabled
--------------- S Y S T E M ---------------
OS:
Windows 11 , 64 bit Build 26100 (10.0.26100.7019)
OS uptime: 9 days 4:17 hours
Hyper-V role detected
CPU: total 8 (initial active 8) (4 cores per cpu, 2 threads per core) family 6 model 126 stepping 5 microcode 0x86, cx8, cmov, fxsr, ht, mmx, 3dnowpref, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, lzcnt, tsc, tscinvbit, avx, avx2, aes, erms, clmul, bmi1, bmi2, adx, avx512f, avx512dq, avx512cd, avx512bw, avx512vl, sha, fma, vzeroupper, avx512_vpopcntdq, avx512_vpclmulqdq, avx512_vaes, avx512_vnni, clflush, clflushopt, avx512_vbmi2, avx512_vbmi, hv, rdtscp, rdpid, fsrm, gfni, avx512_bitalg, f16c, avx512_ifma
Processor Information for the first 8 processors :
Max Mhz: 1498, Current Mhz: 1298, Mhz Limit: 1288
Memory: 4k page, system-wide physical 16049M (1795M free)
TotalPageFile size 21156M (AvailPageFile size 197M)
current process WorkingSet (physical memory assigned to process): 14M, peak: 14M
current process commit charge ("private bytes"): 61M, peak: 313M
vm_info: Java HotSpot(TM) 64-Bit Server VM (25+37-LTS-3491) for windows-amd64 JRE (25+37-LTS-3491), built on 2025-08-14T21:13:00Z with unknown MS VC++:1943
END.

View File

@ -31,11 +31,20 @@ public class TripulanteDaoJDBC implements ITripulanteDAO {
List<Tripulante> listaTripulantes = null;
String sentenciaSQL = """
select *
select tt.numero_tripulante, tt.nombre, tt.apellidos, tt.identificador_esa,
tt.nivel_experiencia, tt.especialidad, tt.fecha_ingreso_esa
from T_TRIPULANTE tt
where tt.numero_tripulante not in (select ttm.num_tripulante
from T_TRIPULANTE_MISION ttm )
""";
/* Alternativa con LEFT JOIN y IS NULL
*
* SELECT t.numero_tripulante, t.nombre, t.apellidos, t.identificador_esa, t.nivel_experiencia, t.especialidad, t.fecha_ingreso_esa
* FROM T_TRIPULANTE t LEFT JOIN T_TRIPULANTE_MISION tm
* ON t.numero_tripulante = tm.num_tripulante
* WHERE tm.id_mision IS NULL
*/
// try con recursos "cerrables": Connection, Statement, ResultSet
try (Connection conexion = GestorConexionJDBC.obtenerConexion();
PreparedStatement pstm = conexion.prepareStatement(sentenciaSQL);) {