bikkie bansal

Greenhorn
+ Follow
since Oct 14, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by bikkie bansal

Hi Eric,

I tell you my use case.
User will login into his/her desktop/system though his/her windows credentials which will get validate against LDAP.
Once user successfully logged-in and try to access our application, HTML page should read his/her windows username from NTLM and pass it to authorization service of our application.
If user is successfully logged-in then he/she should not prompt for login again only he/she should be check for authorization only.

This is the our use case.
So i need only logged in person's username.

Thanks,
Bikkie
Hi Eric,

This application will be used within intranet only for limited number of users.

Please suggest solution to get username. I am using HTML for UI, IIS 7.5 web server and WCF RESTful web services at backend.

Thanks,
Bikkie
Hi Eric,

Thanks for your reply. When I changed my local intranet setting from "medium high" to "low" its working fine.
But we cant force client to change their local intranet setting so is there any other way to get username. By doing some googling I found we can use applets or signed jars. I tried applets also but when I used applet I got security permission exception.

Please suggest any solution using which I can get username in my HTML page.

Thanks,
Bikkie
Hello All,

I trying to get logged in windows username using javascript.
I found this piece of code from some forum.



This code is working fine when I run from my local directory. But when I deploy it in IIS server I am getting error message "Automation server can't create object".
Do I have to do some setting in IIS server?

Thanks in advance.
Bikkie
Hello All,

I am using struts in my web application and mvc framework. Using java.util.logging api I am creating log file for each action but my log file is not terminating with </log> entity.
So when I am trying to parse JVM throws unamrshling exception.

Please let me know some work arround for this problem.

Regards,
Vikas
Hello All,

I am using struts in my web application and mvc framework. Using java.util.logging api I am creating log file for each action but my log file is not terminating with </log> entity.
So when I am trying to parse JVM throws unamrshling exception.

Please let me know some work arround for this problem.

Regards,
Vikas
13 years ago
Hello ,

I have developed a web service which is using some native C++ application and dlls. After deploying the webservice on Glassfish server, I am trying to test webservice by launcing it from netbeans.
I have set the system environment path to dll location and copied the dlls in Glassfish Lib folder, glassfish current running directory i.e., E:\openesb\glassfish-v2-ur2-b04-patch-20080603\domains\domain1\config folder in my system. But still its not running giving the below error.......

Servlet web service endpoint 'VRServer' failure
java.lang.UnsatisfiedLinkError: com.sun.tec.mf.vr.ivCanvas.initialSetup()V
at com.sun.tec.mf.vr.ivCanvas.initialSetup(Native Method)
at com.sun.tec.mf.vr.ivCanvas.initialize(ivCanvas.java:61)
at com.sun.tec.mf.vr.MainFrame.<init>(MainFrame.java:52)
at com.sun.tec.mf.vr.CStartEngine.<init>(CStartEngine.java:34)
at com.sun.tec.mf.vr.VRServer.<init>(VRServer.java:20)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.xml.ws.api.server.InstanceResolver.createNewInstance(InstanceResolver.java:215)
at com.sun.enterprise.webservice.InstanceResolverImpl.<init>(InstanceResolverImpl.java:69)
at com.sun.enterprise.webservice.JAXWSServlet.registerEndpoint(JAXWSServlet.java:434)
at com.sun.enterprise.webservice.JAXWSServlet.doInit(JAXWSServlet.java:296)
at com.sun.enterprise.webservice.JAXWSServlet.init(JAXWSServlet.java:113)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1178)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:832)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

initialSetup() is a method in ivCanvas.dll, which I am loading first using LoadLibrary() and then calling initalSetup() method.

Please suggest how to make glassfish reference these dlls.

Thanks in advance.
14 years ago
Hello All,

I am preparing for SCJP. I purchased book of Kathy Sierra for SCJP 1.5. But now SCJP 1.6 is come. I did not check whole content of scjp 1.6 but it is also having same chapters as present in scjp 1.5. I want to know that can i give exam of SCJP 1.6 by reading the book of SCJP 1.5 or is there any diference in course material?

regards,
Vikas.
Hello Peer,

Thanks for reply.
As describe in tutorial Web Services Programming Tips and Tricks: Use collection types with SOAP

I have created wrapper for my service in which i am converting my list type to string array type.



but still I am getting exception when I am invoking my operation.

when I set my return type by using


and invoke my operation I got following exception :



when I set retun type as follow :



and then invoke operation then I am getting following exception:


please help me.

regards,
vikas
[ December 29, 2008: Message edited by: vikas kumar bansal ]
15 years ago
Hello All,

I am calling web service using jax rpc call. My web service is returning list type. my code of calling web service is as follow:



when i am calling web service using
method i am getting following exception :


serialization error: serialization error: java.lang.NullPointerException
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.getSerializer(DynamicInternalTypeMappingRegistry.java:196)
at com.sun.xml.rpc.encoding.literal.LiteralResponseSerializer.initialize(LiteralResponseSerializer.java:230)
at com.sun.xml.rpc.client.dii.BasicCall.createRpcLiteralResponseSerializer(BasicCall.java:757)
at com.sun.xml.rpc.client.dii.BasicCall.getResponseDeserializer(BasicCall.java:690)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486)
at callbyregistry.CallHISServices.executeQuery(CallHISServices.java:220)
at callbyregistry.CallHISServices.main(CallHISServices.java:45)

CAUSE:

serialization error: java.lang.NullPointerException
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.doSetTargetClass(ValueTypeLiteralSerializer.java:113)
at com.sun.xml.rpc.encoding.literal.GenericLiteralObjectSerializer.setTargetClass(GenericLiteralObjectSerializer.java:117)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.<init>(ValueTypeLiteralSerializer.java:104)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.createLiteralValueTypeSerializer(DynamicInternalTypeMappingRegistry.java:768)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.getSerializer(DynamicInternalTypeMappingRegistry.java:190)
at com.sun.xml.rpc.encoding.literal.LiteralResponseSerializer.initialize(LiteralResponseSerializer.java:230)
at com.sun.xml.rpc.client.dii.BasicCall.createRpcLiteralResponseSerializer(BasicCall.java:757)
at com.sun.xml.rpc.client.dii.BasicCall.getResponseDeserializer(BasicCall.java:690)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486)
at callbyregistry.CallHISServices.executeQuery(CallHISServices.java:220)
at callbyregistry.CallHISServices.main(CallHISServices.java:45)

CAUSE:

java.lang.NullPointerException
at sun.reflect.misc.ReflectUtil.checkPackageAccess(ReflectUtil.java:101)
at sun.reflect.misc.ReflectUtil.isPackageAccessible(ReflectUtil.java:123)
at java.beans.Introspector.getBeanInfo(Introspector.java:154)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.introspectTargetClass(ValueTypeLiteralSerializer.java:120)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.doSetTargetClass(ValueTypeLiteralSerializer.java:110)
at com.sun.xml.rpc.encoding.literal.GenericLiteralObjectSerializer.setTargetClass(GenericLiteralObjectSerializer.java:117)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.<init>(ValueTypeLiteralSerializer.java:104)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.createLiteralValueTypeSerializer(DynamicInternalTypeMappingRegistry.java:768)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.getSerializer(DynamicInternalTypeMappingRegistry.java:190)
at com.sun.xml.rpc.encoding.literal.LiteralResponseSerializer.initialize(LiteralResponseSerializer.java:230)
at com.sun.xml.rpc.client.dii.BasicCall.createRpcLiteralResponseSerializer(BasicCall.java:757)
at com.sun.xml.rpc.client.dii.BasicCall.getResponseDeserializer(BasicCall.java:690)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486)
at callbyregistry.CallHISServices.executeQuery(CallHISServices.java:220)
at callbyregistry.CallHISServices.main(CallHISServices.java:45)

CAUSE:

serialization error: java.lang.NullPointerException
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.doSetTargetClass(ValueTypeLiteralSerializer.java:113)
at com.sun.xml.rpc.encoding.literal.GenericLiteralObjectSerializer.setTargetClass(GenericLiteralObjectSerializer.java:117)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.<init>(ValueTypeLiteralSerializer.java:104)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.createLiteralValueTypeSerializer(DynamicInternalTypeMappingRegistry.java:768)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.getSerializer(DynamicInternalTypeMappingRegistry.java:190)
at com.sun.xml.rpc.encoding.literal.LiteralResponseSerializer.initialize(LiteralResponseSerializer.java:230)
at com.sun.xml.rpc.client.dii.BasicCall.createRpcLiteralResponseSerializer(BasicCall.java:757)
at com.sun.xml.rpc.client.dii.BasicCall.getResponseDeserializer(BasicCall.java:690)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486)
at callbyregistry.CallHISServices.executeQuery(CallHISServices.java:220)
at callbyregistry.CallHISServices.main(CallHISServices.java:45)

CAUSE:

java.lang.NullPointerException
at sun.reflect.misc.ReflectUtil.checkPackageAccess(ReflectUtil.java:101)
at sun.reflect.misc.ReflectUtil.isPackageAccessible(ReflectUtil.java:123)
at java.beans.Introspector.getBeanInfo(Introspector.java:154)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.introspectTargetClass(ValueTypeLiteralSerializer.java:120)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.doSetTargetClass(ValueTypeLiteralSerializer.java:110)
at com.sun.xml.rpc.encoding.literal.GenericLiteralObjectSerializer.setTargetClass(GenericLiteralObjectSerializer.java:117)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.<init>(ValueTypeLiteralSerializer.java:104)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.createLiteralValueTypeSerializer(DynamicInternalTypeMappingRegistry.java:768)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.getSerializer(DynamicInternalTypeMappingRegistry.java:190)
at com.sun.xml.rpc.encoding.literal.LiteralResponseSerializer.initialize(LiteralResponseSerializer.java:230)
at com.sun.xml.rpc.client.dii.BasicCall.createRpcLiteralResponseSerializer(BasicCall.java:757)
at com.sun.xml.rpc.client.dii.BasicCall.getResponseDeserializer(BasicCall.java:690)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486)
at callbyregistry.CallHISServices.executeQuery(CallHISServices.java:220)
at callbyregistry.CallHISServices.main(CallHISServices.java:45)

CAUSE:

java.lang.NullPointerException
at sun.reflect.misc.ReflectUtil.checkPackageAccess(ReflectUtil.java:101)
at sun.reflect.misc.ReflectUtil.isPackageAccessible(ReflectUtil.java:123)
at java.beans.Introspector.getBeanInfo(Introspector.java:154)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.introspectTargetClass(ValueTypeLiteralSerializer.java:120)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.doSetTargetClass(ValueTypeLiteralSerializer.java:110)
at com.sun.xml.rpc.encoding.literal.GenericLiteralObjectSerializer.setTargetClass(GenericLiteralObjectSerializer.java:117)
at com.sun.xml.rpc.encoding.literal.ValueTypeLiteralSerializer.<init>(ValueTypeLiteralSerializer.java:104)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.createLiteralValueTypeSerializer(DynamicInternalTypeMappingRegistry.java:768)
at com.sun.xml.rpc.encoding.DynamicInternalTypeMappingRegistry.getSerializer(DynamicInternalTypeMappingRegistry.java:190)
at com.sun.xml.rpc.encoding.literal.LiteralResponseSerializer.initialize(LiteralResponseSerializer.java:230)
at com.sun.xml.rpc.client.dii.BasicCall.createRpcLiteralResponseSerializer(BasicCall.java:757)
at com.sun.xml.rpc.client.dii.BasicCall.getResponseDeserializer(BasicCall.java:690)
at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:486)
at callbyregistry.CallHISServices.executeQuery(CallHISServices.java:220)
at callbyregistry.CallHISServices.main(CallHISServices.java:45)


Please help me out.

regards,
vikas
[ December 16, 2008: Message edited by: vikas kumar bansal ]
15 years ago
Thanks Duc Vo. It's working. thank you very much
15 years ago
Hello Duc vo,

Thanks for the reply.log4j-1.2.14.jar is already present in my service classpath.One more thing i would like to add that the problem occurs when i deploy soar.rar(which I used to publish web service as instructed by following documenthttp://developers.sun.com/appserver/reference/techart/ws_mgmt3.html )in my glassfish.Before that they work fine.Also if I undeploy that soar.rar my services get start working again.

regards,
vikas
15 years ago
Hello All,

By following this link-http://developers.sun.com/appserver/reference/techart/ws_mgmt3.html
I have published simple calculator web service using JWSDP1.6 from GLASSFISH.It's working fine and I am able to invoke it successfully.Till here everythings goes fine but problem comes when I want to publish another web service which consists of "hibbernate annotation".Although It is being published without any issue but while trying to invoke it shows error,like:


I am just wondering..... cann't we invoke those web services which consists of hibernate annotation or Axis Lib.
One more thing I would like to add that when I undeploy Soar.rar and restart the glassfish and redeploy the services than services starts working again...I am simple stuck over here,not finding any way where to go.

Please help me out.

regards,
vikas
15 years ago
Hello Ulf,

As you suggest now i am using uddi4j. i have downloaded uddi4j 2.5, axis 1.4 and ant suggeted in link you had given.
i also set all environment variables.
now how can i publish my web service using uddi4j. i am not getting any tutorial or demo for that.

can you help me?

thanks,
vikas
15 years ago