Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

bbboy2014
Community profile bbboy2014 Level 2
Job title here
Location here
4 BADGES
Level 2

Level 2

Learn more
Joined the community 22-09-2014 8:13:33 PM
Offline
Top badges earned by bbboy2014
Customize the badges you want to showcase on your profile
Re: How to get property type value is Stirng[]
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
smacdonald2008 wrote... Take a look here - there are some examples on http://www.day.com/specs/jsr170/javadocs/jcr-1.0/javax/jcr/PropertyType.html that may help: http://www.javased.com/index.php?api=javax.jcr.PropertyType Exactly!!!!! Thanks a lot.Now i know to assert and get the multi type property.But if need to assign multi values to multi property, how to do that?

Views

208

Likes

0

Replies

0
Re: How to get property type value is Stirng[]
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Sorry, i check the https://docs.oracle.com/javase/tutorial/java/nutsandbolts/op2.html content, it seeming not fit the problem. Note: this is JCR API.

Views

157

Likes

0

Replies

0
How to get property type value is Stirng[]
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,Now i need to assert a property type is "String[]", please see below:[img]option.png[/img]But I find that there is no specified value for type "String[]", please see below:[img]string.png[/img]Anyone know how to assert the type? Thanks a lot in advance.

Views

368

Likes

0

Replies

5
Re: How to add shutdown hook in CQ5
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
sure, that work except JVM shutdown case.

Views

144

Likes

0

Replies

0
Re: How to add shutdown hook in CQ5
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
private CustomerService getCustomerService() { BundleContext ctx = FrameworkUtil.getBundle(this.getClass()) .getBundleContext(); ServiceReference serviceReference = ctx .getServiceReference(CustomerService.class.getName()); return CustomerService.class.cast(ctx.getService(serviceReference)); }

Views

116

Likes

0

Replies

0
Re: How to add shutdown hook in CQ5
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
I did try to use that you suggested, however cannot work and throws the same exception: the OSGI service is nullpointer.

Views

116

Likes

0

Replies

0
Re: How to add shutdown hook in CQ5
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Yes, i find that log record bundle service can't cast class. See below code:private CustomerService getCustomerService() { BundleContext ctx = FrameworkUtil.getBundle(this.getClass()) .getBundleContext(); ServiceReference serviceReference = ctx .getServiceReference(CustomerService.class.getName()); return CustomerService.class.cast(ctx.getService(serviceReference)); } As a result,Do you mean to tie this task to the deactivate method as following:protected void deactivate(ComponentContext ctx) { ...

Views

119

Likes

0

Replies

0
How to add shutdown hook in CQ5
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,There is a case for me: i need to persist application some data before JVM shutdown. So i program as below in OSGI bundle:protected void activate(ComponentContext ctx) { this.bundleContext = ctx.getBundleContext(); final Set jobs = CreateJobServlet.jobNames; jobs.addAll(getInProgressJob()); shutDownHook(jobs); } private Set getInProgressJob() { return getCustomerService().getInProgressJob(); } private void shutDownHook(final Set jobs) { logger.info("Exec shutDownHook()........."); Runti...

Views

361

Likes

0

Replies

8
How to make CXF support HTTPS webservice invoking?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,when i use CXF to invoke remote webservice that support HTTPS protocol:07.04.2015 13:56:48.033 *INFO* [fe80:0:0:0:e041:4e24:9c99:e38%11 [1428386208033] GET /content/xxx/jcr_content.persist.json HTTP/1.1] com.adobe.cq.CustomerServiceImpl xxx configure url: https://w113.xxxx.com:8443/xxx/aemServices/WebService4AEM?wsdlbut it happens error:com.XXX.www.webservices.WebServiceException_Exception: Web services is not installed. And i also invoke setTrustStore before to invoke webservice:privat...

Views

161

Likes

0

Replies

1
Re: How to get website page locale code?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
It works, thank you so much.But i wonder the principle that get the page locale information, and where do it find the language and counrtry of page exactly? I guess maybe one property saved that page locale information? Could you comment details? Thanks a lot.

Views

909

Likes

0

Replies

0
How to get website page locale code?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,There is a difficulty case to me: i wonder if there is a API to get locale code. E.g., when i get node "/content/geometrixx/fr/products/square", the API could return the "fr"(french); and when i get node "/content/geometrixx/en/services/banking", the api could return the "en" (English). Anyone could help that? Thanks a lot. Br,Brian

Views

3.3K

Likes

0

Replies

3
Re: why pushed button in the sidekick don't display sometimes?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
No find JS error but find server error log:31.03.2015 15:14:54.744 *ERROR* [10.10.215.29 [1427786094713] GET /content/geometrixx_mobile/en/products.feature.html HTTP/1.1] org.apache.sling.servlets.get.impl.DefaultGetServlet No renderer for extension html, cannot render resource SyntheticResource, type=cq/personalization/components/contextcloud, path=/content/geometrixx_mobile/en/products/jcr:content/contextcloud

Views

118

Likes

0

Replies

0
Re: why pushed button in the sidekick don't display sometimes?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Seems like FireFox is okay but IE and Chrome are not.  Interesting…

Views

113

Likes

0

Replies

0
why pushed button in the sidekick don't display sometimes?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,I add following JS code under the folder apps\myApp\clientlibCQ.Ext.ns("MyClientLib"); MyClientLib.ContentFinder = { addToCart: function(sk){ var pagePanel = sk.panels["PAGE"]; var button = pagePanel.findBy(function(comp){ return comp["name"] == "ADD2_CART"; }, pagePanel); if(button && button.length > 0){ return; } button = { xtype: "button", scope: sk, name: "ADD2_CART", text: "Add to cart", "context": [ CQ.wcm.Sidekick.PAGE ], handler: function(){ //store to cart var pagePath = CQ.WCM...

Views

256

Likes

0

Replies

5
Re: how to integrate the external dependency of axis JAR (Webservice)
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
I try to use JAX-WS to invoke a WS, but it don't support SOAP encoding(It's not possibly to modify WSDL). As a result i have to back use JAX-RPC again, which means axis again.

Views

140

Likes

0

Replies

0
Re: how to integrate the external dependency of axis JAR (Webservice)
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
How have you embedded the axis-1.4.jar and commons-discovery-0.2.jar JARs into the OSGi bundle?

Views

125

Likes

0

Replies

0
how to integrate the external dependency of axis JAR (Webservice)
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Now i face a hard problem with i define a OSGI bundle involve out WebService, but can't be actively as following :[img]1.jpg[/img]And for fix it i do that follow this article use CFX instead of AXIS http://helpx.adobe.com/experience-manager/using/creating-cxf-bundles-consume-web.htmlbut fail to run command as below:[img]2.png[/img] I looking for solution but it seem i have to back use AXIS. As a result i have no way to deal with it.[img]3.png[/img] Anyone ever face it and have solution for that?

Views

305

Likes

0

Replies

4
Re: How to define a new page for adding new one feature link on the right pane of welcome
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
So nice article, i get much useful information from that.And now i encounter another weried problem ,could you possibly help see it. Thanks in advance.Why OSGI service cannot be resolved to a type?help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.3_ciot.html/forum__ihhl-according_tothisar.html

Views

124

Likes

0

Replies

0
Re: How to define a new page for adding new one feature link on the right pane of welcome
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Great article, thank you so much.And now i encounter another weried problem ,could you possibly help see it. Thanks in advance.Why OSGI service cannot be resolved to a type?help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.3_ciot.html/forum__ihhl-according_tothisar.html

Views

111

Likes

0

Replies

0
How to communicate with different OSGI bundles
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,I define a osgi bundle A, and the second osgi bundle B, now a method in the A need to call another mothod defined in the B.private BService getBService() { BundleContext ctx = FrameworkUtil.getBundle(this.getClass()) .getBundleContext(); ServiceReference serviceReference = ctx .getServiceReference(BService.class.getName()); return BService.class.cast(ctx.getService(serviceReference)); }In general, if bundle A want to get B instance, developer could use above code. But the question is ho...

Views

181

Likes

0

Replies

3
Re: Why MS IE do ignore AJAX request when loading
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Our QA team require test that in the latest version, so need to fix it.

Views

141

Likes

0

Replies

0
Re: Why MS IE do ignore AJAX request when loading
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
It seems not work. The IE version 11.0.9600.17691is.

Views

140

Likes

0

Replies

0
Re: Why MS IE do ignore AJAX request when loading
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Yes, never make a server call. but this ajax request could work well if use firefox and chrome IE. So i suspect if the Microsoft IE latest version not support that well.

Views

142

Likes

0

Replies

0
Re: Why MS IE do ignore AJAX request when loading
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Not find any exception, but this ajax request could work well if use firefox and chrome IE. So i suspect if the Microsoft IE latest version not support that well.

Views

143

Likes

0

Replies

0
Why MS IE do ignore AJAX request when loading
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi there,When i use IE version 11.0.9600.17691is to open AEM, but find it ignore page ajax request. please see following details: 1) Add a new featurn under :/libs/cq/core/content/welcome/features/myNewFeature2)Set target value /content/globalsight/myTestPage for property sling:target3)And in the app page myTestPage defines a ajax : $(document).ready(function() { var ipAddress; $.ajax({ type: 'GET', url:'/bin/connector', success: function(msg){ // var json = jQuery.parseJSON(msg); var json = msg; var hostName = json.HostName; var hostPort = json.HostPort; var username = json.UserName; var pwd = json.Password; var enableHttps = json.EnableHttps; var desc = json.Desc; ipAddress = json.ipAddress; $("#hostName").val(hostName); $("#hostPort").val(hostPort); $("#username").val(username); $("#password").val(pwd); $("#description").val(desc); var count = $("#enableHttps").get(0).options.length; for(var i=0;i<count;i++) { if($("#enableHttps").get(0).options[i].text == enableHttps) { $("#enableHttps").get(0).options[i].selected = true; break; } } } });The problem is when i press the link at welcome page , the page myTestPage never run that ajax if use MS IE, but the other IE like firefox, chrome work it and run that ajax when load the page. It make me confused. Anyone know how to resolve it?Thanks a lot Best regards,Brian

Views

431

Likes

0

Replies

9
Re: Why OSGI service cannot be resolved to a type?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Get it ,i send a email to you, please check it.

Views

1.7K

Likes

0

Replies

0
Re: Why OSGI service cannot be resolved to a type?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
hi,Actually i mean this article example http://helpx.adobe.com/experience-manager/using/first-osgi.html is runing well in my localhost, but this article http://helpx.adobe.com/experience-manager/using/persisting-cq-data-java-content1.html always happen that error: can't compile JSP because com.adobe.cq.CustomerService cannot be resolved to a type.The both have the same place is the template(jsp) involved the different OSGI servcie, but the second example why the interface cant be resolved to a t...

Views

1.6K

Likes

0

Replies

0
Re: Why OSGI service cannot be resolved to a type?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Hi,I notice this article http://helpx.adobe.com/experience-manager/using/persisting-cq-data-java-content1.html# there is some mistake but i am not sure.e.g., below the "strong" path i change it for "/apps/jcrpersist/components" because i notice never create fold sqlpersist and i guess it is a type mistake, right?The css.txt file contains the CSS file name: site.css. Likewise, the js.txt file contains the JS file name: jquery-1.6.3.min.js.Add the files to the ClientLibs folder Right-click /apps/s...

Views

1.6K

Likes

0

Replies

0
Re: Why OSGI service cannot be resolved to a type?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
Thanks for your answer. And i deploy the bundle to OSGI container also start it with no any failure message. But i find no any dependency jar files were included into the bundle Jar, it only declare it's dependency in the pom file.This error logged found in file {crx-quickstart}/logs/error.log and happened when first page form data was commit to persist.json.jsp to persist then fail to that.Its make me confuse.

Views

1.6K

Likes

0

Replies

0
Re: Why OSGI service cannot be resolved to a type?
Avatar
Validate 10
Level 2
bbboy2014
Level 2

Like

1 like

Total Posts

150 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
bbboy2014
- Adobe Experience Manager
I using the Adobe Experience Manager, Version 6.0.0.20140509 and run it model as "cq-author-4502.jar". i chekc the tab "OSGI" under it the menu "service", it is well and nothing incorrectly. pleas see below screenshot or attachment: The most weird point is never happen the exception also in JSP page could call the OSGI service according to this article example http://helpx.adobe.com/experience-manager/using/first-osgi.htmlIt's really make me confused.

Views

1.6K

Likes

0

Replies

0
Likes given to
Likes from