intellij-idea

Error on integrating Primefaces with Springboot/JoinFaces

寵の児 提交于 2021-01-28 17:43:39
问题 I´m trying to create an application that integrates primefaces with spring boot following these tutorials: https://medium.com/@tsepomaleka/integrating-spring-boot-with-java-server-faces-using-joinfaces-297e64f6a28f https://codenotfound.com/jsf-primefaces-example.html And i added the joinfaces as the tutorial suggests: This is my pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

JUnit5 Jupiter test terminated in IntelliJ

情到浓时终转凉″ 提交于 2021-01-28 14:24:44
问题 When I run the my unit tests, they immediatly are being terminated. However no logging is presented. (only 'Failed to start' and 'Process finished with exit code 255'). Tests worked before... JUnit 4 does not give me this problem. Test do run succesfully in Maven. I use JUnit5 Jupiter and IntelliJ IDEA 2020.1 (Ultimate Edition). Anyone any thoughts? 回答1: I just had the same issue. The single thing that fixed this - and which I could reproduce - is this: don't .close() System.out (or System

Maven - version of Spring Boot Starter

别来无恙 提交于 2021-01-28 12:10:29
问题 I'm not an expert about versions of spring boot starters and have faced with problem. I'm trying build my project with this spring boot starter. And I need the embedded libraries version to be 5.2.0 as it says in description of this jar file. But when I added this dependency into my project I found that embedded libraries versions are different that I expected. My maven plugins shows that versions 5.1.6 and my code doesn't compile because some classes depend on methods from 5.2.0 module. And

Unresolved Dependencies sbt with play framework

南楼画角 提交于 2021-01-28 09:14:32
问题 As i am new to Stack Overflow please be patient i am working on a project with Play 2.5 exactly the starter example from the Website. As i have to work with ebean i followed the Steps of Setting ebean in the plugins.sbt as like addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "3.0.0") and also in my build.sbt file name := """play-java""" version := "1.0-SNAPSHOT" lazy val root = (project in file(".")).enablePlugins(PlayJava, PlayEbean) scalaVersion := "2.11.11" libraryDependencies +=

An exception or error caused a run to abort: org.mockito.internal.progress.ThreadSafeMockingProgress.mockingProgress()L

做~自己de王妃 提交于 2021-01-28 09:02:01
问题 My environment is Intellij, SBT, Scala and Play. What might be causing the following exception? It doesn't happen all the time. At times I am unable to run my test cases due to the following exception. I am using "org.mockito" % "mockito-core" % "2.24.5" % "test", I suspect there might be some library mismatch or inconsistency but I can't figure out what it is? I have tried to clean/recompile the project (sbt) but haven't been able to solve the issue. An exception or error caused a run to

Scala: Importing packages into package objects

你说的曾经没有我的故事 提交于 2021-01-28 08:08:47
问题 I'm having trouble importing packages into package objects. It didn't seem to work in Eclipse and so I switched to intellij. At one point the feature seemed to be working and so I created package objects for most packages. Now it doesn't seem to be working at all. Here's a package object in file package.scala, the package file itself compiles fine: package rStrat.rSwing package testSw //Edited for clarity object testSw { import rStrat._ import rSwing.topUI._ } and here's a class file from the

How to generate automatically relationships with JPA with IntelliJ?

让人想犯罪 __ 提交于 2021-01-28 07:57:47
问题 I found this solution for a problem I have: how to generate entities with JPA annotations from a given database. IntelliJ IDEA 10 generate entity (POJO) from DB model Now with IntelliJ I'm given the possibility to create relationships between entities manually . Is there a way to generate them automatically as it did with entities? I used the REFERENCES keyword when needed while creating the database. I suppose there should be an automatic mapping of relationships as well! 回答1: When

How to call a panel from a button with ActionListener

梦想的初衷 提交于 2021-01-28 07:27:45
问题 So I'm making a simple program that jumps from panel to panel and am using an actionlistener Button to make the jump. What kind of method or operation do I use to jump from panel to panel? I tried to use setVisible(true); under the action listener, but I get just a blanks screen. Tried using setContentPane(differentPanel); but that doesn't work. ackage Com.conebind.Characters; import Com.conebind.Tech.TechA16; import Com.conebind.Overviews.OverviewA16; import javax.swing.JFrame; import javax

IntelliJ type error when using Geb static content DSL with parameters

白昼怎懂夜的黑 提交于 2021-01-28 07:03:16
问题 Whenever I use a static-content defined closure that takes parameters, IntelliJ will complain that the types do not match (even if I specify the type inside the closure). For example, if I use this static content block: static content = { myModule { $('myModule').module(CustomModule) } namedModule { String name -> $(".$name").module(CustomModule) } } Both of the above items can be used successfully in my tests, but if I was to use 'namedModule' in one of my tests as follows: page.namedModule(

How to call a panel from a button with ActionListener

不打扰是莪最后的温柔 提交于 2021-01-28 06:41:48
问题 So I'm making a simple program that jumps from panel to panel and am using an actionlistener Button to make the jump. What kind of method or operation do I use to jump from panel to panel? I tried to use setVisible(true); under the action listener, but I get just a blanks screen. Tried using setContentPane(differentPanel); but that doesn't work. ackage Com.conebind.Characters; import Com.conebind.Tech.TechA16; import Com.conebind.Overviews.OverviewA16; import javax.swing.JFrame; import javax