How to fix NullPointerException in sites.html in AEM? - nullpointerexception

I'm suddenly getting NullPointerException in the sites.html link on the author in Adobe Experience Manager, Version 6.0.0.SP3
Any ideas? Please help.
Internal Server Error
Cannot serve request to /sites.html/content in /libs/cq/gui/components/siteadmin/admin/pagecard/pagecard.jsp
Exception:
java.lang.NullPointerException
at org.apache.jsp.libs.cq.gui.components.siteadmin.admin.pagecard.pagecard_jsp.getCommentCount(pagecard_jsp.java:99)
...

We found missing jcr:content nodes for some pages under /content.
Some existing jcr:content nodes were missing jcr:title property.
We added the missing jcr:content nodes and jcr:title property.
This solved the issue.
Note:
The root of any of the sites (specifically sub-sites) should contain the following within their jcr:content –
1. Title
2. cq:allowedTemplates - to define the templates that go with this site specifically.
3. designPath – which defines the clientlibs for the site and can contain options for the sidekick.

Go to crx-quickstart folder in your file system and search for pagecard_jsp.java.
What is on line 99? I have a different version but I guess it is this line:
Resource commentsResource = page.getContentResource().getChild("alt/comments");
If this line throws a NPE, it means that one of the top-level pages under /content is missing jcr:content node or the node is corrupted.
It is just a wild guessing without details.

I think we need to add the property under /content/your-folder/jcr:content as**:
jcr:title : give the exact name . Click on add and save all.

Related

How to save a file to a folder in blazor with syncfushion?

I'm trying to save a file in the "sample/save" using the syncfusion SfUploader I think I'm defining the path wrong.
<SfUploader ID="UploadFiles">
<UploaderEvents></UploaderEvents>
<UploaderAsyncSettings SaveUrl="sample/save"></UploaderAsyncSettings>
</SfUploader>
It gives me this error on the browser console.
HTTP400: BAD REQUEST - The request could not be processed by the server due to invalid syntax.
(XHR)POST - https://localhost:33478/sample/save
(new to blazor)
Thanks in advance :)
Suspecting that the controller name and the name in SaveUrl are not identical. Please ensure that the API controller name and SaveUrl name are same. Also refer the below sample and UG.
Sample Link : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Uploader449877060
UG Link : https://blazor.syncfusion.com/documentation/file-upload/getting-started/#with-server-side-api-endpoint

Pentaho error Required subelement 'user'

I get a error when I try to preview the query:
I get this error :
ParentException:
java.lang.RuntimeException: Required subelement 'user'
at org.osjava.sj.loader.convert.DataSourceConverter.convert(DataSourceConverter.java:54)
at org.osjava.sj.loader.JndiLoader.convert(JndiLoader.java:351)
can anyone help me ?
make sure there are no empty spaces in the jdbc.properties file of pdi after "=". I had the same issue, I removed the empty spaces and it worked. ex:
test1/user=root
test1/password=Letmein1234
test1/url=jdbc:mysql://localhost:3306/test1
You need to add following properties to the jdbc.properties file located in data-integration/simple-jndi directory
[JNDI_connection_Name]/user=
[JNDI_connection_Name]/password=
These attributes are mandatory:
JNDI_connection_Name/user=
JNDI_connection_Name/password=
even if they are empty (e.g. for SQLite file).
No 'user' in one section cause problems in all sections.

Documentum Docbase is unable to save an object

When I using the following API script to save an object,it just hangs up and no result...
link,c,object_id,/temp1/temp2 save,c,object_id
Also I have other test like :
create a new dm_folder object and link to /temp1/temp2, object created.
update dm_folder object to link and unlink, object is linked and unlinked to expected folder paths.
All the above two steps works, but not the ‘save’, why?
Could you guys give me some advice on this issue?
You are mistaking somewhere. API command
link,c,<object_d>,<path_to_link_object_to>
save,c,<object_id>
works as expected, i.e. it links object to specified path which is provided as last argument in first command.
Try formatting better your question so we can identify your syntax errors if there are any.

Prestashop admin panel is lost after trying to export language packet

There were some language problems in my site which uses a specific theme so I thought,I should pick out the language pack edit and reload it. Because I couldn't find a way to edit it using browser on admin panel.
I just pressed a button named export language packet. I don't know if something happened that time. But it didn't give me a file (an exported file I mean) . So I didn't do anything else. But since that time I can't reach my admin panel. While I write the URL it shows me a big white screen.
On the other side the site itself (not admin panel) is reachable. What can I do to fix my problem?
Hi,
This is the error
( ! ) SCREAM: Error suppression ignored for
( ! ) Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in C:\wamp\www\httpdocs\translations\tr\admin.php on line 586
Call Stack
# Time Memory Function Location
1 0.0009 690552 {main}( ) ..\index.php:0
2 1.7995 9942280 DispatcherCore->dispatch( ) ..\index.php:50
3 2.0567 10375504 ControllerCore::getController( ) ..\Dispatcher.php:342
4 2.0686 12512728 AdminControllerCore->__construct( ) ..\Controller.php:128
5 2.0689 12514200 AdminControllerCore->l( ) ..\AdminController.php:304
6 2.0711 12612344 TranslateCore::getAdminTranslation( ) ..\AdminController.php:1737
The error you got is in your translation file in file translations\tr\admin.php on line number 586.
To fix that error, take a backup of that file, i.e. keep a copy of that file in some other place, then try to find out the syntax error you got there. It is some kind of PHP syntax error there in that translation file. As the translation file is only for the admin section, therefore your site front end may be fine and your site admin section is not working.
If you are not able to find that error and fix it, then delete all contents from that file, and then try to load the admin section.
You should use a translation pack which is provided by prestashop, ie download it from the prestashop http://www.prestashop.com/en/translations .
Also if you want to edit translations, use admin. In your question you mentioned, that you were not able to edit translations, please do provide details for that problem, and also try to edit translations while keeping error reporting on, so if there is any problem, you will get the errors printed. If you got errors printed, then update your question with that error message.
Let me know if you still got any questions.

MVC4 bundle pattern error

I'm stuck with bundles in MVC4. I have defined bundle
bundles.Add(new ScriptBundle("~/bundles/maps").Include("~/Scripts/map.*.js"));
and scripts
map.base.js
map.helper.js
This was OK until I have added
map.setting.js
After that I'm geting error
Invalid pattern: 'map.*.js'. Wildcards are only allowed in the last path segment, can contain only one leading or trailing wildcard, and cannot be used with {version}.
Parameter name: virtualPaths
Any ideas how to solve this without listing all the files (I'm expecting to add more with "map." prefix)?
Thanks for help.
This just seems to be an annoying limitation of the current Bundle version.
You can write:
.Include("~/Scripts/map.*")
Of course it may pick up ~/Scripts/map.a.txt (not sure, did not test that edge case). As long as you only have .js resources in the given path, map.* is safe.