Skip to content

quarkus extension in native mode does not work#189

Closed
cristiand85 wants to merge 30 commits intomasterfrom
2.3-next
Closed

quarkus extension in native mode does not work#189
cristiand85 wants to merge 30 commits intomasterfrom
2.3-next

Conversation

@cristiand85
Copy link
Copy Markdown

error from console

javax.faces.FacesException: Bean Validation is not present
at javax.faces.validator.BeanValidator.createValidatorFactory(BeanValidator.java:329)
at javax.faces.validator.BeanValidator.validate(BeanValidator.java:186)
at org.apache.myfaces.core.api.shared.ComponentUtils.callValidators(ComponentUtils.java:245)
at javax.faces.component.UIInput.validateValue(UIInput.java:472)
at javax.faces.component.UIInput.validate(UIInput.java:729)
at javax.faces.component.UIInput.processValidators(UIInput.java:302)
at javax.faces.component.UIForm.processValidators(UIForm.java:204)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1410)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1410)
at javax.faces.component.UIViewRoot._processValidatorsDefault(UIViewRoot.java:1759)
at javax.faces.component.UIViewRoot.access$500(UIViewRoot.java:83)
at javax.faces.component.UIViewRoot$ProcessValidatorPhaseProcessor.process(UIViewRoot.java:1867)
at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1715)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:965)
at org.apache.myfaces.lifecycle.ProcessValidationsExecutor.execute(ProcessValidationsExecutor.java:39)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:172)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:125)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:207)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:63)
at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:67)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:133)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:65)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:247)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:56)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:111)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:108)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$9$1.call(UndertowDeploymentRecorder.java:574)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227)
at io.undertow.servlet.handlers.ServletInitialHandler.handleRequest(ServletInitialHandler.java:152)

at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$1.handleRequest(UndertowDeploymentRecorder.java:117)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:290)
at io.undertow.server.DefaultExchangeHandler.handle(DefaultExchangeHandler.java:18)
at io.quarkus.undertow.runtime.UndertowDeploymentRecorder$5$1.run(UndertowDeploymentRecorder.java:400)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2415)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:29)
at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:29)
at java.lang.Thread.run(Thread.java:834)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
at com.oracle.svm.core.thread.JavaThreads.threadStartRoutine(JavaThreads.java:519)
at com.oracle.svm.core.posix.thread.PosixJavaThreads.pthreadStartRoutine(PosixJavaThreads.java:192)

Schermata da 2021-03-27 12-41-20

My Entity class @entity

public class Product extends PanacheEntity{

@Setter @Getter
@NotEmpty
private String title;

}

### My Bean @nAmed @ViewScoped

public class Bean implements Serializable{

@Setter @Getter
private Product product= new Product();
 

@Transactional
public void save(){
    product.persist();
    product = new Product();
}

}

### my index.xhtml

<h:head>
    <title>quarkus</title>

    

</h:head>



<h:body>
    
    <ui:repeat  value="#{bean.product.listAll()}" var="i">
       #{i} 
    </ui:repeat>
    
    <h:form>
        <h:inputText value="#{bean.product.title}"/>
        <h:commandButton value="invio" actionListener="#{bean.save()}"/>
    </h:form>


</h:body>

tandraschko and others added 30 commits November 17, 2020 16:52
MYFACES-4373: prefer SecureRandom for token generation 2.3-next
more relaxed about Readme and *.iml files during rat check
Update Cryptographic algorithm in StateUtils to a stronger version

(cherry picked from commit 65a0043)
infra required persist-credentials: false
…ition.

PropertyNotFoundException was thrown if the name of the poperty
requested was null, but it should really be thrown when the property
itself is not found.  This patch changes the nullness check
accordingly.

Before:

    java.lang.NullPointerException: Cannot invoke "org.apache.myfaces.core.api.shared.lang.PropertyDescriptorWrapper.getWrapped()" because "pd" is null
	at org.apache.myfaces.el.resolver.LambdaBeanELResolver.getValue(LambdaBeanELResolver.java:78)
	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:136)

After:

    javax.el.PropertyNotFoundException: Property [x] not found on type [com.example.FooBar_ClientProxy]
	at org.apache.myfaces.el.resolver.LambdaBeanELResolver.getPropertyDescriptor(LambdaBeanELResolver.java:162)
	at org.apache.myfaces.el.resolver.LambdaBeanELResolver.getValue(LambdaBeanELResolver.java:72)
	at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:136)
MYFACES-4380 LambdaBeanELResolver: Fix PropertyNotFoundException condition
This avoids "@SessionScoped does not exist within current thread" when
trying to destroy ViewScoped and FlowScoped beans.

Signed-off-by: Juri Berlanda <juri.berlanda@tuwien.ac.at>
…eControl

MYFACES-4371 Resources: set cache-control-header instead of expires-header
@tandraschko
Copy link
Copy Markdown
Member

Please provide a forked Showcase example

@tandraschko
Copy link
Copy Markdown
Member

Your PR contains many unrelated Changes
Also please use our jira

@cristiand85
Copy link
Copy Markdown
Author

this is my showcase

quarkus-myfaces-test

thank you

@tandraschko
Copy link
Copy Markdown
Member

Please create a issue in JIRA, @rmpestano might check it
i dont have a running graal environment here.

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.

8 participants