I work on a project developed with Symfony 1.2 and I can’t use the following propel commands without generating errors :
propel:build-schema, propel:build-model, propel:build-forms.
I use:
Apache 2.4
PHP 5.4.27
Propel as ORM
SfPropelPlugin
When executing the commands “php symfony propel:build-schema” and “php symfony propel:build-model”, I receive this error message :
PHP Strict Standards: Declaration of Win32FileSystem::compare() should be compatible with FileSystem::compare($f1, $f2) in D:\vmd\application\lib\vendor\symfony\lib\plugins\sfPropelPlugin\lib\vendor\phing\system\io\Win32FileSystem.php on line 475
When executing the command “php symfony propel:build-forms”, I receive this message (but the forms could be generated) :
PHP Warning: ob_start(): function '' not found or invalid function name in D:\vmd\application\lib\vendor\symfony\lib\config\sfApplicationConfiguration.class.php on line 157
I looked on the forums, but I found nothing working, as this person before me :
http://forum.symfony-project.org/forum/22/topic/87601.html
Problem with Java 8 ?
I wonder if my problem hasn’t come after I upgraded to Java 8 ...
I have now the jre1.8.0_71 version.
Upgrading to Symfony 1.3 and 1.4 :
I tried to upgrade to Symfony 1.3 and 1.4 and I installed SfPropelORMPlugin, but I had other problems, even more important because I could even not access the homepage of the website, for instance.
Can anybody help me ?
Thanks.
I think the command should be:
symfony propel-build-model
symfony propel-build-schema (given you have correct propel.ini)
symfony cc (to clear cache dont forget this command)
Related
I cannot seem to get the h2o code to load in R. I tried to start up h2o using the following codes:
h2o.no_progress()
h2o.init(max_mem_size = "5g")
This did not work so I tried the code below and got the following error message.
h2o.init()
'''H2O is not running yet, starting it now...
<simpleError in system2(command, "-version", stdout = TRUE, stderr = TRUE): '""' not found>
Error in value[3L] :
You have a 32-bit version of Java. H2O works best with 64-bit Java.
Please download the latest Java SE JDK from the following URL:
https://www.oracle.com/technetwork/java/javase/downloads/index.html'''
I tried downloading the Java update, but the link does not work. I am not sure how to fix the error. I am trying to do PCA on my dataset.
That is the correct link: https://www.oracle.com/java/technologies/javase-downloads.html Are the double quotes at the end of the link part of the error message? Or did that get added when you formatted your question here? If you remove the quotes at the end, the link works.
Please download Java 11 because Java 14 (the latest) was just released and we don't officially support it yet. H2O system requirements (Java 8-13) are listed here.
Problem started from here.
page1.php code snippet:
<a href=page2.php?subid=1>xyz</a>
Nothing related gets logged in php error log. Tried try.. catch block and this seems page1.php works perfectly but gets in trouble while redirecting to page2.php. the javaBridge connection breaks?
PHP notice: Undefined index: start_debug, debug_host, debug_port in PHPdebugger.php
PHP Warning: fsockopen(): unable to connect to :0
Moreover, PHPdebugger.php is an automatically generated file for JavaBridge (JavaBridge/java/PHPdebugger.php) so there can't be any issue in the file.
Looks there's an issue with latest version of the bridge (7.0.1) which enables the PHPDebugger by default. See the mailing list archive: https://sourceforge.net/p/php-java-bridge/mailman/message/35776970/.
Check for newer version or downgrade to 6.2.1.
Alternatively a forked version exists (https://github.com/belgattitude/php-java-bridge/releases) with the PHPDebugger disabled by default. A basic installation can be found here, but will drop support of the Java.inc in favour of the soluble-japha client in coming releases (major version only).
I'm trying to run some simple tests with Grinder. I'm using the JMSReceiver script from the Script Gallery and trying to add some statistics, but my Agent throws an exception when it starts up.
A trivial example is:
from net.grinder.script.Grinder import grinder
from net.grinder.script import Test
grinder.statistics.registerSummaryExpression("foo","(/ userLong0 timedTests)")
Running this throws an exception:
...Parse exception: Unknown token 'timedTests', at character 23 of '(/ userLong0 timedTests)'
I'm using grinder-3.11, jython-2.5.3, and I'm running the above Grinder script with:
CLASSPATH=lib/jython-standalone-2.5.3.jar:lib/grinder.jar
java -classpath $CLASSPATH net.grinder.Grinder etc/grinder.properties
where grinder.properties specifies the script to run.
Java version is "1.7.0_03-icedtea", which I think is JDK 7u60 on Centos 6.3.
About 5 minutes after posting the question, I found this wiki page. I don't know if it's the version of Grinder that I'm using, but in order to get this to work I have to change
grinder.statistics.registerSummaryExpression("foo","(/ userLong0 timedTests)")
to
grinder.statistics.registerSummaryExpression("foo","(/ userLong0 (count timedTests))")
The important difference being the addition of the "count" token. This solves my problem.
I need to create a Java stored procedure in Oracle. I have used IBM's sample class for creating an MQ message from a simple class outside of Java EE environment. I have tested the class by itself and it is working.
My Oracle vesrion is 11i.
When I am trying to add the jars used in the simple application to load to Oralce along with my simple class, I am getting errors about class not found, even if same jars work with the test case. I am stuck with this for over a week and am desperately hoping that someone would be able to help me with it.
Kinds of errors I am getting are like this from -v flag with loadjava utility on the client
on line 326 / 327, you see this:
creating : class com/ibm/mq/jms/admin/AP loading : class
com/ibm/mq/jms/admin/AP
and then at the end starting from line 6224 to end, it indicates that the above class can’t be resolved:
com/ibm/mq/jms/admin/APRCXI: ORA-29534: referenced object
xxxx.com/ibm/mq/jms/admin/AP could not be resolved
com/ibm/mq/jms/admin/APSDX: ORA-29534: referenced object xxxx.com/ibm/mq/jms/admin/AP could not be resolved exiting : errors
resolving class com/ibm/mq/jms/admin/AP
the command I used is:
c:\Oracle\product\11.2.0\client_1\bin\loadjava.bat -f -jarsasdbobjects
-prependjarnames -stoponerror -u xxxx/yyyy#SID -v -resolve lib\jms.jar lib\com.ibm.mqjms.jar lib\com.ibm.mq.jmqi.jar lib\dhbcore.jar
lib\fscontext.jar src\com\test\javasp\mq\JmsProducer.java
I also tried with -genmissing option with some additional jars ( list I found here ), but still get similar error for a different class.
Other issue with this that I am facing is that if I get an error and try to use the dropjava command from Oracle, it doesn't work either.
I also saw from this link, that this person was successful, but unfortunately, he/she didn't indicate how they used loadjava to load the jars.
If i can provide any other information, please let me know.
If anyoneone has any idea on how to get the Java Stored Procedure to use IBM MQ working with Oracle 11i, I would really appreciate the help.
Found a detailed answer in this blog entry. I tried it and it worked for me.
In Oracle there is no concept of CLASSPATH, so the standard MQ Client install is useless. You can only load the jars reference by your app within the database schema. Classes are resolved when loaded with the -r option. You can further on specify your own resolved using -r -Resolver (schemas). (check Oracle docs for exact format). So in effect the database schemas becomes the classpath.
Using Websphere MQ classes for Java poses a number of problems, you have to ensure that the Oracle JDK version is at an appropriate support level to connect to the chosen MQ server version. Check the system requirements for websphere MQ Vx.x. You should find IBM's web references. check the support for MQ classed for java.
I have such an issue at the moment trying to connect to Mq using Oracle 10 and JDK 1.4.2. I had to recompile my Java code using JDK 1.4.x. This does not work and I assume it is because I connect to MQ 7.0.1.7 which requires JRE 1.7 as minimum.
Hi I'm trying to install this tool 'Sean Corfield's scripting for ColdFusion project.' on my server - problem is I am getting "Class not found: com.caucho.quercus.script.QuercusScriptEngineFactory " errors, I have java 1.6 installed.... I'm not sure how where to get these extra classes ... any help?
[opensuse 11 system, CF8 java 1.6]
-thanks
-sean
Did you follow the installation instructions for the cfphp, as per the "example.cfm" page:
Installation:
1. Copy lib/quercus.jar and lib/resin-util.jar to WEB-INF/cfusion/lib/
(multiserver) or coldfusion8/lib (standalone)
2. Restart ColdFusion 8.
3. Optionally copy customtags/php.cfm into your custom tags path.
The important thing is that the quercus.jar is accessible to the JVM. Your error message indicates that the JVM can't find the jar.