function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
md1md1 

How to create instance of custom object in Java/JSP ?

Hi,

I'm trying to create a instance of a custom object using the partner API using JSP/Java, but am getting a NullPointerException. Is creating a custom object instance different from creating a standard object instance?

Can you please provide me with a sample code, if its different.

The error comes when setting the object the binding.

This is urgent, so any help is appreciated.

Thanks.
ChitraChitra
Hey ,

I think Custom object creation is the same as any Java Object.

MarketingEvents__c marketingEventObj = new MarketingEvents__c();
marketingEventObj .function();


This works for me.

Can you send the code just to verify..

Thanks,
Chitra
md1md1
Thanks Chitra,
It worked for me - seems like I was having a problem with my array sizes.