I'm trying to use FOP to generate a pdf file in a signed applet, but, i got these errors:
Dez 10, 2013 2:09:45 PM org.apache.fop.fo.properties.PropertyCache <init>
Informações: Unable to access org.apache.fop.fo.properties.use-cache due to security restriction; defaulting to 'true'.
ERROR: 'Unknown function: gatherContextInfo'
I tried the same code in a desktop application, and everything works fine, the problem is just in the applet.
Problem solved!
I had to add the provided xalan.jar in fop-bin.zip to the classpath.
I guess it includes the unknown function while the built in implementation in JRE not.
Related
I have imported weka source code as a maven project into eclipse without any error but when I want to run GUIchooser.java I get this text in console as below:
May 12, 2018 1:50:18 PM com.github.fommil.jni.JniLoader liberalLoad
INFO: successfully loaded /tmp/jniloader3338685618862893341netlib-native_system-linux-x86_64.so
May 12, 2018 1:50:18 PM com.github.fommil.jni.JniLoader liberalLoad
INFO: successfully loaded /tmp/jniloader3338685618862893341netlib-native_system-linux-x86_64.so
The weka-GUI run; but my own classifier which I had added to weka before running GUIchooser.java, is not added to GUI classifiers.
I use ubuntu 16.4 but I have same problem in windows 10.
I also use weka 3.8.1
I've just copied another classifier source code to 'myClassifier.java'. finally I could see my package and classifier in the weka GUI.
now I can modify the previous classifier code.
I am using deltaxml for some time and it is working fine. But for a specific dita topics , I am getting these warnings in the logs:
WARNING: Caught com.deltaxml.dita.FilterProcessingException: Exception thrown when attempting to run the ‘input-a/9-dxp-9-cals-table-checker.xsl’ step (source: ‘/dita-xsl/cals-tables/cals-table-checker.xsl’) whilst performing DCE[BEINGPROCESSED: file:/home/nxf36037/crrbcompareissue/trydirecttmp5/a-0-file-/regs/d ipflexcan3syn.dita, file:/home/nxf36037/crrbcompareissue/trydirecttmp5/b-0-file-/regs/d ipflexcan3syn.dita.bak, file:/home/nxf36037/crrbcompareissue/trydirecttmp5/b-0-file-/regs/d ipflexcan3syn.dita]
Feb 09, 2018 2:37:55 PM com.deltaxml.dita.ditabb ditaa
WARNING: Cannot find ids within file:/home/nxf36037/crrbcompareissue/trydirecttmp5/b-0-file-/regs/d ipflexcan3syn.dita Cause: java.io.FileNotFoundException: /home/nxf36037/crrbcompareissue/trydirecttmp5/b-0-file-/regs/dipfl excan3syn.dita (No such file or directory)
Feb 09, 2018 2:37:55 PM com.deltaxml.dita.ditaq ditaa
WARNING: Cannot prepare topics for comparison. Cause: com.deltaxml.util.href.ditab: Cannot construct target (concerning hrefs file:/home/nxf36037/crrbcompareissue/trydirecttmp5/b-0-file-/regs/d ipflexcan3syn.dita, file:/home/nxf36037/crrbcompareissue/trydirecttmp5/b-0-file-/regs/d ipflexcan3syn.dita.dxml-p1)
Feb 09, 2018 2:38:02 PM com.deltaxml.dita.ditaq ditaa
WARNING: Skipping topicref /home/nxf36037/crrbcompareissue/trydirecttmp5/b-0-file-/regs/dipfl excan3syn.dita. Cause: Cannot determine whether file:/home/nxf36037/crrbcompareissue/trydirecttmp5/b-0-file-/regs/d ipflexcan3syn.dita contains change.
I am not able to find the cause of this issue, I have tried almost all the arguments which I felt could be the cause.
The command line I am using is:
java -jar /pkg/deltaxml-dita-/2017.09.21/lib/deltaxml-dita.jar compare mts B1518165232953/dipflexcan3syn/specsource/maps/dipflexcan3synbg .ditamap B1518165232953/dipflexcan3syn/specsource/maps/dipflexcan3syn_bg .ditamap output-format=dita-markup map-result-structure=map-pair map-result-origin=B trydirecttmp5
I have also checked the dita files, they gets validated and there are no errors. Could you please help here?
The schematron code at: https://github.com/nigelwhitaker/cals-table-schematron can be used to detect and report, in a fairly user-friendly manner, table validation issues, either inside an editor or using the schematron skeleton.
As discussed with Mohit over in https://github.com/nigelwhitaker/cals-table-schematron/issues/4 it does however depend on XSLT 2.0 or 3.0 features and therefore is not suitable for all schematron systems.
I am a new programmer trying to deploy my Java web application to a web host for the first time. I started trying to do it with Jelastic but I need file storage, not just a .jar file, and it looks like you have to pay a LOT to upgrade.
If you know of a way I can upload my application and also store a single .png (image) file so my application can overwrite it by accessing the URL please let me know. I don't mind paying X money for a host but $150 or whatever is crazy.
In the meantime I found that Google App Engine lets you upload a Java application. I have been trying to do this for maybe 3 hours.
I am stuck with the error:
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
I have checked that I am logged in under the correct Google account (no others, and rebooted and used CCleaner to clear my browser cache), that I have an empty project in Google App Engine called "animelist1" and have checked that my application is called "animelist1" with the appengine-web.xml with "animelist".
I am using the netbeans plugin to deploy to Google. I have the correct email set there.
There are many people with this issue who fixed it the same way. However as I am a beginner I am unable to figure out how to do this method. The method is
This application does not exist (app_id=xxx)
Google App Engine : this application does not exist
(and many others with similar answers)
The method is "appcfg.py update --no_cookies MyProjectDirectory/" or "appcfg.py update . --no_cookies"
Can you please assist me in doing this?
I have located appcfg.py at
C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine
there is another one at
C:\Program Files\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\tools
there is also a appcfg_java.py here but we can come to that later if need be.
I have tried using the Google Cloud SDK Shell (which looks like the cmd console) to navigate to the directory and type those commands. This opens the file in a text file and doesn't seem to do anything else.
I believe I may have to find the appcfg relevant to my application/project (but I'm not sure). When I do a computer search for the file I get 8 files with that name returned:
image
All I want to do really is upload my Java Glassfish web application, then upload a .png file so I can point my application to it (it will overwrite the file).
I thought about changing my application to run on Tomcat because I thought I saw there was a free Java host that allows tomcat. That was several hours ago now because I have been headbutting this thing so maybe I should just abort and try that instead. Or if you know of a host that doesn't cost $150+ let me know. I don't know why they said they cost that, I thought you could host really cheaply.
Please help, thankyou!!!!
The full code of my error is below. I don't know why there is an error about System Java Compiler, I just checked my environment after messing it up, saw it hadn't saved, then rebooted, and now it is saved. I have a JAVA_HOME system variable set to C:\Program Files\Java\jdk1.8.0_40 and my Path system variable is
C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\Java\jdk1.8.0_40
(maybe I don't need both, not sure). I have nothing else set there, nothing in User Variables though I will double check if that is needed.
Here is my full error log:
********************************************************
There is a new version of the SDK available.
-----------
Latest SDK:
Release: 1.9.19
Timestamp: Thu Feb 19 23:57:40 GMT 2015
API versions: [1.0]
-----------
Your SDK:
Release: 1.9.18
Timestamp: Thu Feb 12 19:30:16 GMT 2015
API versions: [1.0]
-----------
Please visit https://developers.google.com/appengine/downloads for the latest SDK.
********************************************************
Reading application configuration data...
Apr 20, 2015 6:51:40 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed C:/Users/J/Documents/NetBeansProjects/g5/target/animelist1-1.0-SNAPSHOT\WEB-INF/appengine-web.xml
Apr 20, 2015 6:51:40 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed C:/Users/J/Documents/NetBeansProjects/g5/target/animelist1-1.0-SNAPSHOT\WEB-INF/web.xml
Beginning interaction for module default...
Apr 20, 2015 6:51:40 AM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
This is try #0
Apr 20, 2015 6:51:40 AM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
This is try #1
Apr 20, 2015 6:51:41 AM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
This is try #2
Apr 20, 2015 6:51:41 AM com.google.appengine.tools.admin.AbstractServerConnection send1
WARNING: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=animelist1&version=1&
404 Not Found
This application does not exist (app_id=u'animelist1').
This is try #3
0% Created staging directory at: 'C:\Users\J\AppData\Local\Temp\appcfg8900677438454325367.tmp'
5% Scanning for jsp files.
8% Compiling jsp files.
Error Details:
Apr 20, 2015 6:51:42 AM org.apache.jasper.JspC processFile
INFO: Built File: \index.jsp
java.lang.RuntimeException: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Unable to update app: Cannot get the System Java Compiler. Please use a JDK, not a JRE.
Please see the logs [C:\Users\J\AppData\Local\Temp\appcfg6599854602413633444.log] for further information.
I have an empty project in Google App Engine called "animelist1"
If you mean that you've used the SDK set up a local project, then you might have missed a step. When you visit http://appengine.google.com/ , does "animelist1" appear in the list of your applications? If not, you'll need to click the Create Application button (and hope that someone else hasn't already used that appid).
No project with ID 'animelist1' currently exists, but this ID is not available (it could exist in the past, but was deleted). If you already created the project your App ID is the same as Project ID, not Project name. If you didn't yet create the project, create one either in the old App Engine console as suggested by Dave or as per manual.
This is an credentials issue in most cases when you download code from already exsit project.
Make sure you have only one google account login your default browser.
Go to your lib/appengine-java-sdk-<version>/bin/ and run:
appcfg --no_cookies update <project-dir>
Note: early appcfg version command may like :appcfg update --no_cookies <project-dir>
We are getting the following error in catalina.out file when we restart our application with newrelic java agent configured.
We have followed the steps specified in newrelic installation guide and following is the entry created in catalina.sh by newrelic installer:
# ---- New Relic switch automatically added to start command on 2013 Dec 09, 20:24:35
NR_JAR=/usr/share/fk-ops-tomcat6-base/newrelic/newrelic.jar; export NR_JAR
JAVA_OPTS="$JAVA_OPTS -javaagent:$NR_JAR"; export JAVA_OPTS
Exception on app restart in catalina.out:
Error bootstrapping New Relic agent: java.lang.RuntimeException: java.io.IOException: No such file or directory
java.lang.RuntimeException: java.io.IOException: No such file or directory
at com.newrelic.bootstrap.BootstrapLoader.load(BootstrapLoader.java:95)
at com.newrelic.bootstrap.BootstrapAgent.premain(BootstrapAgent.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
Caused by: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1704)
at java.io.File.createTempFile(File.java:1792)
at java.io.File.createTempFile(File.java:1828)
at com.newrelic.bootstrap.BootstrapLoader.getJarFileInAgent(BootstrapLoader.java:81)
at com.newrelic.bootstrap.BootstrapLoader.addBridgeJarToClassPath(BootstrapLoader.java:47)
at com.newrelic.bootstrap.BootstrapLoader.load(BootstrapLoader.java:92)
... 7 more
I just encountered the same problem. The not very helpful error message alluded to the fact that the newrelic agent (or rather the user under which my server is running) wasn't able to write into /tmp. Maybe that helps!
I hit that exception with that stack trace recently, and in my case it was caused by the temporary directory not existing at all.
In particular: by default tomcat uses $CATALINA_BASE/temp as value for the java.io.tmpdir property, and seems to create that when needed. At the time the newrelic agent boots up however it may not yet exist, and so newrelic agent fails with that exception.
After restarting things are fine (now the directory exists!), but I solved in my startup scripts:
1. set the value of CATALINA_TMPDIR explicitly to something I control
2. ensure that directory exists before starting tomcat.
Make sure the newrelic.yml placed and marked readable in the same directory as the .jar
I work for New Relic.
As you've seen from the answers above, there can be multiple causes for this kind of message - some of which are pretty unexpected. Since this forum is not intended for back-and-forth messaging about incidents, in case neither of the previous two answers solved the problem for you, your best bet will be to open a ticket for support at http://support.newrelic.com where we can ask to look at your logfile and gather debug logs as necessary.
I had the same problem using apache version 6.0.33. Once I upgraded to 7.0.53 everything worked.
save problem.
But I found this:
Sep 09, 2015 11:19:48 AM org.apache.catalina.startup.Catalina initDirs
SEVERE: Cannot find specified temporary folder at /mnt/apache-tomcat-7.0.56/temp
then doing this:
mkdir /mnt/apache-tomcat-7.0.56/temp
cp /mnt/apache-tomcat-7.0.56/newrelic/* /mnt/apache-tomcat-7.0.56/temp
Everything works.
You may not need cp.
If you look at very early of Tomcat log (catalina.out) after NewRelic exception, you can see what folder is required that are missing. Here is mine:
May 29, 2017 5:04:31 PM org.apache.catalina.startup.Catalina initDirs
SEVERE: Cannot find specified temporary folder at /var/log/tomcat/tomcat7/temp
May 29, 2017 5:04:32 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/7.0.59
Hope this help
The problem is that in Eclipse-IDE every test with Ebean related methods works fine, but when you compile a jar-File to use it e.g. on a Homepage, or on command prompt, i only get this
Jul 10, 2012 4:25:48 PM com.avaje.ebeaninternal.server.util.ClassPathSearch find
Classes
Warnung: No Entities found in ClassPath using ClassPathReader [com.avaje.ebeanin
ternal.server.util.DefaultClassPathReader#6c08bae7] Classpath Searched[[file:/C:
/xampp/htdocs/webp3/jars/DPG.jar]]
Jul 10, 2012 4:25:48 PM com.avaje.ebeaninternal.server.core.BootupClassPathSearc
h search
Information: Classpath search hits in jars[] pkgs[] searchTime[27]
Jul 10, 2012 4:25:48 PM com.avaje.ebeaninternal.server.lib.sql.DataSourcePool in
itialise
Information: DataSourcePool [mysql] autoCommit[false] transIsolation[READ_COMMIT
TED] min[1] max[25]
Jul 10, 2012 4:25:48 PM com.avaje.ebeaninternal.server.core.DefaultServerFactory
setDatabasePlatform
Information: DatabasePlatform name:mysql platform:mysql
Jul 10, 2012 4:25:48 PM com.avaje.ebeaninternal.server.subclass.SubClassManager$
1 run
Information: SubClassFactory parent ClassLoader [sun.misc.Launcher$AppClassLoade
r]
Jul 10, 2012 4:25:48 PM com.avaje.ebeaninternal.server.deploy.BeanDescriptorMana
ger logStatus
Information: Entities enhanced[0] subclassed[0]
Exception in thread "main" javax.persistence.PersistenceException: com.dpu.entit
ies.Department is NOT an Entity Bean registered with this server?
at com.avaje.ebeaninternal.server.core.DefaultServer.createQuery(Default
Server.java:1008)
at com.avaje.ebeaninternal.server.core.DefaultServer.createQuery(Default
Server.java:965)
at com.avaje.ebeaninternal.server.core.DefaultServer.find(DefaultServer.
java:1001)
at com.avaje.ebean.Ebean.find(Ebean.java:1143)
at com.dpu.data.Datagenerator.generateData(Datagenerator.java:26)
at com.dpu.main.MainGenerator.main(MainGenerator.java:23)
I tried many "solutions" on google like editing the Classpath, but everything seems to be fine regarding on the log.
My JAR-Manifest contains this:
Manifest-Version: 1.0
Main-Class: com.dpu.main.MainGenerator
Class-Path: .
Does someone know how to solve this silly problem? I tried everything this day and it's just annoying
Alternatively to user1537597's answer you can add
# specify jars to search for entity beans
ebean.search.jars=myJarFile.jar
to the ebean.properties file, if you don't use the programmatic configuration.
You can also add the following to ebean.properties
ebean.packages=com.packagename
Same here.
The only way is to extract the jar and run the java main class. You need to put the ebean.properties file in the root of your project too.
e.g.:
jar xf project.jar
cp /my_project_root/ebean.properties project
cd project
java Project
not it depends on the fact that you need to specify in the ebean.properties to look for entities in the jar. I'm looking how to do it from the property file. Now I only found with the programmatic configuration.
config.addJar("nameFile.jar")
I managed to solve this by using a programmatic configuration and adding every entity class manually like this:
serverConfig.addClass(Entity.class);
The advantage of this approach compared to ebean.search.jars=yourJar.jar is that if the jar file name changes, it will still work.