I executed code in R with the following syntax
source(file=paste(path1,"/Module.R",sep=""),local=TRUE)
Executing of this command line go to another script which contains code line as follow:
library(xlsx)
write.xlsx(as.data.frame(Export), file=" data.xlsx", sheetName="Results", row.names=FALSE)
write.xlsx(as.data.frame(Revenue), file=" data.xlsx", sheetName="TOTAL", append=TRUE, row.names=FALSE)
write.xlsx(as.data.frame(Results), file="export_data.xlsx", sheetName="Result ",append=TRUE, row.names=FALSE)
At the end I receive this error messages
illegal format in tzamppings file: illegal non-newline character found at line 1, offset 46
So can anybody help how to solve this error ?
Related
I've deployed firebase deploy in cmd console.
but error has occured several times.
I already tried these things:
Changing %RESOURCE_DIR% in firebase.json file
Tried --fix code in console
Below is error code. plz help me T,T
Oops! Something went wrong! :(
ESLint: 8.13.0
D:\momenting\momenting\gameChat\functions\.eslintrc.js:14
{
^
SyntaxError: Unexpected token '{'
at new Script (node:vm:100:7)
at NativeCompileCache._moduleCompile (D:\momenting\momenting\gameChat\functions\node_modules\v8-compile-cache\v8-compile-cache.js:240:18)
at Module._compile (D:\momenting\momenting\gameChat\functions\node_modules\v8-compile-cache\v8-compile-cache.js:184:36)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Object.module.exports [as default] (D:\momenting\momenting\gameChat\functions\node_modules\import-fresh\index.js:32:59)
at loadJSConfigFile (D:\momenting\momenting\gameChat\functions\node_modules\#eslint\eslintrc\dist\eslintrc.cjs:2559:47)
at loadConfigFile (D:\momenting\momenting\gameChat\functions\node_modules\#eslint\eslintrc\dist\eslintrc.cjs:2643:20)
Error: functions predeploy error: Command terminated with non-zero exit code2
How do I create a bash script that runs this file This is the github file I have tried to run javac -d . App.java but that doesn't work because it imports different libraries. This is the error I get when I try to run the file. How do I write a bash script that runs this file when excuted or is there a command that I can use to run a java program that has import statments?
App.java:17: error: unclosed string literal
menu = """
^
App.java:18: error: ';' expected
Application Menu
^
App.java:20: error: ';' expected
1. Type one to decrypt a file.
^
App.java:20: error: ';' expected
1. Type one to decrypt a file.
^
App.java:20: error: ';' expected
1. Type one to decrypt a file.
^
App.java:21: error: ';' expected
2. Type two to encrypt a file.
^
App.java:21: error: ';' expected
2. Type two to encrypt a file.
^
App.java:21: error: ';' expected
2. Type two to encrypt a file.
^
App.java:22: error: ';' expected
3. Type three to encrypt text from terminal
^
App.java:22: error: ';' expected
3. Type three to encrypt text from terminal
^
App.java:22: error: ';' expected
3. Type three to encrypt text from terminal
^
App.java:22: error: not a statement
3. Type three to encrypt text from terminal
^
App.java:22: error: ';' expected
3. Type three to encrypt text from terminal
^
App.java:23: error: ';' expected
4. Type four to decrypt text from terminal.
^
App.java:23: error: ';' expected
4. Type four to decrypt text from terminal.
^
App.java:23: error: ';' expected
4. Type four to decrypt text from terminal.
^
App.java:23: error: <identifier> expected
4. Type four to decrypt text from terminal.
^
App.java:23: error: not a statement
4. Type four to decrypt text from terminal.
^
App.java:24: error: ';' expected
5. Type five to exit.
^
App.java:24: error: ';' expected
5. Type five to exit.
^
App.java:25: error: not a statement
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: '(' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ')' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: variable declaration not allowed here
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:25: error: ';' expected
* Disclaimer if you pick one or two the path of the file you enter will be rewritten as the encrypted version.
^
App.java:26: error: ';' expected
Pick an option. """;
^
App.java:26: error: <identifier> expected
Pick an option. """;
^
App.java:26: error: not a statement
Pick an option. """;
^
App.java:26: error: unclosed string literal
Pick an option. """;
^
38 errors
Github Full Repo
Edit: This is another error I am running into can someone telll me how to fix it? Thanks!
import methods.mainPackage;
^
App.java:13: error: cannot find symbol
mainPackage p = new mainPackage();
^
symbol: class mainPackage
location: class App
App.java:13: error: cannot find symbol
mainPackage p = new mainPackage();
^
symbol: class mainPackage
location: class App
3 errors
You're using a version of Java that does not support String litterals.
Use java --version to figure which one and make sure it is at least version 13
I have alreay read this discussion, but it didn't help me.
start with file;
file ::= primario SEP secondario SEP terziario EOF {:fm.scriviDebug();:};
Where fm.scriviDebug() is a my custom class that prints on stdout what CUP parsed.
I have no idea where is the problem.
Some infos:
I use JFLex to scan a file and passing symbols to CUP in the following way:
...
{bo} {System.out.println("[BO] ["+yytext() +"]");return symbol(sym.BO);}
{bc} {System.out.println("[BC] ["+yytext() +"]");return symbol(sym.BC);}
{sc} {System.out.println("[SC] ["+yytext() +"]");return symbol(sym.SC);}
{eq} {System.out.println("[EQ] ["+yytext() +"]");return symbol(sym.EQ);}
...
I get more than one warning of the following type:
Warning in file "Scanner.jflex" (line 115):
Expression matches the empty string, which may lead to non-termination.
.* {
This is what I get while "compiling" CUP:
Opening files...
Parsing specification from standard input...
Error at 63(73): java_cup.runtime.Symbol "EOF" has not been declared
Closing files...
------- CUP v0.10k Parser Generation Summary -------
1 error and 0 warnings
20 terminals, 14 non-terminals, and 18 productions declared,
producing 0 unique parse states.
0 terminals declared but not used.
0 non-terminals declared but not used.
0 productions never reduced.
0 conflicts detected (0 expected).
No code produced.
---------------------------------------------------- (v0.10k)
Another error after compiling CUP fails:
cannot find symbol
{ return new java_cup.runtime.Symbol(sym.EOF); }
Please, tell me if more info are required.
Are there any grep -like Unix/Linux command line tools that understand Java stacktraces in log files that are printed by log4j or logback? The tool should understand that a stacktrace consists of several lines.
Typical use case would be to filter out certain exceptions and corresponding stacktraces when viewing logs that are stored to files.
I'm using following sed one line program:
sed -nr ':main; /^[0-9 :,-]{23} ERROR / { :loop; p; n; /^[0-9 :,-]{23} / b main; b loop}'
The first [0-9 :,-]{23} recognizes log record start. Right after it, before the slash, you can write additional regexp to limit which records to print. The expression in {...} loops through the following lines until new record header is found.
My program works for logs where log records start with:
2015-08-25 12:49:34,906 ...
And prints all records with stack traces which has ERROR after record start. Example:
2015-08-25 12:49:34,906 ERROR [http-8080-89] [Error#112] NullPointerException:
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
...
The sed program explanation
The sed program expression /regexp/ command means: if the current line matches the regexp run command.
sed will read the input line and run the program. When the line matches /^[0-9 :,-]{23} ERROR / it runs the command block {...}, if not then since program ended, sed will not print the current line to output (option -n), then sed reads the next line and run the program again. This repeats until end of input.
{...} explanation:
p - print the current line
n - read next line
/^[0-9 :,-]{23} / b main - if the line matches the regexp continue at label :main - effectively rerunning the whole program on the current line without reading next line - to not miss next possible exception
continue at label :loop
So the regexps:
/^[0-9 :,-]{23} ERROR / matches lines which starts the log record
/^[0-9 :,-]{23} / matches line which is next log record
I don't know if this answers your question but when I want to get the stacktrace I use grep -A to get the lines right after the line I'm looking for.
For example:
grep -A 200 "2014-09-08/12:11:36.110" catalina.out
I have the following Velocity template in JIRA (note, extra lines kept in):
NOTE: Please REPLY-TO this email when replying to this issue.
##parse("templates/email/includes/issueplugins.vm")
#if($comment.getId())[ ${baseurl}/browse/${issue.getKey()} ] #end ##?page=${tabpanel-comment}&focusedCommentId=${comment.getId()}#action_${comment.getId()} ] #end
#if($remoteUser.fullName)
$i18n.getText("template.issue.commented.on", $remoteUser.fullName, $issue.getKey())
#dashes($!remoteUser.fullName)--------------#dashes($issue.getKey())-
#end
#if($changelog)
#changes([])
#end
#comment()
#visibility()
#parse("templates/email/text/includes/issuesummary.vm")
#parse("templates/email/text/includes/footer.vm")
There is no line following that last line. When do I this on the very last line:
##parse("templates/email/text/includes/footer.vm")
I get the following error:
An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug.
Details:
-------
org.apache.velocity.exception.ParseErrorException: Lexical error:
org.apache.velocity.runtime.parser.TokenMgrError:
Lexical error at line 20, column 51. Encountered: <EOF> after : ""
at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:272)
at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:202)
...
I found the following issue from 2004:
https://issues.apache.org/jira/browse/VELOCITY-272
Which seems to suggest this was a bug fixed in 1.5. Checking in my JIRA System Info, I see that JIRA 4.2.1 appears to suggest version 1.6 is in use:
Atlassian Template Renderer Velocity 1.6 Plugin - 1.1.1
When I move the line starting #if($comment.getId()) to the end, the error goes away. Am I doing something wrong here at the end of the template, or is this a bug?
EDIT
Hmm. When I did this:
#if($comment.getId())[ ${baseurl}/browse/${issue.getKey()} ] #end ##?page=${tabpanel-comment}&focusedCommentId=${comment.getId()}#action_${comment.getId()} ] #end
As the last line, with no empty line following it, I got the same error. However, if I add a line after that line (just hit ENTER once), it works.
Do Velocity template's require an ending space? I'm confused.
~/tech/atlassian/atlassian-jira-4.4.1-standalone $ find . -name "*velocity*.jar"
./atlassian-jira/WEB-INF/lib/velocity-1.4-atlassian-9.jar
./atlassian-jira/WEB-INF/lib/velocity-tools-1.3.jar
./atlassian-jira/WEB-INF/lib/atlassian-velocity-0.8.jar
And no, they haven't; see this discussion from a few days ago..