If I try to transfer a file to a directory that does not exist using Camel SCP I see a warning like this in the log:
[scp] WARN scp: /home/user/scp/1234: No such file or directory
It looks like the code says that Camel will just log a warning when such an error occurs. There is no exception in the code, so it looks like the file was transferred when it was not.
Caml SCP Code
Shouldn't this be an error and an exception? Or is there another way of doing the error handling here?
This turned out to be a bug in Camel. See the discussion on the Camel mailing list here.
http://camel.465427.n5.nabble.com/Camel-SCP-Warnings-tc5792552.html
Related
I'm working on setting up SearXNG using apache....ugh....btw, if anybody has any good instructions on this (besides the developer's website) I'd be very grateful.
In any case, after I configure the .conf file and restart apache2, it fails with errors saying this proxy module or that is an invalid command. From all the forums I've looked at, the suggestion was to a2enmod the modules it is complaining about, plus a few others. I've done that but apache keeps complaining about them.
I've not found a thread yet that speaks of this particular issue. Any ideas?
Thanks
Ok, so I have a related question posted here, but I feel like this is a separate issue.
Every time I try to run
apache2 -k start
I get the error
(2)No such file or directory: apache2: could not open error log file /etc/apache2/${APACHE_LOG_DIR}/error.log.
So after extensive research and browsing through configuration files, I am fairly certain that the path shown in the error message above should simply be
${APACHE_LOG_DIR}/error.log
which is the exact path in my <VirtualHost> file for error logging. Something is prepending /etc/apache2/ onto the error log path, resulting in a final path of /etc/apache2//var/apache2/log/error.log, and I cannot for the life of me find out why that is.
I don't care what I need to do, whether it's disabling logging, finding the source of the prepended path, or reinstalling apache2, as long as I don't have to reinstall my entire OS. I have been at this for hours, and I'd really like an answer.
See if starting apache with the following command helps--
service apache2 start
I am creating a web service through the apache CXF. but while i proceed(before the wsdl gets created), i receive the following error
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/cxf/tools/java2wsdl/JavaToWSDL
This seems like the java2ws.bat file has some error.
The statement in the bat file is
"%JAVA_HOME%\bin\java" -Djava.endorsed.dirs="%CXF_HOME%\lib\endorsed" -cp "%CXF_JAR%;%TOOLS_JAR%;%CLASSPATH%" -Djava.util.logging.config.file="%CXF_HOME%\etc\logging.properties" org.apache.cxf.tools.java2ws.JavaToWS %*
It seems like at Run time,jvm is not able to find the CXF.jar.I added it in the classpath but still the same error
please help me to solve the issue
The problem arises while creating JVM. You can refer : Java Refuses to Start - Could not reserve enough space for object heap
It solved my problem.
I would like to set up an AppEngine service locally. Everything compiles, but when i try to run the project, I get this error:
SEVERE: Received exception processing C:\Users\eazyigz\Google Drive\Books\Android eBooks\Apress Practical Android Projects\PracticalAndroidProjectsSourceCode\Projects\08_GameService\war\WEB-INF/appengine-web.xml
com.google.apphosting.utils.config.AppEngineConfigException: appengine-web.xml does not contain a element.
See http://code.google.com/appengine/docs/java/config/appconfig.html#Using_Concurrent_Requests for more information.
You probably want to enable concurrent requests.
at com.google.apphosting.utils.config.AppEngineWebXmlReader.readAppEngineWebXml(AppEngineWebXmlReader.java:79)
at com.google.apphosting.utils.config.EarHelper.readWebModule(EarHelper.java:130)
at com.google.appengine.tools.development.AbstractContainerService.loadAppEngineWebXml(AbstractContainerService.java:334)
at com.google.appengine.tools.development.JettyContainerService.initContext(JettyContainerService.java:160)
at com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:227)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:157)
at com.google.appengine.tools.development.DevAppServerMain$StartAction.apply(DevAppServerMain.java:333)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs(Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.(DevAppServerMain.java:269)
at com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:245)
When I do enable threadsafe, Eclipse shows this compilation error:
I simply don't understand what is happening. Can somebody shed some light?
Thank you,
Igor
You should put <threadsafe> into appengine-web.xml file, not web.xml
You need to add true to the file "appengine-web.xml" instead of the "web.xml"
https://developers.google.com/appengine/docs/java/config/appconfig#Using_Concurrent_Requests
I am getting an exception trying to use update/extract with PDF files
My Set up is:-
Ubuntu Server 11.10
Tomcat 6
Solr 3.5.0.2011.11.22.15.54.38
I can browse to solr/admin OK
I have put all the contrib/extract and apache-solr-cell3.5.0.jar libraries into the tomcat folder webapps/solr/WEB-INF/lib
I am calling extract using:-
curl "http://localhost:8080/solr/update/extract?uprefix=attr_&fmap.content=attr_content&commit=true" -F "file=/path/to/my.pdf"
error is
java.lang.NoClassDefFoundError: org/apache/tika/mime/MimeTypeException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:383)
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:425)
at org.apache.solr.core.SolrCore.createRequestHandler(SolrCore.java:461)
at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.getWrappedHandler(RequestHandlers.java:248)
at org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handleRequest(RequestHandlers.java:239)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:1372)
Would appreciate any pointers - the only time this error seems to come up elsewhere is with Nutch and cached results.
I have tried sending the mimetype in the querystring and also a *.doc file but got the same error.
According to the error message it is not a MimeTypeException exception you get: The problem is a NoClassDefFoundError, because Solr cannot load the class MimeTypeException.
Normally this class is present in tika-core.jar.
Make sure you actually have that file and also check if you have a lib statement in your solrconfig.xml pointing to the right directory.
This was due to the basic error of copying the necessary tika libraries (to tomcat6/webapps/solr/WEB-INF/lib) but leaving ownership of the jar files as ROOT instead of chown-ing them to TOMCAT6. After setting the right permission and restarting Tomcat it started working OK
Found the solution of this problem, I was using SolrJ to update my pdf indexing.
after deploy solr to tomcat, I didn't include the following libraries into the tomcat/webapp
and I get all the lazy loading problem, etc etc
I even try to get apache tika...
until I do this...
shutdown tomcat
\apache-solr-3.5.0\contrib\extraction
copy the libraries above to below
\apache-tomcat-7.0.26\webapps\solr\WEB-INF\lib
startup tomcat
cheers