Articles

odules:ty:compileJavaWARNING

modules:ty:compileJava WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by worker.org.gradle.internal.reflect.JavaMethod (file:/Users/---/.gradle/caches/3.0/workerMain/gradle-worker.jar) to method java.lang.ClassLoader.getPackages() WARNING: Please consider reporting this to the maintainers of worker.org.gradle.internal.reflect.JavaMethod WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

odules:ty:compileJavaWARNING

modules:ty:compileJava WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by worker.org.gradle.internal.reflect.JavaMethod (file:/Users/---/.gradle/caches/3.0/workerMain/gradle-worker.jar) to method java.lang.ClassLoader.getPackages() WARNING: Please consider reporting this to the maintainers of worker.org.gradle.internal.reflect.JavaMethod WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

Liferay osgi

org.osgi.framework.BundleException : Could not resolve module: com.taw.ctrl [539]_   Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=9.0))"_ [Sanitized] at org.eclipse.osgi.container.Module.start( Module.java:429 ) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel( ModuleContainer.java:1582 ) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel( ModuleContainer.java:1562 ) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel( ModuleContainer.java:1533 ) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent( ModuleContainer.java:1476 ) at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent( ModuleContainer.java:1 ) at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent( EventManager.java:230 ) at org.eclipse.osgi.framework.eventmgr.EventManager$...

Caused by: java.lang.IllegalArgumentException: Children: cycle detected:

Caused by: java.lang.IllegalArgumentException: Children: cycle detected: parent = BorderPane[id=borderPane, styleClass=root], node = BorderPane[id=borderPane, styleClass=root]

Caused by: java.lang.IllegalArgumentException: URI is not hierarchical

Caused by: java.lang.IllegalArgumentException: URI is not hierarchical

Java.lang.AssertionError: isSubtype DEFERRED

java.lang.AssertionError: isSubtype DEFERRED at com.sun.tools.javac.code.Types$4.visitType(Types.java:971) at com.sun.tools.javac.code.Types$4.visitType(Types.java:947) at com.sun.tools.javac.code.Type.accept(Type.java:214) at com.sun.tools.javac.code.Types$DefaultTypeVisitor.visit(Types.java:4794) at com.sun.tools.javac.code.Types.isSubtype(Types.java:943) at com.sun.tools.javac.code.Types.isSubtypeUncheckedInternal(Types.java:869) at com.sun.tools.javac.code.Types.isSubtypeUnchecked(Types.java:855) at com.sun.tools.javac.code.Types.isConvertible(Types.java:477) at com.sun.tools.javac.comp.Check.assertConvertible(Check.java:1023) at com.sun.tools.javac.comp.Check.checkMethod(Check.java:979) at com.sun.tools.javac.comp.Attr.checkMethod(Attr.java:4279) at com.sun.tools.javac.comp.Attr.checkIdInternal(Attr.java:4025) at com.sun.tools.javac.comp.Attr.checkMethodIdInternal(Attr.java:3932) at com.sun.tools.javac.comp.Attr.checkMethodId(Attr.java:3911) at com.su...
Error: [ INFO ] --- maven-jar-plugin:3.0.2:jar (default-jar) @ cars --- [ WARNING ] JAR will be empty - no content was marked for inclusion! Solution:

Failed to execute goal org.codehaus.mojo:exec-maven-plugin

Error  : Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (unpack-dependencies) on project carMaven: Command execution failed. Cannot run program "/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/../bin/javafxpackager" (in directory "----"): error=2, No such file or directory -> [Help 1] To see the full stack trace of the errors, re-run Maven with the -e switch. Re-run Maven using the -X switch to enable full debug logging. For more information about the errors and possible solutions, please read the following articles: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException solution : remove this part :            <plugin>                 <groupId>org.codehaus.mojo</groupId>                 <artifactId>exec-maven-plugin</artifactId>           ...

What's this error " no main manifest attribute, in " means ? netbeans

When I try to run application jar using the command line on macOS, I get this error " no main manifest attribute, in ...." I try these solutions, but no one of them seems to work : You should have been used this  java -jar app.jar instead of this  java -jar "app" java - cp your . jar Mainclass. Export you Java Project as an  Runnable Jar file  rather than Jar. A manifest is a file in the path META-INF/MANIFEST.MF within the jar which defines attributes like the classpath and the main class for running the jar file.  had the same problem. Make sure your MANIFEST.MF is in: src / main / resources / META_INF / NOT src / main / java / META_INF / the only thing that works for me by using maven as follow: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <version>3.0.2</...

what's the "Error: signed modular JAR /Users/viii/stock2018/libs9/mail-1.4.7.jar is currently not supported, use --ignore-signing-information to suppress error" error?

Error: signed modular JAR...mail-1.4.7.jar is currently not supported, use --ignore-signing-information to suppress error

upload files errors

Caused By:javax.servlet.ServletException: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out javax.servlet.ServletException: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:202) at cn.edu.sdu.framework.bs.SysRequestProcessor.process(SysRequestProcessor.java:445) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:443) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:805) at cn.edu.sdu.framework.bs.UimsActionServlet.doPost(UimsActionServlet.java:597) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194) at cn.edu.sdu.framework.bs.UimsActionServlet.doGet(UimsActionServlet.java:620) at javax.servlet.http.HttpServlet.service(HttpSe...

Java 9 ERR_01

Warning: java executable not found in JDK, evaluating java executable in RT instead. Warning: java executable not found in JDK, evaluating java executable in RT instead. Warning: java executable not found in JDK, evaluating java executable in RT instead.

Ternary If Java

from this int a ; if ( i != 0 && k == 7 ){ a = 10 ; } else a = 3 ; } to this nice one int a = ( i != 0 && k == 7 ) ? 10 : 3 ;

org.eclipse.jst.javaee.web.WebApp

An error has occurred. See error log for more details. org.eclipse.jst.javaee.applicationclient.internal.impl.ApplicationClientImpl cannot be cast to org.eclipse.jst.javaee.web.WebApp

XmlBeanFactory is deprecated

Error Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/OrderComparator$OrderSourceProvider at springuate.main.main(main.java:22) Caused by: java.lang.ClassNotFoundException: org.springframework.core.OrderComparator$OrderSourceProvider at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 1 more D:\....\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)  Solution You need just to add the latest JAR spring-core-4.3.3.RELEASE spring-beans-4.3.3.RELEASE commons-logging-1.2

The Guide to Java 9 - (the default methods)

In Java 8 , one of the features was the default methods public interface myInterface { default int divByten ( int . . . numbers ) { return sum ( number) /10 ; } } In Java 9 we can simply have a private interface method:  public interface myInterface { private int divByten ( int . . . numbers ) { return sum ( numbers) /10 ; } }

Device 'CLVE8DB2C70' not found

I wanna add data to Tableview javafx without erase the old ones !

use this  productTable . getItems (). clear (); productTable . getItems (). addAll ( data ); instead of this productTable . setItems ( data );

Caused by: android.os.NetworkOnMainThreadException

public ArrayList<InetAddress> getConnectedDevices(String YourPhoneIPAddress) { ArrayList<InetAddress> ret = new ArrayList<InetAddress>(); int LoopCurrentIP = 0 ; String IPAddress = "" ; String[] myIPArray = YourPhoneIPAddress.split( " \\ ." ); InetAddress currentPingAddr; for ( int i = 0 ; i <= 255 ; i++) { try { // build the next IP address currentPingAddr = InetAddress.getByName(myIPArray[ 0 ] + "." + myIPArray[ 1 ] + "." + myIPArray[ 2 ] + "." + Integer.toString(LoopCurrentIP)); String ad = currentPingAddr.toString(); ///////////////// Log.d( "MyApp" ,ad); ////////////// // 50ms Timeout for the "ping" if (currentPingAddr.isReachable( 50 )) { ret. add (currentPingAddr); ad = cur...

what does this mean “java.lang.IllegalStateException”?

this simple code ! package itawfik . com . wifi ; import android . os . Bundle ; import android . support . v7 . app . AppCompatActivity ; import android . view . View ; import android . widget . AdapterView ; import android . widget . ArrayAdapter ; import android . widget . ListView ; import android . widget . Toast ; /** * Created by Emin01 on 03/09/2016. */ public class ListWifi extends AppCompatActivity { ListView list ; @Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ); setContentView ( R . layout . listwifi ); list = ( ListView ) findViewById ( R . id . listId ); MyTawfik . setUpListView ( list ); String [] values = new String []{ "Android List View" , "Adapter implementation" , "Simple List View In Android" , "Create List View Android"...