jbi-registry.xml: Premature end of file - windows

Sometimes Glassfish - OpenESB-v2.3 gives following error:
jbi-registry.xml:1:1: Premature end of file.
What did happen here?

This occurs sometimes when the Server or Glassfish restarts or have not correct shutdown (sometime Windows Update forced restarts). Then the file jbi-registry.xml is empty and we get above error.
To correct it, just go to the following folder:
%GLASSFISH_ESB%/glassfish/domains/domain1/jbi/config
And check if the jbi-registry.xml is empty. If this is the case, replace it with the jbi-registry-backup.xml which is located in the same directory and should not be empty.

Related

While running recorded simulation in Gatling, I get an error

While running recorded simulation in Gatling.
I get an error:
"Resource /recordedsimulation/0004.request.dat"/"Resource
/recordedsimulation/0004.request.json" not found?
You have to open your simulation file, for instance: recordedsimulation.scala and replace all error occurrences of first slash in your file path.
For instance use:
.body(RawFileBody("recordedsimulation/0004.request.json"))
instead of:
.body(RawFileBody("/recordedsimulation/0004.request.json"))
And make sure, your directory recordedsimulation is in your resources directory if you are using gatling version greater than 3.

How to get a more relevant stacktrace (file name and line number) for hhvm fatal error?

I have a legacy hhvm restful api.
I made some changes to its code base and now my local server throws:
Syntax only allowed in Hack files (<?hh) or with -v
Eval.EnableHipHopSyntax=true
My current hhvm specific setting inside my php.ini is:
; hhvm specific
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
date.timezone="Europe/Berlin"
hhvm.libxml.ext_entity_whitelist = file,http
I checked the log at
cat /var/log/hhvm/error.log
Yet it is empty.
I do not want to allow hack file syntax but I do want more relevant information on where the error is occurring.
I want to at least know in which file I created the error. Nice to have would be in which line and at which character position within that line occurs. The api is internal, so I do not mind to expose that information for now.
Right now I am going through the git diff, and that is not a very effective way of finding the offending code.
This won't expose the error to the server response but check your sandbox settings.
The error log may be in your hhvm sandbox, not inside the main hhvm folder:
/var/log/hhvm/sandbox/error.log
There you will find the relevant information with the error's context:
[Mon May 13 15:40:32 2019] [hphp] [25:7fe693fff700:413:000001] [] \nFatal error: Syntax only allowed in Hack files (<?hh) or with -v Eval.EnableHipHopSyntax=true in /var/www/service/src/Dreamlines/BookingService/Bundle/OperatorBundle/Soap/Call/CallBuilderFactory.php on line 177

Error on run SQLPackage.exe /a:script

I'm trying to automate the database deploy process an I'm using the SqlPackage.exe.
I have some database deployment process working with this exe but recently I've been facing an problem to a new database.
When I try to run:
"C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin\sqlpackage.exe" /a:Script /op:p_dbprm003.sql /sf:c:\p_dbprm003.dacpac /TargetServerName:servernamexyzw /TargetDatabaseName:p_dbprm003 /Profile:c:\p_dbprm003.publish.xml
I get the message:
The reference to the element with the name '[xxx_user ]' could not be resolved.
More than one element with this name exists. To resolve the error, you must add
one or more disambiguators.
I really don't know what does it means.
I have a user [xxx_user] and a schema [xxx_user] with the same name. Do you think that it could be an possible cause of the error?
You must set the path variable of SqlPackage.exe as a system variable.It solved my problem.

After porting some php and web app related files from my friend's windows computer to my mac I'm getting some errors

This is for a facebook app being run on heroku, but heroku is probably not the issue. The issue is either some kind of cache related thing, os porting, or I'm thinking it might be a carriage return issue.
In any case I'm getting a couple errors at the top and bottom respectively:
Warning: Unknown:
Warning: session_start(): open(C:\ProgramData\Jcx.Software\VS.Php\2.10.6970.0\temp/sess_i4ood4poc11ebsgth000g1nm74, O_RDWR) failed: No such file or directory (2) in /app/www/sdk/src/facebook.php on line 37
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /app/www/sdk/src/facebook.php:37) in /app/www/sdk/src/facebook.php on line 37
open(C:\ProgramData\Jcx.Software\VS.Php\2.10.6970.0\temp/sess_i4ood4poc11ebsgth000g1nm74, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (C:\ProgramData\Jcx.Software\VS.Php\2.10.6970.0\temp) in Unknown on line 0
Essentially I have tried the whole "making sure session is at the top thing," but I don't have that session piece of code in any of the files. I have tried the whole making sure "?>" is on a new line as well to no effect.
update
I have discovered something called:
zend_extension_ts="C:\Program Files (x86)\Jcx.Software\VS.Php\2010\php 5.2\ext\php_xdebug.dll"
within a file called php.ini which even after I tried to get rid of didn't seem to change anything. So, I'm thinking this has something to do with some previous files that I pushed and then removed with extensions like puo, intellisense.cache, projphp, etc.
I don't know if those are auto-generated or not, but in any case according to my errors:
There is some session data in a file called temp. I have no file named temp.
zend_extension_ts supposedly gets referenced somewhere, but it isn't visible in my code.
I apparently need to resend session cache limiter again through session_start() which is not visible in my code.
Is not the session , I'm sure. But there is directory path included in your code but that directory does not exist! Just refactor that part of the code first!
As a tip you should use realpath() and check if path exist before attempting to use it.
Hope this helps!

My local server meets magento requirements, but install operation hangs on the last step...?

I took a test with magento-check.php file and it said that:
"Congratulations! Your server meets
the requirements for Magento."
But installation procedure simply hangs on the last step and throws execution_time exceeded error, despite the fact, that I already rised it up to 3000 secs.
Any place where I can look for the problem?
UPDATE:
The error is:
Fatal error: Maximum execution time of
3000 seconds exceeded in
/magento/www/lib/Zend/Validate/Hostname.php
on line 591
Perhaps it is failing when testing for mod_rewrite. There is an option to disable that test in the installation. If installation then succeeds then you'll need to work on getting mod_rewrite to work or else you won't have SEO friendly URLs.
Setup a FQDN under your hosts file and use it during installation. Up the maximum execution time in PHP, and if all else fails after that try installing via the Command Line Interface.
Place a file in your doc root with <?php phpinfo(); ?> in it, call it mycheck.php and load it up. Read for yourself the php options and settings and make sure that the execution time is not over-written by server defaults. (This should be clear from the two column output of phpinfo().

Resources