Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: java 8 syntax update #179

Merged
merged 4 commits into from
Feb 20, 2021

Conversation

hantsy
Copy link
Contributor

@hantsy hantsy commented Jan 31, 2021

Signed-off-by: Hantsy Bai [email protected]

@m-reza-rahman
Copy link
Contributor

I looked at the merged changes thus far. I think I need to do some minor refactoring and also do end-to-end regression testing. Looks like I need to update the documentation as well. After that, I hope to get some time to review this PR.

@m-reza-rahman
Copy link
Contributor

@hantsy, when I tried to test the already merged code, I found that the batch process is broken:


2021-02-07T20:54:00.037-0500|WARNING: Caught throwable in main execution loop with Throwable message: null, and stack trace: java.lang.NullPointerException
at com.ibm.jbatch.container.impl.BaseStepControllerImpl.updateBatchStatus(BaseStepControllerImpl.java:287)
at com.ibm.jbatch.container.impl.BaseStepControllerImpl.markStepFailed(BaseStepControllerImpl.java:243)
at com.ibm.jbatch.container.impl.BaseStepControllerImpl.markJobAndStepFailed(BaseStepControllerImpl.java:248)
at com.ibm.jbatch.container.impl.BaseStepControllerImpl.execute(BaseStepControllerImpl.java:133)
at com.ibm.jbatch.container.impl.ExecutionTransitioner.doExecutionLoop(ExecutionTransitioner.java:112)
at com.ibm.jbatch.container.impl.JobThreadRootControllerImpl.originateExecutionOnThread(JobThreadRootControllerImpl.java:110)
at com.ibm.jbatch.container.util.BatchWorkUnit.run(BatchWorkUnit.java:80)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.glassfish.enterprise.concurrent.internal.ManagedFutureTask.run(ManagedFutureTask.java:143)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
at org.glassfish.enterprise.concurrent.ManagedThreadFactoryImpl$ManagedThread.run(ManagedThreadFactoryImpl.java:250)


Are you encountering this? If not, what version of Payara are you running?

@m-reza-rahman
Copy link
Contributor

@hantsy, it looks like in the already merged code, there are several profiles intended for Arquillian. Thus far, I have not gotten any of these profiles to work. They all fail for various reasons. Is this expected? If it is not expected, are there missing instructions to get them running? Wasn't this previously working code at least for Payara 4 remote?

@hantsy
Copy link
Contributor Author

hantsy commented Feb 8, 2021 via email

@hantsy
Copy link
Contributor Author

hantsy commented Feb 8, 2021

when I tried to test the already merged code, I found that the batch process is broken:

@m-reza-rahman Every commit I have tried in my local system, it is running successfully.

mvn clean package cargo:run

or deploy to a running Payara server.

mvn clean package cargo:deploy -Ppayara-remote

@m-reza-rahman
Copy link
Contributor

@thadumi, could you kindly test the master branch and see if you are seeing the same issues? Perhaps these are environment specific issues? On the surface at least it appears I am using the same Payara version as @hantsy, so this is a bit strange.

@m-reza-rahman
Copy link
Contributor

I had a free moment in the morning so got the tests working again and also simplified the profiles back to the original intent - which was to have a profile for each supported application server, primarily for Arquillian (I don't think there is a need to have Cargo startup for each application server, it is just a way to simplify the default getting started experience). I have to say I don't quite understand the compelling use case for the other profiles, other than to simply demonstrate they are possible. Can you help me understand the desired use cases so we can properly re-add and document them?

I also still need help understanding why the batch process is failing. When I get time, I will test with other operating systems, JVM versions and Payara versions. Right now I am trying with Windows 10, Java SE 8 and Payara 5.2020.7. The file batch import was working fine with Java SE 7/Payara 4.

@hantsy
Copy link
Contributor Author

hantsy commented Feb 9, 2021

@m-reza-rahman Ran it(the upstream/master branch) again today, Windows 10, Java 8.

D:\hantsylabs\cargotracker>set JAVA_HOME=D:\jdk8

D:\hantsylabs\cargotracker>mvn clean package cargo:run
[INFO] Scanning for projects...
[INFO]
[INFO] -------------------< org.eclipse.ee4j:cargo-tracker >-------------------
[INFO] Building Eclipse Cargo Tracker 1.0-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cargo-tracker ---
[INFO] Deleting D:\hantsylabs\cargotracker\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ cargo-tracker ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ cargo-tracker ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 103 source files to D:\hantsylabs\cargotracker\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ cargo-tracker ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ cargo-tracker ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to D:\hantsylabs\cargotracker\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ cargo-tracker ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- maven-war-plugin:3.3.1:war (default-war) @ cargo-tracker ---
[INFO] Packaging webapp
[INFO] Assembling webapp [cargo-tracker] in [D:\hantsylabs\cargotracker\target\cargo-tracker]
[INFO] Processing war project
[INFO] Copying webapp resources [D:\hantsylabs\cargotracker\src\main\webapp]
[INFO] Building war: D:\hantsylabs\cargotracker\target\cargo-tracker.war
[INFO]
[INFO] --- cargo-maven2-plugin:1.8.4:run (default-cli) @ cargo-tracker ---
[INFO] [en2.ContainerRunMojo] Resolved container artifact org.codehaus.cargo:cargo-core-container-payara:jar:1.8.4 for container payara
[INFO] [talledLocalContainer] Parsed GlassFish version = [5.2020.7]
[INFO] [talledLocalContainer] Payara 5.2020.7 starting...
[INFO] [talledLocalContainer] Using port 4848 for Admin.
[INFO] [talledLocalContainer] Using port 8080 for HTTP Instance.
[INFO] [talledLocalContainer] Using port 7676 for JMS.
[INFO] [talledLocalContainer] Using port 3700 for IIOP.
[INFO] [talledLocalContainer] Using port 8181 for HTTP_SSL.
[INFO] [talledLocalContainer] Using port 3820 for IIOP_SSL.
[INFO] [talledLocalContainer] Using port 3920 for IIOP_MUTUALAUTH.
[INFO] [talledLocalContainer] Using port 8686 for JMX_ADMIN.
[INFO] [talledLocalContainer] Using port 6666 for OSGI_SHELL.
[INFO] [talledLocalContainer] Using port 9009 for JAVA_DEBUGGER.
[INFO] [talledLocalContainer] Using default port 4900 for Hazelcast DAS.
[INFO] [talledLocalContainer] Using default port 5900 for Hazelcast Start.
[INFO] [talledLocalContainer] Distinguished Name of the self-signed X.509 Server Certificate is:
[INFO] [talledLocalContainer] [CN=hantsy-t540p.mshome.net,OU=Payara,O=Payara Foundation,L=Great Malvern,ST=Worcestershire,C=UK]
[INFO] [talledLocalContainer] Distinguished Name of the self-signed X.509 Server Certificate is:
[INFO] [talledLocalContainer] [CN=hantsy-t540p.mshome.net-instance,OU=Payara,O=Payara Foundation,L=Great Malvern,ST=Worcestershire,C=UK]
[INFO] [talledLocalContainer] Domain cargo-domain created.
[INFO] [talledLocalContainer] Domain cargo-domain admin port is 4848.
[INFO] [talledLocalContainer] Domain cargo-domain allows admin login as user "admin" with no password.
[INFO] [talledLocalContainer] Command create-domain executed successfully.
[INFO] [talledLocalContainer] Attempting to start cargo-domain.... Please look at the server log for more details.....
[INFO] [talledLocalContainer] JDBC resource jdbc/__default deleted successfully
[INFO] [talledLocalContainer] Command delete-jdbc-resource executed successfully.
[INFO] [talledLocalContainer] Command delete-jdbc-connection-pool failed.
[INFO] [talledLocalContainer] remote failure: A JDBC connection pool named DerbyPool does not exist.
[INFO] [talledLocalContainer] Command delete-jdbc-connection-pool failed.
[INFO] [talledLocalContainer] remote failure: A JDBC connection pool named DerbyPool does not exist.
[INFO] [talledLocalContainer] Application deployed with name cargo-tracker.
[INFO] [talledLocalContainer] Command deploy executed successfully.
[INFO] [talledLocalContainer] Application deployed with name cargocpc.
[INFO] [talledLocalContainer] Command deploy executed successfully.
[INFO] [talledLocalContainer] Payara 5.2020.7 started on port [8080]
[INFO] Press Ctrl-C to stop the container...

And the server log.

server.log

@m-reza-rahman
Copy link
Contributor

m-reza-rahman commented Feb 10, 2021

I was able to reliably reproduce the issue and have taken it up with the Payara folks: https://groups.google.com/g/payara-forum/c/GT3e_hsPJM8/m/ilZk0k5hDwAJ. We can move forward with the PR once we either resolve this issue and/or register it as a known issue with Payara 5 for now. I will keep you posted. I don't think this is an issue on the Cargo Tracker side per se.

P.S.: The issue is actually visible in the logs you shared @hantsy. The "warning" at the end is actually stopping the batch process from working. Instructions to test the batch file processing is described at the end of this section: https://github.com/eclipse-ee4j/cargotracker#exploring-the-application. As a key contributor, I encourage you to explore it.

@hantsy
Copy link
Contributor Author

hantsy commented Feb 10, 2021

By default I used Java 11 in my system, I used set JAVA_HOME=D:\jdk8 in command line to switch to Java 8, not sure if Payara picked up JAVA_HOME to locate the java exe. In GF, this way works.

I have not noticed this error before, it seems it is never occurred in the front-end console.

@m-reza-rahman
Copy link
Contributor

While I will test with Java SE 11 as well, we do need to support Java SE 8 as this is where a majority of users still are. I will also check if prior Java EE 8/Jakarta EE 8 releases of Payara fixes the issue in parallel to seeing what the Payara folks have to say. There is a small possibility there is something wrong with the application code, so that is also worth investigating.

Lastly, these kinds of issues may be the impetus to switch to WildFly or Open Liberty as the default runtime for Cargo Tracker. It is too early yet to consider a switch. I am sure those runtimes will have their own set of challenges.

@NotNull(message = "Missing completion time.")
@Size(min = 16, max = 16, message = "Completion time value must be sixteen characters long.")
// TODO [DDD] Apply regular expression validation.
@NotNull
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sync mismatch. Can you kindly restore the more updated code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update.

// TODO [Jakarta EE 8] Use not blank instead.
@NotNull(message = "Missing tracking ID.")
@Size(min = 4, message = "Tracking ID must be at least four characters.")
@NotNull
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sync mismatch. Can you kindly restore the more updated code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update

max = 7,
message = "Event type value must be one of: RECEIVE, LOAD, UNLOAD, CUSTOMS, CLAIM")
// TODO [DDD] Apply regular expression validation.
@NotNull
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sync mismatch. Can you kindly restore the more updated code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update.

private String eventType;

// TODO [Jakarta EE 8] Use not blank instead.
@NotNull(message = "UN location code missing.")
@Size(min = 5, max = 5, message = "UN location code must be five characters long.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sync mismatch. Can you kindly restore the more updated code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update.

min = 4,
max = 5,
message = "Voyage number value must be between four and five characters long.")
@Size(min = 4, max = 5)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sync mismatch. Can you kindly restore the more updated code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restored.

Date completionTime =
new SimpleDateFormat(ISO_8601_FORMAT).parse(handlingReport.getCompletionTime());
VoyageNumber voyageNumber = null;
@Consumes(MediaType.APPLICATION_JSON)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sync mismatch. Can you kindly restore the more updated code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restored.

@QueryParam("deadline")
String deadline) {
Date date = nextDate(new Date());
@NotNull @Size(min = 5, max = 5) @QueryParam("origin") String originUnLocode,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a sync mismatch. Can you kindly restore the more updated code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restored.

File[] extraJars =
Maven.resolver()
.loadPomFromFile("pom.xml")
.resolve("org.apache.commons:commons-lang3", "org.postgresql:postgresql")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, kindly remove PostGRESQL for now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated.

@m-reza-rahman
Copy link
Contributor

I have tested versions up to Payara 5.194 to be working properly. The Payara folks are looking at resolving the issue in the next releases: https://groups.google.com/g/payara-forum/c/GT3e_hsPJM8/m/e0Hg8ASyEAAJ. In the meanwhile, I have adjusted the code and updated the documentation.

I think we are ready to move forward with this PR now. @hantsy, can you kindly address the PR comments, re-sync your code and fix the auto-merge conflicts? I will then merge it as soon as I have adequate time to properly regression test (there are quite a few changes that can possibly stop things from working across the application in subtle ways).

In the meanwhile, I am concerned about the stability of Payara. I have prioritized supporting WildFly or Open Liberty (#180). We can work on this after the initial Jakarta EE 8/Java SE 8 migration is done.

Reza Rahman
Jakarta EE Ambassador, Author, Blogger, Speaker

Please note views expressed here are my own as an individual community member and do not reflect the views of my employer.

@hantsy
Copy link
Contributor Author

hantsy commented Feb 16, 2021

@m-reza-rahman I've updated the codes according to you feedback, please review it.

@m-reza-rahman
Copy link
Contributor

Thanks for making the changes. I should have some time this evening or tomorrow. The merge is easy, but I also need time to regression test the code.

@m-reza-rahman m-reza-rahman merged commit 80ad92f into eclipse-ee4j:master Feb 20, 2021
@m-reza-rahman
Copy link
Contributor

m-reza-rahman commented Feb 20, 2021

@hantsy, have these changes actually been properly tested with Java SE 8? It seems the date time changes do not work with Java SE 8 at all. Below are some of the exceptions I am getting. Can you kindly help test and properly address these? At least for now, we must continue to support Java SE 8.

org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke public void org.eclipse.cargotracker.interfaces.booking.web.ListCargo.init() on org.eclipse.cargotracker.interfaces.booking.web.ListCargo@a79e3fe
at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:85)
at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.postConstruct(DefaultLifecycleCallbackInvoker.java:66)
at org.jboss.weld.injection.producer.BasicInjectionTarget.postConstruct(BasicInjectionTarget.java:122)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:164)
at org.jboss.weld.contexts.AbstractContext.get(AbstractContext.java:96)
at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
at org.jboss.weld.bean.ContextualInstanceStrategy$CachingContextualInstanceStrategy.get(ContextualInstanceStrategy.java:177)
at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:694)
at org.jboss.weld.module.web.el.AbstractWeldELResolver.lookup(AbstractWeldELResolver.java:107)
at org.jboss.weld.module.web.el.AbstractWeldELResolver.getValue(AbstractWeldELResolver.java:90)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:156)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:184)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:91)
at com.sun.el.parser.AstValue.getBase(AstValue.java:125)
at com.sun.el.parser.AstValue.getValue(AstValue.java:173)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
at org.jboss.weld.module.web.el.WeldValueExpression.getValue(WeldValueExpression.java:50)
at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:73)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:170)
at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:157)
at javax.faces.component.UIData.getValue(UIData.java:736)
at org.primefaces.component.api.UIData.getDataModel(UIData.java:832)
at javax.faces.component.UIData.getRowCount(UIData.java:347)
at org.primefaces.component.datatable.DataTableRenderer.encodeTbody(DataTableRenderer.java:1166)
at org.primefaces.component.datatable.DataTableRenderer.encodeTbody(DataTableRenderer.java:1145)
at org.primefaces.component.datatable.DataTableRenderer.encodeRegularTable(DataTableRenderer.java:432)
at org.primefaces.component.datatable.DataTableRenderer.encodeMarkup(DataTableRenderer.java:363)
at org.primefaces.component.datatable.DataTableRenderer.encodeEnd(DataTableRenderer.java:95)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:595)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1654)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:152)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:566)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1647)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:468)
at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:170)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:132)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:132)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:102)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:76)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:199)
at javax.faces.webapp.FacesServlet.executeLifecyle(FacesServlet.java:708)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:451)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1636)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:331)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.glassfish.tyrus.servlet.TyrusServletFilter.doFilter(TyrusServletFilter.java:282)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:253)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:211)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:757)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:158)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:371)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.weld.injection.producer.DefaultLifecycleCallbackInvoker.invokeMethods(DefaultLifecycleCallbackInvoker.java:83)
... 77 more
Caused by: java.time.DateTimeException: Unable to extract value: class java.time.LocalDateTime
at java.time.format.DateTimePrintContext.getValue(DateTimePrintContext.java:282)
at java.time.format.DateTimeFormatterBuilder$ZoneTextPrinterParser.format(DateTimeFormatterBuilder.java:3693)
at java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.format(DateTimeFormatterBuilder.java:2190)
at java.time.format.DateTimeFormatter.formatTo(DateTimeFormatter.java:1746)
at java.time.format.DateTimeFormatter.format(DateTimeFormatter.java:1720)
at java.time.LocalDateTime.format(LocalDateTime.java:1752)
at org.eclipse.cargotracker.application.util.DateUtil.toString(DateUtil.java:30)
at org.eclipse.cargotracker.interfaces.booking.facade.dto.CargoRoute.(CargoRoute.java:42)
at org.eclipse.cargotracker.interfaces.booking.facade.internal.assembler.CargoRouteDtoAssembler.toDto(CargoRouteDtoAssembler.java:38)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Vector$VectorSpliterator.forEachRemaining(Vector.java:1442)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at org.eclipse.cargotracker.interfaces.booking.facade.internal.DefaultBookingServiceFacade.listAllCargos(DefaultBookingServiceFacade.java:97)
at org.eclipse.cargotracker.interfaces.booking.facade.internal.DefaultBookingServiceFacade$Proxy$
$$_WeldClientProxy.listAllCargos(Unknown Source)
at org.eclipse.cargotracker.interfaces.booking.web.ListCargo.init(ListCargo.java:39)
... 82 more

@m-reza-rahman
Copy link
Contributor

@hantsy , @thadumi I have now re-stabilized the code to Payara 5 and Java SE 8. Can you kindly help test and verify stability on Payara 5/Java SE 11? If not, I will try to do this as soon as I get more time this weekend.

@hantsy hantsy deleted the java8-alignment branch February 21, 2021 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants