I added org.grails.plugins: spring-security-facebook: 0.15.3-Core2
During compilation I have error:
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
[groovyc]C:\probionet2\target\work\plugins\spring-security-facebook-0.15.3-CORE2\src\groovy\com\the6hours\grails\springsecurity\facebook\DefaultFacebookAuthDao.groovy: 12: unable to resolve class org.apache.log4j.Logger
[groovyc] # line 12, column 1.
[groovyc] import org.apache.log4j.Logger
[groovyc] ^
and etc...
Can help me?
I greet.
Adam
Related
Generator.groovy*
import jenkins.model.Jenkins
import javaposse.jobdsl.dsl.DslFactory
import com.cs.folderCreation
//Normal code
.............................
EndOfFile*********
----------Error log--------------------------
Generator.groovy: 5: unable to resolve class com.cs.folderCreation
# line 5, column 1.
import com.bmw.cs.folderCreation
^
1 error
Finished: FAILURE
Resloved!
It was just a plugin issue.
Improper configuration can lead to unknown issues.
I'm trying to import the application full feed from EPF. I only downloaded the application.tbz from the link provided by apple. This is the command I use to import the application file:
./EPFImporter.py -f /mnt/c/Users/vic4ever/Downloads/application/itunes20170913
This is what I get when I ran the above command
2017-09-24 00:58:51,867 [INFO]: Beginning import for the following directories:
/mnt/c/Users/vic4ever/Downloads/application/itunes20170913
2017-09-24 00:58:51,867 [INFO]: Importing files in /mnt/c/Users/vic4ever/Downloads/application/itunes20170913
2017-09-24 00:58:51,869 [INFO]: Starting import of /mnt/c/Users/vic4ever/Downloads/application/itunes20170913...
2017-09-24 00:58:51,870 [ERROR]: Unable to create EPFIngester for application
2017-09-24 00:58:51,870 [ERROR]: invalid literal for int() with base 10: '2074265\x02'
Traceback (most recent call last):
File "./EPFImporter.py", line 211, in doImport
fieldDelim=fieldDelim)
File "/mnt/d/Study/Semester2/icongenerator/EPF_Importer/EPFIngester.py", line 86, in __init__
self.parser = EPFParser.Parser(filePath, recordDelim=recordDelim, fieldDelim=fieldDelim)
File "/mnt/d/Study/Semester2/icongenerator/EPF_Importer/EPFParser.py", line 97, in __init__
self.recordsExpected = int(numStr)
ValueError: invalid literal for int() with base 10: '2074265\x02'
2017-09-24 00:58:51,876 [INFO]: Import of itunes20170913 completed at: 17-09-24 00:58:51
2017-09-24 00:58:51,876 [INFO]: Total import time for itunes20170913: 0:00:00.00
2017-09-24 00:58:51,876 [WARNING]: The following files encountered errors and were not imported:
application
2017-09-24 00:58:51,876 [WARNING]: The following files encountered errors and were not imported:
itunes20170913/['application']
2017-09-24 00:58:51,876 [INFO]: Total import time for all directories: 0:00:00.00
I don't know where the literal '2074265\x02' comes from. Is it from the application file? Do I need to specify the record and field delimiters? Or is it the case that the default values are sufficient?
I don't know why but removing -f solves the problem. The correct command should be:
./EPFImporter.py /mnt/c/Users/vic4ever/Downloads/application/itunes20170913
i'm trying to create a docker image to run my java program inside the container. i new to docker i have no idea how to set the classpath. i have a datafile.properties, Sample.java,lib folder which contains all my dependancy jar files and my webdriver inside the folder C:\users\accessibility in my local machine. Please find the dockerfile below:
FROM java8:jdk
WORKDIR C:\\accessibility
COPY Sample.java C:\\accessibility\\Sample.java
COPY ./lib C:\\accessibility\\lib
ENV CLASSPATH C:\\accessibility\\lib\\axe-selenium-2.0.jar;C:\\accessibility\\lib\\java-json;C:\\accessibility\\lib\\json-simple-1.1;C:\\accessibility\\lib\\selenium-java-2.45.0;C:\\accessibility\\lib\\selenium-server-standalone-3.4.0
RUN javac Sample.java
CMD ["java","Sample"]
i'm trying to run it using the below command:
docker build -t accessibility C:\users\accessibility
i get shown the below error:
Sending build context to Docker daemon 29.33 MB
Step 1/6 : FROM java8:jdk
---> 97491cd5aa74
Step 2/6 : WORKDIR C:\\accessibility
---> Using cache
---> 0c8cfb951153
Step 3/6 : COPY Sample.java C:\\accessibility\\Sample.java
---> d083489522eb
Removing intermediate container f794396cc8eb
Step 4/6 : ENV CLASSPATH C:\\accessibility\\lib\\axe-selenium-2.0.jar;C:\\accessibility\\lib\\java-json;C:\\accessibility\\lib\\json-simple-1.1;C:\\accessibility\\lib\\selenium-java-2.45.0;C:\\accessibility\\lib\\selenium-server-standalone-3.4.0
---> Running in 3f0da277efaa
---> 2c32806352cb
Removing intermediate container 3f0da277efaa
Step 5/6 : RUN javac Sample.java
---> Running in 8ba2e1e7b45c
Sample.java:9: error: package org.json does not exist
import org.json.JSONArray;
^
Sample.java:10: error: package org.json does not exist
import org.json.JSONException;
^
Sample.java:11: error: package org.openqa.selenium does not exist
import org.openqa.selenium.By;
^
Sample.java:12: error: package org.openqa.selenium does not exist
import org.openqa.selenium.WebDriver;
^
Sample.java:13: error: package org.openqa.selenium.chrome does not exist
import org.openqa.selenium.chrome.ChromeDriver;
^
Sample.java:14: error: package com.nft.parsing does not exist
import com.nft.parsing.Parsing;
^
Sample.java:15: error: package com.nft.testing does not exist
import com.nft.testing.Testing;
^
Sample.java:22: error: cannot find symbol
static Testing t=new Testing();
^
symbol: class Testing
location: class Sample
Sample.java:24: error: package org.json.simple does not exist
ArrayList<org.json.simple.JSONArray> final10=new ArrayList<org.json.simple.JSONArray>();
^
Sample.java:26: error: cannot find symbol
static JSONArray jsonresults=null;
^
symbol: class JSONArray
location: class Sample
Sample.java:32: error: package org.json.simple.parser does not exist
public static void main(String[] args) throws FileNotFoundException, IOException, org.json.simple.parser.ParseException, JSONException{
^
Sample.java:32: error: cannot find symbol
public static void main(String[] args) throws FileNotFoundException, IOException, org.json.simple.parser.ParseException, JSONException{
^
symbol: class JSONException
location: class Sample
Sample.java:22: error: cannot find symbol
static Testing t=new Testing();
^
symbol: class Testing
location: class Sample
Sample.java:24: error: package org.json.simple does not exist
ArrayList<org.json.simple.JSONArray> final10=new ArrayList<org.json.simple.JSONArray>();
^
Sample.java:59: error: cannot find symbol
WebDriver driver = new ChromeDriver();
^
symbol: class WebDriver
location: class Sample
Sample.java:59: error: cannot find symbol
WebDriver driver = new ChromeDriver();
^
symbol: class ChromeDriver
location: class Sample
Sample.java:62: error: cannot find symbol
driver.findElement(By.id("userName")).sendKeys("admin");
^
symbol: variable By
location: class Sample
Sample.java:63: error: cannot find symbol
driver.findElement(By.id("passWord")).sendKeys("welcome");
^
symbol: variable By
location: class Sample
Sample.java:64: error: cannot find symbol
driver.findElement(By.id("login")).click();
^
symbol: variable By
location: class Sample
Note: Sample.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
19 errors
it is not referring the jar files. classpath is not set properly. Kindly help me with the sample dockerfile or any advise on this would be helpful. Thanks in advance
I am new to Java and GWT.
I want to make use of dom4j and jaxen to parse a xml file and construct the webpage according
to the xml file content.
However, the compile fail and the error is listed below:
[ERROR] [MainPage] - Errors in 'file:/E:/workspace/MainPage/src/com/helloworld/client/MainPage.java'
[ERROR] [MainPage] - Line 10: The import org.dom4j cannot be resolved
[ERROR] [MainPage] - Line 81: The type org.dom4j.DocumentException cannot be resolved. It is indirectly referenced from required .class files
[ERROR] [MainPage] - Line 81: The constructor DataModelReader(File, SmfDataPositionAgent) refers to the missing type DocumentException
[ERROR] [MainPage] - Line 82: DocumentException cannot be resolved to a type
[ERROR] [MainPage] - Line 87: The method navigatePageSet() from the type DataModelReader refers to the missing type DocumentException
[ERROR] [MainPage] - Line 88: DocumentException cannot be resolved to a type
I don't think it is possible to use dom4j on client side as it is not a GWT module. Maybe you should consider using GWTs XML parser:
http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsXML.html
Or you can try with this project, I haven't try it though.
https://code.google.com/p/dom4j4gwt/
I'm following the provided instructions but is not working. I'm getting this error:
INFO: Widgetsets found from classpath:
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:Z:/vaadin/vaadin-6.7.1.jar!/
org.vaadin.peter.contextmenu.ContextmenuWidgetset in jar:file:Z:/NetBeans/Xinco/2.01.xx/XincoLibs/ContextMenu3.1.0.jar!/
getAvailableWidgetSets
INFO: Search took 12ms
Exception in thread "main" java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:414)
at java.io.File.getCanonicalPath(File.java:589)
at com.vaadin.terminal.gwt.widgetsetutils.WidgetSetBuilder.updateWidgetSet(WidgetSetBuilder.java:79)
at com.vaadin.terminal.gwt.widgetsetutils.WidgetSetBuilder.main(WidgetSetBuilder.java:52)
I found a related bug but it's been reported for a long time without fix yet. Any ideas besides checking/modifying the code myself?
Edit: Looking closer at the output I noticed this errors:
Compiling module org.vaadin.peter.contextmenu.ContextmenuWidgetset
Validating newly compiled units
[ERROR] Errors in 'file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/Vaadin%20Addons/ContextMenu3-1-0/org/vaadin/peter/contextmenu/client/ui/VContextMenu.java'
[ERROR] Line 1: The declared package "org.vaadin.peter.contextmenu.client.ui" does not match the expected package "ContextMenu3-1-0.org.vaadin.peter.contextmenu.client.ui"
[ERROR] Line 5: The import org.vaadin.peter.contextmenu.client cannot be resolved
[ERROR] Line 125: VMenuItem cannot be resolved to a type
[ERROR] Line 174: VMenuItem cannot be resolved to a type
[ERROR] Errors in 'file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/Vaadin%20Addons/ContextMenu3-1-0/org/vaadin/peter/contextmenu/client/ui/VMenu.java'
[ERROR] Line 1: The declared package "org.vaadin.peter.contextmenu.client.ui" does not match the expected package "ContextMenu3-1-0.org.vaadin.peter.contextmenu.client.ui"
[ERROR] Line 219: The method itemClicked(VMenuItem) from the type VContextMenu refers to the missing type VMenuItem
[ERROR] Line 229: The method itemClicked(VMenuItem) from the type VContextMenu refers to the missing type VMenuItem
[ERROR] Line 239: The method itemClicked(VMenuItem) from the type VContextMenu refers to the missing type VMenuItem
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/EditorDriver.java'
[ERROR] Line 20: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR] Line 97: ConstraintViolation cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'
[ERROR] Line 28: Name clash: The method setConstraintViolations(Iterable<ConstraintViolation<?>>) of type BaseEditorDriver<T,E> has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type EditorDriver<T> but does not override it
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'
[ERROR] Line 31: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR] Line 67: ConstraintViolation cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'
[ERROR] Line 25: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR] Line 40: ConstraintViolation cannot be resolved to a type
[ERROR] Line 43: ConstraintViolation cannot be resolved to a type
[ERROR] Line 44: Missing code implementation in the compiler
[ERROR] Line 49: ConstraintViolation cannot be resolved to a type
[ERROR] Line 49: Missing code implementation in the compiler
[ERROR] Line 70: ConstraintViolation cannot be resolved to a type
[ERROR] Line 72: ConstraintViolation cannot be resolved to a type
[ERROR] Line 73: ConstraintViolation<?> cannot be resolved to a type
[ERROR] Line 77: ConstraintViolation<capture#2-of ?> cannot be resolved to a type
[ERROR] Line 81: ConstraintViolation<capture#3-of ?> cannot be resolved to a type
[ERROR] Line 89: ConstraintViolation<capture#4-of ?> cannot be resolved to a type
[ERROR] Line 93: ConstraintViolation<capture#5-of ?> cannot be resolved to a type
[ERROR] Line 98: ConstraintViolation cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'
[ERROR] Line 26: The import javax.validation.ConstraintViolation cannot be resolved
[ERROR] Line 35: The type MockSimpleBeanEditorDriver<T,E> must implement the inherited abstract method EditorDriver<T>.setConstraintViolations(Iterable<ConstraintViolation<?>>)
[ERROR] Line 107: Name clash: The method setConstraintViolations(Iterable<ConstraintViolation<?>>) of type MockSimpleBeanEditorDriver<T,E> has the same erasure as setConstraintViolations(Iterable<ConstraintViolation<?>>) of type EditorDriver<T> but does not override it
[ERROR] Line 108: ConstraintViolation cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/super/javax/validation/Configuration.java'
[ERROR] Line 93: TraversableResolver cannot be resolved to a type
[ERROR] Line 105: ConstraintValidatorFactory cannot be resolved to a type
[ERROR] Line 182: TraversableResolver cannot be resolved to a type
[ERROR] Line 182: No source code is available for type TraversableResolver; did you forget to inherit a required module?
[ERROR] Line 194: ConstraintValidatorFactory cannot be resolved to a type
[ERROR] Line 194: No source code is available for type ConstraintValidatorFactory; did you forget to inherit a required module?
[ERROR] Line 202: ValidatorFactory cannot be resolved to a type
[ERROR] Line 202: No source code is available for type ValidatorFactory; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'
[ERROR] Line 30: ConstraintViolationException cannot be resolved to a type
[ERROR] Line 34: ConstraintViolationException cannot be resolved to a type
[ERROR] Line 34: No source code is available for type ConstraintViolationException; did you forget to inherit a required module?
[ERROR] Line 39: ConstraintViolation cannot be resolved to a type
[ERROR] Line 39: ConstraintViolation cannot be resolved to a type
[ERROR] Line 40: ConstraintViolationException cannot be resolved to a type
[ERROR] Line 44: ConstraintViolationException cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/super/javax/validation/MessageInterpolator.java'
[ERROR] Line 21: The import javax.validation.metadata cannot be resolved
[ERROR] Line 66: ConstraintDescriptor cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/super/javax/validation/constraints/Pattern.java'
[ERROR] Line 30: The import javax.validation.Constraint cannot be resolved
[ERROR] Line 31: The import javax.validation.Payload cannot be resolved
[ERROR] Line 49: Constraint cannot be resolved to a type
[ERROR] Line 49: The attribute validatedBy is undefined for the annotation type Constraint
[ERROR] Line 75: Payload cannot be resolved to a type
[ERROR] Errors in 'jar:file:/Z:/NetBeans/Xinco/3.00.xx/XincoLibs/gwt-user.jar!/javax/validation/super/javax/validation/spi/ConfigurationState.java'
[ERROR] Line 22: The import javax.validation.ConstraintValidatorFactory cannot be resolved
[ERROR] Line 24: The import javax.validation.TraversableResolver cannot be resolved
[ERROR] Line 93: ConstraintValidatorFactory cannot be resolved to a type
[ERROR] Line 107: TraversableResolver cannot be resolved to a type
I found this post about this issue pointing out to be a library mismatch but I'm using jars from the Vaadin SCM for the correct release: https://vaadin.com/forum/-/message_boards/view_message/384826
Issue finally fixed, hopefully that does the trick. After that had to add the following jars to the project so it could be compiled:
validation-api-1.0.0.GA.jar
validation-api-1.0.0.GA-sources.jar